{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Proof\n\nWe argue by contradiction.\n\n1. Suppose that $f : A \\to B$ is [[injective|0PVG1CRAJN]], and let $C = f(A)$ be the [[image|0Q3F20XB0A]] of $A$.\n2. Then $f$ is a [[bijection|0SNQEF7Z53]] from $A$ onto $C$: it is injective, and every element of $C$ is a value of $f$.\n3. Composing a numbering of $A$ with $f$ numbers $C$. So $C$ is finite and $|C| = |A|$, as in the [[bijection principle|0GV2573FP4]].\n4. The set $C$ is a subset of $B$. By the [[complement principle|03QC59M99B]], $|B \\setminus C| = |B| - |C| = |B| - |A|$.\n5. The left side is a natural number, but $|B| - |A| \u003c 0$ because $|A| \u003e |B|$. This is a contradiction.\n6. Hence $f$ is not injective. So there are $a \\ne a'$ in $A$ with $f(a) = f(a')$.\n\n## Idea\n\nAn injective map copies $A$ onto a subset of $B$ of the same size.\nA subset of $B$ cannot be larger than $B$, so this is impossible when $A$ has more elements than $B$.\n",
  "commit": "4a3290d299c8b2cd6493fce2296920ba7f82d942",
  "front": {
    "kind": "proof",
    "methods": [
      "0J0XBKG64S"
    ],
    "msc": [
      "05A05"
    ],
    "name": "Proof of the pigeonhole principle",
    "proves": "0HGVCWQGY3",
    "sources": [
      {
        "url": "https://proofwiki.org/wiki/Pigeonhole_Principle"
      }
    ],
    "tag": "E0R6P2FMCM",
    "uses": [
      "0PVG1CRAJN",
      "0SNQEF7Z53",
      "0Q3F20XB0A",
      "0GV2573FP4",
      "03QC59M99B"
    ]
  },
  "kind": "proof",
  "link": "https://math2.tamnd.com/node/E0R6P2FMCM/",
  "links": [
    {
      "field": "proves",
      "target": "0HGVCWQGY3"
    },
    {
      "field": "uses",
      "target": "0PVG1CRAJN"
    },
    {
      "field": "uses",
      "target": "0SNQEF7Z53"
    },
    {
      "field": "uses",
      "target": "0Q3F20XB0A"
    },
    {
      "field": "uses",
      "target": "0GV2573FP4"
    },
    {
      "field": "uses",
      "target": "03QC59M99B"
    },
    {
      "field": "methods",
      "target": "0J0XBKG64S"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/E0R6P2FMCM.md",
  "msc": [
    "05A05"
  ],
  "name": "Proof of the pigeonhole principle",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/E0R/E0R6P2FMCM.md",
  "status": null,
  "tag": "E0R6P2FMCM",
  "uri": "m2://E0R6P2FMCM",
  "url": "https://math2.tamnd.com/wiki/proof-of-the-pigeonhole-principle/",
  "writing": {
    "tag": "E0R6P2FMCM",
    "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
      }
    ]
  }
}
