Alphabeta Math
How statement and proof provenance work

The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.

  • Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
  • AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
  • AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.

These labels describe origin, not correctness: citations and verification chips remain separate evidence.

✓ 17 results · all verified · 15 also independently AI-judged
Every result on this page is machine-checked by a proof checker and read in full and owner-audited; the judge is an additional, independent cross-model AI review of the proofs. The 2 not AI-judged were verified by owner audit (typically over a confirmed judge false positive), not failures.

Finite Counting, Factorials and Binomial Coefficients

1 · Prerequisites

2 · Summary

Objective. This page builds finite counting from the ground up: what ∣A∣ means, the two rules that every count is assembled from, and the factorials and binomial coefficients they produce. It ends with the binomial and multinomial theorems and with stars and bars. Everything is proved from this page's declared prerequisites — the countability page and the page on roots and rational powers — together with the naturals and the ordered-field foundations below them; nothing is imported from later in the reading order.

The starting point is The cardinality ∣A∣ of a finite set. A set is finite when it is equinumerous with a natural number, and the pigeonhole principle says it is equinumerous with exactly one, so ∣A∣ names a single natural number. Four consequences are proved there and used constantly: ∣n∣=n, ∣A∣=0 exactly for the empty set, transport of cardinality along a bijection, and the equivalence of ∣A∣=∣B∣ with A≈B. The workhorse that follows, A subset of a finite set is finite, with ∣B∣≤∣A∣, and equality holds if and only if B=A, says that a subset of a finite set is finite with no larger cardinality, that equal cardinality forces equality of the sets, and that an injection or a surjection of a finite set onto itself is a bijection. That last clause is where finiteness is spent; the successor map on N shows what happens without it.

Several items on this page exist because of a gap in the published library, and it is worth saying which. The finite sums already in the library are real valued: Finite sums and finite products, by recursion opens with a sequence a:N→R. Every count on this page is a natural number, so the sum rule, the row sums of Pascal's triangle, the condition ∑iki=n on a multinomial coefficient and the stars-and-bars count all need a sum that stays in N. That is Finite sums and finite products of natural numbers, ∑k<nak and ∏k<nak in N, built by the same recursion, together with Laws of finite sums and products in N, and ι(∑k<nak)=∑k<nι(ak), which proves the usual laws and the bridge ι(∑N)=∑Rι and the injectivity of ι. Those two clauses are the licence used throughout: an identity between counts may be proved in R, where subtraction and division exist, and carried back. The third minted item is A finite sum is unchanged by a permutation of its index range: ∑k<naπ(k)=∑k<nak for every bijection π:n→n. The published law list has additivity, scaling, splitting, monotonicity, telescoping and the product laws, and no permutation-invariance clause; without one, the sum ∑i∈Sai over a finite index set is not well posed. It is proved here for all four of (R,+), (R,⋅), (N,+), (N,⋅) by a single argument, and The sum ∑i∈Sai over a finite index set, and its product form is then well defined, with an explicit bridge back to the sum over an initial segment.

The two counting rules follow. The sum rule: a finite disjoint union is finite with ∣A∪B∣=∣A∣+∣B∣ and ∣⋃i∈IAi∣=∑i∈I∣Ai∣, and a sum over a finite index set splits along a partition splices two enumerations into one; disjointness is used at exactly one step, the injectivity of the splice, and that step is named so the false statement on the companion page can point at it. The same splice, used as an enumeration, splits a sum along a partition of its index set, which is what the multinomial theorem later needs. The product rule: ∣A×B∣=∣A∣ ∣B∣, and ∣∏i<mAi∣=∏i<m∣Ai∣ then counts A×B by slicing it over B and adding, which needs no arithmetic at all, and iterates to a finite product of sets. Exponentiation of naturals is minted in Exponentiation of natural numbers, mn, and its agreement with the integer power in R, again because Integer powers am is real valued, and it carries the bridge ι(mn)=ι(m)n and the agreement 00=1. With it, The set AB of functions B→A between finite sets is finite, with ∣AB∣=∣A∣∣B∣ gives ∣AB∣=∣A∣∣B∣, both degenerate cases included, and ∣P(A)∣=2∣A∣ for finite A gives ∣P(A)∣=2n together with n<2n, deduced from Cantor's theorem rather than left beside it.

The factorial n! and the falling factorial nk‾, defined by recursion in N defines n! and nk‾ by recursion inside N. 0!=1 is the base clause of that recursion, not an imported convention: the monoid version of the empty product comes later in the reading order, so it could not be cited here even if one wanted to. The agreement with the empty product is then proved, and so is ι(n!)=∏j<nι(j+1), which is what keeps this factorial and the real-valued one used elsewhere in the library a single object. The number of injections from a k-element set into an n-element set is nk‾ counts injections as nk‾, with both boundary regimes checked, and A finite set A with ∣A∣=n has exactly n! bijections onto itself, and n! bijections onto any set of the same cardinality gets n! as the case k=n. That theorem is stated about a set of bijections, with no group vocabulary anywhere, because the symmetric group is later in the reading order; it is on this page rather than among the examples so that a later page may cite it.

The set [A]k of k-element subsets and the binomial coefficient (nk):=∣[n]k∣ defines (nk) as the count ∣[n]k∣ of k-element subsets. Integrality is then free and the familiar quotient is a theorem: (nk) k! (n−k)!=n! for k≤n; hence (nk) k!=nk‾, the quotient n!/(k!(n−k)!) is a natural number, and (nk)=(nn−k) counts the bijections of n twice, once directly and once by the image of an initial segment, and gets (nk)k!(n−k)!=n!, the relation (nk)k!=nk‾, the quotient formula in R, and the symmetry (nk)=(nn−k) by complementation. Pascal's rule (n+1k+1)=(nk)+(nk+1), and the hockey-stick identity ∑i≤n(ik)=(n+1k+1) follows by splitting the k-subsets according to whether they contain a fixed point, and carries the hockey-stick identity as its second clause. A finite set with n elements has exactly (n2) two-element subsets, and 2(n2)=n(n−1) records the count of unordered pairs, 2(n2)=n(n−1), checked at n=0 and n=1; it is stated purely as a count, since no graph is defined anywhere in the library at this point.

The binomial theorem in R: (x+y)n=∑k<n+1ι ⁣(nk) xky n−k is proved by induction from Pascal's rule. It is stated in R, with the coefficient written ι(nk), because a binomial coefficient is a natural number and not an element of the field; the commutative-ring version is a separate statement, to be made where rings exist. ∑k<n+1(nk)=2n, and ∑k<n+1(−1)kι ⁣(nk)=0 for n≥1 draws the row sum 2n, proved twice on purpose, once by partitioning the power set and once through the theorem, and the alternating row sum, which is 0 only for n≥1: at n=0 the sum is (00)=1, and that is exactly where (−1+1)n=0n stops being 0. Vandermonde's identity (m+nk)=∑i<k+1(mi)(nk−i) is a double count over a disjoint union, chosen in preference to generating functions and to coefficient comparison, both of which need machinery far later in the reading order.

The last block generalises. The multinomial coefficient (nk0,…,km−1) as the number of ordered partitions of an n-set into blocks of prescribed sizes counts the colourings of a finite set with prescribed fibre sizes, the condition ∑iki=n being part of the definition rather than a side remark, and The multinomial coefficient equals n!/∏i<mki!, and (x0+⋯+xm−1)n=∑ι ⁣(nk)∏i<mxiki in R gives both the closed formula (nk)∏iki!=n! and the expansion of a power of a sum, its outer sum indexed by the finite set of tuples summing to n. Compositions and weak compositions of a natural number into a fixed number of parts names those tuples and records the counts at m=0, and For m≥1 the number of weak compositions of n into m parts is (n+m−1m−1), and the number of compositions is (n−1m−1) for n≥1 computes them: (n+m−1m−1) weak compositions for m≥1, and (n−1m−1) compositions for m≥1 and n≥1. The stars-and-bars bijection is exhibited explicitly and shown injective; surjectivity is read off from the count, which spares an appeal to the increasing enumeration of an arbitrary subset. Conventions fixed on this page, and what counting is deliberately not done here closes the page with every convention it fixes and with what is deliberately left to later pages, inclusion and exclusion among them.

Two habits are enforced throughout. Every sum, product and index range is checked at its first index, because N contains 0 here. Three results carry a hypothesis for that reason alone: the alternating row sum needs n≥1, the weak-composition count needs m≥1 and the composition count needs n≥1. The first two have a matching false statement on the companion page; the third is recorded in the theorem's own Statement. And every count is kept in N, with ι written whenever a count is used inside R, so that the two sides of an identity always live in the same set.

3 · Logical flowchart

4 · Definitions, theorems and proofs

DefinitionDefinition: AI-adaptedProof: AI-generatedjudge pass (z-ai/glm-5.2)audited 2026-07-29Open item page →

The cardinality ∣A∣ of a finite set

Definition

Throughout this page N is the set of von Neumann naturals (The natural numbers N (von Neumann)): 0=∅, σ(n)=n∪{n}, and n={ m∈N:m<n } is itself the set of its predecessors, the order being the additive order of Order on the natural numbers identified with membership in On N the order is membership: m<n  ⟺  m∈n. Write A≈B when a bijection A→B exists (Equinumerous sets, A≈B and A⪯B, Injection, surjection, bijection). A set A is finite when A≈n for some n∈N (Finite, countably infinite, countable, uncountable).

Definition. Let A be a finite set. Then there is exactly one n∈N with A≈n, and we write

∣A∣:=that n,

the cardinality, or number of elements, of A. The notation ∣A∣ is defined for finite A only, and its value is a natural number.

Why exactly one, which is the whole content of the definition. At least one such n exists: that is literally what "A is finite" says. At most one exists: if A≈n and A≈m with n,m∈N, then n≈A, because the inverse of a bijection is a bijection, and hence n≈m, because a composition of bijections is a bijection (Injection, surjection, bijection); and n≈m forces n=m by claim 3 of The pigeonhole principle on N. So ∣A∣ names a single natural number and not a family of choices.

Four consequences, proved here because everything on this page uses them.

(a) ∣n∣=n for every n∈N. The identity map idn is a bijection n→n, so n≈n; thus n is finite and the unique natural equinumerous with it is n itself.

(b) ∣∅∣=0, and a finite A satisfies ∣A∣=0 if and only if A=∅. Since 0=∅, part (a) gives ∣∅∣=0. Conversely, if ∣A∣=0 then there is a bijection f:A→∅; were some a∈A, the value f(a) would be an element of ∅, and ∅ has none, so A=∅.

(c) Transport along a bijection. If A is finite and f:A→B is a bijection, then B is finite and ∣B∣=∣A∣. Indeed B≈A through f−1 and A≈∣A∣, so B≈∣A∣ by transitivity.

(d) Equality of cardinalities is equinumerosity. For finite A and B: ∣A∣=∣B∣ if and only if A≈B. If the cardinalities agree then A≈∣A∣=∣B∣≈B; conversely A≈B gives ∣B∣=∣A∣ by (c).

Remarks

  • N contains 0 here, and that is not a detail. Every index range on this page starts at 0, a one-element set has cardinality 1={0}, and ∣A∣ is never a positive-integer-only object. A statement about ∣A∣ that is true only for ∣A∣≥1 must say so.

  • ∣A∣ is a natural number, not a cardinal number. The theory of cardinals (Cardinal (initial ordinal) and cardinality ↗) is developed much later in the library and nothing here uses it, or any cardinal arithmetic: the pointer is orientation only. What makes the notation legitimate at this point in the reading order is exactly claim 3 of The pigeonhole principle on N, and nothing more.

  • What the definition does not supply. It asserts that some bijection A→∣A∣ exists; it does not single one out, and nothing in the library does. Two sets can have equal cardinality with no distinguished bijection between them, which is the point of the counterexample on this page's companion.

TheoremStatement: AI-adaptedProof: AI-generatedprecheck passjudge pass (z-ai/glm-5.2)audited 2026-07-29Open item page →

A subset of a finite set is finite, with ∣B∣≤∣A∣, and equality holds if and only if B=A

Statement

Let A be a finite set (Finite, countably infinite, countable, uncountable) and let B⊆A. Then:

  1. B is finite;
  2. ∣B∣≤∣A∣ (The cardinality ∣A∣ of a finite set);
  3. ∣B∣=∣A∣ if and only if B=A;
  4. every injection f:A→A is a bijection, and every surjection f:A→A is a bijection.

Clause 3 is the finite form of the Dedekind statement: a finite set is not equinumerous with a proper subset of itself. Clause 4 is its working form, and finiteness is exactly the hypothesis that fails in general: the successor map is an injection of N into itself that is not surjective, which is the false statement recorded on this page's companion.

Facts & Assumptions

Given: A finite set A, its cardinality n:=∣A∣, and a subset B⊆A. Throughout, σ(n)=n∪{n} and σ(n)=n+1, the latter because n+σ(0)=σ(n+0)=σ(n) (Addition of natural numbers).

[L1]

Induction: a property holding at 0 and inherited by successors holds at every natural (The principle of mathematical induction).

[L2]

On N the order is membership: m<n  ⟺  m∈n, m≤n  ⟺  m⊆n, and n={ m∈N:m<n }; also m<σ(n)  ⟺  m≤n (On N the order is membership: m<n  ⟺  m∈n, Order on the natural numbers, The natural numbers N (von Neumann)). By the definition of the strict order, m<m is impossible.

[L3]

Cardinality (The cardinality ∣A∣ of a finite set): ∣A∣ is the unique natural with A≈∣A∣; ∣n∣=n; ∣∅∣=0; and if A is finite and A≈B then B is finite with ∣B∣=∣A∣ (transport).

[L4]

Maps and equinumerosity (Injection, surjection, bijection, Equinumerous sets, A≈B and A⪯B, Finite, countably infinite, countable, uncountable): A is finite when A≈m for some m∈N; the restriction of an injection to a subset of its domain is an injection; an injection is a bijection onto its image; inverses and composites of bijections are bijections; and f−1[f[S]]=S for a bijection f and S contained in its domain.

[L5]

Order and successor: k≤n implies σ(k)≤σ(n), and σ(k)=σ(n) implies k=n (Order is compatible with addition, Addition is cancellative, with σ(m)=m+1).

[L6]

Discreteness: m<n  ⟺  σ(m)≤n (Discreteness: σ(n) is the immediate successor).

[L7]

Well-ordering: every nonempty subset of N has a least element (The well-ordering principle).

Proof

technique · induction
1.1

The whole theorem rests on the special case where the ambient set is a natural number, which we call (∗): for every n∈N and every B⊆n, the set B is finite, ∣B∣≤n, and ∣B∣=n implies B=n. It is proved by induction on n.

given
1.2

Base case n=0. Since 0=∅, a subset B⊆0 satisfies B=∅=0; so B is finite with ∣B∣=0≤0, and ∣B∣=0 indeed gives B=0.

baseL3L2
1.3

Inductive hypothesis. Fix n∈N and assume (∗) holds for n: every C⊆n is finite with ∣C∣≤n, and ∣C∣=n implies C=n.

ih
2.1

Let B⊆σ(n)=n∪{n} and put B′:=B∩n, so that B′⊆n, and B=B′ when n∉B while B=B′∪{n} with n∉B′ when n∈B. By the inductive hypothesis of step 1.3 the set B′ is finite; write k:=∣B′∣, so k≤n, and k=n forces B′=n.

step 1.3L2
3.1

Case n∉B. Here B=B′ is finite with ∣B∣=k≤n, and k≤n≤σ(n) gives ∣B∣≤σ(n); moreover ∣B∣=σ(n) is impossible, since σ(n)=k≤n would give n<n by [L6], so the third assertion of (∗) holds vacuously in this case.

step 2.1L2L6
3.2

Case n∈B. Choose a bijection g:k→B′, which exists because ∣B′∣=k, and define h:σ(k)→B by h(i)=g(i) for i∈k and h(k)=n; the two clauses do not conflict, since k∉k. Then h is injective, because g is injective and takes its values in B′⊆n, so no value g(i) equals n; and h is surjective onto B=B′∪{n}. Hence B≈σ(k), so B is finite with ∣B∣=σ(k).

step 2.1L3L4construct
4.1

In the case n∈B we therefore have ∣B∣=σ(k)≤σ(n), because k≤n; and if ∣B∣=σ(n) then σ(k)=σ(n), so k=n, so B′=n and therefore B=n∪{n}=σ(n).

step 2.1step 3.2L5
5.1

The two cases are exhaustive, so (∗) holds at σ(n) whenever it holds at n; with the base case this gives (∗) for every n∈N.

step 1.2step 1.3step 3.1step 4.1L1
6.1

Clauses 1 and 2 in general. Fix a bijection u:A→n, available since n=∣A∣. Then u[B]⊆n, and the restriction of u to B is a bijection of B onto u[B], so B≈u[B]. By (∗) the set u[B] is finite with ∣u[B]∣≤n, hence B is finite with ∣B∣=∣u[B]∣≤n=∣A∣.

step 5.1L3L4
7.1

Clause 3. If B=A then ∣B∣=∣A∣. Conversely assume ∣B∣=∣A∣=n. Then ∣u[B]∣=∣B∣=n by transport, so u[B]=n by (∗), and therefore B=u−1[u[B]]=u−1[n]=A, because u is a bijection of A onto n.

step 5.1step 6.1L3L4
8.1

Clause 4, the injective half. Let f:A→A be injective. Then f is a bijection of A onto its image f[A]⊆A, so ∣f[A]∣=∣A∣ by transport, and clause 3 gives f[A]=A. Thus f is surjective, hence a bijection.

step 7.1L3L4
9.1

