# 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:X\to Z$, $g:X\to Y$, $f\prime :Y\to W$, and $g\prime :Z\to W$. This is often pictured as a square

$\begin{array}{ccccc}& X& \stackrel{f}{\to }& Z& \\ g& ↓& & ↓& g\prime \\ & Y& \underset{f\prime }{\to }& W& \\ \end{array}$\array{& X & \overset{f}\rightarrow & Z & \\ g & \downarrow &&\downarrow & g'\\ &Y & \underset{f'}\rightarrow& W & \\ }

The square is commutative if $y\prime \circ f=f\prime \circ g$.

The class of commutative squares in $C$ is written $\square C$.

## Structure

This class has partial compositions ${\circ }_{1}$ and ${\circ }_{2}$ which are vertical and horizontal:

$\begin{array}{cccc}•& \to & •& \\ ↓& & ↓\\ •& \to & •\\ ↓& & ↓\\ •& \to & •\end{array}\phantom{\rule{1em}{0ex}}\phantom{\rule{1em}{0ex}}\begin{array}{ccccc}•& \to & •& \to & •\\ ↓& & ↓& & ↓\\ •& \to & •& \to & •\end{array}$\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 $\square C$. It contains the vertical category ${\square }_{1}C$ and the horizontal category ${\square }_{2}C$.

One can also form multiple compositions $\left[{a}_{\mathrm{ij}}\right]$ of arrays $\left({a}_{\mathrm{ij}}\right)$, $i=1,\dots ,m;j=1,\dots ,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 $0\to 1$. This has the structure of cocategory. Then the class of commutative squares in $C$ can also be described as $\mathrm{Cat}\left(2×2,C\right)$.

If $D$ is a category, then $\mathrm{Cat}\left(D,{\square }_{1}C\right)$ can be regarded as the class of natural transformations of functors $D\to C$. Then the category structure ${\square }_{2}C$ induces a category structure on $\mathrm{Cat}\left(D,{\square }_{1}C\right)$ giving the functor category $\mathrm{CAT}\left(D,C\right)$: 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

$\mathrm{Cat}\left(E×D,C\right)\cong \left(E,\mathrm{CAT}\left(D,C\right)\right),$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 $\mathrm{CAT}\left(2,C\right)$.

Revised on September 16, 2010 19:02:46 by Toby Bartels (64.89.61.88)