{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Proof\n\nWe first show that every subset of a finite set is finite, by induction on the size. Then we apply the [[rule of sum|0EE2V3CHFK]].\n\n1. Claim: for each natural number $n$, every subset of a set with $n$ elements is finite. We argue by induction on $n$.\n2. For $n = 0$, the only set with $0$ elements is $\\varnothing$. Its only subset is $\\varnothing$, which is finite.\n3. Suppose the claim holds for $n$. Let $V$ have $n + 1$ elements, with a [[bijection|0SNQEF7Z53]] $g : \\set{1, \\dots, n+1} \\to V$. Let $B \\subseteq V$.\n4. Put $v = g(n+1)$ and $V' = V \\setminus \\set{v}$. The restriction of $g$ to $\\set{1, \\dots, n}$ is a bijection onto $V'$, so $V'$ has $n$ elements.\n5. The set $B \\setminus \\set{v}$ is a subset of $V'$. By the induction hypothesis it is finite.\n6. If $v \\notin B$, then $B = B \\setminus \\set{v}$ is finite.\n7. If $v \\in B$, then $B$ is the union of the [[disjoint|0W4RPA8QH3]] finite sets $B \\setminus \\set{v}$ and $\\set{v}$. By the rule of sum, $B$ is finite. This proves the claim.\n8. Now let $U$ be finite and $A \\subseteq U$. By the claim, $A$ and $A^c = U \\setminus A$ are finite.\n9. Every element of $U$ is in $A$ or in $A^c$, and no element is in both. So $U$ is the disjoint union of $A$ and $A^c$.\n10. By the rule of sum, $|U| = |A| + |A^c|$. Hence $|A^c| = |U| - |A|$.\n\n## Idea\n\nThe set $U$ splits into the part inside $A$ and the part outside $A$, with no overlap.\nSo the two sizes add up to $|U|$, and the size of the outside part is a difference.\nThe only extra work is to check that both parts are finite.\n",
  "commit": "4a3290d299c8b2cd6493fce2296920ba7f82d942",
  "front": {
    "kind": "proof",
    "methods": [
      "0ASJVEFA9J"
    ],
    "msc": [
      "05A05"
    ],
    "name": "Proof of the complement principle",
    "proves": "03QC59M99B",
    "sources": [
      {
        "url": "https://proofwiki.org/wiki/Cardinality_of_Complement"
      }
    ],
    "tag": "DYSCY9R157",
    "uses": [
      "05099E1NMJ",
      "0SNQEF7Z53",
      "0EE2V3CHFK",
      "0W4RPA8QH3"
    ]
  },
  "kind": "proof",
  "link": "https://math2.tamnd.com/node/DYSCY9R157/",
  "links": [
    {
      "field": "proves",
      "target": "03QC59M99B"
    },
    {
      "field": "uses",
      "target": "05099E1NMJ"
    },
    {
      "field": "uses",
      "target": "0SNQEF7Z53"
    },
    {
      "field": "uses",
      "target": "0EE2V3CHFK"
    },
    {
      "field": "uses",
      "target": "0W4RPA8QH3"
    },
    {
      "field": "methods",
      "target": "0ASJVEFA9J"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/DYSCY9R157.md",
  "msc": [
    "05A05"
  ],
  "name": "Proof of the complement principle",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/DYS/DYSCY9R157.md",
  "status": null,
  "tag": "DYSCY9R157",
  "uri": "m2://DYSCY9R157",
  "url": "https://math2.tamnd.com/wiki/proof-of-the-complement-principle/",
  "writing": {
    "tag": "DYSCY9R157",
    "kind": "proof",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      },
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
