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

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. If m=0m=0, then 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 {1,…,n+1}=[n+1]\{1,\dots,n+1\}=[n+1], and its inverse is a bijection by Basic Properties of Functions: Equality, Composition, Identity, Inverse and Restriction §inverse; so #{0,…,n}=n+1=n−0+1\#\{0,\dots,n\}=n+1=n-0+1. If m≥1m\ge1, put p=m−1p=m-1 and q=n−m+1q=n-m+1, both in N0\mathbb{N}_{0} since 1≤m≤n+11\le m\le n+1. 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,…,q}=[q]\{1,\dots,q\}=[q] onto {1+p,…,q+p}={m,…,n}\{1+p,\dots,q+p\}=\{m,\dots,n\}, so #{m,…,n}=q=n−m+1\#\{m,\dots,n\}=q=n-m+1.

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. Extending ψ\psi by p+1↦ap+1\mapsto a gives a map ψ′:[p+1]→A\psi':[p+1]\to A, which 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) 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. 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−k)\chi(j)=\psi(j-k) for j>kj>k, is a bijection onto AA on the first piece and onto BB 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, checking n=0n=0 and the passage from nn to n+1n+1; the class of n∈Nn\in\mathbb{N} for which this 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, and N0=N∪{0}\mathbb{N}_{0}=\mathbb{N}\cup\{0\} by The Natural Numbers with Zero and Their Embedding into the Integers §naturals. 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…