TheoremBase

The pigeonhole principle is proved by induction on n, using a transposition to send the last point to n+1; uniqueness of the length follows from it. Subsets, unions, products and images are handled by induction and by concatenating enumerations; extreme elements follow by induction, and bounded sets of natural numbers lie inside a shifted copy of a segment.

Proof

Inductions. Several claims below are proved for every n∈N0n\in\mathbb{N}_{0} in the following way: we check the claim for n=0n=0 and show that it passes from nn to n+1n+1 for each n∈N0n\in\mathbb{N}_{0}. The class of n∈Nn\in\mathbb{N} for which the claim holds then contains 1=0+11=0+1 and is closed under n↦n+1n\mapsto n+1, so it is N\mathbb{N} by Arithmetic and Order of the Natural Numbers §induction. Because N0=N∪{0}\mathbb{N}_{0}=\mathbb{N}\cup\{0\} by The Natural Numbers with Zero and Their Embedding into the Integers §naturals, the claim then holds for every n∈N0n\in\mathbb{N}_{0}. Recall from Intervals of Natural Numbers: Initial Segments, Adding One Element, Splitting and Shifting §segment that [n]={k∈N:k≤n}[n]=\{k\in\mathbb{N}:k\le n\} and [0]=∅[0]=\emptyset, so n∈[n]n\in[n] for n∈Nn\in\mathbb{N}, and from Intervals of Natural Numbers: Initial Segments, Adding One Element, Splitting and Shifting §successor that [n+1]=[n]∪{n+1}[n+1]=[n]\cup\{n+1\} with n+1∉[n]n+1\notin[n].

Transpositions. For a set YY and y,z∈Yy,z\in Y, let τ:Y→Y\tau:Y\to Y be given by τ(y)=z\tau(y)=z, τ(z)=y\tau(z)=y and τ(u)=u\tau(u)=u for u∈Y∖{y,z}u\in Y\setminus\{y,z\}. Then τ∘τ=idY\tau\circ\tau=\mathrm{id}_{Y}, so τ\tau is bijective by Basic Properties of Functions: Equality, Composition, Identity, Inverse and Restriction §inverse-criterion.

Pigeonhole. We prove by induction on nn the claim: for every m∈N0m\in\mathbb{N}_{0}, every injective map f:[m]→[n]f:[m]\to[n] satisfies m≤nm\le n. For n=0n=0: if m≠0m\neq0, then m∈Nm\in\mathbb{N} and m∈[m]m\in[m], while f(m)f(m) would lie in [0]=∅[0]=\emptyset; hence m=0m=0. Now assume the claim for nn and let f:[m]→[n+1]f:[m]\to[n+1] be injective. If m=0m=0, then m≤n+1m\le n+1 by The Order on Omega Is a Well-Order with Membership as Its Strict Order, and Nothing Lies between n and Its Successor §zero-least. Otherwise m∈Nm\in\mathbb{N}, and m=m′+1m=m'+1 with m′∈N0m'\in\mathbb{N}_{0}: take m′=0m'=0 if m=1m=1, and m′m' from Arithmetic and Order of the Natural Numbers §predecessor if m≠1m\neq1. Let τ\tau be the transposition of [n+1][n+1] exchanging f(m)f(m) and n+1n+1, and g=τ∘fg=\tau\circ f, which is injective by Basic Properties of Functions: Equality, Composition, Identity, Inverse and Restriction §preservation and satisfies g(m)=n+1g(m)=n+1. By Intervals of Natural Numbers: Initial Segments, Adding One Element, Splitting and Shifting §successor, [m]=[m′]∪{m}[m]=[m']\cup\{m\} and m∉[m′]m\notin[m']; so for k∈[m′]k\in[m'] we have k≠mk\neq m, hence g(k)≠n+1g(k)\neq n+1, hence g(k)∈[n]g(k)\in[n]. Thus k↦g(k)k\mapsto g(k) is an injective map [m′]→[n][m']\to[n], the induction hypothesis gives m′≤nm'\le n, and m=m′+1≤n+1m=m'+1\le n+1. This proves the first assertion of the pigeonhole clause. If h:[m]→[n]h:[m]\to[n] is a bijection, then m≤nm\le n because hh is injective, and n≤mn\le m because h−1:[n]→[m]h^{-1}:[n]\to[m] is bijective by Basic Properties of Functions: Equality, Composition, Identity, Inverse and Restriction §inverse; so m=nm=n.

Uniqueness. Let AA be finite. By Finite Sets §finite some nn admits a bijection [n]→A[n]\to A. If φ:[m]→A\varphi:[m]\to A and ψ:[n]→A\psi:[n]\to A are bijections, then ψ−1∘φ:[m]→[n]\psi^{-1}\circ\varphi:[m]\to[n] is bijective by Basic Properties of Functions: Equality, Composition, Identity, Inverse and Restriction §inverse and Basic Properties of Functions: Equality, Composition, Identity, Inverse and Restriction §preservation, so m=nm=n by the pigeonhole clause. This proves the uniqueness clause.

