I feel like I have incorrectly understood, then un-understood, and re-understood in a slightly less broken way the definition of the product in category theory around 5 times. I'm documenting the journey here.
§ The definition
Given two objects , in a category , any 3-tuple is called their product , if for any other 3 tuple , we have a unique factorization map such that , .
(Note that I did not say the product. This is on purpose). We claim that the product is unique up to unique isomorphism.
Let's choose the category to be the category of sets. Let's try and figure out what a product of the sets and is going to be.
§ Non-example 1: product as
Let's try to choose the product set as simply , with the maps being chosen as :
πbp{1}--->{ γ } | { δ } |πa| v{ α , β }In this case, it's easy to see the failure. I can build a set with the maps :
πbq{2}-+ { γ } | | { } | +->{ δ } |πa| v{ α , β }There is a single, unique map which takes to , which is the function . See that , while . Hence the universal property can never be satisfied.
Thus is not a product of and as it is unable to represent a pair .
§ Non-example 2: product as
In this case, we shall see that we will have too much freedom , so this will violate the "unique map" aspect. Let's pick some choice of and . For example, we can use:
Now let's say we have a set such that .
If we try to construct the map , notice that we get \emph{two} possible legal maps. We can set , or , because both and map into .
This violates the uniqueness condition of the product. Thus, the set is not a product of and because it does not provide a unique map from into . Alternatively, it does not provide a unique representation for the tuple . Thus it can't be a product.
§ Checking an example: as
I claim that a possible product of and is:
p πa a 1------------*--->{α} | 2--------─┘ { } | | 3-------*--->{β} | | | 4----─┘ +----* |πb | | | | *---+ | | v vb {γ δ}Now given a 3-tuple , we construct the factorization map , where:
That is, we build such that on composing with and , we will get the right answer. For example, if , then we know that we should map to an element such that . So we need . Then looking at allows us to pick a unique y. There is zero choice in the construction of . We need exactly 4 elements to cover all possible ways in which could map into and through such that we cover all possibilities with no redundancy.
This choice of product is goldilocks : it does not have too few elements such that some elements are not representable; it also does not have too many elements such that some elements are redundant.
§ Non uniqueness: product as
Note that instead of using , I could have used and nothing would have changed. I have never depended on using the values . Rather, I've only used them as \emph{labels}.
§ Non uniqueness: product as
Indeed, our usual idea of product also satisfies the product, since it is in unique isomorphism to the set we had considered previously. But this might be strange: Why is it that the categorical definition of product allows for so many other "spurious" products? Clearly this product of tuples is the best one, is it not?
Of course not! Inside the category of sets, anything with the same cardinality is isomorphic. So nothing inside the category can distinguish between the sets and . Hence, the usual product we are so used to dealing with is not privileged.
This should make us happy, not sad. We have removed the (un-necessary) privilege we were handing to this one set because it "felt" like it was canonical, and have instead identified what actually makes the product of sets tick: the fact that their cardinality is the product of the cardinalities of the individual sets!
§ How to think about the product
Since we are specifying the data of , we can simply think of elements of as being "pre-evaluated", as . So in our case, we can simplify the previous situation with by writing the set as . This tells us "at a glance" that every element of is represented, as well as what element it is represented by.
§ Proof of uniqueness upto unique isomorphism
- Assume we have two products and , which are products of and
- By the universality of wrt , we get a unique! map such that the diagaram commutes.
- By the universality of wrt , we get a unique! map
- We get a map . by the universality of with respect to , we get a unique! map that makes the diagram commute.But we have two such maps: as well as . Hence we must have . In pictures:
∃!id(p) +---+ | | | v+---------ppppp--------+| πa | ^ πb |v ∃!p2q | va | | b^ | ∃!q2p ^| π'b v | π'b |+---------qqqqq--------+- The full diagram commutes.
- By definition of identity/commutativity of the diagram, .
- By definition of identity/commutativity of the diagram, .
- By the commutativity of the diagram, we have .
- By the commutativity of the diagram, we have .
- We can consider the universal property of the product, where we have as one product, and as another product.
- This gives us a unique map such that , and .
- We have two candidates for : and . Hence, by the uniqueness of , we have that .