Skip to main content

Section 5.31 Session 26: Distributive categories and linear categories, Part 2

Let’s pick up where I left off. My previous work on Exercise 1 is in dire need of revision.

Example 5.31.1. Exercise 1: (Part 2/2).

Continued from last week
Solution.
I’m starting to get the feeling that I’m overthinking this exercise and the real purpose was to connect the matrix product with composition. I’ve been basing my Python code around the properties of the adjacency matrix representation of a graph, but this idea really wasn’t explicitly made in the text anywhere.
If I’m just thinking of a traditional “matrix product”, I would evaluate fg as follows:
[fAXfAYfBXfBY][gXUgXVgYUgYV]=
[fAXgXU+fAYgYUfBXgXU+fBYgYUfAXgXV+fAYgYVfBXgXV+fBYgYV]
My work from last week has a number of errors. Particularly, I mistakely had a duplicate fXV where my fYV should have been, and the text defined α opposite to how I did. Specifically, they use X×YαX+Y such that α1α=1X×Y and αα1=1X+Y for X+Yα1X×Y. Using that notation, can write our matrix product fg as gαf. This gives us the following:
[gXUαfAX+gYUαfAYgXUαfBX+gYUαfBYgXVαfAX+gYVαfAYgXVαfBX+gYVαfBY]
So I think the trink to this is that our category must have identity maps and an associative property. Given a product fg=gαf, we could theoretically substitute f=α1 or g=α1. That gives us α1g=gαα1=g and fα1=α1αf=f. This would give us the following two equivalences:
[fAXfAYfBXfBY]=[fAXfAYfBXfBY][1X0XY0YX1Y]
=[1XαfAX+0YXαfAY1XαfBX+0YXαfBY0XYαfAX+1YαfAY0XYαfBX+1YαfBY]
and
[gXUgXVgYUgYV]=[1X0XY0YX1Y][gXUgXVgYUgYV]
=[gXUα1X+gYUα0XYgXUα0YX+gYUα1YgXVα1X+gYVα0XYgXVα0YX+gYVα1Y]
Using the properties of our identity maps and zero maps, we can simplify those to the following:
[fAXfAYfBXfBY]=[αfAX+0AXαfBX+0BX0AY+αfAY0BY+αfBY]
[gXUgXVgYUgYV]=[gXUα+0XU0YU+gYUαgXVα+0XV0YV+gYVα]
Considering how we’ve defined a “sum” of maps, for any AfB and AgB there should be uniquely defined maps satisfying
[1AAf0BA1BB][1AA0AB0BA1BB]=[1AAf+0AB0BA1BB]=f
and
[1AA0AB0BA1BB][1AAg0BA1BB]=[1AA0AB+g0BA1BB]=g
In other words, we can add a zero map to any map and get the same map back. If follows that [fAXfAYfBXfBY]=[αfAXαfBXαfAYαfBY] and [gXUgXVgYUgYV]=[gXUαgYUαgXVαgYVα] are both “invariate” with respect to this map α. Our expression for the product above can then be simplified one step more:
[fAXfAYfBXfBY][gXUgXVgYUgYV]=
[gXUαfAX+gYUαfAYgXUαfBX+gYUαfBYgXVαfAX+gYVαfAYgXVαfBX+gYVαfBY]
=[gXUfAX+gYUfAYgXUfBX+gYUfBYgXVfAX+gYVfAYgXVfBX+gYVfBY]
And that completes our proof.

Example 5.31.2. Exercise 2: (Part 1/?).

Prove that a category with initial and terminal objects...
Solution.
Assuming that our category has intial and terminal objects, any objects S1,S2 that are initial must be isomorphic and any objects T1,T2 that are terminal must be isomorphic. Without loss of generality, we can think of there being a unique objects S,T together with isomorphisms S1SS2 and T1TT2.
Since our category must also have sums and products, lets consider an arbitrary map XfY. By the definition of S as initial there’s precisely one map SX and by the defintion of T as terminal there’s precisely one map YT.
Since our category also has sums and products, consider the sum S+X. There should be set of 3 maps j,j1,j2 satisfying the following commutative diagram:
Commutative diagram of S+X
Likewise, the definition of a product implies the existence of maps p,p1,p2 sasifying the following:
Commutative diagram of Y times T
Thus, for any map XfY we have the following combined diagram:
Commutative diagram of combined sum and product
By the fact that there is precisely one map ST, the composition p2pfjj1 must be that very same map. Since f can be any map, why not choose X=Y and f=1X? That would give use the following diagram:
Commutative diagram of combined sum and product for f = 1_X
It follows from the uniqueness of the identity map that 1X=p1pjj2=1X1X. We’d also be able to define the unique map ST as the composition p2pjj1=SXT.
This all seems relevant, but considering that I haven’t invoked the definition of a “zero map” yet I must still be missing something.
I think I’m going to pause here and think about this some more.