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
commutes is to say that (see also at commuting square).
For our purposes, a free diagram in a category consists of a graph and a functor to from the free category on :
Then this diagram commutes if this functor factors (up to natural isomorphism) through a poset :
or equivalently (treating as a strict category) if the functor factors up to equality through a preorder :
In the above, we are identifying posets, and preorder with certain categories in the usual ways.
Recall that a graph consists of a set of vertices, a set of edges, and two functions . Given a category , a free diagram of shape in a category comprises a map from to the objects of and a map from to the morphisms of , both denoted , such that and for each edge , where also denote the source and target maps in .
Recall that a path in comprises a list of vertices and a list of edges such that and for each , where is any natural number (possibly zero). We say that is the source of the path and that is its target. Given a path and a diagram , the composite of under is the composite in . (Note that the paths of length zero are composed to the identity .)
A diagram commutes if, given any two vertices in and any two paths with source and target , the composites of and under are equal in .
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 , , and . Similarly, every loop in a commutative diagram is required to be an identity morphism.
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 , not just that .
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.
Last revised on June 15, 2025 at 13:06:35. See the history of this page for a list of all contributions to it.