If there is an arrow $h: (A\times B) \to (A\times B)$, then, necessarily $h = \left\lt f,g\right\gt$ for some $f: (A\times B) \to A$ and $g (A\times B) \to B$?


The book I'm studying defines a product $A\times B$ to be an object provided with two projecting arrows $\pi\_A : A\times B \to A$ and $\pi\_B: A\times B \to B$ such that, for any other object C and arrows $f: C \to A$ and $g : C \to B$ there's exactly one arrow $\left\lt f,g\right\gt: C \to (A\times B)$ such that:


$\pi\_A \cdot \left\lt f,g\right\gt = f$


$\pi\_B \cdot \left\lt f,g\right\gt = g$


It says nothing about $\left\lt f,g\right\gt$ being the only arrow from $C$ to $A\times B$, but I got that impression later when he asked to prove that all products are isomorphic: I could only prove assuming that any arrow from $A \times B$ to itself was of the form $\left\lt f,g\right\gt$ for some f and g from $A\times B$ to A and B, respectively.


This suggests me that $\left\lt f,g\right\gt$ was meant to be the only possible arrow from C to $A \times B$.


Is this right or did I just misunderstood the book?



Products of objects in categories
The reason you're having trouble proving the uniqueness is that you need to use the projections. There is not a unique map from $C$ to $A \times B$. But there is a unique map *given* specified maps from $C$ to $A$ and $B$ (i.e. such that the composition of the map from $C$ to the product with the projection gives the map from $C$ to $A$ or $B$). If $C\_1$ and $C\_2$ are two products, we can use the universal property to construct maps between them. The compositions are then the identity. Why? It is not true that there is only one map from $C\_1$ to itself. BUT, there is only one map from $C\_1$ to itself which, when composed with $\pi\_A$ and $\pi\_B$, gives $\pi\_A$ and $\pi\_B$. If you construct the maps correctly, this will be the case, and you will be able to prove the isomorphism between $C\_1$ and $C\_2$.