Clause 4, the surjective half. Let f:A→A be surjective. For each b∈A the set u[f−1[{b}]]⊆n is nonempty, so it has a least element by [L7]; let g(b) be the value of u−1 at that least element. No choice principle is used, since each g(b) is determined by b rather than selected. By construction g(b)∈f−1[{b}], that is f(g(b))=b for every b; and g is injective, since g(b)=g(b′) gives b=f(g(b))=f(g(b′))=b′. So g is a bijection by step 8.1.

step 6.1step 8.1L4L7construct
10.1

Composing f∘g=idA on the right with g−1 gives f=g−1, which is a bijection; so a surjection of A onto itself is a bijection, and in particular an injection.

step 9.1L4
11.1

Clauses 1 and 2 are step 6.1, clause 3 is step 7.1, and clause 4 is steps 8.1 and 10.1, each resting on the induction that establishes (∗).

step 5.1step 6.1step 7.1step 8.1step 10.1discharge-induction∎

Remarks

  • Where finiteness is spent. Only in (∗), and there only through the base case 0=∅ and the fact that removing the top point of σ(n) leaves n. Clause 4 then follows formally, which is why the failure of clause 4 for N is a failure of finiteness and of nothing else.

  • The surjective half needs no choice. The obvious argument, "pick a preimage of each b", would need a choice function on the fibres. Transporting the fibres into N and taking least elements replaces the choice by a determination, which is what The well-ordering principle is for.

  • Clause 2 is not the pigeonhole principle restated. The pigeonhole principle on N is about injections between natural numbers, and it is what makes The cardinality ∣A∣ of a finite set well posed in the first place; clause 2 compares the cardinalities of a set and a subset, and is proved here by induction directly.

DefinitionDefinition: AI-adaptedProof: AI-generatedverified 2026-08-02 (claude-opus-5)Open item page →

Finite sums and finite products of natural numbers, ∑k<nak and ∏k<nak in N

Definition

Let a:N→N, written ak for a(k), with addition and multiplication of natural numbers as in Addition of natural numbers and Multiplication of natural numbers. Finite sums and finite products of a inside N are defined by recursion on the upper index, which is legitimate by the recursion theorem (The recursion theorem).

That theorem produces a function of one variable, so the running index has to be carried inside the value. Apply it to the set A=N×N, the starting element (0,0) and the function f(k,s)=(σ(k), s+ak): there is a unique g:N→N×N with

g(0)=(0,0),g(σ(n))=f(g(n))(n∈N).

Write g(n)=(π1(g(n)), Sn) for its two coordinates.

The first coordinate is the index itself, and that is an induction, not an observation (The principle of mathematical induction). Indeed π1(g(0))=0; and if π1(g(n))=n then g(σ(n))=f(π1(g(n)),Sn)=(σ(π1(g(n))), Sn+aπ1(g(n)))=(σ(n), Sn+an), so π1(g(σ(n)))=σ(n). Only now may the second coordinates of the two displayed clauses be read off, and doing so gives

S0=0,Sσ(n)=Sn+an.

S is moreover the unique function N→N with those two properties: if S′ also has them then n↦(n,Sn′) satisfies the two clauses defining g, hence equals g by the uniqueness clause of The recursion theorem, so S′=S. We write

∑k<nak:=Sn.

The same construction with starting element (0,1) and f(k,p)=(σ(k), p⋅ak), with the same induction on the first coordinate and the same uniqueness argument, gives the unique P:N→N with

P0=1,Pσ(n)=Pn⋅an,

and we write ∏k<nak:=Pn.

The empty sum is 0 and the empty product is 1, by the base clause of the recursion and by nothing else: no convention is imported from anywhere.

Notation. We abbreviate ∑k=0nak:=∑k<n+1ak and likewise for products, using σ(n)=n+1. Only finitely many values of a enter ∑k<nak, so the notation is also used for a list a0,…,an−1 of naturals given without reference to any extension to all of N: extend the list by ak=0 (respectively ak=1) for k≥n and apply the definition. Where the two kinds of finite sum have to be told apart, we write ∑N and ∏N for the ones defined here and ∑R, ∏R for those of Finite sums and finite products, by recursion; elsewhere the ambient set is fixed by the terms being summed.

Truncated difference, fixed here for the whole page. For m,n∈N we write n−m for the unique j∈N with m+j=n when m≤n, and for 0 when n<m. Existence in the first case is the definition of ≤ (Order on the natural numbers) and uniqueness is commutativity with cancellation (Addition is commutative, Addition is cancellative). The two cases are exhaustive and mutually exclusive, since exactly one of m<n, m=n, n<m holds (Trichotomy of the order on N), so the notation names a single natural number for every m and n. Every use of n−m on this page is this operation; no negative number is ever formed, and where a statement is true only under m≤n that hypothesis is written out.

Remarks

  • Why a second finite sum is needed at all. Finite sums and finite products, by recursion defines ∑k<nak for a sequence of reals, and its value is a real number. Every count on this page is a natural number, so the sum rule, the row sums of Pascal's triangle, the condition ∑iki=n on a multinomial coefficient and the stars-and-bars count all need a sum that stays in N. The two notions are related, not rival: the bridge ι(∑k<nNak)=∑k<nRι(ak) is proved in the next item, and it is what lets an identity between counts be read inside R and back.

  • The monoid version, later. The same recursion is carried out in an arbitrary monoid in The product g0g1⋯gn−1 of a finite list in a monoid, by recursion, with the empty product (n=0) equal to the identity ↗, which comes later in the reading order; (N,+,0) and (N,⋅,1) are instances of it, and the agreement is immediate because the recursion clauses are identical. That pointer is orientation only: nothing here depends on it, and the notion defined above is complete as it stands.

  • 0 is an index. ∑k<n runs over k=0,1,…,n−1, so ∑k<1ak=a0 and ∑k<0ak=0. A claim about ∑k<nak must be checked at n=0, where it is a claim about 0, and a claim about ∏k<nak at n=0, where it is a claim about 1.

LemmaStatement: AI-adaptedProof: AI-generatedprecheck passjudge pass (z-ai/glm-5.2)audited 2026-07-29Open item page →

Laws of finite sums and products in N, and ι(∑k<nak)=∑k<nι(ak)

Statement

Let a,b:N→N, let c∈N, and let m,n∈N, with ∑N and ∏N as in Finite sums and finite products of natural numbers, ∑k<nak and ∏k<nak in N and ∑R, ∏R as in Finite sums and finite products, by recursion. Let ι:N→R be the canonical natural of The canonical natural ι(n)=n⋅1F of a field, so ι(0)=0 and ι(σ(n))=ι(n)+1. Then:

  1. ι is additive and multiplicative. ι(1)=1, and ι(m+n)=ι(m)+ι(n) and ι(mn)=ι(m) ι(n) for all m,n∈N, the cases where a factor is 0 included.
  2. Additivity. ∑k<n(ak+bk)=∑k<nak+∑k<nbk.
  3. Constants. ∑k<nc=n⋅c, the summand being the constant list.
  4. Splitting. If m≤n and d:=n−m, then ∑k<nak=∑k<mak+∑j<dam+j, and ∏k<nak=(∏k<mak)(∏j<dam+j).
  5. Monotonicity. If ak≤bk for every k<n then ∑k<nak≤∑k<nbk; and aj≤∑k<nak for every j<n.
  6. Products. ∏k<n(akbk)=(∏k<nak)(∏k<nbk); and if ak≠0 for every k<n then ∏k<nak≠0.
  7. The bridge into R. ι(∑k<nNak)=∑k<nRι(ak) and ι(∏k<nNak)=∏k<nRι(ak).
  8. ι is strictly increasing, hence injective. m<n if and only if ι(m)<ι(n), and m=n if and only if ι(m)=ι(n).

Clauses 6 and 7 together are the licence used everywhere below: an identity between natural numbers may be proved by proving the corresponding identity between their canonical naturals in R, and conversely a real identity whose two sides are canonical naturals is an identity in N.

Facts & Assumptions

Given: Lists a,b:N→N, a natural c, naturals m,n, and the ambient ordered field R. Recall σ(n)=n+1 and the truncated difference n−m of Finite sums and finite products of natural numbers, ∑k<nak and ∏k<nak in N.

[L1]

Induction: a property holding at 0 and inherited by successors holds at every natural (The principle of mathematical induction).

[L2]

Recursion clauses in N (Finite sums and finite products of natural numbers, ∑k<nak and ∏k<nak in N): ∑k<0ak=0, ∑k<σ(n)ak=∑k<nak+an, ∏k<0ak=1, ∏k<σ(n)ak=(∏k<nak)⋅an.

[L3]

Recursion clauses in R (Finite sums and finite products, by recursion): ∑k<0Rxk=0, ∑k<σ(n)Rxk=∑k<nRxk+xn, and likewise ∏k<0Rxk=1, ∏k<σ(n)Rxk=(∏k<nRxk)⋅xn.

[L4]

Arithmetic of N: addition and multiplication are associative and commutative, 0+n=n and n+0=n, 1⋅n=n⋅1=n and 0⋅n=n⋅0=0, multiplication distributes over addition, and σ(a)⋅n=a⋅n+n (Addition is associative, Addition is commutative, Left identity for addition, Multiplication is associative, Multiplication is commutative, Zero and one under multiplication, Distributivity and the successor law for multiplication, Addition of natural numbers, Multiplication of natural numbers).

[L5]

Order of N: m≤n means m+j=n for some j, that j is unique, m≤n  ⟺  m+k≤n+k, and m<n  ⟺  σ(m)≤n, so n≠0 is the same as 1≤n; exactly one of m<n, m=n, n<m holds (Order on the natural numbers, Addition is cancellative, Order is compatible with addition, Discreteness: σ(n) is the immediate successor, Trichotomy of the order on N). Transitivity of ≤ follows from the definition and associativity: m+j=n and n+i=p give m+(j+i)=p.

[L6]

The canonical natural (The canonical natural ι(n)=n⋅1F of a field): ι(0)=0R and ι(σ(n))=ι(n)+1R; ι(n) is also written n⋅1R.

[L7]

For n≥1, with n⋅1F defined by 1⋅1F=1F and (n+1)⋅1F=n⋅1F+1F: n⋅1F>0, and (m+n)⋅1F=m⋅1F+n⋅1F and (mn)⋅1F=(m⋅1F)(n⋅1F) for all m,n≥1 (Canonical naturals are positive and strictly increasing). These identities are asserted for m,n≥1 only; the cases with a zero argument are checked separately below.

[L8]

In a field, 0⋅x=0 (Multiplication by zero: 0⋅a=0); and R is an ordered field, so its addition and multiplication are associative and commutative with identities 0 and 1, and its order is total and compatible with addition (Field, Ordered field).

[L9]

Cancellation in N: m⋅k=n⋅k with k≠0 implies m=n (Cancellation for multiplication by a nonzero factor); and σ(n)≠0, so 1≠0 (The von Neumann naturals form a Peano system).

Proof

technique · induction
1.1

Every clause is proved by induction on the upper index, using only the recursion clauses [L2], [L3] and the arithmetic [L4], [L8]; the inductions are written out one clause at a time.

given
1.2

The two notations agree: ι(n)=n⋅1R for every n≥1. At n=1, ι(1)=ι(σ(0))=ι(0)+1R=1R=1⋅1R; and the successor clauses of the two recursions coincide, ι(σ(n))=ι(n)+1R and (n+1)⋅1R=n⋅1R+1R. So the two agree at every n≥1 by induction, and [L7] may be read as a statement about ι.

L1L6L7
1.3

Clause 1 at n=0: both sides are the empty sum, 0=0+0.

baseL2L4
1.4

Clause 1, inductive hypothesis: assume ∑k<n(ak+bk)=∑k<nak+∑k<nbk for a fixed n and all lists a,b.

ih
1.5

Clause 2, by induction on n. At n=0 both sides are 0, since 0⋅c=0. If ∑k<nc=n⋅c, then ∑k<σ(n)c=∑k<nc+c=n⋅c+c=σ(n)⋅c, the last equality being the successor law σ(a)⋅n=a⋅n+n of [L4].

L1L2L4
1.6

Clause 3, by induction on d, with m fixed and n=m+d. At d=0 we have n=m and the second sum is empty, so the claim reads ∑k<mak=∑k<mak+0. Assuming it at d, and using m+σ(d)=σ(m+d), we get ∑k<σ(n)ak=∑k<nak+an=(∑k<mak+∑j<dam+j)+am+d=∑k<mak+(∑j<dam+j+am+d)=∑k<mak+∑j<σ(d)am+j. The product form is the same argument with + replaced by ⋅ and 0 by 1.

L1L2L4L5
1.7

Clause 5, by induction on n. At n=0 both sides are 1=1⋅1; and ∏k<σ(n)(akbk)=(∏k<n(akbk))anbn=(∏k<nak)(∏k<nbk)anbn=(∏k<σ(n)ak)(∏k<σ(n)bk) by associativity and commutativity. For the second assertion, note first that a product of two nonzero naturals is nonzero: if xy=0 with y≠0, then xy=0⋅y, so x=0 by [L9]. Now induct: ∏k<0ak=1≠0 by [L9], and ∏k<σ(n)ak=(∏k<nak)an is a product of two nonzero naturals.

L1L2L4L9
2.1

Clause 1, inductive step. Using [L2] twice and the associativity and commutativity of addition, ∑k<σ(n)(ak+bk)=∑k<n(ak+bk)+(an+bn)=(∑k<nak+∑k<nbk)+(an+bn)=(∑k<nak+an)+(∑k<nbk+bn)=∑k<σ(n)ak+∑k<σ(n)bk, where the inductive hypothesis of step 1.4 was used at the second equality.

step 1.4L2L4
2.2

Clause 0. First ι(1)=1, computed in step 1.2. For m,n≥1 the two identities are [L7], read through step 1.2. If n=0 then ι(m+0)=ι(m)=ι(m)+0=ι(m)+ι(0), and ι(m⋅0)=ι(0)=0=ι(m)⋅0=ι(m)ι(0) by [L8]; the case m=0 follows from these by the commutativity of addition and multiplication in N and in R. So both identities hold for all m,n∈N.

step 1.2L4L7L8
2.3

Clause 4. Monotonicity is an induction: at n=0 both sums are 0; and if ∑k<nak≤∑k<nbk and an≤bn, then ∑k<nak+an≤∑k<nbk+an≤∑k<nbk+bn by [L5], so ∑k<σ(n)ak≤∑k<σ(n)bk by transitivity. For the second assertion let j<n, so 1≤n−j; splitting at j and then splitting the tail at 1, and using ∑i<1aj+i=0+aj=aj, gives ∑k<nak=(∑k<jak+aj)+R for some R∈N, and aj≤(∑k<jak+aj)+R because aj plus something equals it.

step 1.6L2L4L5
3.1

Clause 1 holds for every n, by step 1.3 and step 2.1 together with induction.

step 1.3step 2.1L1
3.2

Clause 7. If m<n put d=n−m, so m+d=n and d≠0, hence d≥1 and ι(d)>0 by [L7]; then ι(n)=ι(m)+ι(d)>ι(m) by step 2.2. Conversely, if ι(m)<ι(n) then m=n and n<m are both excluded, the first because the order of R is irreflexive and the second by what was just proved, so m<n by trichotomy in N. The statement about equality follows by trichotomy on both sides.

step 2.2L5L7L8
3.3

Clause 6, by induction on n. At n=0, ι(∑k<0ak)=ι(0)=0=∑k<0Rι(ak). Assuming the identity at n, ι(∑k<σ(n)ak)=ι(∑k<nak+an)=ι(∑k<nak)+ι(an)=∑k<nRι(ak)+ι(an)=∑k<σ(n)Rι(ak), the second equality by step 2.2. The product form is the same induction, starting from ι(1)=1 and using multiplicativity.

step 2.2L1L2L3L6
4.1

Clause 0 is step 2.2, clause 1 is step 3.1, clause 2 is step 1.5, clause 3 is step 1.6, clause 4 is step 2.3, clause 5 is step 1.7, clause 6 is step 3.3 and clause 7 is step 3.2.

step 1.5step 1.6step 1.7step 2.3step 3.1step 3.2step 3.3discharge-induction∎

Remarks

  • Why the zero cases are done by hand. Canonical naturals are positive and strictly increasing states (m+n)⋅1F=m⋅1F+n⋅1F and (mn)⋅1F=(m⋅1F)(n⋅1F) for m,n≥1 only, because the notation n⋅1F is introduced there by a recursion that starts at 1. Every count on this page can be 0, so the two one-line checks at 0 in step 2.2 are not pedantry: without them clause 0 would be a citation to a statement that was not made.

  • The real-valued laws are the same list. Laws of finite sums and finite products proves additivity, scaling, splitting, monotonicity, telescoping and the product laws for sums of reals. The clauses above are their N-valued counterparts, proved from the same recursion, and clause 6 is what ties the two lists together. Neither list contains a permutation-invariance clause; that is proved separately in the next item, and it is what the sum over a finite index set needs.

  • What clause 7 buys. Because ι is injective, a proof may cross into R, use subtraction or division there, and come back: if ι(x)=ι(y) with x,y∈N then x=y. The binomial theorem below lives in R for exactly this reason, while every coefficient in it is a count.

LemmaStatement: AI-adaptedProof: AI-generatedprecheck passjudge pass (z-ai/glm-5.2)audited 2026-07-29Open item page →

A finite sum is unchanged by a permutation of its index range: ∑k<naπ(k)=∑k<nak for every bijection π:n→n

Statement

Let n∈N and let π:n→n be a bijection (Injection, surjection, bijection). Then:

  1. for every list a:n→R, ∑k<naπ(k)=∑k<nak and ∏k<naπ(k)=∏k<nak (Finite sums and finite products, by recursion);
  2. for every list a:n→N, ∑k<naπ(k)=∑k<nak and ∏k<naπ(k)=∏k<nak (Finite sums and finite products of natural numbers, ∑k<nak and ∏k<nak in N).

