{
  "aliases": [
    "addition-principle",
    "sum-rule"
  ],
  "backlinks": [
    {
      "field": "uses",
      "target": "03QC59M99B"
    },
    {
      "field": "uses",
      "target": "0C4YEQ9H5E"
    }
  ],
  "body": "\n## Statement\n\nLet $A$ and $B$ be finite sets with $A \\cap B = \\varnothing$.\nThen $A \\cup B$ is finite and $|A \\cup B| = |A| + |B|$.\n\nMore generally, let $A_1, \\dots, A_k$ be finite sets that are pairwise disjoint.\nThen $|A_1 \\cup \\dots \\cup A_k| = |A_1| + \\dots + |A_k|$.\n\n## Remarks\n\nFor the disjoint union $A \\sqcup B$ of two arbitrary finite sets, the same formula $|A \\sqcup B| = |A| + |B|$ holds.\nIf $A$ and $B$ are not disjoint, the formula fails. The [[inclusion-exclusion formula for two sets|0C4YEQ9H5E]] gives the correct count.\n\n## Explanations\n\n### L1 human\n\nIf you choose one item from a first group or from a second group, and no item is in both groups, you add the sizes.\nFor example, with 3 soups and 4 salads on a menu, there are $3 + 4 = 7$ ways to choose one starter.\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "aliases": [
      "addition-principle",
      "sum-rule"
    ],
    "kind": "statement",
    "msc": [
      "05A05"
    ],
    "name": "Rule of sum",
    "role": "theorem",
    "same_as": {
      "wikidata": "Q2360148",
      "wikipedia": "Addition principle"
    },
    "sources": [
      {
        "locator": "lead section",
        "url": "https://en.wikipedia.org/wiki/Addition_principle"
      }
    ],
    "tag": "0EE2V3CHFK",
    "uses": [
      "05099E1NMJ"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/0EE2V3CHFK/",
  "links": [
    {
      "field": "uses",
      "target": "05099E1NMJ"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0EE2V3CHFK.md",
  "msc": [
    "05A05"
  ],
  "name": "Rule of sum",
  "prov": null,
  "role": "theorem",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0EE/0EE2V3CHFK.md",
  "status": null,
  "tag": "0EE2V3CHFK",
  "uri": "m2://0EE2V3CHFK",
  "url": "https://math2.tamnd.com/wiki/rule-of-sum/",
  "writing": {
    "tag": "0EE2V3CHFK",
    "kind": "statement",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
