In mathematics, and especially in category theory, a commutativediagram is a diagram such that all directed paths in the diagram with the same start and endpoints lead to the same result. It is said that commutative diagrams play the role in category theory that equations play in algebra.
Description
A commutative diagram often consists of three parts:
The dashed arrow typically represents the claim that the indicated morphism exists ; the arrow may be optionally labeled as.
* If the morphism is in addition unique, then the dashed arrow may be labeled or.
These conventions are common enough that texts often do not explain the meanings of the different types of arrow.
Verifying commutativity
Commutativity makes sense for a polygon of any finite number of sides, and a diagram is commutative if every polygonal subdiagram is commutative. Note that a diagram may be non-commutative, i.e., the composition of different paths in the diagram may not give the same result.
Phrases
Phrases like "this commutative diagram" or "the diagram commutes" may be used.
Examples
In the left diagram, which expresses the first isomorphism theorem, commutativity of the triangle means that. In the right diagram, commutativity of the square means. In order for the diagram below to commute, three equalities must be satisfied:
Here, since the first equality follows from the last two, it suffices to show that and are true in order for the diagram to commute. However, since equality generally does not follow from the other two, it is generally not enough to have only equalities and if one were to show that the diagram commutes.
In higher category theory, one considers not only objects and arrows, but arrows between the arrows, arrows between arrows between arrows, and so on. For example, the category of small categoriesCat is naturally a 2-category, with functors as its arrows and natural transformations as the arrows between functors. In this setting, commutative diagrams may include these higher arrows as well, which are often depicted in the following style:. For example, the following diagram depicts two categories ' and ', together with two functors, : ' → ' and a natural transformation : ⇒ : There are two kinds of composition in a 2-category, and they may also be depicted via pasting diagrams.
Diagrams as functors
A commutative diagram in a category C can be interpreted as a functor from an index categoryJ to C; one calls the functor a diagram. More formally, a commutative diagram is a visualization of a diagram indexed by a poset category. Such a diagram typically include:
the commutativity of the diagram, corresponding to the uniqueness of a map between two objects in a poset category.
Conversely, given a commutative diagram, it defines a poset category, where:
the objects are the nodes,
there is a morphism between any two objects if and only if there is a path between the nodes,
with the relation that this morphism is unique.
However, not every diagram commutes. As a simple example, the diagram of a single object with an endomorphism, or with two parallel arrows, as used in the definition of equalizer need not commute. Further, diagrams may be messy or impossible to draw, when the number of objects or morphisms is large.