This is not in Laws of finite sums and finite products. That item proves additivity, scaling, splitting, monotonicity, telescoping and the product laws, and states no invariance clause; the same is true of the N-valued list on this page. Permutation invariance is exactly what makes a sum over a finite set of indices well posed, which is the next item, so it is proved here first.

Facts & Assumptions

Given: A natural number n, a bijection π:n→n, and a list a of length n. Throughout, σ(n)=n∪{n}, n={ k:k<n }, and ∗ denotes any one of the four operations (R,+), (R,⋅), (N,+), (N,⋅), with e the corresponding identity element 0, 1, 0, 1. Write ★k<nck for the associated iterated operation, that is, for ∑k<nck in the two additive cases and ∏k<nck in the two multiplicative ones.

[L2]

The four iterated operations obey the same two recursion clauses: ★k<0ck=e and ★k<σ(n)ck=(★k<nck)∗cn (Finite sums and finite products, by recursion, Finite sums and finite products of natural numbers, ∑k<nak and ∏k<nak in N).

[L3]

Each of the four operations is associative and commutative on its set and has e as a two-sided identity (Field, Ordered field for R; Addition is associative, Addition is commutative, Multiplication is associative, Multiplication is commutative, Left identity for addition, Zero and one under multiplication for N). These three properties are the only facts about ∗ used below, which is why one argument proves all four clauses.

[L4]

Order and membership: k<n  ⟺  k∈n, n={ k:k<n }, k<σ(n)  ⟺  k≤n, n∉n, and σ(n)∖{n}=n (On N the order is membership: m<n  ⟺  m∈n, The natural numbers N (von Neumann), Order on the natural numbers).

[L5]

Discreteness and successors: m<n  ⟺  σ(m)≤n; every nonzero natural is σ(s) for a unique s (Discreteness: σ(n) is the immediate successor, Every nonzero natural number is a successor, The von Neumann naturals form a Peano system).

[L6]

Maps: a composite of bijections is a bijection; a bijection restricted to a subset of its domain is a bijection onto the image of that subset (Injection, surjection, bijection).

Proof

technique · induction
1.1

For n∈N and j≤n define djn:n→σ(n) by djn(k)=k for k<j and djn(k)=σ(k) for j≤k<n; this is the increasing enumeration of σ(n)∖{j}. It is a bijection of n onto σ(n)∖{j}: its values lie in σ(n) and avoid j, since k<j in the first clause and σ(k)>k≥j in the second; it is injective, being strictly increasing on each clause and satisfying k<j≤σ(k′) across them; and it is surjective, since t∈σ(n) with t<j has t<n and djn(t)=t, while t>j is nonzero, so t=σ(s) with j≤s by [L5] and s<n because σ(s)≤n, giving djn(s)=t.

L4L5L6construct
1.2

Claim (A) at n=0: for a list c of length σ(0)=1 and the only admissible index j=0, both sides of (A) read c0, since ★k<1ck=e∗c0=c0 and (★k<0cd00(k))∗c0=e∗c0=c0.

baseL2L3
1.3

Inductive hypothesis for (A): fix n and assume that for every list c of length σ(n) and every j≤n one has ★k<σ(n)ck=(★k<ncdjn(k))∗cj.

ih
1.4

The main claim at n=0: the only bijection 0→0 is the empty map and both sides are the empty iterate e.

L2
2.1

Inductive step for (A). Let c be a list of length σ(σ(n)) and let j≤σ(n). If j=σ(n) then djσ(n) is the identity of σ(n), so the right-hand side is (★k<σ(n)ck)∗cσ(n), which is the left-hand side by [L2]. If instead j≤n, apply the hypothesis of step 1.3 to the restriction of c to σ(n) to get ★k<σ(n)ck=(★k<ncdjn(k))∗cj; hence ★k<σ(σ(n))ck=((★k<ncdjn(k))∗cj)∗cσ(n)=((★k<ncdjn(k))∗cσ(n))∗cj by [L3]. Finally djσ(n) agrees with djn on n and sends n to σ(n), because j≤n, so the inner bracket is ★k<σ(n)cdjσ(n)(k) by [L2], which is the right-hand side at σ(n).

step 1.3L2L3
3.1

Claim (A) therefore holds for every n: for every list c of length σ(n) and every j≤n, ★k<σ(n)ck=(★k<ncdjn(k))∗cj. Informally, any single entry may be moved to the end without changing the value.

step 1.2step 2.1L1
4.1

Inductive step for the main claim. Assume it at n, for every list of length n and every bijection of n. Let π:σ(n)→σ(n) be a bijection, let a be a list of length σ(n), and put j:=π−1(n)≤n. Applying (A) to the list ck:=aπ(k) at the index j gives ★k<σ(n)aπ(k)=(★k<naρ(k))∗aπ(j) with ρ:=π∘djn and aπ(j)=an. Now ρ is a bijection of n onto n: djn is a bijection of n onto σ(n)∖{j} by step 1.1, and π restricts to a bijection of σ(n)∖{j} onto σ(n)∖{n}=n. So the inductive hypothesis applies to ρ and gives ★k<naρ(k)=★k<nak, whence ★k<σ(n)aπ(k)=(★k<nak)∗an=★k<σ(n)ak.

step 1.1step 3.1assume-hypL2L4L6
5.1

By induction the main claim holds for every n∈N, every list of length n and every bijection π:n→n.

step 1.4step 4.1L1
6.1

Since ∗ was any one of the four operations of the Given, and [L3] holds for each of them, step 5.1 is exactly clauses 1 and 2.

step 5.1L3discharge-induction∎

Remarks

  • Where the deletion map earns its keep. The usual textbook proof says "move the term an to the end and delete it", and leaves the resulting map on the shorter index range unexamined. That map is djn composed with π, and checking that it really is a bijection of n onto n is the only place where anything can go wrong; step 1.1 writes it down and verifies it in both directions.

  • One proof, four statements. Only associativity, commutativity, the identity and the two recursion clauses are used, so the argument is indifferent to which of the four operations is meant. The same observation is what later licenses the identical statement in an arbitrary monoid, where it belongs; nothing here needs that generality.

  • No choice is used. The index j=π−1(n) is determined, not selected, because π is a bijection.

DefinitionDefinition: AI-adaptedProof: AI-generatedjudge pass (z-ai/glm-5.2)audited 2026-07-29Open item page →

The sum ∑i∈Sai over a finite index set, and its product form

Definition

Let S be a finite set, n:=∣S∣ (The cardinality ∣A∣ of a finite set), and let a:S→R or a:S→N, written ai for a(i). Choose a bijection φ:n→S, which exists because S≈n (Equinumerous sets, A≈B and A⪯B), and set

∑i∈Sai:=∑k<naφ(k),∏i∈Sai:=∏k<naφ(k),

the right-hand sides being the iterated operations of Finite sums and finite products, by recursion when the values are real and of Finite sums and finite products of natural numbers, ∑k<nak and ∏k<nak in N when they are natural.

Independence of the enumeration, which is the content of the definition. Let φ,ψ:n→S be two bijections. Then π:=φ−1∘ψ is a bijection n→n (Injection, surjection, bijection), and aψ(k)=aφ(π(k)) for every k<n. Applying A finite sum is unchanged by a permutation of its index range: ∑k<naπ(k)=∑k<nak for every bijection π:n→n to the list ck:=aφ(k) gives

∑k<naψ(k)=∑k<ncπ(k)=∑k<nck=∑k<naφ(k),

and identically for products. So the value does not depend on which bijection is used, and ∑i∈Sai is a single well-determined element.

No choice principle is involved. The definition does not select an enumeration: it asserts that all enumerations give the same value, and that value is what the notation names. Only one bijection is ever produced at a time, from a set already known to be nonempty.

Three clauses, recorded here because the page uses them constantly.

(a) The bridge to the old notation. Taking S=n and φ=idn, which is legitimate since ∣n∣=n, gives

∑i∈nai=∑k<nak,∏i∈nai=∏k<nak.

So the new notation extends the sum over an initial segment rather than competing with it, and every law proved for the latter is available for the former whenever the index set is a natural number.

(b) Reindexing along a bijection. If h:T→S is a bijection of finite sets, then ∑j∈Tah(j)=∑i∈Sai, and likewise for products. Indeed ∣T∣=∣S∣=n by transport (The cardinality ∣A∣ of a finite set), and if φ:n→S is a bijection then h−1∘φ:n→T is one, so ∑j∈Tah(j)=∑k<nah(h−1(φ(k)))=∑k<naφ(k)=∑i∈Sai.

(c) The empty index set and a constant summand. ∣∅∣=0, so ∑i∈∅ai=0 and ∏i∈∅ai=1 by the base clause of the recursion. And for a constant c, clause (a) together with the constant clause of Laws of finite sums and products in N, and ι(∑k<nak)=∑k<nι(ak) in N, or clause 2 of Laws of finite sums and finite products in R, gives

∑i∈Sc=∣S∣⋅c(c∈N),∑i∈Sc=ι(∣S∣)⋅c(c∈R),

the second with ι written out because ∣S∣ is a natural number and not an element of R (The canonical natural ι(n)=n⋅1F of a field).

Remarks

TheoremStatement: AI-adaptedProof: AI-generatedprecheck passjudge pass (z-ai/glm-5.2)audited 2026-07-29Open item page →

The sum rule: a finite disjoint union is finite with ∣A∪B∣=∣A∣+∣B∣ and ∣⋃i∈IAi∣=∑i∈I∣Ai∣, and a sum over a finite index set splits along a partition

Statement

  1. Two blocks. If A and B are finite and disjoint, then A∪B is finite and ∣A∪B∣=∣A∣+∣B∣ (The cardinality ∣A∣ of a finite set).
  2. A finite partition. If I is a finite set and (Ai)i∈I is a family of finite sets that are pairwise disjoint, then ⋃i∈IAi is finite and ∣⋃i∈IAi∣=∑i∈I∣Ai∣, the sum being that of The sum ∑i∈Sai over a finite index set, and its product form.
  3. Splitting a sum along a partition of its index set. Let S be finite, let J be finite, and let (Sj)j∈J be pairwise disjoint subsets of S with ⋃j∈JSj=S. Then for a:S→R or a:S→N, ∑i∈Sai=∑j∈J(∑i∈Sjai),∏i∈Sai=∏j∈J(∏i∈Sjai). In particular ∑i∈S∪Tai=∑i∈Sai+∑i∈Tai for disjoint finite S and T.

Disjointness is a hypothesis and not a formality. It is spent at exactly one step, the injectivity of the splice map, and dropping it makes clause 1 false; the companion page carries that false statement with its smallest witness.

