TheoremBase

Each count is read off from an explicit bijection with a segment [n], using the shift for intervals and the concatenation of enumerations for disjoint unions. The inequalities come from the pigeonhole principle, and the product formula follows by induction on the number of elements of the second factor.

Proof

Each result cited below is universally quantified over the data in its own statement, and is applied to the data named where it is cited.

Throughout, by The Number of Elements of a Finite Set §cardinality and Finite Sets: the Pigeonhole Principle, Uniqueness of the Length, Subsets, Unions, Products, Images, Bounded Sets of Natural Numbers, Extreme Elements, Sets of Maps, Finite Unions and Finite Choice §unique, a bijection from [n][n] onto a finite set EE shows #E=n\#E=n. Recall from Intervals of Natural Numbers: Initial Segments, Adding One Element, Splitting and Shifting §segment that [0]=∅[0]=\emptyset and [1]={1}[1]=\{1\}, 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].

Intervals. The identity of [n][n] is a bijection by Basic Properties of Functions: Equality, Composition, Identity, Inverse and Restriction §identity, so #[n]=n\#[n]=n. Let m≤n+1m\le n+1, and let d=(n+1)−md=(n+1)-m be the difference, so that d∈N0d\in\mathbb{N}_{0} and m+d=n+1m+d=n+1. Below, rearrangements of sums in N0\mathbb{N}_{0} use the laws of The Natural Numbers and the Natural Numbers with Zero: Arithmetic, Order, Induction and Recursion §laws.

If m=0m=0, then d=0+d=n+1d=0+d=n+1. By Intervals of Natural Numbers: Initial Segments, Adding One Element, Splitting and Shifting §shift the map k↦k+1k\mapsto k+1 is a bijection from {0,…,n}\{0,\dots,n\} onto {0+1,…,n+1}={1,…,n+1}=[n+1]\{0+1,\dots,n+1\}=\{1,\dots,n+1\}=[n+1], and its inverse is a bijection from [n+1][n+1] onto {0,…,n}\{0,\dots,n\} by Basic Properties of Functions: Equality, Composition, Identity, Inverse and Restriction §inverse; so #{0,…,n}=n+1=d\#\{0,\dots,n\}=n+1=d.

If m≠0m\neq0, then m∈Nm\in\mathbb{N} by The Natural Numbers and the Natural Numbers with Zero: Arithmetic, Order, Induction and Recursion §sets, and m=p+1m=p+1 for some p∈N0p\in\mathbb{N}_{0}: take p=0p=0 if m=1m=1, using 0+1=10+1=1, and pp from Arithmetic and Order of the Natural Numbers §predecessor if m≠1m\neq1. Then (p+d)+1=(p+1)+d=m+d=n+1(p+d)+1=(p+1)+d=m+d=n+1, so p+d=np+d=n by Arithmetic of Addition on Omega: Recursion Rules, Associativity, Commutativity, Cancellation and Compatibility with the Order §cancellation and commutativity. By Intervals of Natural Numbers: Initial Segments, Adding One Element, Splitting and Shifting §shift the map k↦k+pk\mapsto k+p is a bijection from {1,…,d}=[d]\{1,\dots,d\}=[d] onto {1+p,…,d+p}\{1+p,\dots,d+p\}, and 1+p=p+1=m1+p=p+1=m and d+p=p+d=nd+p=p+d=n, so this interval is {m,…,n}\{m,\dots,n\}. Hence #{m,…,n}=d=(n+1)−m\#\{m,\dots,n\}=d=(n+1)-m.

Empty sets and singletons. If #A=0\#A=0, there is a bijection φ:[0]→A\varphi:[0]\to A; since [0]=∅[0]=\emptyset and φ\varphi is surjective, A=∅A=\emptyset. Conversely id∅\mathrm{id}_{\emptyset} is a bijection [0]→∅[0]\to\emptyset by Basic Properties of Functions: Equality, Composition, Identity, Inverse and Restriction §identity, so #∅=0\#\emptyset=0. The map 1↦x1\mapsto x is a bijection [1]→{x}[1]\to\{x\}, so #{x}=1\#\{x\}=1.

