{
  "aliases": [
    "composition-is-associative"
  ],
  "backlinks": null,
  "body": "\n## Statement\n\nLet $f \\colon A \\to B$, $g \\colon B \\to C$ and $h \\colon C \\to D$ be [[functions|0XHDTE5YMZ]].\nThen\n$$h \\circ (g \\circ f) = (h \\circ g) \\circ f.$$\n\n## Remarks\n\nBoth sides send each $a \\in A$ to $h(g(f(a)))$, so they are equal.\nBecause of this law, one can write $h \\circ g \\circ f$ without brackets.\nWith the [[identity functions|0FSNQ0GNCC]], the functions from a set to itself form a monoid under composition.\n\n## Explanations\n\n### L1 human\n\nWhen three machines are chained, it does not matter which two you connect first.\nThe input passes through $f$, then $g$, then $h$ in both cases.\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "aliases": [
      "composition-is-associative"
    ],
    "kind": "statement",
    "msc": [
      "03E20"
    ],
    "name": "Associativity of composition",
    "role": "proposition",
    "sources": [
      {
        "locator": "Properties",
        "url": "https://en.wikipedia.org/wiki/Function_composition"
      }
    ],
    "tag": "0J6AKYZQT8",
    "uses": [
      "07HF9YCWPP"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/0J6AKYZQT8/",
  "links": [
    {
      "field": "uses",
      "target": "07HF9YCWPP"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0J6AKYZQT8.md",
  "msc": [
    "03E20"
  ],
  "name": "Associativity of composition",
  "prov": null,
  "role": "proposition",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0J6/0J6AKYZQT8.md",
  "status": null,
  "tag": "0J6AKYZQT8",
  "uri": "m2://0J6AKYZQT8",
  "url": "https://math2.tamnd.com/wiki/associativity-of-composition/",
  "writing": {
    "tag": "0J6AKYZQT8",
    "kind": "statement",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
