nLab commutative diagram

Redirected from "commuting diagram".
Commutative diagrams

Commutative diagrams

Idea

In category theory, a commutative diagram is a free diagram in which all parallel morphisms obtained by composing morphisms in the diagram agree.

For example that a square diagram of the form

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

commutes is to say that gf=fgg' \circ f = f' \circ g (see also at commuting square).

Definitions

Slick definition

For our purposes, a free diagram DD in a category CC consists of a graph JJ and a functor to CC from the free category on JJ:

F(J)DC F(J) \overset{D}\to C

Then this diagram DD commutes if this functor DD factors (up to natural isomorphism) through a poset PP:

F(J)PCF(J)C,Pa poset; F(J) \to P \to C \;\cong\; F(J) \to C ,\; P\;\text{a poset} ;

or equivalently (treating CC as a strict category) if the functor factors up to equality through a preorder QQ:

JQCJC,Qa preorder. J \to Q \to C \;\cong\; J \to C ,\; Q\;\text{a preorder} .

In the above, we are identifying posets, and preorder with certain categories in the usual ways.

Elementary definition

Recall that a graph JJ consists of a set VV of vertices, a set EE of edges, and two functions s,t:EVs,t\colon E \to V. Given a category CC, a free diagram DD of shape JJ in a category CC comprises a map from VV to the objects of CC and a map from EE to the morphisms of CC, both denoted DD, such that D(s(e))=s(D(e))D(s(e)) = s(D(e)) and D(t(e))=t(D(e))D(t(e)) = t(D(e)) for each edge ee, where s,ts,t also denote the source and target maps in CC.

Recall that a path pp in JJ comprises a list (v 0,v 1,,v n)(v_0,v_1,\ldots,v_n) of vertices and a list (e 1,,e n)(e_1,\ldots,e_n) of edges such that s(e i)=v i1s(e_i) = v_{i-1} and t(e i)=v it(e_i) = v_{i} for each ii, where nn is any natural number (possibly zero). We say that v 0v_0 is the source of the path and that v nv_n is its target. Given a path pp and a diagram DD, the composite of pp under DD is the composite F(e 1);;D(e n):D(v 0)D(v n)F(e_1);\ldots;D(e_n)\colon D(v_0) \to D(v_n) in CC. (Note that the paths of length zero are composed to the identity id D(v 0):D(v 0)D(v 0)\id_{D(v_0)}\colon D(v_0) \to D(v_0).)

A diagram DD commutes if, given any two vertices x,yx,y in JJ and any two paths p,pp,p' with source xx and target yy, the composites of pp and pp' under DD are equal in CC.

Edges cases

Cycles and loops

Cycles (including loops) are generally avoided in commutative diagrams in category theory texts. However, they make sense under the definition above. For instance, commutativity of the following diagram implies that hgf=1h g f = 1, gfh=1g f h = 1, and fhg=1f h g = 1. Similarly, every loop in a commutative diagram is required to be an identity morphism.

Forks

Diagrams like the following are often used to denote forks in category theory. However, note that for this diagram to commute, we require the stronger condition that g=hg = h, not just that gf=hfg f = h f.

If this is undesirable, a weaker notion of commutativity may be asked for, in which we only ask for commutativity of parallel paths where the source is a source in the sense that it only has outgoing edges, and the target is a sink in that it only has incoming edges. This convention may sometimes be implicitly encountered in category theory texts.

References

Last revised on June 15, 2025 at 13:06:35. See the history of this page for a list of all contributions to it.