Images. Let n=#An=\#A, let φ:[n]→A\varphi:[n]\to A be a bijection, and let f:A→Cf:A\to C be a map. If ff is injective, the map k↦f(φ(k))k\mapsto f(\varphi(k)) from [n][n] to f(A)f(A) is injective by Basic Properties of Functions: Equality, Composition, Identity, Inverse and Restriction §preservation, and it is surjective because every element of f(A)f(A) is f(a)=f(φ(φ−1(a)))f(a)=f(\varphi(\varphi^{-1}(a))) for some a∈Aa\in A; so #f(A)=n\#f(A)=n. In general, for y∈f(A)y\in f(A) the set {k∈[n]:f(φ(k))=y}\{k\in[n]:f(\varphi(k))=y\} is a nonempty subset of N\mathbb{N}; 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. With p=#f(A)p=\#f(A) and a bijection ψ:[p]→f(A)\psi:[p]\to f(A), the map g∘ψ:[p]→[n]g\circ\psi:[p]\to[n] is injective by Basic Properties of Functions: Equality, Composition, Identity, Inverse and Restriction §preservation, so p≤np\le n by Finite Sets: the Pigeonhole Principle, Uniqueness of the Length, Subsets, Unions, Products, Images, Bounded Sets of Natural Numbers, Extreme Elements, Sets of Maps, Finite Unions and Finite Choice §pigeonhole.

Subsets. Let B⊆AB\subseteq A, p=#Bp=\#B, n=#An=\#A, and let ψ:[p]→B\psi:[p]\to B and φ:[n]→A\varphi:[n]\to A be bijections. The map k↦φ−1(ψ(k))k\mapsto\varphi^{-1}(\psi(k)) from [p][p] to [n][n] is injective, so p≤np\le n by Finite Sets: the Pigeonhole Principle, Uniqueness of the Length, Subsets, Unions, Products, Images, Bounded Sets of Natural Numbers, Extreme Elements, Sets of Maps, Finite Unions and Finite Choice §pigeonhole. Suppose B≠AB\neq A and choose a∈A∖Ba\in A\setminus B. Let ψ′:[p+1]→A\psi':[p+1]\to A be given by ψ′(k)=ψ(k)\psi'(k)=\psi(k) for k∈[p]k\in[p] and ψ′(k)=a\psi'(k)=a for the other k∈[p+1]k\in[p+1], a map by Maps Defined by Cases §cases with P(k)P(k) the property k∈[p]k\in[p], as ψ(k)∈B⊆A\psi(k)\in B\subseteq A and a∈Aa\in A; since [p+1]=[p]∪{p+1}[p+1]=[p]\cup\{p+1\} and p+1∉[p]p+1\notin[p], it extends ψ\psi by ψ′(p+1)=a\psi'(p+1)=a. It is injective because ψ\psi is injective, [p+1]=[p]∪{p+1}[p+1]=[p]\cup\{p+1\} and a∉Ba\notin B. Then k↦φ−1(ψ′(k))k\mapsto\varphi^{-1}(\psi'(k)) is an injective map [p+1]→[n][p+1]\to[n], so p+1≤np+1\le n by Finite Sets: the Pigeonhole Principle, Uniqueness of the Length, Subsets, Unions, Products, Images, Bounded Sets of Natural Numbers, Extreme Elements, Sets of Maps, Finite Unions and Finite Choice §pigeonhole, and p<np<n. Hence #B=#A\#B=\#A only if B=AB=A.

