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.
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 onto a finite set shows . Recall from Intervals of Natural Numbers: Initial Segments, Adding One Element, Splitting and Shifting §segment that and , and from Intervals of Natural Numbers: Initial Segments, Adding One Element, Splitting and Shifting §successor that with .
Intervals. The identity of is a bijection by Basic Properties of Functions: Equality, Composition, Identity, Inverse and Restriction §identity, so . Let , and let be the difference, so that and . Below, rearrangements of sums in use the laws of The Natural Numbers and the Natural Numbers with Zero: Arithmetic, Order, Induction and Recursion §laws.
If , then . By Intervals of Natural Numbers: Initial Segments, Adding One Element, Splitting and Shifting §shift the map is a bijection from onto , and its inverse is a bijection from onto by Basic Properties of Functions: Equality, Composition, Identity, Inverse and Restriction §inverse; so .
If , then by The Natural Numbers and the Natural Numbers with Zero: Arithmetic, Order, Induction and Recursion §sets, and for some : take if , using , and from Arithmetic and Order of the Natural Numbers §predecessor if . Then , so 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 is a bijection from onto , and and , so this interval is . Hence .
Empty sets and singletons. If , there is a bijection ; since and is surjective, . Conversely is a bijection by Basic Properties of Functions: Equality, Composition, Identity, Inverse and Restriction §identity, so . The map is a bijection , so .
Images. Let , let be a bijection, and let be a map. If is injective, the map from to is injective by Basic Properties of Functions: Equality, Composition, Identity, Inverse and Restriction §preservation, and it is surjective because every element of is for some ; so . In general, for the set is a nonempty subset of ; let be its least element, given by Arithmetic and Order of the Natural Numbers §well-order. Then satisfies , so is injective. With and a bijection , the map is injective by Basic Properties of Functions: Equality, Composition, Identity, Inverse and Restriction §preservation, so 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 , , , and let and be bijections. The map from to is injective, so 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 and choose . Let be given by for and for the other , a map by Maps Defined by Cases §cases with the property , as and ; since and , it extends by . It is injective because is injective, and . Then is an injective map , so 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 . Hence only if .
Unions. First let and be disjoint, , , with bijections and . By Intervals of Natural Numbers: Initial Segments, Adding One Element, Splitting and Shifting §split (with , , in place of , , ; its hypothesis holds, as gives by The Natural Numbers and the Natural Numbers with Zero: Arithmetic, Order, Induction and Recursion §laws) and Intervals of Natural Numbers §segment, is the union of the disjoint sets and , and by Intervals of Natural Numbers: Initial Segments, Adding One Element, Splitting and Shifting §shift the map is a bijection from onto , which is by commutativity of addition; let be its inverse, a bijection from onto by Basic Properties of Functions: Equality, Composition, Identity, Inverse and Restriction §inverse. So , given by for and for the other , a map by Maps Defined by Cases §cases with the property (if , then and ; otherwise and ), is , a bijection onto , on the first piece and , a bijection onto by Basic Properties of Functions: Equality, Composition, Identity, Inverse and Restriction §preservation, on the second; as the pieces and the sets and are disjoint, is a bijection, and . In general, , and 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 is the disjoint union of and , and is the disjoint union of and , the disjoint case gives
Products. Fix . We show for every that for every finite with , by induction from on , The Natural Numbers and the Natural Numbers with Zero: Arithmetic, Order, Induction and Recursion §induction, checking and the passage from to . If , then by the clause on empty sets, and , so . Assume the claim for and let , with a bijection . Put and . The restriction is a bijection by Basic Properties of Functions: Equality, Composition, Identity, Inverse and Restriction §restriction, so ; moreover and , as is injective and . Hence is the union of the disjoint sets and , 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 from to is injective with image , so by the image clause. By the union clause and the induction hypothesis, .
Loading…