{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Proof\n\n1. Let $n$ be a positive integer and let $a$, $b$, $c$, $d$ be integers with $a \\equiv b \\pmod n$ and $c \\equiv d \\pmod n$.\n2. By the definition of [[congruence modulo n|0TPW25CBN6]], $n \\mid a - b$ and $n \\mid c - d$.\n3. By the definition of [[divisibility|096PW7Q014]], there are integers $k$ and $l$ with $a - b = n k$ and $c - d = n l$.\n4. Then $(a + c) - (b + d) = (a - b) + (c - d) = n k + n l = n (k + l)$.\n5. Since $k + l$ is an integer, $n \\mid (a + c) - (b + d)$.\n6. Hence $a + c \\equiv b + d \\pmod n$.\n\n## Idea\n\nThe difference of the two sums is the sum of the two differences. Both differences are multiples of $n$, and a sum of multiples of $n$ is again a multiple of $n$.\n",
  "commit": "4a3290d299c8b2cd6493fce2296920ba7f82d942",
  "front": {
    "kind": "proof",
    "msc": [
      "11A07"
    ],
    "name": "Proof that congruence is compatible with addition",
    "proves": "00FWBN7F0Y",
    "sources": [
      {
        "locator": "Basic properties",
        "url": "https://en.wikipedia.org/wiki/Modular_arithmetic"
      }
    ],
    "tag": "GCNQZFRZ4B",
    "uses": [
      "0TPW25CBN6",
      "096PW7Q014"
    ]
  },
  "kind": "proof",
  "link": "https://math2.tamnd.com/node/GCNQZFRZ4B/",
  "links": [
    {
      "field": "proves",
      "target": "00FWBN7F0Y"
    },
    {
      "field": "uses",
      "target": "0TPW25CBN6"
    },
    {
      "field": "uses",
      "target": "096PW7Q014"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/GCNQZFRZ4B.md",
  "msc": [
    "11A07"
  ],
  "name": "Proof that congruence is compatible with addition",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/GCN/GCNQZFRZ4B.md",
  "status": null,
  "tag": "GCNQZFRZ4B",
  "uri": "m2://GCNQZFRZ4B",
  "url": "https://math2.tamnd.com/wiki/proof-that-congruence-is-compatible-with-addition/",
  "writing": {
    "tag": "GCNQZFRZ4B",
    "kind": "proof",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