Unions. First let AA and BB be disjoint, k=#Ak=\#A, l=#Bl=\#B, with bijections φ:[k]→A\varphi:[k]\to A and ψ:[l]→B\psi:[l]\to B. By Intervals of Natural Numbers: Initial Segments, Adding One Element, Splitting and Shifting §split (with 11, kk, ll in place of mm, nn, pp; its hypothesis 1≤k+11\le k+1 holds, as 0≤k0\le k gives 1=0+1≤k+11=0+1\le k+1 by The Natural Numbers and the Natural Numbers with Zero: Arithmetic, Order, Induction and Recursion §laws) 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 {1+k,…,l+k}\{1+k,\dots,l+k\}, which is {k+1,…,k+l}\{k+1,\dots,k+l\} by commutativity of addition; let θ\theta be its inverse, a bijection from {k+1,…,k+l}\{k+1,\dots,k+l\} onto [l][l] by Basic Properties of Functions: Equality, Composition, Identity, Inverse and Restriction §inverse. So χ:[k+l]→A∪B\chi:[k+l]\to A\cup B, given by χ(j)=φ(j)\chi(j)=\varphi(j) for j≤kj\le k and χ(j)=ψ(θ(j))\chi(j)=\psi(\theta(j)) for the other j∈[k+l]j\in[k+l], a map by Maps Defined by Cases §cases with P(j)P(j) the property j≤kj\le k (if j≤kj\le k, then j∈[k]j\in[k] and φ(j)∈A\varphi(j)\in A; otherwise j∈{k+1,…,k+l}j\in\{k+1,\dots,k+l\} and ψ(θ(j))∈B\psi(\theta(j))\in B), is φ\varphi, a bijection onto AA, on the first piece and ψ∘θ\psi\circ\theta, a bijection onto BB by Basic Properties of Functions: Equality, Composition, Identity, Inverse and Restriction §preservation, on the second; as the pieces and the sets AA and BB are disjoint, χ\chi is a bijection, and #(A∪B)=k+l\#(A\cup B)=k+l. In general, A∪BA\cup B, A∩BA\cap B and B∖AB\setminus A are finite by Finite Sets: the Pigeonhole Principle, Uniqueness of the Length, Subsets, Unions, Products, Images, Bounded Sets of Natural Numbers, Extreme Elements, Sets of Maps, Finite Unions and Finite Choice §union and Finite Sets: the Pigeonhole Principle, Uniqueness of the Length, Subsets, Unions, Products, Images, Bounded Sets of Natural Numbers, Extreme Elements, Sets of Maps, Finite Unions and Finite Choice §subset. Since A∪BA\cup B is the disjoint union of AA and B∖AB\setminus A, and BB is the disjoint union of A∩BA\cap B and B∖AB\setminus A, the disjoint case gives

#(A∪B)+#(A∩B)=#A+#(B∖A)+#(A∩B)=#A+#B.\#(A\cup B)+\#(A\cap B)=\#A+\#(B\setminus A)+\#(A\cap B)=\#A+\#B.

Products. Fix AA. We show for every n∈N0n\in\mathbb{N}_{0} that #(A×B)=#A⋅n\#(A\times B)=\#A\cdot n for every finite BB with #B=n\#B=n, by induction from 00 on N0\mathbb{N}_{0}, The Natural Numbers and the Natural Numbers with Zero: Arithmetic, Order, Induction and Recursion §induction, checking n=0n=0 and the passage from nn to n+1n+1. If #B=0\#B=0, then B=∅B=\emptyset by the clause on empty sets, and A×B=∅A\times B=\emptyset, so #(A×B)=0=#A⋅0\#(A\times B)=0=\#A\cdot0. Assume the claim for nn and let #B=n+1\#B=n+1, with a bijection ψ:[n+1]→B\psi:[n+1]\to B. 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, so #B′=n\#B'=n; moreover B=B′∪{b}B=B'\cup\{b\} and b∉B′b\notin B', as ψ\psi is injective and n+1∉[n]n+1\notin[n]. Hence A×BA\times B is the union of the disjoint sets A×B′A\times B' and A×{b}A\times\{b\}, all finite by Finite Sets: the Pigeonhole Principle, Uniqueness of the Length, Subsets, Unions, Products, Images, Bounded Sets of Natural Numbers, Extreme Elements, Sets of Maps, Finite Unions and Finite Choice §union and Finite Sets: the Pigeonhole Principle, Uniqueness of the Length, Subsets, Unions, Products, Images, Bounded Sets of Natural Numbers, Extreme Elements, Sets of Maps, Finite Unions and Finite Choice §small. The map a↦(a,b)a\mapsto(a,b) from AA to A×{b}A\times\{b\} is injective with image A×{b}A\times\{b\}, so #(A×{b})=#A\#(A\times\{b\})=\#A by the image clause. By the union clause and the induction hypothesis, #(A×B)=#A⋅n+#A=#A⋅(n+1)\#(A\times B)=\#A\cdot n+\#A=\#A\cdot(n+1).

Citations

Loading…

Dependencies

Uses0

Loading…

Comments

Log in to comment.

Loading…