ABp;q>0f(0)¢¢¢f(p¡1)g(0)¢¢¢g(q¡1)0¢¢¢p¡1p¢¢¢p+q¡1h(k)=f(k)h(p+j)=g(j)h:p+q¡!A[B

Facts & Assumptions

Given: Finite sets as in the statement, and the truncated difference and the two finite sums of Finite sums and finite products of natural numbers, ∑k<nak and ∏k<nak in N. Throughout, ∗ denotes either + or ⋅ on R or on N, e the corresponding identity, and ★k<nck the associated iterated operation; the four cases are proved by one argument, as in A finite sum is unchanged by a permutation of its index range: ∑k<naπ(k)=∑k<nak for every bijection π:n→n.

[L2]

Cardinality (The cardinality ∣A∣ of a finite set): ∣A∣ is the unique natural with A≈∣A∣; ∣n∣=n; ∣∅∣=0; a bijection transports finiteness and cardinality.

[L3]

Sums over a finite index set (The sum ∑i∈Sai over a finite index set, and its product form): ∑i∈Sai=∑k<naφ(k) for any bijection φ:∣S∣→S, the value being independent of φ; ∑i∈nai=∑k<nak; reindexing along a bijection T→S leaves the value unchanged; and ∑i∈∅ai=e.

[L4]

Recursion clauses: ★k<0ck=e and ★k<σ(n)ck=(★k<nck)∗cn (Finite sums and finite products of natural numbers, ∑k<nak and ∏k<nak in N, Finite sums and finite products, by recursion).

[L5]

Splitting at an index: for p≤N and q=N−p, ★k<Nck=(★k<pck)∗(★j<qcp+j) (clause 3 of Laws of finite sums and products in N, and ι(∑k<nak)=∑k<nι(ak), clause 3 of Laws of finite sums and finite products).

[L6]

Order and addition in N: p≤k gives a unique j with p+j=k; p+j<p+q  ⟺  j<q; addition is commutative; σ(m)=m+1 (Order on the natural numbers, Addition is cancellative, Order is compatible with addition, Addition is commutative, Addition of natural numbers, On N the order is membership: m<n  ⟺  m∈n).

[L7]

Maps (Injection, surjection, bijection, Equinumerous sets, A≈B and A⪯B): composites and inverses of bijections are bijections, and an injective surjection is a bijection.

Proof

technique · induction
1.1

The splice map. Let A, B be finite and disjoint, put p:=∣A∣, q:=∣B∣, and fix bijections f:p→A and g:q→B. Define h:p+q→A∪B by h(k)=f(k) when k<p, and, when p≤k, by h(k)=g(j) for the unique j with p+j=k; that j satisfies j<q because p+j=k<p+q. The map h is well defined by [L6], it is surjective because every element of A∪B is some f(k) or some g(j), and it is injective: two indices below p are separated by the injectivity of f, two indices at least p by the injectivity of g together with the uniqueness of j, and an index below p from one at least p because f(k)∈A, g(j)∈B and A∩B=∅. The last of these three cases is the only use of disjointness in the whole proof.

L6L7construct
1.2

Base cases of the two inductions below, at m=0. A family indexed by 0=∅ has empty union, so ∣⋃k<0Bk∣=∣∅∣=0=∑k<0∣Bk∣; and a partition of S indexed by 0 forces S=∅, so both sides of clause 3 are e.

baseL2L3L4
1.3

Inductive hypothesis for both inductions, at m: for pairwise disjoint finite B0,…,Bm−1 the union ⋃k<mBk is finite with cardinality ∑k<m∣Bk∣; and for a partition of a finite set S into pairwise disjoint S0,…,Sm−1 one has ★i∈Sai=★k<m(★i∈Skai).

ih
2.1

Clause 1. By step 1.1 the map h is a bijection p+q→A∪B, so A∪B≈p+q; hence A∪B is finite and ∣A∪B∣=∣p+q∣=p+q=∣A∣+∣B∣.

step 1.1L2L7
3.1

Clause 3 for two blocks. Let S, T be finite and disjoint and a defined on S∪T. With p=∣S∣, q=∣T∣ and the bijections f,g,h of step 1.1 for the pair S, T, step 2.1 gives ∣S∪T∣=p+q, so h may be used as the enumeration in [L3]. Then ★i∈S∪Tai=★k<p+qah(k)=(★k<pah(k))∗(★j<qah(p+j))=(★k<paf(k))∗(★j<qag(j))=(★i∈Sai)∗(★i∈Tai), using [L5] at the second equality.

step 1.1step 2.1L3L5
3.2

Inductive step for clause 2, in the case of an index set σ(m). Let B0,…,Bm be pairwise disjoint and finite. Then ⋃k<σ(m)Bk=(⋃k<mBk)∪Bm, and these two sets are disjoint because each Bk with k<m is disjoint from Bm. By the hypothesis of step 1.3 the first is finite with cardinality ∑k<m∣Bk∣, so clause 1 makes the union finite with cardinality ∑k<m∣Bk∣+∣Bm∣=∑k<σ(m)∣Bk∣ by [L4].

step 1.3step 2.1L4
4.1

Clause 2. By step 1.2, step 3.2 and induction, the statement holds for every family indexed by a natural number m. For a general finite index set I take a bijection φ:m→I with m=∣I∣; then ⋃i∈IAi=⋃k<mAφ(k) and ∑i∈I∣Ai∣=∑k<m∣Aφ(k)∣ by the definition of the sum over a finite index set, so the two statements coincide.

step 1.2step 3.2L1L3
5.1

Inductive step for clause 3, index set σ(m). Let S be finite and partitioned into pairwise disjoint S0,…,Sm, and put S′:=⋃k<mSk, which is finite by [L8] and disjoint from Sm. The hypothesis of step 1.3 applies to the partition of S′ into S0,…,Sm−1, and step 3.1 applies to the disjoint pair S′, Sm, giving ★i∈Sai=(★i∈S′ai)∗(★i∈Smai)=(★k<m★i∈Skai)∗(★i∈Smai)=★k<σ(m)(★i∈Skai) by [L4].

step 1.3step 3.1step 4.1L4L8
6.1

Clause 3. By step 1.2, step 5.1 and induction it holds for every index set that is a natural number, and the general finite J follows by reindexing along a bijection m→J exactly as in step 4.1. The two-block form is step 3.1.

step 1.2step 3.1step 5.1L1L3
7.1

Clause 1 is step 2.1, clause 2 is step 4.1 and clause 3 is step 6.1; since ∗ was an arbitrary one of the four operations, both the sum and the product forms of clause 3 are proved.

step 2.1step 4.1step 6.1discharge-induction∎

Remarks

  • Why the splice map is built once. The same bijection p+q→A∪B proves clause 1 and, used as an enumeration, proves the two-block case of clause 3. Building it twice, once for cardinalities and once for sums, would be two chances to get the index arithmetic wrong.

  • The subtraction in the splice is legitimate. Writing h(k)=g(k−p) for k≥p means: the unique j with p+j=k, which exists by the definition of ≤ and is unique by cancellation. No negative number is formed anywhere.

  • Clause 3 is what the multinomial theorem needs. Its outer sum is indexed by the set of weak compositions of n into m parts, and the induction on m partitions that index set by the value of the last part. Without clause 3 that step could not be taken.

TheoremStatement: AI-adaptedProof: AI-generatedprecheck passjudge pass (z-ai/glm-5.2)audited 2026-07-29Open item page →

The product rule: ∣A×B∣=∣A∣ ∣B∣, and ∣∏i<mAi∣=∏i<m∣Ai∣

Statement

  1. If A and B are finite then A×B is finite and ∣A×B∣=∣A∣⋅∣B∣ (The cardinality ∣A∣ of a finite set).
  2. Let m∈N and let A0,…,Am−1 be finite sets. Write ∏i<mAi:={ f:f is a function with domain m and f(i)∈Ai for every i<m }. Then ∏i<mAi is finite and ∣∏i<mAi∣=∏i<m∣Ai∣, the right-hand product being the N-valued one of Finite sums and finite products of natural numbers, ∑k<nak and ∏k<nak in N.

At m=0 clause 2 reads ∣∏i<0Ai∣=1: there is exactly one function with domain ∅, the empty function, and the empty product is 1. Both sides are computed, not stipulated.

a0a1a2b0b1(a0;b0)(a1;b0)(a2;b0)(a0;b1)(a1;b1)(a2;b1)jA£Bj=3¢2=6

Facts & Assumptions

Given: Finite sets A, B and a finite list A0,…,Am−1 of finite sets. Recall σ(m)=m∪{m} and m={ i:i<m }.

[L2]

Cardinality (The cardinality ∣A∣ of a finite set): ∣A∣ is the unique natural with A≈∣A∣; ∣n∣=n; and a bijection transports finiteness and cardinality.

[L3]

The sum rule (The sum rule: a finite disjoint union is finite with ∣A∪B∣=∣A∣+∣B∣ and ∣⋃i∈IAi∣=∑i∈I∣Ai∣, and a sum over a finite index set splits along a partition): a family of pairwise disjoint finite sets indexed by a finite set has finite union, whose cardinality is the sum over that index set of the cardinalities.

[L4]

Sums over a finite index set (The sum ∑i∈Sai over a finite index set, and its product form): ∑i∈Sc=∣S∣⋅c for a constant c.

[L5]

Recursion clause for the N-valued product (Finite sums and finite products of natural numbers, ∑k<nak and ∏k<nak in N): ∏i<0ci=1 and ∏i<σ(m)ci=(∏i<mci)⋅cm.

[L6]

Maps (Injection, surjection, bijection, Equinumerous sets, A≈B and A⪯B): a map with a two-sided inverse is a bijection, and composites of bijections are bijections.

[L7]

Arithmetic: multiplication of naturals is commutative (Multiplication is commutative, Multiplication of natural numbers); and m={ i:i<m }, σ(m)=m∪{m}, m∉m (On N the order is membership: m<n  ⟺  m∈n, The natural numbers N (von Neumann)).

Proof

technique · induction
1.1

The slices. For b∈B put Ab:=A×{b}. The map a↦(a,b) is a bijection of A onto Ab, with inverse the first projection, so Ab is finite with ∣Ab∣=∣A∣; and the family (Ab)b∈B is pairwise disjoint, since an element of Ab has second coordinate b. Moreover A×B=⋃b∈BAb.

L2L6construct
1.2

Base case of clause 2, at m=0. A function with domain 0=∅ is the empty function and there is exactly one of them, so ∏i<0Ai={∅}, which is finite with cardinality 1 because b↦∅ is a bijection of 1={0} onto it; and ∏i<0∣Ai∣=1 by [L5].

baseL2L5L6
1.3

Inductive hypothesis for clause 2: fix m and assume that for every finite list A0,…,Am−1 of finite sets the set ∏i<mAi is finite with cardinality ∏i<m∣Ai∣.

ih
2.1

Clause 1. By step 1.1 and [L3], A×B is finite and ∣A×B∣=∑b∈B∣Ab∣=∑b∈B∣A∣=∣B∣⋅∣A∣=∣A∣⋅∣B∣, using [L4] for the constant summand and commutativity for the last step.

step 1.1L3L4L7
3.1

Inductive step for clause 2. Let A0,…,Am be finite. Define Φ:∏i<σ(m)Ai→(∏i<mAi)×Am by Φ(f)=(f↾m, f(m)), where f↾m is the restriction of f to m. Its inverse is (g,a)↦g∪{(m,a)}, a function with domain σ(m)=m∪{m} because m∉m; the two composites are the identity, so Φ is a bijection. By the hypothesis of step 1.3 and clause 1, the codomain is finite with cardinality (∏i<m∣Ai∣)⋅∣Am∣=∏i<σ(m)∣Ai∣, and transport carries this to ∏i<σ(m)Ai.

step 1.3step 2.1L2L5L6L7
4.1

By step 1.2, step 3.1 and induction, clause 2 holds for every m∈N.

step 1.2step 3.1L1
5.1

Clause 1 is step 2.1 and clause 2 is step 4.1.

step 2.1step 4.1discharge-induction∎

Remarks

  • No arithmetic is needed for clause 1. Slicing A×B over B and applying the sum rule replaces the usual bijection (p,q)↦p∣B∣+q, which would have to be proved bijective by division with remainder. Division with remainder lives later in the reading order, so the slicing argument is not merely shorter here, it is the one available.

  • The empty cases are computed. With A=∅ and B arbitrary, clause 1 reads ∣∅∣=0⋅∣B∣=0, which is right because ∅×B=∅. With m=0, clause 2 reads 1=1. Neither is a convention.

  • The infinite analogue of clause 1 fails in the shape a reader expects. A product of two infinite sets need not be strictly larger than either factor: N×N≈N (N×N≈N). The companion page records that as a false statement, with finiteness located as the hypothesis that fails.

DefinitionDefinition: AI-adaptedProof: AI-generatedverified 2026-08-02 (claude-opus-5)Open item page →

Exponentiation of natural numbers, mn, and its agreement with the integer power in R

Definition

Let m∈N. By the recursion theorem (The recursion theorem) applied to the set N, the starting element 1 and the function f(x)=x⋅m (Multiplication of natural numbers), there is a unique function N→N, written n↦mn, with

m0=1,mσ(n)=mn⋅m(n∈N).

Both the base and the value are natural numbers, so mn∈N for all m,n. In particular m1=m0⋅m=m and m2=m⋅m.

Why a new item is needed. Integer powers am defines an for a real base a, so its value is a real number. The counts on this page, ∣AB∣ and ∣P(A)∣ among them, are natural numbers, and an identity between them has to be an identity in N. The two operations are related by clause (d) below and by nothing weaker.

(a) 00=1 and 0n=0 for n≥1. The first is the base clause. For the second, 0σ(n)=0n⋅0=0, the clause x⋅0=0 being definitional (Multiplication of natural numbers), and every n≥1 is a successor.

(b) 1n=1 for every n. Induction: 10=1, and 1σ(n)=1n⋅1=1n (Zero and one under multiplication, The principle of mathematical induction).

(c) mp+q=mp mq and (mp)q=mqpq. Both by induction on q, using associativity and commutativity of multiplication (Multiplication is associative, Multiplication is commutative). For the first, at q=0 we have mp+0=mp=mp⋅1=mpm0, and mp+σ(q)=mσ(p+q)=mp+q⋅m=(mpmq)⋅m=mp mσ(q), using p+σ(q)=σ(p+q) (Addition of natural numbers). For the second, at q=0 both sides are 1, and (mp)σ(q)=(mp)q(mp)=mqpqmp=mσ(q)pσ(q).

(d) The bridge into R. With ι:N→R the canonical natural (The canonical natural ι(n)=n⋅1F of a field) and xn the integer power of Integer powers am,

ι(mn)=ι(m)n(m,n∈N).

Induction on n: at n=0 both sides are 1, since ι(1)=1; and ι(mσ(n))=ι(mn⋅m)=ι(mn) ι(m)=ι(m)nι(m)=ι(m)σ(n), the second equality being the multiplicativity of ι (clause 0 of Laws of finite sums and products in N, and ι(∑k<nak)=∑k<nι(ak)) and the last the recursion clause of Integer powers am.

(e) mn is a constant product. mn=∏k<nm, the N-valued product of the constant list (Finite sums and finite products of natural numbers, ∑k<nak and ∏k<nak in N). Induction: at n=0 both sides are 1, and ∏k<σ(n)m=(∏k<nm)⋅m=mn⋅m=mσ(n).

Remarks

  • 00=1, 0!=1 and the empty product are one convention, not three. The value 00=1 here is the base clause of the recursion above; by clause (e) it is the empty product of Finite sums and finite products of natural numbers, ∑k<nak and ∏k<nak in N; and Integer powers am adopts a0=1 for every real a, 0 included, so clause (d) is consistent at m=n=0. The reasons for the convention are set out in Integer powers am and are not repeated here.

  • The laws are the same laws. Clause (c) is the N-valued form of clause 1 of Laws of integer exponents, which states am+n=aman, (am)n=amn and (ab)n=anbn for a base in a field. Only the two identities actually used on this page are proved above; the third is available in R through clause (d) whenever it is wanted.

  • The exponent stays a natural number. Following the convention of Finite sums and finite products, by recursion, the identification of a natural with its canonical natural is deliberately not made in an exponent: in mn and in ι(m)n the exponent n is a natural number, never a real.

TheoremStatement: Literature-sourcedProof: AI-generatedprecheck passjudge pass (z-ai/glm-5.2)audited 2026-07-29Open item page →

The set AB of functions B→A between finite sets is finite, with ∣AB∣=∣A∣∣B∣

Statement

Let A and B be finite sets and write

AB:={ f:f is a function B→A }.

Then AB is finite and ∣AB∣=∣A∣∣B∣, the power being the N-valued exponentiation of Exponentiation of natural numbers, mn, and its agreement with the integer power in R.

Both degenerate cases are covered and neither is a stipulation. If B=∅ there is exactly one function B→A, the empty function, so ∣A∅∣=1=∣A∣0 even when A=∅. If A=∅ and B≠∅ there is no function at all, so ∣AB∣=0=0∣B∣ with ∣B∣≥1.

Facts & Assumptions

Given: Finite sets A and B, and n:=∣B∣. Here AB is the SET of functions B→A; it carries no further structure.

[L2]

Cardinality (The cardinality ∣A∣ of a finite set): ∣A∣ is the unique natural with A≈∣A∣; ∣n∣=n; ∣A∣=0 exactly when A=∅; and a bijection transports finiteness and cardinality.

[L4]

The product rule: ∣X×Y∣=∣X∣⋅∣Y∣ for finite X, Y (The product rule: ∣A×B∣=∣A∣ ∣B∣, and ∣∏i<mAi∣=∏i<m∣Ai∣, clause 1).

[L6]

Maps (Injection, surjection, bijection, Equinumerous sets, A≈B and A⪯B): a map with a two-sided inverse is a bijection.

Proof

technique · induction
1.1

Base case ∣B∣=0. Then B=∅ by [L2], and a function ∅→A is the empty function, of which there is exactly one whatever A is; so AB={∅}, which is finite with cardinality 1 because 0↦∅ is a bijection of 1={0} onto it. And ∣A∣0=1 by [L5].

baseL2L5L6
1.2

Inductive hypothesis: fix n∈N and assume that for every finite A and every finite B′ with ∣B′∣=n the set AB′ is finite with ∣AB′∣=∣A∣n.

ih
2.1

Inductive step. Let ∣B∣=σ(n). Then B≠∅ by [L2], so fix b∈B and put B′:=B∖{b}, which is finite by [L7]. Since B=B′∪{b} with B′∩{b}=∅ and ∣{b}∣=1, [L3] gives σ(n)=∣B′∣+1, hence ∣B′∣=n by cancellation. Define Ψ:AB→AB′×A by Ψ(f)=(f↾B′, f(b)); its inverse is (g,a)↦g∪{(b,a)}, which is a function on B′∪{b}=B because b∉B′, and the two composites are the identity, so Ψ is a bijection. By the hypothesis of step 1.2 and by [L4] the codomain is finite with cardinality ∣A∣n⋅∣A∣=∣A∣σ(n), and transport carries this to AB.

step 1.2L2L3L4L5L6L7construct
3.1

By induction on ∣B∣ the statement holds for every pair of finite sets A, B.

step 1.1step 2.1L1
4.1

The two degenerate readings are instances of it: B=∅ gives 1=∣A∣0 by step 1.1, valid for A=∅ as well; and A=∅ with ∣B∣≥1 gives ∣AB∣=0∣B∣=0, which is right because a function B→∅ would have to supply a value in ∅ for some element of B.

step 1.1step 3.1L2L5discharge-induction∎

Remarks

CorollaryStatement: AI-adaptedProof: AI-adaptedprecheck passjudge pass (z-ai/glm-5.2)audited 2026-07-29Open item page →

∣P(A)∣=2∣A∣ for finite A

Statement

Let A be a finite set and n:=∣A∣. Then the power set P(A) is finite and

∣P(A)∣=2 n,

the power being the N-valued exponentiation of Exponentiation of natural numbers, mn, and its agreement with the integer power in R. Moreover n<2 n.

The last inequality is the quantitative form, for finite A, of Cantor's theorem A≺P(A) (Cantor's theorem: A≺P(A)), which holds for every set whatsoever. The two statements are consistent and the proof below derives the inequality from Cantor's theorem rather than leaving them side by side.

Facts & Assumptions

Given: A finite set A with n:=∣A∣, and 2={0,1} as a von Neumann natural (The natural numbers N (von Neumann)). Write 2A for the set of functions A→2.

[L1]

∣XY∣=∣X∣∣Y∣ for finite X, Y, and XY is finite (The set AB of functions B→A between finite sets is finite, with ∣AB∣=∣A∣∣B∣).

[L2]

Cardinality (The cardinality ∣A∣ of a finite set): ∣m∣=m for a natural m; a bijection transports finiteness and cardinality; and for finite X, Y one has ∣X∣=∣Y∣ if and only if X≈Y.

[L3]

Cantor's theorem: A≺P(A), that is, there is an injection A→P(A) and no bijection (Cantor's theorem: A≺P(A), Equinumerous sets, A≈B and A⪯B).

[L4]

Pigeonhole, claim 2: if q<p then there is no injection p→q (The pigeonhole principle on N).

[L5]

Trichotomy: exactly one of p<q, p=q, q<p holds (Trichotomy of the order on N, Order on the natural numbers).

[L6]

Maps (Injection, surjection, bijection): a map with a two-sided inverse is a bijection; a composite of injections is an injection; and f−1[T]={x:f(x)∈T}.

Proof

technique · direct
1.1

The characteristic function. For S⊆A define χS:A→2 by χS(x)=1 when x∈S and χS(x)=0 otherwise, and let X:P(A)→2A be S↦χS. Let Y:2A→P(A) be f↦f−1[{1}]. Both composites are the identity: χS−1[{1}]={x∈A:χS(x)=1}=S; and for f:A→2 and x∈A the value f(x) is 0 or 1, so χf−1[{1}](x)=1 exactly when f(x)=1 and =0 otherwise, that is χf−1[{1}]=f. Hence X is a bijection and P(A)≈2A.

L6construct
2.1

Therefore P(A) is finite and ∣P(A)∣=∣2A∣=∣2∣∣A∣=2 n, using [L1] and ∣2∣=2 from [L2].

step 1.1L1L2
3.1

The inequality. By [L3] there is an injection A→P(A); composing with bijections n→A and P(A)→2 n, which exist by [L2] and step 2.1, gives an injection n→2 n. So 2 n<n is impossible by [L4], and n≤2 n by [L5]. Also n≠2 n: otherwise ∣A∣=∣P(A)∣, hence A≈P(A) by [L2], contradicting [L3].

step 2.1L2L3L4L5L6
4.1

The two assertions are step 2.1 and step 3.1, so ∣P(A)∣=2n and n<2n.

step 2.1step 3.1∎

Remarks

  • The finiteness of P(A) is part of the statement, and it is what makes [A]k finite in the next definition: a set of k-element subsets is a subset of P(A).

  • Cantor's theorem is not weakened here. A≺P(A) holds for every set, finite or infinite, and needs no counting; what the finite case adds is the value of the gap, 2n against n. The inequality above is deduced from Cantor's theorem, so no independent argument can disagree with it.

DefinitionDefinition: AI-adaptedProof: AI-generatedverified 2026-08-02 (claude-opus-5)Open item page →

The factorial n! and the falling factorial nk‾, defined by recursion in N

Definition

The factorial. By the recursion theorem (The recursion theorem) applied to the set N×N, the starting element (0,1) and the function f(k,v)=(σ(k), v⋅σ(k)), and by the same induction on the first coordinate as in Finite sums and finite products of natural numbers, ∑k<nak and ∏k<nak in N, there is a unique F:N→N with

F(0)=1,F(σ(n))=F(n)⋅σ(n)(n∈N).

We write n!:=F(n). Thus 0!=1, 1!=0!⋅1=1, 2!=1!⋅2=2, 3!=6, 4!=24, 5!=120, 6!=720.

0!=1 is the base clause of this recursion, not a convention imported from elsewhere. Nothing about empty products is presupposed; the agreement with the empty product is proved below, in clause (a), rather than assumed.

Truncated difference. Throughout, n−k is the operation fixed in Finite sums and finite products of natural numbers, ∑k<nak and ∏k<nak in N: the unique j with k+j=n when k≤n, and 0 when n<k.

The falling factorial. For n∈N define nk‾ by recursion on k, by the recursion theorem applied to N×N with starting element (0,1) and f(k,v)=(σ(k), v⋅(n−k)):

n0‾=1,nσ(k)‾=nk‾⋅(n−k).

