{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Proof\n\nWe apply Zorn's lemma to the partial injections from $A$ to $B$.\n\n1. Let $A$ and $B$ be sets. A partial injection is an [[injective function|0PVG1CRAJN]] $p \\colon D \\to B$ with $D \\subseteq A$. We view $p$ as its set of pairs $\\{(a, p(a)) : a \\in D\\}$.\n2. Let $Q$ be the set of partial injections, ordered by inclusion $\\subseteq$. This is a [[partial order|011C29Q1S1]]. The empty function lies in $Q$, so $Q$ is nonempty.\n3. Let $K$ be a [[chain|0GP9ASVQ1X]] of $Q$. If $K$ is empty, the empty function is an [[upper bound|0H5J02P8S9]] of $K$.\n4. Let $K$ be nonempty, and let $q = \\bigcup_{p \\in K} p$ be the [[union|05GK32H72H]] of these sets of pairs.\n5. Let $(a, b), (a', b') \\in q$, with $(a, b) \\in p$ and $(a', b') \\in p'$ for $p, p' \\in K$. Since $K$ is a chain, both pairs lie in one member $r \\in K$, the larger of $p$ and $p'$.\n6. If $a = a'$, then $b = b'$, since $r$ is a [[function|0XHDTE5YMZ]]. If $b = b'$, then $a = a'$, since $r$ is injective.\n7. By step 6, $q$ is an injective function from a subset of $A$ to $B$. So $q \\in Q$, and $q$ is an upper bound of $K$.\n8. By [[Zorn's lemma|04RXTQA5ZA]], $Q$ has a [[maximal element|0TZEEFTNCC]] $m \\colon D \\to B$. Let $E = m(D)$ be its image.\n9. Suppose that $D \\neq A$ and $E \\neq B$. Pick $a \\in A \\setminus D$ and $b \\in B \\setminus E$.\n10. Then $m \\cup \\{(a, b)\\}$ is a function on $D \\cup \\{a\\}$, and it is injective, because $b \\notin E$. It lies in $Q$ and strictly contains $m$, contradicting maximality.\n11. So $D = A$ or $E = B$. If $D = A$, then $m \\colon A \\to B$ is injective.\n12. If $E = B$, then $m \\colon D \\to B$ is a bijection. Its inverse $m^{-1} \\colon B \\to D \\subseteq A$ is an injective function from $B$ to $A$.\n13. So there is an injection from $A$ to $B$ or from $B$ to $A$. By the [[order of cardinals|01GTP8M5RG]], $|A| \\le |B|$ or $|B| \\le |A|$.\n\n## Idea\n\nBuild an injection from $A$ to $B$ as far as possible. Zorn's lemma gives one that cannot be extended. It cannot be extended only if it has used up all of $A$ or all of $B$, and each case gives an injection in one direction.\n",
  "commit": "4a3290d299c8b2cd6493fce2296920ba7f82d942",
  "front": {
    "kind": "proof",
    "msc": [
      "03E10"
    ],
    "name": "Proof of the comparability of cardinals from Zorn's lemma",
    "proves": "0YBHSJMN3J",
    "sources": [
      {
        "url": "https://andrescaicedo.wordpress.com/2014/09/26/comparability-of-cardinals-from-zorns-lemma/"
      }
    ],
    "tag": "XHTB10CSKT",
    "uses": [
      "04RXTQA5ZA",
      "011C29Q1S1",
      "0GP9ASVQ1X",
      "0H5J02P8S9",
      "0TZEEFTNCC",
      "0PVG1CRAJN",
      "0XHDTE5YMZ",
      "05GK32H72H",
      "01GTP8M5RG"
    ]
  },
  "kind": "proof",
  "link": "https://math2.tamnd.com/node/XHTB10CSKT/",
  "links": [
    {
      "field": "proves",
      "target": "0YBHSJMN3J"
    },
    {
      "field": "uses",
      "target": "04RXTQA5ZA"
    },
    {
      "field": "uses",
      "target": "011C29Q1S1"
    },
    {
      "field": "uses",
      "target": "0GP9ASVQ1X"
    },
    {
      "field": "uses",
      "target": "0H5J02P8S9"
    },
    {
      "field": "uses",
      "target": "0TZEEFTNCC"
    },
    {
      "field": "uses",
      "target": "0PVG1CRAJN"
    },
    {
      "field": "uses",
      "target": "0XHDTE5YMZ"
    },
    {
      "field": "uses",
      "target": "05GK32H72H"
    },
    {
      "field": "uses",
      "target": "01GTP8M5RG"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/XHTB10CSKT.md",
  "msc": [
    "03E10"
  ],
  "name": "Proof of the comparability of cardinals from Zorn's lemma",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/XHT/XHTB10CSKT.md",
  "status": null,
  "tag": "XHTB10CSKT",
  "uri": "m2://XHTB10CSKT",
  "url": "https://math2.tamnd.com/wiki/proof-of-the-comparability-of-cardinals-from-zorns-lemma/",
  "writing": {
    "tag": "XHTB10CSKT",
    "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
      }
    ]
  }
}
