Sketch: k-subsets are counted through the images of injections from [k], each hit by k! injections; the other clauses group subsets by size.
Throughout, subsets of finite sets are finite (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 (iv)), and so are the intervals 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 (vii)) and the sets of maps between finite sets (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 (ix)); every has (Counting: Intervals, Empty Sets and Singletons, Injective Images, Subsets, Unions and Products (iv)), and is a map (The Maps i β¦ #C(i) and S β¦ #S (ii)). A set lies in exactly when , is finite and (The k-Element Subsets of a Set (ii)).
Step 1: subsets of a given size ((i)). Let , a finite set, and for let be its image. The image of an injection has as many elements as its domain (Counting: Intervals, Empty Sets and Singletons, Injective Images, Subsets, Unions and Products (iii)), and (Counting: Intervals, Empty Sets and Singletons, Injective Images, Subsets, Unions and Products (i)); so is a -element subset of , and is a map .
is surjective, so is finite. If , then means that there is a bijection from onto (The Number of Elements of a Finite Set (i)); since its image is contained in , is also an injection (Gluing Maps on Disjoint Domains, and Shrinking the Codomain (iii)), with image . Hence is the image of a finite set, and so it is finite (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 (vi)).
The fibres of . Let . An injection with is, being injective, a bijection from onto its image (Gluing Maps on Disjoint Domains, and Shrinking the Codomain (iii)). Conversely, as above, every bijection is an injection with image . So the fibre consists of the same maps as , and since , it has elements (Counting Maps, Injections, Bijections and Permutations (iii)).
Counting. By Counting by Fibres, Double Counting and the Pigeonhole Principle (iv), then Counting Maps, Injections, Bijections and Permutations (ii) and Properties of the Falling Factorial (ii),
Cancelling the nonzero factor (The Factorial: Recursion, Positivity and Bounds by Powers (ii), Arithmetic of Multiplication on Omega: Recursion Rules, Distributivity, Associativity, Commutativity, No Zero Divisors, Cancellation and Compatibility with the Order (ix)) gives .
Step 2: all subsets ((ii)). Every subset of is finite with , so ; and each is contained in . Hence
The sets are pairwise disjoint, because a set in has elements, and each of them is finite by Step 1. A finite union of finite sets is finite (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 (x)), so is finite. Counting the disjoint union (The Number of Elements of a Disjoint Finite Union (i)), then using Step 1 and the row sum of binomial coefficients (Binomial Identities (i)), all in ,
Step 3: grouping by size ((iii)). Let , and let
Summing over dependent pairs (Sums over Finite Sets in a Commutative Ring and in an Ordered Field: Distributivity, Products of Sums, Vanishing Terms, Sums over Pairs, Expanding Products of Sums, Counting, Comparison, Monotonicity and the Triangle Inequality (vi)), for the family whose union is by Step 2, and the map on , gives
The map , , is a bijection: it lands in because ; it is injective because is its second component; and a pair has , so it equals . Reindexing the sum on the right by (Iterated Operations over Finite Sets: Singletons, Disjoint Unions, Reindexing, Products of Sets, Termwise Combination, Homomorphisms and Intervals (iii)) turns it into . On the left, the inner sum has the constant term , so it equals (Sums over Finite Sets in a Commutative Ring and in an Ordered Field: Distributivity, Products of Sums, Vanishing Terms, Sums over Pairs, Expanding Products of Sums, Counting, Comparison, Monotonicity and the Triangle Inequality (v)), which is by Step 1. Together,
Loadingβ¦