So n1‾=1⋅(n−0)=n and n2‾=n (n−1), and for k≤n the value is the product n(n−1)⋯(n−k+1) of the k topmost factors.

Four facts, proved here because the page uses each of them.

(a) The factorial is the product of the first n positive naturals. n!=∏j<nσ(j)=∏j<n(j+1), the N-valued product of Finite sums and finite products of natural numbers, ∑k<nak and ∏k<nak in N. Induction (The principle of mathematical induction): at n=0 both sides are 1, the empty product and the base clause agreeing; and ∏j<σ(n)σ(j)=(∏j<nσ(j))⋅σ(n)=n!⋅σ(n)=σ(n)!. So the empty-product reading and the base-clause reading are the same reading, and neither was assumed.

(b) n!≠0, and ι(n!)=∏j<nRι(j+1). For the first, 0!=1≠0 (The von Neumann naturals form a Peano system) and σ(n)!=n!⋅σ(n) is a product of two nonzero naturals, which is nonzero: if xy=0 with y≠0 then xy=0⋅y (Zero and one under multiplication) and cancellation gives x=0 (Cancellation for multiplication by a nonzero factor). So n!≠0 for every n by induction. For the second, apply the bridge clause 6 of that lemma to clause (a) above. This is what makes the factorial of this page and the real-valued product ∏j<n(j+1) used elsewhere in the library one object seen twice, rather than two unrelated notions.

(c) nk‾⋅(n−k)!=n! for k≤n. Induction on k, for all n at once. At k=0 this reads 1⋅n!=n!. Assume it at k and let σ(k)≤n; then k≤n, and writing d:=n−k we have k+d=n and d≠0, since k+0=k≠n; so d=σ(e) for a unique e (Every nonzero natural number is a successor), and σ(k)+e=n, that is e=n−σ(k) (Addition is cancellative). Therefore nσ(k)‾⋅(n−σ(k))!=nk‾⋅(n−k)⋅e!=nk‾⋅(e!⋅σ(e))=nk‾⋅σ(e)!=nk‾⋅(n−k)!=n!, using commutativity and associativity of multiplication (Multiplication is associative, Multiplication is commutative) and the recursion clause for the factorial.

(d) Boundary values. n0‾=1 for every n, by the base clause; nn‾=n!, since clause (c) at k=n gives nn‾⋅0!=n! and 0!=1; and nk‾=0 whenever k>n. For the last, n−n=0 gives nσ(n)‾=nn‾⋅0=0, the clause x⋅0=0 being definitional (Multiplication of natural numbers), and if nk‾=0 then nσ(k)‾=0 as well, so nk‾=0 for every k≥σ(n) by induction.

Remarks

  • Why 0!=1 is not imported. The empty-product convention of an arbitrary monoid is fixed in The product g0g1⋯gn−1 of a finite list in a monoid, by recursion, with the empty product (n=0) equal to the identity ↗, which comes later in the reading order, so citing it here would be a dependency pointing the wrong way. Taking 0!=1 as the base clause of the factorial's own recursion costs nothing and owes nothing, and clause (a) then records the agreement.

  • The library's other factorial. For every real x, xk/k!→0 ↗, later in the reading order, works with a real-valued factorial defined as the product ∏j<n(j+1) in R. Clause (b) says that this is exactly ι(n!), so the two agree and no second notion has been created. That pointer is orientation only.

  • Check every clause at k=0 and at k=n. The falling factorial is defined by two regimes, one for k≤n and one beyond, and the recursion above covers both because the truncated difference is 0 past the end. The two values that get used constantly are n0‾=1 and nn‾=n!, and both are clause (d).

TheoremStatement: Literature-sourcedProof: AI-generatedprecheck passjudge pass (z-ai/glm-5.2)audited 2026-07-29Open item page →

The number of injections from a k-element set into an n-element set is nk‾

Statement

Let A and B be finite sets, n:=∣A∣ and k:=∣B∣, and write

Inj⁡(B,A):={ f:B→A : f is injective }.

Then Inj⁡(B,A) is finite and ∣Inj⁡(B,A)∣=nk‾ (The factorial n! and the falling factorial nk‾, defined by recursion in N).

The two boundary readings are part of the statement. At k=0 there is exactly one injection, the empty function, and n0‾=1. For k>n there is none, and nk‾=0.

Facts & Assumptions

Given: Finite sets A, B with n=∣A∣ and k=∣B∣. The truncated difference n−k is that of Finite sums and finite products of natural numbers, ∑k<nak and ∏k<nak in N.

[L2]

Cardinality (The cardinality ∣A∣ of a finite set): ∣X∣=0 exactly when X=∅; a bijection transports finiteness and cardinality; ∣m∣=m.

[L3]

The falling factorial (The factorial n! and the falling factorial nk‾, defined by recursion in N): n0‾=1, nσ(k)‾=nk‾⋅(n−k), and nk‾=0 for k>n.

[L5]

The sum rule (The sum rule: a finite disjoint union is finite with ∣A∪B∣=∣A∣+∣B∣ and ∣⋃i∈IAi∣=∑i∈I∣Ai∣, and a sum over a finite index set splits along a partition): ∣S∪T∣=∣S∣+∣T∣ for disjoint finite S, T; and a pairwise disjoint family of finite sets indexed by a finite set has finite union with cardinality the sum of the cardinalities. Together with ∑i∈Sc=∣S∣⋅c (The sum ∑i∈Sai over a finite index set, and its product form).

[L6]

Maps (Injection, surjection, bijection, Equinumerous sets, A≈B and A⪯B): a map with a two-sided inverse is a bijection; the restriction of an injection is an injection; an injection is a bijection onto its image.

[L7]

Order and cancellation in N: x+1=y+1 implies x=y; if k+t=n then t=n−k; trichotomy (Addition is cancellative, Order on the natural numbers, Trichotomy of the order on N).

Proof

technique · induction
1.1

Base case k=0. Then B=∅, and the only function ∅→A is the empty function, which is injective because injectivity is a condition on pairs of points of the domain and there are none. So Inj⁡(B,A)={∅} has cardinality 1=n0‾.

baseL2L3L6
1.2

Inductive hypothesis: fix k and assume that for all finite A, B′ with ∣A∣=n and ∣B′∣=k the set Inj⁡(B′,A) is finite with cardinality nk‾.

ih
1.3

Setting up the inductive step. Let ∣B∣=σ(k), so B≠∅; fix b∈B and put B′:=B∖{b}, which is finite with ∣B′∣=k by [L4], [L5] and cancellation, exactly as in the count of AB. Put T:={ (g,a):g∈Inj⁡(B′,A), a∈A∖g[B′] } and define Φ:Inj⁡(B,A)→T by Φ(f)=(f↾B′, f(b)); this lands in T because f↾B′ is injective and f(b)≠f(x) for x∈B′, so f(b)∉f[B′]. The map (g,a)↦g∪{(b,a)} is a two-sided inverse: the extension is injective precisely because a∉g[B′]. So Φ is a bijection. Finally Inj⁡(B′,A)⊆AB′ is finite by [L4].

L4L5L6L7construct
2.1

The case k>n. Then nk‾=0 by [L3], so the hypothesis of step 1.2 gives ∣Inj⁡(B′,A)∣=0, that is Inj⁡(B′,A)=∅; hence T=∅ and Inj⁡(B,A)=∅ by step 1.3, so its cardinality is 0. And σ(k)>n as well, so nσ(k)‾=0 by [L3]. Both sides are 0.

step 1.2step 1.3L2L3
2.2

The case k≤n. For each g∈Inj⁡(B′,A) the image g[B′] is a subset of A with ∣g[B′]∣=∣B′∣=k, since g is a bijection onto its image; and A is the disjoint union of g[B′] and A∖g[B′], so n=k+∣A∖g[B′]∣ by [L5] and therefore ∣A∖g[B′]∣=n−k by [L7]. Now T is the union of the pairwise disjoint sets {g}×(A∖g[B′]) indexed by g∈Inj⁡(B′,A), each of cardinality n−k because a↦(g,a) is a bijection; so [L5] gives ∣T∣=∑g(n−k)=∣Inj⁡(B′,A)∣⋅(n−k)=nk‾⋅(n−k)=nσ(k)‾, using the hypothesis of step 1.2 and [L3]. With step 1.3 this is ∣Inj⁡(B,A)∣.

step 1.2step 1.3L2L3L5L6L7
3.1

The two cases are exhaustive by trichotomy, so the statement holds at σ(k) whenever it holds at k; with step 1.1 it holds for every k, and the two boundary readings are step 1.1 and step 2.1.

step 1.1step 2.1step 2.2L1L7discharge-induction∎

Remarks

TheoremStatement: AI-adaptedProof: AI-generatedprecheck passjudge pass (z-ai/glm-5.2)audited 2026-07-29Open item page →

A finite set A with ∣A∣=n has exactly n! bijections onto itself, and n! bijections onto any set of the same cardinality

Statement

Let A be a finite set with n:=∣A∣ and write

Bij⁡(A):={ f:A→A : f is a bijection }.

Then Bij⁡(A) is finite and ∣Bij⁡(A)∣=n! (The factorial n! and the falling factorial nk‾, defined by recursion in N).

More generally, for finite sets X and Y write Bij⁡(X,Y) for the set of bijections X→Y. If ∣X∣=∣Y∣=n then Bij⁡(X,Y) is finite with n! elements, and if ∣X∣≠∣Y∣ then Bij⁡(X,Y)=∅.

Facts & Assumptions

Given: Finite sets A, X, Y, with n=∣A∣.

[L1]

∣Inj⁡(B,A)∣=∣A∣∣B∣‾, and Inj⁡(B,A) is finite (The number of injections from a k-element set into an n-element set is nk‾).

[L4]

Cardinality (The cardinality ∣A∣ of a finite set): a bijection transports finiteness and cardinality, and for finite X, Y one has ∣X∣=∣Y∣ if and only if X≈Y.

[L5]

Maps (Injection, surjection, bijection, Equinumerous sets, A≈B and A⪯B): composites and inverses of bijections are bijections, and every bijection is an injection.

Proof

technique · direct
1.1

The two sets coincide: Bij⁡(A)=Inj⁡(A,A). Every bijection is an injection, and by [L2] every injection A→A is a bijection, A being finite.

L2L5
2.1

Hence Bij⁡(A) is finite with ∣Bij⁡(A)∣=∣Inj⁡(A,A)∣=nn‾=n!, by [L1] with B=A and by [L3].

step 1.1L1L3
3.1

The two-set form. Suppose ∣X∣=∣Y∣=n. Then X≈Y by [L4], so fix a bijection u:Y→X. The map g↦u∘g sends Bij⁡(X,Y) into Bij⁡(X,X)=Bij⁡(X) and has the two-sided inverse h↦u−1∘h, so it is a bijection; hence Bij⁡(X,Y) is finite with ∣Bij⁡(X,Y)∣=∣Bij⁡(X)∣=n! by step 2.1 and [L4]. If instead ∣X∣≠∣Y∣ then X≉Y by [L4], so no bijection X→Y exists at all.

step 2.1L4L5
4.1

The first assertion is step 2.1 and the second is step 3.1.

step 2.1step 3.1∎

Remarks

  • No group vocabulary is used or needed. Bij⁡(A) is written here as a set of bijections. Composition makes it a group, and that structure, together with the name symmetric group, is introduced in The symmetric group Sym⁡(X): the bijections of a set X under composition ↗ later in the reading order; the pointer is orientation only and nothing above rests on it. The count n! proved here is what a later page needs in order to say that the symmetric group on n letters has n! elements.

  • Why this is on the main page and not among the examples. Later pages consume this count, and an examples page is a leaf that nothing else may depend on.

  • The two-set form costs one line and is used immediately. The closed formula for (nk) counts the bijections between an initial segment and an arbitrary k-element subset, which is exactly Bij⁡(X,Y) with X≠Y.

DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (z-ai/glm-5.2)audited 2026-07-29Open item page →

The set [A]k of k-element subsets and the binomial coefficient (nk):=∣[n]k∣

Definition

For a finite set A and k∈N put

[A]k:={ S⊆A : ∣S∣=k },

the set of k-element subsets of A. Every S⊆A is finite (A subset of a finite set is finite, with ∣B∣≤∣A∣, and equality holds if and only if B=A), so the condition ∣S∣=k makes sense for every subset.

[A]k is finite. It is a subset of P(A), which is finite by ∣P(A)∣=2∣A∣ for finite A, so A subset of a finite set is finite, with ∣B∣≤∣A∣, and equality holds if and only if B=A applies.

∣[A]k∣ depends only on ∣A∣. Let h:A→A′ be a bijection of finite sets. The direct image map S↦h[S] carries [A]k into [A′]k, because h restricted to S is a bijection of S onto h[S] and so ∣h[S]∣=∣S∣=k by the transport clause of The cardinality ∣A∣ of a finite set; the map T↦h−1[T] is its two-sided inverse, since h−1[h[S]]=S and h[h−1[T]]=T for a bijection h. So [A]k≈[A′]k and the two have the same cardinality.

Definition. For n,k∈N set

(nk):=∣ [n]k ∣∈N,

the binomial coefficient. By the previous paragraph and ∣n∣=n,

∣[A]k∣=(∣A∣k)for every finite A.

(nk) is a count, so it is a natural number by construction. It is not defined as n!/(k! (n−k)!): that expression involves a division, hence lives in R, and the assertion that its value is a natural number is a theorem, proved in (nk) k! (n−k)!=n! for k≤n; hence (nk) k!=nk‾, the quotient n!/(k!(n−k)!) is a natural number, and (nk)=(nn−k). Defining the coefficient as a count makes integrality free and leaves the closed formula something to prove.

Boundary values, read off the definition and not stipulated.

Remarks

TheoremStatement: AI-adaptedProof: AI-adaptedprecheck passjudge pass (z-ai/glm-5.2)audited 2026-07-29Open item page →

(nk) k! (n−k)!=n! for k≤n; hence (nk) k!=nk‾, the quotient n!/(k!(n−k)!) is a natural number, and (nk)=(nn−k)

Statement

Let n,k∈N with k≤n. Then, in N,

(nk)⋅k!⋅(n−k)!=n!,

and consequently:

  1. (nk)⋅k!=nk‾ (The factorial n! and the falling factorial nk‾, defined by recursion in N);
  2. integrality: in R, ι(nk)=ι(n!)ι(k!) ι((n−k)!), so the familiar quotient n!/(k! (n−k)!) is the canonical natural of a natural number, namely of the count (nk);
  3. symmetry: (nk)=(nn−k).

Here ι is the canonical natural of The canonical natural ι(n)=n⋅1F of a field and n−k the truncated difference, which for k≤n is the ordinary one.

Facts & Assumptions

Given: Naturals n,k with k≤n; the initial segment k={ i:i<k }, which satisfies k⊆n; and Bij⁡(X,Y) for the set of bijections X→Y.

[L1]

(mj)=∣[X]j∣ for every finite X with ∣X∣=m; [X]j is finite (The set [A]k of k-element subsets and the binomial coefficient (nk):=∣[n]k∣).

[L2]

∣Bij⁡(X,Y)∣=m! when ∣X∣=∣Y∣=m, and such a set is finite (A finite set A with ∣A∣=n has exactly n! bijections onto itself, and n! bijections onto any set of the same cardinality).

[L5]

Factorials (The factorial n! and the falling factorial nk‾, defined by recursion in N): m!≠0 for every m; nk‾(n−k)!=n! for k≤n.

[L6]

Cardinality and subsets (The cardinality ∣A∣ of a finite set, A subset of a finite set is finite, with ∣B∣≤∣A∣, and equality holds if and only if B=A): transport along a bijection; ∣m∣=m; a subset of a finite set is finite.

[L7]

Arithmetic of N: multiplication is associative and commutative, and x⋅c=y⋅c with c≠0 gives x=y (Multiplication is associative, Multiplication is commutative, Cancellation for multiplication by a nonzero factor); k+t=n determines t=n−k (Order on the natural numbers, Addition is cancellative).

[L8]

The embedding ι is multiplicative and injective, and ι(m)≠0 for m≠0 (clauses 0 and 7 of Laws of finite sums and products in N, and ι(∑k<nak)=∑k<nι(ak), The canonical natural ι(n)=n⋅1F of a field); a nonzero element of a field has a unique inverse, so division by it is legitimate (Identities and inverses in a field are unique, Field).

[L9]

Maps (Injection, surjection, bijection, Equinumerous sets, A≈B and A⪯B): a map with a two-sided inverse is a bijection; a bijection of n carries a subset onto a subset and the complement onto the complement.

Proof

technique · direct
1.1

The set to be counted twice is Bij⁡(n), of cardinality n! by [L2]. For S∈[n]k put Bij⁡S:={ f∈Bij⁡(n):f[k]=S }. These sets are pairwise disjoint, since f determines f[k], and their union over S∈[n]k is all of Bij⁡(n), because f[k] is a subset of n of cardinality k for every bijection f of n.

L1L2L6L9construct
1.2

For any X⊆n with ∣X∣=k one has ∣n∖X∣=n−k: the sets X and n∖X are disjoint with union n, so n=k+∣n∖X∣ by [L3], and [L7] identifies the second summand as n−k.

L3L6L7
2.1

∣Bij⁡S∣=k! (n−k)! for every S∈[n]k. Indeed f↦(f↾k, f↾(n∖k)) maps Bij⁡S to Bij⁡(k,S)×Bij⁡(n∖k, n∖S): if f[k]=S then f restricted to k is a bijection onto S, and, f being a bijection of n, it carries n∖k onto n∖S. The map (u,v)↦u∪v is a two-sided inverse, the union of the two functions being a function on k∪(n∖k)=n and a bijection onto S∪(n∖S)=n. Since ∣k∣=∣S∣=k and ∣n∖k∣=∣n∖S∣=n−k by step 1.2, [L2] and [L4] give the cardinality k! (n−k)!.

