{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Proof\n\nWe argue by [[induction|0ASJVEFA9J]] on $c$.\nLet $S$ be the [[successor function|0832XVR512]].\nThe [[addition|0W5DSDFQ4G]] satisfies $x + 0 = x$ and $x + S(y) = S(x + y)$ for all natural numbers $x$ and $y$.\nFix natural numbers $a$ and $b$.\n\n1. For $c = 0$: the definition gives $(a + b) + 0 = a + b$.\n2. Also $b + 0 = b$, so $a + (b + 0) = a + b$. Thus $(a + b) + 0 = a + (b + 0)$.\n3. Suppose that $(a + b) + c = a + (b + c)$ for some natural number $c$.\n4. By the definition, $(a + b) + S(c) = S((a + b) + c)$.\n5. By the hypothesis of step 3, $S((a + b) + c) = S(a + (b + c))$.\n6. By the definition, $S(a + (b + c)) = a + S(b + c)$.\n7. By the definition again, $S(b + c) = b + S(c)$, so $a + S(b + c) = a + (b + S(c))$.\n8. Steps 4 to 7 give $(a + b) + S(c) = a + (b + S(c))$.\n9. Since $S(c) = c + 1$, induction gives $(a + b) + c = a + (b + c)$ for every natural number $c$. As $a$ and $b$ were arbitrary, the law holds for all $a$, $b$ and $c$.\n\n## Idea\n\nThe recursive definition of addition peels one successor off the last number at a time.\nOn both sides, this successor moves to the outside in the same way.\nSo the case $S(c)$ reduces to the case $c$.\n",
  "commit": "4a3290d299c8b2cd6493fce2296920ba7f82d942",
  "front": {
    "kind": "proof",
    "methods": [
      "0ASJVEFA9J"
    ],
    "msc": [
      "03F30"
    ],
    "name": "Proof of the associativity of addition by induction",
    "proves": "0C32J27WQC",
    "sources": [
      {
        "locator": "Proof of associativity",
        "url": "https://en.wikipedia.org/wiki/Proofs_involving_the_addition_of_natural_numbers"
      }
    ],
    "tag": "KBVJPBJXFD",
    "uses": [
      "0W5DSDFQ4G",
      "0832XVR512",
      "0ASJVEFA9J"
    ]
  },
  "kind": "proof",
  "link": "https://math2.tamnd.com/node/KBVJPBJXFD/",
  "links": [
    {
      "field": "proves",
      "target": "0C32J27WQC"
    },
    {
      "field": "uses",
      "target": "0W5DSDFQ4G"
    },
    {
      "field": "uses",
      "target": "0832XVR512"
    },
    {
      "field": "uses",
      "target": "0ASJVEFA9J"
    },
    {
      "field": "methods",
      "target": "0ASJVEFA9J"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/KBVJPBJXFD.md",
  "msc": [
    "03F30"
  ],
  "name": "Proof of the associativity of addition by induction",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/KBV/KBVJPBJXFD.md",
  "status": null,
  "tag": "KBVJPBJXFD",
  "uri": "m2://KBVJPBJXFD",
  "url": "https://math2.tamnd.com/wiki/proof-of-the-associativity-of-addition-by-induction/",
  "writing": {
    "tag": "KBVJPBJXFD",
    "kind": "proof",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
