nLab
commutative square

Commutative squares

Definition and notation

Let C be a category. A square of morphisms of C consists of objects X,Y,Z,W of C and morphisms f:XZ, g:XY, f:YW, and g:ZW. This is often pictured as a square

X f Z g g Y f W \array{& X & \overset{f}\rightarrow & Z & \\ g & \downarrow &&\downarrow & g'\\ &Y & \underset{f'}\rightarrow& W & \\ }

The square is commutative if yf=fg.

The class of commutative squares in C is written C.

Structure

This class has partial compositions 1 and 2 which are vertical and horizontal:

\array{ \bullet & {\to} & \bullet & \\ \downarrow &&\downarrow \\ \bullet & {\to}& \bullet \\ \downarrow & & \downarrow\\ \bullet & \to & \bullet } \quad \quad \array{\bullet & {\to} & \bullet & \to & \bullet \\ \downarrow &&\downarrow && \downarrow \\ \bullet & {\to}& \bullet & \to & \bullet }

thus forming a (strict) double category, also written C. It contains the vertical category 1C and the horizontal category 2C.

One can also form multiple compositions [a ij] of arrays (a ij), i=1,,m;j=1,,n, of commutative squares provided that in the obvious sense adjacent squares are composible. One checks by induction that:

any composition of commutative squares is commutative.

Applications

Let 2 denote the walking arrow: the category with two objects 0,1 and one arrow 01. This has the structure of cocategory. Then the class of commutative squares in C can also be described as Cat(2×2,C).

If D is a category, then Cat(D, 1C) can be regarded as the class of natural transformations of functors DC. Then the category structure 2C induces a category structure on Cat(D, 1C) giving the functor category CAT(D,C): the category of functors and natural transformations. (This account is due to Charles Ehresmann.)

One deduces that if also E is a category then there is a natural bijection

Cat(E×D,C)(E,CAT(D,C)),Cat(E \times D, C) \cong (E, CAT(D,C)),

which thus states that the category of (small if you like!) categories is cartesian closed.

The commutative squares serve as the morphisms in the arrow category of C, which is the functor category CAT(2,C).