step 1.1step 1.2L2L4L6L9
2.2

Symmetry. The map S↦n∖S sends [n]k into [n] n−k by step 1.2, and T↦n∖T sends [n] n−k into [n]k, again by step 1.2 together with n−(n−k)=k, which holds because (n−k)+k=n. The two are mutually inverse, since n∖(n∖S)=S for S⊆n. Hence (nk)=(nn−k).

step 1.2L1L6L7L9construct
3.1

Counting Bij⁡(n) by the blocks of step 1.1 and using [L3], n!=∣Bij⁡(n)∣=∑S∈[n]k∣Bij⁡S∣=∑S∈[n]kk! (n−k)!=∣[n]k∣⋅k! (n−k)!=(nk) k! (n−k)!, the summand being constant.

step 1.1step 2.1L1L3
4.1

Clause 1. By [L5], nk‾(n−k)!=n!, so ((nk)k!)(n−k)!=nk‾(n−k)! by step 3.1 and associativity; since (n−k)!≠0, cancellation gives (nk) k!=nk‾.

step 3.1L5L7
4.2

Clause 2. Applying ι to step 3.1 and using multiplicativity, ι(n!)=ι(nk) ι(k!) ι((n−k)!). Both ι(k!) and ι((n−k)!) are nonzero by [L5] and [L8], so their product is invertible in R and ι(nk)=ι(n!)/(ι(k!)ι((n−k)!)). The left-hand side is the canonical natural of the count (nk), which is what the word integrality means here.

step 3.1L5L8
5.1

The displayed identity is step 3.1, clause 1 is step 4.1, clause 2 is step 4.2 and clause 3 is step 2.2.

step 2.2step 3.1step 4.1step 4.2∎

Remarks

  • Why the symmetry is proved by a bijection. Complementation is shorter than manipulating the closed formula, it needs no hypothesis beyond k≤n, and it is the argument that survives to the multinomial coefficient, where no single closed formula is available until the analogous count has been made.

  • Where k≤n is used. In step 1.1, so that k is a subset of n of cardinality k and [n]k is nonempty; and in step 1.2, so that n−k is a genuine difference. For k>n both sides of the displayed identity are still defined, but the left-hand side is 0 while n! is not, so the hypothesis is not removable.

  • The quotient formula is a theorem about a natural number. A reader who starts from n!/(k!(n−k)!) has to prove that the division comes out exact. Starting from the count, the exactness is what step 3.1 says, and the quotient is a consequence.

TheoremStatement: AI-adaptedProof: AI-generatedprecheck passverified 2026-08-02 (claude-opus-5)Open item page →

Pascal's rule (n+1k+1)=(nk)+(nk+1), and the hockey-stick identity ∑i≤n(ik)=(n+1k+1)

Statement

For all n,k∈N:

  1. Pascal's rule. (n+1k+1)=(nk)+(nk+1), with no restriction relating k to n;
  2. The hockey-stick identity. ∑i<n+1(ik)=(n+1k+1), the sum being the N-valued finite sum of Finite sums and finite products of natural numbers, ∑k<nak and ∏k<nak in N over i=0,1,…,n.
jAj=n+1[A]k+1,withA0=AnfagP=fS:a2SgQ=fS:a=2Sg[A0]k[A0]k+1S7!SnfagS7!S¡n+1k+1¢=¡nk¢+¡nk+1¢

Facts & Assumptions

Given: Naturals n, k; σ(m)=m+1; and (mj)=∣[X]j∣ for any finite X with ∣X∣=m.

[L2]

Binomial coefficients (The set [A]k of k-element subsets and the binomial coefficient (nk):=∣[n]k∣): ∣[X]j∣=(∣X∣j); (m0)=1; (mj)=0 for j>m; (mm)=1; (m1)=m.

[L4]

Cardinality (The cardinality ∣A∣ of a finite set, A subset of a finite set is finite, with ∣B∣≤∣A∣, and equality holds if and only if B=A): transport along a bijection; a subset of a finite set is finite; ∣{a}∣=1; ∣X∣=0 exactly when X=∅.

[L5]

Cancellation and order in N: x+1=y+1 implies x=y; trichotomy (Addition is cancellative, Trichotomy of the order on N, Order on the natural numbers).

[L6]

Maps (Injection, surjection, bijection): a map with a two-sided inverse is a bijection.

[L7]

Naturals: σ(m)=m∪{m} and m∉m (The natural numbers N (von Neumann)).

Proof

technique · induction
1.1

Fix n and k, let A be a set with ∣A∣=σ(n), and fix a∈A, possible because A≠∅ by [L4]. Put A′:=A∖{a}, which is finite with ∣A′∣=n: indeed A=A′∪{a} is a disjoint union, so σ(n)=∣A′∣+1 by [L3], and [L5] applies. Split [A]σ(k) into P:={S∈[A]σ(k):a∈S} and Q:={S∈[A]σ(k):a∉S}, which are disjoint with union [A]σ(k).

L3L4L5L7
1.2

The two blocks are counted by (nk) and (nσ(k)). First, Q=[A′]σ(k), since a subset of A avoiding a is exactly a subset of A′; so ∣Q∣=(nσ(k)) by [L2]. Second, S↦S∖{a} maps P into [A′]k: for S∈P the set S is the disjoint union of S∖{a} and {a}, so σ(k)=∣S∖{a}∣+1 and ∣S∖{a}∣=k by [L5]. Its two-sided inverse is T↦T∪{a}, which lands in P because a∉T⊆A′ gives ∣T∪{a}∣=k+1=σ(k) by [L3]. Hence ∣P∣=(nk) by [L2] and [L4].

L2L3L4L5L6construct
1.3

Base case of clause 2, at n=0. The left-hand side is ∑i<1(ik)=(0k) by [L3], and the right-hand side is (1σ(k)). If k=0 both are 1, by (00)=1 and (11)=1 from [L2]. If k≥1 then k>0 and σ(k)>1, so both are 0 by [L2].

baseL2L3L5
1.4

Inductive hypothesis for clause 2: fix n and assume ∑i<σ(n)(ik)=(σ(n)σ(k)) for every k.

ih
2.1

Clause 1. By step 1.1, step 1.2 and the sum rule, (σ(n)σ(k))=∣[A]σ(k)∣=∣P∣+∣Q∣=(nk)+(nσ(k)). No relation between k and n was used, and the identity is correct beyond the range as well: for k>n all three coefficients are 0 by [L2], and at k=0 it reads (σ(n)1)=1+(n1), which is σ(n)=1+n.

step 1.1step 1.2L2L3
3.1

Inductive step for clause 2. Using the recursion clause and then the hypothesis of step 1.4, ∑i<σ(σ(n))(ik)=∑i<σ(n)(ik)+(σ(n)k)=(σ(n)σ(k))+(σ(n)k), and clause 1 applied with σ(n) in place of n says exactly that this is (σ(σ(n))σ(k)).

step 1.4step 2.1L3
4.1

By step 1.3, step 3.1 and induction, clause 2 holds for every n and every k.

step 1.3step 3.1L1
5.1

Clause 1 is step 2.1 and clause 2 is step 4.1.

step 2.1step 4.1discharge-induction∎

Remarks

  • The rule needs no range hypothesis because the boundary values of The set [A]k of k-element subsets and the binomial coefficient (nk):=∣[n]k∣ make every out-of-range coefficient 0 rather than undefined. Both edges were checked in step 2.1 rather than assumed.

  • The hockey stick sums a column, not a row. The index i runs over 0,1,…,n with k fixed, and the terms with i<k vanish, so the identity is a statement about the entries (kk),(k+1k),… of one column of Pascal's triangle. The base case n=0 is the only place where the two readings k=0 and k≥1 have to be separated.

  • Everything here is an identity in N. No embedding into R is used or needed; the sum is the N-valued one.

TheoremStatement: AI-adaptedProof: AI-generatedprecheck passjudge pass (z-ai/glm-5.2)audited 2026-07-29Open item page →

A finite set with n elements has exactly (n2) two-element subsets, and 2(n2)=n(n−1)

Statement

Let A be a finite set with n:=∣A∣. Then the set [A]2 of two-element subsets of A is finite with

∣[A]2∣=(n2),

and, for every n∈N, the identity

2⋅(n2)=n (n−1)

holds in N, the difference being the truncated one. Equivalently, in R, ι(n2)=ι(n)(ι(n)−1)/2 for every n∈N.

Facts & Assumptions

Given: A finite set A with n=∣A∣, and 2=σ(1). The difference n−1 is the truncated one, equal to 0 at n=0.

[L1]

∣[A]j∣=(∣A∣j), [A]j is finite, and (mj)=0 for j>m (The set [A]k of k-element subsets and the binomial coefficient (nk):=∣[n]k∣, The cardinality ∣A∣ of a finite set).

[L3]

Falling factorials and factorials (The factorial n! and the falling factorial nk‾, defined by recursion in N): m0‾=1, mσ(j)‾=mj‾(m−j), 0!=1!=1 and 2!=2.

[L4]

Arithmetic of N: multiplication is commutative, m⋅0=0, 1⋅m=m (Multiplication is commutative, Zero and one under multiplication, Multiplication of natural numbers); and m−0=m (Order on the natural numbers).

[L5]

The embedding ι is additive, multiplicative and injective, and ι(m)>0 for m≥1 (clauses 0 and 7 of Laws of finite sums and products in N, and ι(∑k<nak)=∑k<nι(ak), The canonical natural ι(n)=n⋅1F of a field); R is an ordered field, so a nonzero element is invertible (Field, Ordered field).

[L6]

Trichotomy in N (Trichotomy of the order on N).

Proof

technique · direct
1.1

The first assertion is the definition: [A]2 is finite and ∣[A]2∣=(n2) by [L1], because ∣A∣=n.

L1
1.2

The falling factorial at 2: n1‾=n0‾⋅(n−0)=1⋅n=n and n2‾=n1‾⋅(n−1)=n (n−1), using [L3] and [L4].

L3L4
2.1

Let n≥2. Then [L2] with j=2 gives (n2)⋅2!=n2‾, that is (n2)⋅2=n(n−1) by step 1.2 and 2!=2; commutativity turns this into 2(n2)=n(n−1).

step 1.2L2L3L4
3.1

The two remaining values of n. If n=0 then 2>0, so (02)=0 by [L1], and the right-hand side is 0⋅(0−1)=0⋅0=0 by [L4]. If n=1 then 2>1, so (12)=0, and the right-hand side is 1⋅(1−1)=1⋅0=0. In both cases 2(n2)=0=n(n−1), so with step 2.1 and trichotomy the identity holds for every n∈N.

step 2.1L1L4L6
4.1

The real form. For n≥1 we have (n−1)+1=n, so ι(n−1)+1=ι(n) and ι(n−1)=ι(n)−1; applying ι to step 3.1 then gives ι(2) ι(n2)=ι(n)(ι(n)−1), and ι(2)=2≠0 is invertible, so ι(n2)=ι(n)(ι(n)−1)/2. At n=0 both sides are 0, the left by step 3.1 and the right because ι(0)=0.

step 3.1L5
5.1

The count is step 1.1, the identity in N is step 3.1, and its real form is step 4.1.

step 1.1step 3.1step 4.1∎

Remarks

  • This is a count of unordered pairs, stated purely as a count. No geometric or relational vocabulary appears, because none is available at this point in the reading order. Later pages will want exactly this quantity, and they may cite it from here.

  • Both small cases are checked. At n=0 and n=1 there are no two-element subsets and both sides are 0; the truncated difference is what makes the right-hand side come out 0 rather than undefined at n=0.

  • The real form is not the definition. ι(n)(ι(n)−1)/2 is a real number that happens to be the canonical natural of a count; the identity in N is the primary statement and the division is a convenience.

TheoremStatement: AI-adaptedProof: AI-adaptedprecheck passjudge pass (z-ai/glm-5.2)audited 2026-07-29Open item page →

The binomial theorem in R: (x+y)n=∑k<n+1ι ⁣(nk) xky n−k

Statement

For all x,y∈R and every n∈N,

(x+y)n  =  ∑k<n+1ι(nk) xk y n−k,

where the powers are the integer powers of Integer powers am, the sum is the real finite sum of Finite sums and finite products, by recursion over k=0,1,…,n, the difference n−k is a genuine one because k≤n throughout the range, and ι is the canonical natural of The canonical natural ι(n)=n⋅1F of a field.

The coefficient is ι(nk) and not (nk). A binomial coefficient is a natural number, that is a von Neumann natural, that is a set; it is not an element of R, and it enters the field through ι.

The identity is stated in R and only in R. The same proof uses nothing but commutativity, associativity, distributivity and natural-number multiples of a ring element, so a commutative-ring version is available wherever rings are; rings are not available at this point in the reading order, and the ring statement is a separate statement, to be made where they are. See the Remarks below.

Facts & Assumptions

Given: Reals x,y; a natural n; and the abbreviation ck:=ι(nk) for every k∈N, so that ck=ι(0)=0 whenever k>n.

[L2]

Integer powers (Integer powers am): a0=1 for every real a, including a=0, and aσ(m)=am⋅a. An immediate induction gives 1m=1.

[L3]

Real finite sums (Finite sums and finite products, by recursion): ∑k<0uk=0 and ∑k<σ(N)uk=∑k<Nuk+uN; additivity ∑(uk+vk)=∑uk+∑vk, scaling ∑λuk=λ∑uk, and splitting ∑k<Nuk=∑k<puk+∑j<N−pup+j for p≤N (Laws of finite sums and finite products, clauses 1, 2 and 3).

[L5]

Binomial coefficients (The set [A]k of k-element subsets and the binomial coefficient (nk):=∣[n]k∣): (m0)=1 and (mj)=0 for j>m; Pascal's rule (σ(m)σ(j))=(mj)+(mσ(j)) for all m,j (Pascal's rule (n+1k+1)=(nk)+(nk+1), and the hockey-stick identity ∑i≤n(ik)=(n+1k+1), clause 1).

[L6]

Field arithmetic of R: associativity, commutativity, distributivity, 0⋅a=0 (Field, Ordered field, Multiplication by zero: 0⋅a=0).

[L7]

Arithmetic of N: for k≤n, k+(n−k)=n, and hence (n−k)+1=σ(n)−k and σ(n)−σ(k)=n−k; every nonzero natural is a successor (Order on the natural numbers, Addition is cancellative, Every nonzero natural number is a successor, Finite sums and finite products of natural numbers, ∑k<nak and ∏k<nak in N for the truncated difference).

Proof

technique · induction
1.1

Both sides are functions of n with x,y fixed, and the induction is on n. Note first that cσ(n)=ι(nσ(n))=ι(0)=0, since σ(n)>n.

givenL4L5
1.2

Base case n=0. The left-hand side is (x+y)0=1 by [L2]. The right-hand side is ∑k<1ι(0k)xky 0−k=ι(00)x0y0=1⋅1⋅1=1, using [L3], (00)=1, ι(1)=1 and [L2]. This is correct at x=0 and at y=0 as well, because a0=1 for every real a.

baseL2L3L4L5
1.3

Inductive hypothesis: fix n and assume (x+y)n=∑k<σ(n)ckxky n−k for all x,y∈R.

ih
2.1

Expanding one factor. By [L2] and distributivity, (x+y)σ(n)=(x+y)n(x+y)=(∑k<σ(n)ckxky n−k)x+(∑k<σ(n)ckxky n−k)y, using the hypothesis of step 1.3; and by the scaling clause of [L3] together with xkx=xσ(k) and y n−ky=y (n−k)+1 this equals Σ1+Σ2 with Σ1:=∑k<σ(n)ckxσ(k)y n−k and Σ2:=∑k<σ(n)ckxky (n−k)+1.

step 1.3L2L3L6
3.1

Rewriting Σ2. For k≤n one has (n−k)+1=σ(n)−k by [L7], so Σ2=∑k<σ(n)ckxky σ(n)−k. Extending the range by one term costs nothing: by the recursion clause of [L3], ∑k<σ(σ(n))ckxky σ(n)−k=Σ2+cσ(n)xσ(n)y0, and cσ(n)=0 by step 1.1, so the added term is 0 by [L6] and Σ2=∑k<σ(σ(n))ckxky σ(n)−k.

step 1.1step 2.1L3L6L7
3.2

Rewriting Σ1. Define a list b of length σ(σ(n)) by b0:=0 and bσ(i):=cixσ(i)y n−i for i<σ(n); every index below σ(σ(n)) is 0 or a successor σ(i) with i<σ(n), by [L7], so b is well defined. Splitting at p=1 by [L3] and using σ(σ(n))−1=σ(n) and 1+i=σ(i), ∑j<σ(σ(n))bj=b0+∑i<σ(n)bσ(i)=0+Σ1=Σ1.

step 2.1L3L6L7
4.1

Adding the two. By step 3.1, step 3.2 and the additivity clause of [L3], (x+y)σ(n)=∑k<σ(σ(n))(bk+ckxky σ(n)−k). Evaluate the general term. At k=0 it is 0+ι(n0)x0y σ(n)=y σ(n)=ι(σ(n)0)x0y σ(n)−0, both coefficients being ι(1)=1. At k=σ(i) with i<σ(n) it is cixσ(i)y n−i+cσ(i)xσ(i)y σ(n)−σ(i), and σ(n)−σ(i)=n−i by [L7], so the term equals (ι(ni)+ι(nσ(i)))xσ(i)y σ(n)−σ(i)=ι(σ(n)σ(i))xσ(i)y σ(n)−σ(i) by the additivity of ι and Pascal's rule. Hence (x+y)σ(n)=∑k<σ(σ(n))ι(σ(n)k)xky σ(n)−k, which is the claim at σ(n).

