{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Proof\n\nWe argue by contradiction.\n\n1. Let $A$ and $B$ be finite sets, let $f : A \\to B$ be a function, and let $n$ be a natural number with $|B| \\cdot n \u003c |A|$.\n2. For $b \\in B$, write $A_b = f^{-1}(b) = \\set{a \\in A : f(a) = b}$. Each $A_b$ is a subset of the finite set $A$, so it is finite.\n3. Suppose, for a contradiction, that $|A_b| \\le n$ for every $b \\in B$.\n4. The sets $A_b$ for $b \\in B$ are pairwise disjoint. Indeed, if $a \\in A_b \\cap A_{b'}$, then $b = f(a) = b'$.\n5. Their union is $A$, because each $a \\in A$ lies in $A_{f(a)}$.\n6. By the [[rule of sum|0EE2V3CHFK]], applied to the $|B|$ pairwise disjoint finite sets $A_b$, we get $|A| = \\sum_{b \\in B} |A_b|$.\n7. By step 3, each term of this sum is at most $n$, and there are $|B|$ terms. So $|A| \\le |B| \\cdot n$.\n8. This contradicts the hypothesis $|B| \\cdot n \u003c |A|$ of step 1.\n9. Hence some $b \\in B$ has $|f^{-1}(b)| \u003e n$, that is, its fibre has [[cardinality|05099E1NMJ]] greater than $n$.\n\n## Idea\n\nThe fibres of $f$ split $A$ into $|B|$ disjoint pieces, so their sizes add up to $|A|$. If every piece had at most $n$ elements, the total would be at most $|B| \\cdot n$, which is too small.\n",
  "commit": "4a3290d299c8b2cd6493fce2296920ba7f82d942",
  "front": {
    "kind": "proof",
    "msc": [
      "05A05"
    ],
    "name": "Proof of the generalized pigeonhole principle",
    "proves": "0BY7GN3449",
    "sources": [
      {
        "url": "https://proofwiki.org/wiki/Dirichlet's_Box_Principle"
      }
    ],
    "tag": "V64DJESEA6",
    "uses": [
      "05099E1NMJ",
      "0EE2V3CHFK"
    ]
  },
  "kind": "proof",
  "link": "https://math2.tamnd.com/node/V64DJESEA6/",
  "links": [
    {
      "field": "proves",
      "target": "0BY7GN3449"
    },
    {
      "field": "uses",
      "target": "05099E1NMJ"
    },
    {
      "field": "uses",
      "target": "0EE2V3CHFK"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/V64DJESEA6.md",
  "msc": [
    "05A05"
  ],
  "name": "Proof of the generalized pigeonhole principle",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/V64/V64DJESEA6.md",
  "status": null,
  "tag": "V64DJESEA6",
  "uri": "m2://V64DJESEA6",
  "url": "https://math2.tamnd.com/wiki/proof-of-the-generalized-pigeonhole-principle/",
  "writing": {
    "tag": "V64DJESEA6",
    "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
      }
    ]
  }
}