Small sets. Since [0]=∅[0]=\emptyset, the identity id∅\mathrm{id}_{\emptyset} is a bijection [0]→∅[0]\to\emptyset by Basic Properties of Functions: Equality, Composition, Identity, Inverse and Restriction §identity. Since [1]={1}[1]=\{1\} by Intervals of Natural Numbers: Initial Segments, Adding One Element, Splitting and Shifting §segment, the map 1↦x1\mapsto x is a bijection [1]→{x}[1]\to\{x\}. By Finite Sets §finite this proves the clause on small sets.

Concatenation. Let k,l∈N0k,l\in\mathbb{N}_{0}, let CC and DD be disjoint sets, and let φ:[k]→C\varphi:[k]\to C and ψ:[l]→D\psi:[l]\to D be bijections. By Intervals of Natural Numbers: Initial Segments, Adding One Element, Splitting and Shifting §split (with 11, kk, ll in place of mm, nn, pp) and Intervals of Natural Numbers §segment, [k+l][k+l] is the union of the disjoint sets [k][k] and {k+1,…,k+l}\{k+1,\dots,k+l\}, and by Intervals of Natural Numbers: Initial Segments, Adding One Element, Splitting and Shifting §shift the map j↦j+kj\mapsto j+k is a bijection from [l][l] onto {k+1,…,k+l}\{k+1,\dots,k+l\}, with inverse j↦j−kj\mapsto j-k. Define χ:[k+l]→C∪D\chi:[k+l]\to C\cup D by χ(j)=φ(j)\chi(j)=\varphi(j) for j≤kj\le k and χ(j)=ψ(j−k)\chi(j)=\psi(j-k) for j>kj>k. On [k][k] it is a bijection onto CC, on {k+1,…,k+l}\{k+1,\dots,k+l\} a bijection onto DD; as both the two pieces of [k+l][k+l] and the sets CC and DD are disjoint, χ\chi is a bijection onto C∪DC\cup D. Hence the union of two disjoint finite sets is finite.

Subsets. We prove by induction on nn that every subset of [n][n] is finite. For n=0n=0 the only subset of [0]=∅[0]=\emptyset is ∅\emptyset, which is finite by the clause on small sets. Assume the claim for nn and let T⊆[n+1]T\subseteq[n+1]. Then T′=T∖{n+1}⊆[n]T'=T\setminus\{n+1\}\subseteq[n], so T′T' is finite. If n+1∉Tn+1\notin T, then T=T′T=T'; otherwise TT is the union of the disjoint finite sets T′T' and {n+1}\{n+1\}, finite by concatenation. Now let AA be finite, φ:[n]→A\varphi:[n]\to A a bijection and S⊆AS\subseteq A. The set φ−1(S)⊆[n]\varphi^{-1}(S)\subseteq[n] is finite; let χ:[k]→φ−1(S)\chi:[k]\to\varphi^{-1}(S) be a bijection. The map j↦φ(χ(j))j\mapsto\varphi(\chi(j)) from [k][k] to SS is injective, and it is surjective because each s∈Ss\in S equals φ(φ−1(s))\varphi(\varphi^{-1}(s)) by Basic Properties of Functions: Equality, Composition, Identity, Inverse and Restriction §inverse, with φ−1(s)∈φ−1(S)\varphi^{-1}(s)\in\varphi^{-1}(S). So SS is finite, proving the subset clause.

Unions and products. Let AA and BB be finite. B∖AB\setminus A is finite by the subset clause, and A∪BA\cup B is the union of the disjoint finite sets AA and B∖AB\setminus A, so it is finite by concatenation. For the product, fix AA and prove by induction on nn: for every set BB admitting a bijection ψ:[n]→B\psi:[n]\to B, A×BA\times B is finite. For n=0n=0, B=ψ(∅)=∅B=\psi(\emptyset)=\emptyset and A×B=∅A\times B=\emptyset is finite. Assume the claim for nn and let ψ:[n+1]→B\psi:[n+1]\to B be a bijection. Put b=ψ(n+1)b=\psi(n+1) and B′=ψ([n])B'=\psi([n]); the restriction ψ∣[n]\psi|_{[n]} is a bijection [n]→B′[n]\to B' by Basic Properties of Functions: Equality, Composition, Identity, Inverse and Restriction §restriction, and B=B′∪{b}B=B'\cup\{b\} because [n+1]=[n]∪{n+1}[n+1]=[n]\cup\{n+1\}. Hence A×B=(A×B′)∪(A×{b})A\times B=(A\times B')\cup(A\times\{b\}). The set A×B′A\times B' is finite by the induction hypothesis; if φ:[k]→A\varphi:[k]\to A is a bijection, then j↦(φ(j),b)j\mapsto(\varphi(j),b) is a bijection [k]→A×{b}[k]\to A\times\{b\}. So A×BA\times B is finite by the first part. This proves the union clause.

