{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $\\mathcal{C}$ be a [[category|A2DE66937D]].\nA *diagram* in $\\mathcal{C}$ is a directed graph with each vertex labelled by an object and each edge labelled by a [[morphism|859F0TFVA3]] of $\\mathcal{C}$.\nAn edge from a vertex labelled $A$ to a vertex labelled $B$ must be labelled by a morphism $A \\to B$.\nThe composite of a directed path of edges $e_1, \\dots, e_n$ with $n \\ge 1$ and labels $f_1, \\dots, f_n$ is $f_n \\circ \\dots \\circ f_1$.\nThe diagram *commutes* if any two directed paths of length at least $1$ with the same start and the same end have the same composite.\n\n## Remarks\n\nExample: the square with vertices $A, B, C, D$ and edges $f \\colon A \\to B$, $g \\colon B \\to D$, $h \\colon A \\to C$, $k \\colon C \\to D$ commutes exactly when $g \\circ f = k \\circ h$.\nFor instance, in the category of sets with $A = B = C = D = \\R$, the maps $f = k = (x \\mapsto 2x)$ and $g = h = (x \\mapsto 3x)$ give a commuting square, since both composites are $x \\mapsto 6x$.\nNon-example: with $f = k = (x \\mapsto x + 1)$ and $g = h = (x \\mapsto 2x)$, the square does not commute.\nIndeed $g(f(x)) = 2x + 2$ while $k(h(x)) = 2x + 1$.\nIn practice one only asks for commutativity of the paths that the text names.\nFor a diagram with a loop $f$, the convention above would force $f = f \\circ f$.\nMore formally, a diagram of shape $J$ is a functor from a category $J$ to $\\mathcal{C}$.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "defines": "WV898P4X16",
    "kind": "definition",
    "msc": [
      "18A10"
    ],
    "name": "Commutative diagram",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Commutative_diagram"
      }
    ],
    "tag": "D8EYFTW4RY",
    "uses": [
      "A2DE66937D",
      "859F0TFVA3"
    ]
  },
  "kind": "definition",
  "link": "https://tamnd.github.io/math2/node/D8EYFTW4RY/",
  "links": [
    {
      "field": "defines",
      "target": "WV898P4X16"
    },
    {
      "field": "uses",
      "target": "A2DE66937D"
    },
    {
      "field": "uses",
      "target": "859F0TFVA3"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/D8EYFTW4RY.md",
  "msc": [
    "18A10"
  ],
  "name": "Commutative diagram",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/D8E/D8EYFTW4RY.md",
  "status": null,
  "tag": "D8EYFTW4RY",
  "uri": "m2://D8EYFTW4RY",
  "url": "https://tamnd.github.io/math2/wiki/commutative-diagram-definition/",
  "writing": {
    "tag": "D8EYFTW4RY",
    "kind": "definition",
    "level": "W0",
    "next": [
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