step 3.1step 3.2L3L4L5L6L7
5.1

By step 1.2, step 4.1 and induction the identity holds for every n∈N and all reals x, y; in particular at x=0 or y=0, where the convention a0=1 of Integer powers am is what makes the extreme terms come out right and no exceptional case is needed.

step 1.2step 4.1L1L2discharge-induction∎

Remarks

CorollaryStatement: AI-adaptedProof: AI-adaptedprecheck passjudge pass (z-ai/glm-5.2)audited 2026-07-29Open item page →

∑k<n+1(nk)=2n, and ∑k<n+1(−1)kι ⁣(nk)=0 for n≥1

Statement

  1. The row sum. For every n∈N, in N, ∑k<n+1(nk)=2 n.
  2. The alternating row sum. For every n≥1, in R, ∑k<n+1(−1)k ι(nk)=0.

Clause 2 is false at n=0, where the sum has the single term (−1)0ι(00)=1. The hypothesis n≥1 is therefore part of the statement, and this page's companion records the version that drops it as a false statement.

Facts & Assumptions

Given: A natural n, a finite set A with ∣A∣=n, and ι the canonical natural (The canonical natural ι(n)=n⋅1F of a field).

[L1]

The binomial theorem: (x+y)n=∑k<σ(n)ι(nk)xky n−k for reals x, y (The binomial theorem in R: (x+y)n=∑k<n+1ι ⁣(nk) xky n−k).

[L2]

∣P(A)∣=2 n (∣P(A)∣=2∣A∣ for finite A), and ∣[A]k∣=(nk), with [A]k=∅ for k>n (The set [A]k of k-element subsets and the binomial coefficient (nk):=∣[n]k∣).

[L4]

ι is additive, multiplicative and injective, and ι(∑k<NNak)=∑k<NRι(ak) (clauses 0, 6 and 7 of Laws of finite sums and products in N, and ι(∑k<nak)=∑k<nι(ak)).

[L5]

Powers: ι(mj)=ι(m)j (Exponentiation of natural numbers, mn, and its agreement with the integer power in R, clause (d)); a0=1 and aσ(j)=aja, so 1j=1 and 0j=0 for j≥1 (Integer powers am, Multiplication by zero: 0⋅a=0, Field).

[L6]

Real finite sums: the recursion clauses and the scaling clause (Finite sums and finite products, by recursion, Laws of finite sums and finite products).

Proof

technique · direct
1.1

Clause 1, by counting. Every S⊆A satisfies ∣S∣≤n by [L7], so P(A) is the union of the sets [A]k for k∈σ(n)={0,1,…,n}; these are pairwise disjoint, since S determines ∣S∣. By [L3] and [L2], 2 n=∣P(A)∣=∑k∈σ(n)∣[A]k∣=∑k<σ(n)(nk), the last equality being the bridge for an index set that is a natural number.

L2L3L7
1.2

Clause 2. Apply [L1] with x=−1 and y=1. The left-hand side is (−1+1)n=0 n, which is 0 because n≥1 ([L5]). The right-hand side is ∑k<σ(n)ι(nk)(−1)k1 n−k=∑k<σ(n)(−1)kι(nk), using 1j=1 from [L5]. Hence the alternating sum is 0.

L1L5
2.1

Clause 1 again, from the binomial theorem, as a check that the two routes agree. Taking x=y=1 in [L1] gives (1+1)n=∑k<σ(n)ι(nk), and the right-hand side is ι(∑k<σ(n)N(nk)) by the bridge clause of [L4], while the left-hand side is ι(2)n=ι(2 n) by [L5]. Since ι is injective, ∑k<σ(n)N(nk)=2 n, which is step 1.1.

step 1.1L1L4L5
2.2

The hypothesis of clause 2 is not removable. At n=0 the sum is ∑k<1(−1)kι(0k)=(−1)0ι(00)=1⋅1=1≠0, by [L6], (00)=1 and a0=1. What fails in the argument of step 1.2 is exactly one thing: (−1+1)0=00=1 rather than 0.

step 1.2L2L5L6
3.1

Clause 1 is step 1.1, confirmed by step 2.1; clause 2 is step 1.2, and step 2.2 shows why it carries the hypothesis n≥1.

step 1.1step 1.2step 2.1step 2.2∎

Remarks

  • Two proofs of the same identity, deliberately. The counting proof is a statement about natural numbers and uses no embedding at all, while the analytic proof goes through R and comes back by the injectivity of ι. Recording both is what makes the agreement of the two readings visible rather than assumed.

  • Where the hypothesis of clause 2 is spent. In 0n=0, and nowhere else. The convention 00=1 is not a defect here: it is what makes the binomial theorem hold at n=0, and the price is that the alternating sum identity acquires a hypothesis. Both facts are consequences of the same convention.

  • The alternating sum is stated in R because (−1)k is not a natural number. The unsigned row sum, by contrast, is an identity between counts and is stated in N.

TheoremStatement: Literature-sourcedProof: AI-generatedprecheck passverified 2026-08-02 (claude-opus-5)Open item page →

Vandermonde's identity (m+nk)=∑i<k+1(mi)(nk−i)

Statement

For all m,n,k∈N, in N,

(m+nk)  =  ∑i<k+1(mi)(n k−i ),

the sum running over i=0,1,…,k and k−i being an ordinary difference throughout that range. No restriction relating k to m and n is needed: the terms with i>m or k−i>n vanish because the corresponding binomial coefficients are 0 (The set [A]k of k-element subsets and the binomial coefficient (nk):=∣[n]k∣).

Facts & Assumptions

Given: Naturals m, n, k; the disjoint sets M:=m×{0} and N:=n×{1}; and σ(k)={0,1,…,k}.

[L1]

Binomial coefficients (The set [A]k of k-element subsets and the binomial coefficient (nk):=∣[n]k∣): ∣[X]j∣=(∣X∣j) for finite X, and [X]j is finite.

[L2]

Cardinality (The cardinality ∣A∣ of a finite set): transport along a bijection; ∣X∣=∣Y∣ iff X≈Y for finite X, Y.

[L5]

Subsets (A subset of a finite set is finite, with ∣B∣≤∣A∣, and equality holds if and only if B=A): a subset of a finite set is finite with cardinality at most that of the set.

[L6]

Maps (Injection, surjection, bijection, Equinumerous sets, A≈B and A⪯B): a map with a two-sided inverse is a bijection.

[L7]

Arithmetic: if i+t=k then t=k−i, since ≤ is defined additively and addition is cancellative; and j<σ(k)  ⟺  j≤k for every j∈N, so σ(k)={0,1,…,k} (Order on the natural numbers, Addition is cancellative, On N the order is membership: m<n  ⟺  m∈n). The cardinalities ∣M∣=m and ∣N∣=n are not assumed here; they are computed in step 1.1.

Proof

technique · direct
1.1

A disjoint pair with the right cardinalities. Put M:=m×{0} and N:=n×{1}. These are disjoint, since an element of M has second coordinate 0 and one of N has second coordinate 1; and x↦(x,0) and x↦(x,1) are bijections from m and n onto them, so ∣M∣=m and ∣N∣=n by [L2]. Hence ∣M∪N∣=m+n by [L3], and ∣[M∪N]k∣=(m+nk) by [L1].

L1L2L3L6L7construct
1.2

The partition. For i<σ(k) put Bi:={ S∈[M∪N]k:∣S∩M∣=i }. Every S∈[M∪N]k lies in exactly one Bi, because S∩M⊆S gives ∣S∩M∣≤k by [L5], that is ∣S∩M∣∈σ(k); and the Bi are pairwise disjoint since S determines ∣S∩M∣.

L1L5
2.1

Counting a block. Fix i<σ(k). The map S↦(S∩M, S∩N) sends Bi into [M]i×[N] k−i: for S∈Bi the sets S∩M and S∩N are disjoint with union S, since S⊆M∪N, so k=i+∣S∩N∣ by [L3] and ∣S∩N∣=k−i by [L7]. The map (U,V)↦U∪V is a two-sided inverse: U⊆M and V⊆N are disjoint, so ∣U∪V∣=i+(k−i)=k by [L3], and (U∪V)∩M=U, (U∪V)∩N=V. Hence Bi≈[M]i×[N] k−i and ∣Bi∣=(mi)(n k−i ) by [L1], [L2] and [L4].

step 1.1step 1.2L1L2L3L4L6L7construct
3.1

Adding the blocks. By step 1.2 the family (Bi)i∈σ(k) is a pairwise disjoint family of finite sets with union [M∪N]k, so [L3] gives (m+nk)=∣[M∪N]k∣=∑i∈σ(k)∣Bi∣=∑i<σ(k)(mi)(n k−i ), using step 2.1 and the bridge for an index set that is a natural number.

step 1.1step 1.2step 2.1L3
4.1

No range restriction is needed: if i>m then [M]i=∅ and (mi)=0, and if k−i>n then (nk−i)=0, so those blocks are empty and contribute nothing, exactly as the identity says.

step 2.1step 3.1L1∎

Remarks

  • Why disjointness is arranged rather than assumed. The counting argument needs M and N disjoint, and two arbitrary sets of cardinalities m and n need not be. Replacing them by m×{0} and n×{1} costs one line and the transport clause of The cardinality ∣A∣ of a finite set, and it is what makes the sum rule applicable.

  • Not by generating functions, and not by comparing coefficients. Both of the usual quick proofs need machinery that is far later in the reading order: formal power series in the first case, and a polynomial ring in the second. The double count needs neither.

  • Pascal's rule is the special case m=1, read through (10)=(11)=1 and (1i)=0 for i≥2: for k≥1 the identity collapses to (1+nk)=(nk)+(nk−1), while at k=0 the sum has the single term (10)(n0)=1=(n+10). The restriction k≥1 is not cosmetic: n−m is the truncated difference throughout this page (Finite sums and finite products of natural numbers, ∑k<nak and ∏k<nak in N), so writing the collapsed identity at k=0 would read (n0−1) as (n0)=1 and assert 1=1+1.

DefinitionDefinition: AI-adaptedProof: AI-generatedjudge pass (z-ai/glm-5.2)audited 2026-07-29Open item page →

The multinomial coefficient (nk0,…,km−1) as the number of ordered partitions of an n-set into blocks of prescribed sizes

Definition

Let m,n∈N. Write

W(n,m):={ k:m→N ∣ ∑i<mki=n },

the set of m-tuples of naturals summing to n, the sum being the N-valued one of Finite sums and finite products of natural numbers, ∑k<nak and ∏k<nak in N.

W(n,m) is finite. If ∑i<mki=n then each ki≤n by the monotonicity clause of Laws of finite sums and products in N, and ι(∑k<nak)=∑k<nι(ak) (a term of a sum of naturals is at most the sum), so W(n,m) is a subset of the set of functions m→σ(n), which is finite by The set AB of functions B→A between finite sets is finite, with ∣AB∣=∣A∣∣B∣; now apply A subset of a finite set is finite, with ∣B∣≤∣A∣, and equality holds if and only if B=A.

Block decompositions as colourings. For a finite set A and k:m→N put

B(A,k):={ c:A→m ∣ ∣c−1[{i}]∣=ki for every i<m }.

A colouring c is the same thing as an ordered decomposition of A into the m blocks c−1[{0}],…,c−1[{m−1}]; presenting it as a function makes the blocks a partition of A automatically, so that The sum rule: a finite disjoint union is finite with ∣A∪B∣=∣A∣+∣B∣ and ∣⋃i∈IAi∣=∑i∈I∣Ai∣, and a sum over a finite index set splits along a partition and The set AB of functions B→A between finite sets is finite, with ∣AB∣=∣A∣∣B∣ apply verbatim. B(A,k) is a subset of the finite set mA, hence finite.

Am=3a1a2b1c1c2c3012(jc¡1(0)j;jc¡1(1)j;jc¡1(2)j)=(2;1;3)

The hypothesis is part of the definition, and it is forced. The fibres c−1[{i}], i<m, are pairwise disjoint with union A, so The sum rule: a finite disjoint union is finite with ∣A∪B∣=∣A∣+∣B∣ and ∣⋃i∈IAi∣=∑i∈I∣Ai∣, and a sum over a finite index set splits along a partition gives ∣A∣=∑i<m∣c−1[{i}]∣=∑i<mki for any c∈B(A,k). Hence B(A,k)=∅ unless k∈W(∣A∣,m), and the coefficient is defined only under that hypothesis.

∣B(A,k)∣ depends only on ∣A∣. If h:A→A′ is a bijection then c↦c∘h−1 maps B(A,k) to B(A′,k), because (c∘h−1)−1[{i}]=h[c−1[{i}]] has the same cardinality as c−1[{i}] (The cardinality ∣A∣ of a finite set); and c′↦c′∘h is its two-sided inverse.

Definition. For k∈W(n,m) set

(nk0,…,km−1):=∣B(n,k)∣∈N,

abbreviated (nk) when the tuple is named. By the previous paragraph, ∣B(A,k)∣=(∣A∣k) for every finite A with ∣A∣=n. Like the binomial coefficient, it is defined as a count, so it is a natural number by construction.

Boundary cases.

Remarks

TheoremStatement: AI-adaptedProof: AI-generatedprecheck passjudge pass (z-ai/glm-5.2)audited 2026-07-29Open item page →

The multinomial coefficient equals n!/∏i<mki!, and (x0+⋯+xm−1)n=∑ι ⁣(nk)∏i<mxiki in R

Statement

Let m,n∈N and k∈W(n,m), that is k:m→N with ∑i<mki=n (The multinomial coefficient (nk0,…,km−1) as the number of ordered partitions of an n-set into blocks of prescribed sizes). Then:

  1. The closed formula, in N. (nk)⋅∏i<mki!  =  n!, so in R the quotient ι(n!)/∏i<mι(ki!) is ι(nk), the canonical natural of a count.
  2. The expansion, in R. For x:m→R, (∑i<mxi)n  =  ∑k∈W(n,m)ι(nk)∏i<mxi ki, the outer sum being the sum over the finite index set W(n,m) (The sum ∑i∈Sai over a finite index set, and its product form) and the inner product the real finite product of Finite sums and finite products, by recursion.

As with the binomial theorem, the identity is stated in R; the commutative-ring version is a separate statement, to be made where rings exist. See the Remarks of The binomial theorem in R: (x+y)n=∑k<n+1ι ⁣(nk) xky n−k.

Facts & Assumptions

Given: Naturals m, n, a tuple k∈W(n,m), a list x:m→R, and a finite set A with ∣A∣=n. For m=σ(M) write k′:M→N for the shifted tuple kj′:=kσ(j).

[L2]

Multinomial coefficients (The multinomial coefficient (nk0,…,km−1) as the number of ordered partitions of an n-set into blocks of prescribed sizes): ∣B(A,k)∣=(∣A∣k); B(A,k) and W(n,m) are finite; (0 )=1 for the empty tuple; and W(n,0) is { () } for n=0 and ∅ for n≥1.

[L7]

ι is additive, multiplicative, injective, and commutes with finite sums and products (clauses 0, 6, 7 of Laws of finite sums and products in N, and ι(∑k<nak)=∑k<nι(ak), The canonical natural ι(n)=n⋅1F of a field); R is a field (Field); powers obey a0=1, aσ(j)=aja (Integer powers am).

Proof

technique · induction
1.1

Notation for both inductions. For m=σ(M) and k∈W(n,σ(M)), splitting the sum at index 1 ([L5]) gives n=∑i<σ(M)ki=k0+∑j<Mkj′, so k′∈W(n−k0,M) and k0≤n; the same splitting for products gives ∏i<σ(M)ki!=k0!⋅∏j<Mkj′!.

givenL5L8
1.2

Base case of clause 1, at m=0. Then W(n,0) is nonempty only for n=0, and there (0 )=1, the empty product of factorials is 1 and 0!=1, so the identity reads 1⋅1=1.

baseL2L5L6
1.3

Inductive hypothesis for clause 1: fix M and assume (Nk′)∏j<Mkj′!=N! for every N and every k′∈W(N,M).

ih
1.4

Base case of clause 2, at m=0. The left-hand side is (∑i<0xi)n=0 n. If n=0 this is 1, and the right-hand side is the single term ι(0 )∏i<0xiki=1⋅1=1. If n≥1 then 0 n=0 and W(n,0)=∅, so the right-hand side is an empty sum, equal to 0.

L2L5L7
2.1

Inductive step for clause 1. Let m=σ(M), k∈W(n,σ(M)), and let A be finite with ∣A∣=n. The map c↦(c−1[{0}], c′′), where c′′(a) is the unique i with c(a)=σ(i) for a∉c−1[{0}], sends B(A,k) to the set of pairs (S,c′′) with S∈[A]k0 and c′′∈B(A∖S,k′); it is well defined because c(a)≠0 off the first fibre, every nonzero natural is a unique successor, and ∣c′′−1[{j}]∣=∣c−1[{σ(j)}]∣=kj′. Its two-sided inverse sends (S,c′′) to the colouring equal to 0 on S and to σ(c′′(a)) off S. The pairs form the union of the pairwise disjoint sets {S}×B(A∖S,k′) indexed by S∈[A]k0, and ∣A∖S∣=n−k0 by [L3], so each has (n−k0k′) elements. Hence (nk)=(nk0)(n−k0k′) by [L3] and [L8]. Multiplying by ∏i<σ(M)ki!=k0!∏j<Mkj′! and using the hypothesis of step 1.3 at N=n−k0 gives (nk)∏i<σ(M)ki!=(nk0) k0!⋅((n−k0k′)∏j<Mkj′!)=(nk0) k0! (n−k0)!=n! by [L4], since k0≤n.