Images. Let φ:[n]→A\varphi:[n]\to A be a bijection and f:A→Bf:A\to B a map. For y∈f(A)y\in f(A) the set Ky={k∈[n]:f(φ(k))=y}K_{y}=\{k\in[n]:f(\varphi(k))=y\} is a nonempty subset of N\mathbb{N}, since y=f(φ(k))y=f(\varphi(k)) for some kk; let g(y)g(y) be its least element, given by Arithmetic and Order of the Natural Numbers §well-order. Then g:f(A)→[n]g:f(A)\to[n] satisfies f(φ(g(y)))=yf(\varphi(g(y)))=y, so gg is injective. Its image T=g(f(A))T=g(f(A)) is a subset of [n][n], which is finite via id[n]\mathrm{id}_{[n]}, so TT is finite by the subset clause; let χ:[p]→T\chi:[p]\to T be a bijection. By Basic Properties of Functions: Equality, Composition, Identity, Inverse and Restriction §injective-inverse, g−1:T→f(A)g^{-1}:T\to f(A) is bijective, so g−1∘χ:[p]→f(A)g^{-1}\circ\chi:[p]\to f(A) is a bijection by Basic Properties of Functions: Equality, Composition, Identity, Inverse and Restriction §preservation. This proves the image clause.

Extreme elements. Let ≤\le be a total order on XX. We prove by induction on n∈Nn\in\mathbb{N} (Arithmetic and Order of the Natural Numbers §induction) that every S⊆XS\subseteq X admitting a bijection φ:[n]→S\varphi:[n]\to S has a greatest and a least element in the sense of Bounds, Least and Greatest Elements, Suprema and Infima for a Partial Order §least. For n=1n=1, S={φ(1)}S=\{\varphi(1)\} and φ(1)\varphi(1) is both, by reflexivity. Assume the claim for n∈Nn\in\mathbb{N} and let φ:[n+1]→S\varphi:[n+1]\to S be a bijection. As in the product step, S=S′∪{s}S=S'\cup\{s\} with s=φ(n+1)s=\varphi(n+1) and S′=φ([n])S'=\varphi([n]), and φ∣[n]\varphi|_{[n]} is a bijection [n]→S′[n]\to S'; so S′S' has a greatest element M′M' and a least element m′m'. By totality, M′≤sM'\le s or s≤M′s\le M'; let M=sM=s in the first case and M=M′M=M' in the second. Then M∈SM\in S, and v≤Mv\le M for v∈S′v\in S' by v≤M′v\le M' and transitivity, and for v=sv=s by the choice of MM. So MM is the greatest element of SS; the least element is obtained in the same way from m′m'. Finally, a nonempty finite SS admits a bijection [n]→S[n]\to S by Finite Sets §finite, and n≠0n\neq0 since [0]=∅[0]=\emptyset; so n∈Nn\in\mathbb{N}, proving the clause on extreme elements.

Bounded sets of natural numbers. Let S⊆N0S\subseteq\mathbb{N}_{0} and b∈N0b\in\mathbb{N}_{0} with k≤bk\le b for every k∈Sk\in S. By The Order on Omega Is a Well-Order with Membership as Its Strict Order, and Nothing Lies between n and Its Successor §zero-least, S⊆{0,…,b}S\subseteq\{0,\dots,b\}. By Intervals of Natural Numbers: Initial Segments, Adding One Element, Splitting and Shifting §shift, k↦k+1k\mapsto k+1 is a bijection from {0,…,b}\{0,\dots,b\} onto {1,…,b+1}=[b+1]\{1,\dots,b+1\}=[b+1], so its inverse is a bijection [b+1]→{0,…,b}[b+1]\to\{0,\dots,b\} by Basic Properties of Functions: Equality, Composition, Identity, Inverse and Restriction §inverse. Thus {0,…,b}\{0,\dots,b\} is finite, and so is SS by the subset clause. Conversely let SS be finite. If S=∅S=\emptyset, b=0b=0 serves. Otherwise, since the order of N0\mathbb{N}_{0} is a well-order, hence total, by The Order on Omega Is a Well-Order with Membership as Its Strict Order, and Nothing Lies between n and Its Successor §well-order and Well-Orders on a Set §well-order, SS has a greatest element by the clause on extreme elements, and b=max⁡Sb=\max S serves. In particular an interval {m,…,n}\{m,\dots,n\} is a subset of N0\mathbb{N}_{0} all of whose elements are at most nn by Intervals of Natural Numbers §interval, so it is finite. This proves the clause on bounded sets of natural numbers.

Citations

Loading…

Dependencies

Uses0

Loading…

Comments

Log in to comment.

Loading…