{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Proof\n\nWe use the [[diagonal argument|0XCH8QVDCQ]].\n\n1. Let $A$ be a set and let $f \\colon A \\to \\mathcal{P}(A)$ be a function to the [[power set|0BC7KX51Z8]].\n2. Let $D = \\{a \\in A : a \\notin f(a)\\}$. Then $D \\subseteq A$, so $D \\in \\mathcal{P}(A)$.\n3. Suppose that $D = f(d)$ for some $d \\in A$.\n4. If $d \\in D$, then $d \\notin f(d)$ by the definition of $D$. Since $f(d) = D$, this says $d \\notin D$, a contradiction.\n5. If $d \\notin D$, then $d \\notin f(d)$, since $f(d) = D$. By the definition of $D$, this means $d \\in D$, a contradiction.\n6. So no $d \\in A$ has $f(d) = D$. Hence $f$ is not [[surjective|0XKH881BZ7]].\n7. The map $s \\colon A \\to \\mathcal{P}(A)$, $s(a) = \\{a\\}$, is [[injective|0PVG1CRAJN]], since $\\{a\\} = \\{a'\\}$ implies $a = a'$. So $|A| \\le |\\mathcal{P}(A)|$ in the [[order of cardinals|01GTP8M5RG]].\n8. Suppose that $|A| = |\\mathcal{P}(A)|$. By the definition of [[cardinality|0JTGRV4WT4]], $A$ and $\\mathcal{P}(A)$ are [[equinumerous|08EJHHMB5R]], so there is a [[bijection|0SNQEF7Z53]] $A \\to \\mathcal{P}(A)$.\n9. A bijection is surjective, which contradicts step 6. So $|A| \\neq |\\mathcal{P}(A)|$.\n10. By steps 7 and 9, $|A| \u003c |\\mathcal{P}(A)|$.\n\n## Idea\n\nThe set $D$ is built to differ from each $f(a)$ at the element $a$ itself. So $D$ cannot be any of the sets $f(a)$. This is the same diagonal trick that shows the real numbers are uncountable.\n",
  "commit": "4a3290d299c8b2cd6493fce2296920ba7f82d942",
  "front": {
    "kind": "proof",
    "msc": [
      "03E10"
    ],
    "name": "Proof of Cantor's theorem by the diagonal argument",
    "proves": "0WTEMGYV2C",
    "sources": [
      {
        "locator": "Proof",
        "url": "https://en.wikipedia.org/wiki/Cantor's_theorem"
      }
    ],
    "tag": "XC0E0G8PQ6",
    "uses": [
      "0BC7KX51Z8",
      "0XKH881BZ7",
      "0PVG1CRAJN",
      "0SNQEF7Z53",
      "01GTP8M5RG",
      "0JTGRV4WT4",
      "08EJHHMB5R",
      "0XCH8QVDCQ"
    ]
  },
  "kind": "proof",
  "link": "https://math2.tamnd.com/node/XC0E0G8PQ6/",
  "links": [
    {
      "field": "proves",
      "target": "0WTEMGYV2C"
    },
    {
      "field": "uses",
      "target": "0BC7KX51Z8"
    },
    {
      "field": "uses",
      "target": "0XKH881BZ7"
    },
    {
      "field": "uses",
      "target": "0PVG1CRAJN"
    },
    {
      "field": "uses",
      "target": "0SNQEF7Z53"
    },
    {
      "field": "uses",
      "target": "01GTP8M5RG"
    },
    {
      "field": "uses",
      "target": "0JTGRV4WT4"
    },
    {
      "field": "uses",
      "target": "08EJHHMB5R"
    },
    {
      "field": "uses",
      "target": "0XCH8QVDCQ"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/XC0E0G8PQ6.md",
  "msc": [
    "03E10"
  ],
  "name": "Proof of Cantor's theorem by the diagonal argument",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/XC0/XC0E0G8PQ6.md",
  "status": null,
  "tag": "XC0E0G8PQ6",
  "uri": "m2://XC0E0G8PQ6",
  "url": "https://math2.tamnd.com/wiki/proof-of-cantors-theorem-by-the-diagonal-argument/",
  "writing": {
    "tag": "XC0E0G8PQ6",
    "kind": "proof",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