step 1.1step 1.3L2L3L4L6L8construct
3.1

Clause 1 holds for every m, by step 1.2, step 2.1 and induction. The real form follows: applying ι gives ι(nk)∏i<mι(ki!)=ι(n!), and each ι(ki!) is nonzero by [L6] and [L7], so the product is invertible in R.

step 1.2step 2.1L1L6L7
4.1

Inductive step for clause 2. Assume clause 2 at M, for every n and every list of length M. Let x:σ(M)→R, put y:=∑i<Mxi and z:=xM, so ∑i<σ(M)xi=y+z by [L5]. The map Φ(j,κ):=κ^, where κ^ restricts to κ on M and κ^M:=n−j, is a bijection from the disjoint union of the sets {j}×W(j,M), j<σ(n), onto W(n,σ(M)): it lands there because ∑i<σ(M)κ^i=j+(n−j)=n, and its inverse sends κ^ to the pair (∑i<Mκ^i, κ^↾M), the two constructions being mutually inverse by [L8]. Moreover ι(nj) ι(jκ)=ι(nκ^): by step 3.1 and [L4], both (nκ^) and (nj)(jκ) become n! after multiplication by the nonzero natural (∏i<Mκi!)(n−j)!, so they are equal by cancellation. And ∏i<Mxiκi⋅z n−j=∏i<σ(M)xiκ^i by the product recursion clause. Now [L4] gives (y+z)n=∑j<σ(n)ι(nj)y jz n−j; substituting the inductive hypothesis for y j, distributing the scalar ι(nj)z n−j over the inner sum by the scaling clause of [L5], and then applying [L3] to the partition of W(n,σ(M)) into the images of the sets W(j,M) under Φ yields (∑i<σ(M)xi)n=∑κ^∈W(n,σ(M))ι(nκ^)∏i<σ(M)xiκ^i.

step 1.4step 3.1assume-hypL2L3L4L5L6L7L8construct
5.1

By step 1.4, step 4.1 and induction, clause 2 holds for every m∈N, every n and every list x.

step 1.4step 4.1L1
6.1

Clause 1 is step 3.1 and clause 2 is step 5.1.

step 3.1step 5.1discharge-induction∎

Remarks

DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (z-ai/glm-5.2)audited 2026-07-29Open item page →

Compositions and weak compositions of a natural number into a fixed number of parts

Definition

Let n,m∈N.

The parts are ordered: k is a function on m, so (1,2) and (2,1) are different compositions of 3 into 2 parts.

Both sets are finite. Every k∈W(n,m) has ki≤n for each i, because a term of a sum of naturals is at most the sum (clause 4 of Laws of finite sums and products in N, and ι(∑k<nak)=∑k<nι(ak)); so W(n,m) is a subset of the set of functions m→σ(n), which is finite by The set AB of functions B→A between finite sets is finite, with ∣AB∣=∣A∣∣B∣, and A subset of a finite set is finite, with ∣B∣≤∣A∣, and equality holds if and only if B=A applies. C(n,m) is a subset of W(n,m), hence finite too.

The case m=0, which is exactly where the next item's hypothesis lives. There is precisely one function 0→N, the empty function, and its sum is the empty sum, 0. Hence

∣W(0,0)∣=1,∣W(n,0)∣=0  for n≥1,

and the same two values for C, since the condition "every part is nonzero" is vacuous for the empty tuple. Saying this here is what lets For m≥1 the number of weak compositions of n into m parts is (n+m−1m−1), and the number of compositions is (n−1m−1) for n≥1 carry the hypothesis m≥1 honestly: at m=0 the count is not given by the formula, and the true value is recorded above.

Small values of m. ∣W(n,1)∣=1, the unique weak composition being k0=n; and ∣C(n,1)∣=1 for n≥1 while C(0,1)=∅.

Remarks

TheoremStatement: AI-adaptedProof: AI-generatedprecheck passjudge pass (z-ai/glm-5.2)audited 2026-07-29Open item page →

For m≥1 the number of weak compositions of n into m parts is (n+m−1m−1), and the number of compositions is (n−1m−1) for n≥1

Statement

Let m≥1 and write m=σ(M), so M=m−1. Then for every n∈N

∣W(n,m)∣=(n+m−1 m−1 )=(n+MM),

and the map k↦{ (∑j<σ(i)kj)+i : i<M } is a bijection of W(n,m) onto the set of M-element subsets of n+M.

Moreover, for m≥1 and n≥1,

∣C(n,m)∣=(n−1 m−1 ).

The hypothesis m≥1 is not decoration. At m=0 the expression (n+m−1m−1) would require the value m−1 at m=0, and Compositions and weak compositions of a natural number into a fixed number of parts records the true counts there: ∣W(0,0)∣=1 and ∣W(n,0)∣=0 for n≥1. The hypothesis n≥1 in the second display is equally load bearing: at n=0, m=1 the formula would give (00)=1 while C(0,1)=∅.

Facts & Assumptions

Given: Naturals n and m=σ(M) with M∈N; the sets W(n,m) and C(n,m) of Compositions and weak compositions of a natural number into a fixed number of parts; and the truncated difference of Finite sums and finite products of natural numbers, ∑k<nak and ∏k<nak in N.

[L2]

Finite sums in N (Finite sums and finite products of natural numbers, ∑k<nak and ∏k<nak in N, Laws of finite sums and products in N, and ι(∑k<nak)=∑k<nι(ak)): the recursion clauses; additivity; the constant clause ∑k<Nc=N⋅c; splitting at p≤N; and the fact that a partial sum ∑j<Pkj with P≤N satisfies ∑j<Pkj≤∑j<Nkj, which is splitting together with x≤x+t.

[L3]

Binomial coefficients (The set [A]k of k-element subsets and the binomial coefficient (nk):=∣[n]k∣): ∣[X]j∣=(∣X∣j); (N0)=1; (Nj)=0 for j>N.

[L4]

The hockey-stick identity ∑i<σ(N)(ij)=(σ(N)σ(j)) (Pascal's rule (n+1k+1)=(nk)+(nk+1), and the hockey-stick identity ∑i≤n(ik)=(n+1k+1), clause 2).

[L6]

Cardinality and subsets (The cardinality ∣A∣ of a finite set, A subset of a finite set is finite, with ∣B∣≤∣A∣, and equality holds if and only if B=A): transport; a subset of a finite set is finite; a subset of the same cardinality as the whole is the whole.

[L7]

Maps (Injection, surjection, bijection, Equinumerous sets, A≈B and A⪯B): a map with a two-sided inverse is a bijection; an injection is a bijection onto its image.

[L8]

Arithmetic and order in N: σ(a)=a+1; a+σ(b)=σ(a+b); addition is commutative and cancellative; a≤b and b≤c give a≤c; trichotomy; a≠0 is the same as 1≤a (Order on the natural numbers, Addition is cancellative, Addition is commutative, Order is compatible with addition, Trichotomy of the order on N, Discreteness: σ(n) is the immediate successor, The natural numbers N (von Neumann)).

[L9]

Every nonempty subset of N has a least element (The well-ordering principle).

Proof

technique · induction
1.1

The last-part decomposition, valid for every M∈N and every n. The map k↦(∑i<Mki, k↾M) sends W(n,σ(M)) into the union of the pairwise disjoint sets {j}×W(j,M) for j<σ(n): writing j:=∑i<Mki, the recursion clause gives j+kM=n, so j≤n and k↾M∈W(j,M). Its two-sided inverse sends (j,κ) to the tuple extending κ by the value n−j at M, whose sum is j+(n−j)=n. Hence ∣W(n,σ(M))∣=∑j<σ(n)∣W(j,M)∣ by [L5].

L2L5L7L8construct
1.2

Base case, M=0, that is m=1. A weak composition of n into one part is a function k:1→N with ∑i<1ki=k0=n, and there is exactly one such function; so ∣W(n,1)∣=1=(n+00) by [L3].

baseL2L3
1.3

Inductive hypothesis: fix M and assume ∣W(n,σ(M))∣=(n+MM) for every n∈N.

ih
1.4

A reindexing identity: ∑j<σ(n)(j+MM)=∑i<σ(n+M)(iM). Split the right-hand side at p=M, legitimate since M≤σ(n+M): it becomes ∑i<M(iM)+∑j<σ(n+M)−M(M+jM). The first sum vanishes, every term being (iM)=0 for i<M by [L3] and a sum of zeros being 0 by the constant clause; and σ(n+M)−M=σ(n), because M+σ(n)=σ(M+n)=σ(n+M).

L2L3L8
2.1

Inductive step. Applying step 1.1 with σ(M) in place of M, then the hypothesis of step 1.3, then step 1.4 and finally the hockey-stick identity [L4] with N=n+M and j=M: ∣W(n,σ(σ(M)))∣=∑j<σ(n)∣W(j,σ(M))∣=∑j<σ(n)(j+MM)=∑i<σ(n+M)(iM)=(σ(n+M)σ(M))=(n+σ(M)σ(M)), the last equality because σ(n+M)=n+σ(M). That is the claim at σ(M).

step 1.1step 1.3step 1.4L4L8
3.1

By step 1.2, step 2.1 and induction, ∣W(n,σ(M))∣=(n+MM) for every M and every n, which is the first display since m=σ(M) and M=m−1.

step 1.2step 2.1L1
4.1

The explicit bijection. For k∈W(n,σ(M)) and i<M put si:=(∑j<σ(i)kj)+i and S(k):={ si:i<M }. The list is strictly increasing, since sσ(i)=(∑j<σ(i)kj+kσ(i))+σ(i)=si+kσ(i)+1; and si<n+M, since ∑j<σ(i)kj≤∑j<σ(M)kj=n by [L2] and i≤M−1. So S(k) is a subset of n+M with exactly M elements, and S maps W(n,σ(M)) into [ n+M ]M. It is injective: a strictly increasing list enumerating a finite subset of N is determined by that subset, since its first entry is the least element and each later entry is the least element strictly above the previous one ([L9] and induction), so S(k)=S(k~) forces si=s~i for all i<M; then k0=s0 and kσ(i)=sσ(i)−si−1 recover k on M, and kM=n−∑j<Mkj recovers the last part. Since both sets have (n+MM) elements by step 3.1 and [L3], the image of S is a subset of [ n+M ]M of the same cardinality, hence all of it by [L6]. So S is a bijection.

step 3.1L2L3L6L7L8L9construct
4.2

The count of compositions, for m=σ(M)≥1 and n≥1. If m≤n, the map k↦k′ with ki′:=ki−1 sends C(n,m) into W(n−m,m): each ki≥1, so ki=ki′+1, and ∑i<mki=∑i<mki′+∑i<m1=∑i<mki′+m by additivity and the constant clause, whence ∑i<mki′=n−m. Its two-sided inverse adds 1 to every part. So ∣C(n,m)∣=∣W(n−m,m)∣=((n−m)+MM) by step 3.1, and (n−m)+M=n−1 because (n−m)+m=n and M=m−1 with m≥1. If instead m>n, then every k∈C(n,m) would satisfy n=∑i<mki≥∑i<m1=m by monotonicity, which is false; so C(n,m)=∅, and (n−1m−1)=0 as well, since m>n≥1 gives m−1>n−1. In both cases ∣C(n,m)∣=(n−1m−1).

step 3.1L2L3L6L7L8
5.1

The count of weak compositions is step 3.1, the bijection realising it is step 4.1, and the count of compositions is step 4.2.

step 3.1step 4.1step 4.2discharge-induction∎

Remarks

  • The picture behind S. Lay out n stars and M bars in a row of n+M places; the bars split the stars into σ(M)=m runs, whose lengths are the parts. The set S(k) is the set of positions of the bars, and step 4.1 is that picture made precise. Surjectivity is obtained from the count rather than by constructing the inverse directly, which spares an appeal to the increasing enumeration of an arbitrary subset.

tikz \begin{tikzpicture}[x=0.85cm,y=1cm] \node at (2.55,1.25) {$k=(2,0,3)$}; \node at (0,0) {$\star$}; \node at (0.85,0) {$\star$}; \draw[line width=1pt] (1.7,-0.3) -- (1.7,0.3); \draw[line width=1pt] (2.55,-0.3) -- (2.55,0.3); \node at (3.4,0) {$\star$}; \node at (4.25,0) {$\star$}; \node at (5.1,0) {$\star$}; \node at (0,-0.65) {$0$}; \node at (0.85,-0.65) {$1$}; \node at (1.7,-0.65) {$2$}; \node at (2.55,-0.65) {$3$}; \node at (3.4,-0.65) {$4$}; \node at (4.25,-0.65) {$5$}; \node at (5.1,-0.65) {$6$}; \node at (2.55,-1.35) {$S(k)=\{2,3\}\subseteq 7$}; \end{tikzpicture}

  • Why the count is proved by induction and not by the bijection alone. Building the inverse of S by hand needs the increasing enumeration of an arbitrary M-element subset of n+M, which is more machinery than the hockey-stick induction. The induction gives the number, and the number then gives the surjectivity of S.

  • Both hypotheses are visible. The failure at m=0 is recorded on the companion page as a false statement; the failure at n=0 of the composition formula is recorded in the Statement above.

RemarkRemark: AI-generatedProof: Not applicablejudge pass (z-ai/glm-5.2)audited 2026-07-29Open item page →

Conventions fixed on this page, and what counting is deliberately not done here

This item is the page's ledger: every convention the page fixes, with the item that fixes it, and a statement of what is deliberately left to later pages.

Conventions fixed here

N contains 0. Every index range on this page starts at 0, so ∑k<n runs over k=0,…,n−1 and ∑k<n+1 over k=0,…,n. A cardinality may be 0, a part of a composition may be 0, and a claim true only from the second index onwards is false as stated. Three items exist only because of this: the alternating row sum of ∑k<n+1(nk)=2n, and ∑k<n+1(−1)kι ⁣(nk)=0 for n≥1 carries the hypothesis n≥1, For m≥1 the number of weak compositions of n into m parts is (n+m−1m−1), and the number of compositions is (n−1m−1) for n≥1 carries m≥1, and the composition count carries n≥1.

∣A∣ is defined for finite A only, and is a natural number. The cardinality ∣A∣ of a finite set fixes this, and what makes it well posed is claim 3 of the pigeonhole principle. It is not a cardinal number: Cardinal (initial ordinal) and cardinality ↗ is a later and different object and nothing here uses it or any cardinal arithmetic.

The empty sum is 0, the empty product is 1, 0!=1 and 00=1 are one convention. Each is the base clause of a recursion carried out on this page, in Finite sums and finite products of natural numbers, ∑k<nak and ∏k<nak in N, The factorial n! and the falling factorial nk‾, defined by recursion in N and Exponentiation of natural numbers, mn, and its agreement with the integer power in R respectively, and each agrees with the already-published Finite sums and finite products, by recursion and Integer powers am. Nothing was imported and nothing was stipulated twice.

Counts live in N; identities involving subtraction or division live in R. A natural number is a von Neumann natural, hence a set, and is not an element of R; it enters through the canonical natural ι. That is why the binomial theorem's coefficient is ι(nk), and why Laws of finite sums and products in N, and ι(∑k<nak)=∑k<nι(ak) proves that ι commutes with finite sums and products and is injective. Injectivity is the licence to prove an identity between counts by proving it in R.

(nk) is a count, and integrality is a theorem. The set [A]k of k-element subsets and the binomial coefficient (nk):=∣[n]k∣ defines it as ∣[n]k∣, so it is a natural number by construction; that it also equals n!/(k!(n−k)!) is (nk) k! (n−k)!=n! for k≤n; hence (nk) k!=nk‾, the quotient n!/(k!(n−k)!) is a natural number, and (nk)=(nn−k). The same holds for the multinomial coefficient (The multinomial coefficient (nk0,…,km−1) as the number of ordered partitions of an n-set into blocks of prescribed sizes).

Three notions of finite sum will coexist in the library, and each is introduced with a bridge to the previous one: over an initial segment (Finite sums and finite products, by recursion), over a finite index set (The sum ∑i∈Sai over a finite index set, and its product form, well posed because of A finite sum is unchanged by a permutation of its index range: ∑k<naπ(k)=∑k<nak for every bijection π:n→n), and in an arbitrary monoid (The product g0g1⋯gn−1 of a finite list in a monoid, by recursion, with the empty product (n=0) equal to the identity ↗, later in the reading order). The bridges are what stop them drifting into three unrelated notions.

Truncated difference. On this page n−m always means the unique j with m+j=n when m≤n, and 0 otherwise. No negative number is ever formed, and each statement true only under m≤n says so.

What is deliberately not here

These are statements about the reading order, not about the library as a whole.

  • Inclusion and exclusion, the systematic repair of a count whose blocks overlap. The sum rule needs disjointness, and the companion page shows what goes wrong without it; the correction term belongs to the next page of this track.
  • The number of surjections, and the counting of set partitions and of unordered partitions of an integer. All are natural sequels to the material here and none is available yet.
  • The binomial theorem for a commutative ring. The proof given here uses only commutativity, associativity, distributivity and natural-number multiples, so the ring statement is true; it cannot be stated until rings exist (Ring: an abelian group under addition and a monoid under multiplication, with multiplication distributing over addition on both sides ↗).
  • Group vocabulary for Bij⁡(A). The count n! is proved here, about a set of bijections. The group structure and the name symmetric group are The symmetric group Sym⁡(X): the bijections of a set X under composition ↗, later in the reading order, and a page there may cite the count from here.
  • Asymptotics of n!, Stirling's formula among them. These need the logarithm and a good deal of integration, all far later in the reading order.

Every forward pointer above is orientation only: no item on this page depends on anything named in this section.

5 · Examples, counterexamples and false statements

None yet.

Sources