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.

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

Inclusion–Exclusion, the Pigeonhole Principle and Double Counting

1 · Prerequisites

2 · Summary

Finite cardinality, finite sums over arbitrary finite index sets, the sum and product rules, binomial coefficients, and the canonical embedding of the naturals into the reals supply the counting and arithmetic background. The alternating binomial-row identity controls signed subset sums, while ordered-field arithmetic permits subtraction and division after natural counts are embedded in R. A finite incidence relation supplies row and column fibres, and a finite family of subsets of a named ambient set supplies its intersections, including the empty intersection relative to that ambient set.

Counting a finite incidence relation by either fibre family yields double counting and the averaging principle; applying the same partition-of-fibres argument to a function gives the strong pigeonhole principle and its ceiling form. Pointwise alternating sums over traces give inclusion-exclusion, and partial binomial-row sums give the Bonferroni bounds. Sieving functions by omitted values counts surjections, while sieving permutations by fixed points gives the derangement formula and its recurrences. Finally, longest increasing and decreasing sublists ending at each position define an injective rank-pair map, proving the Erdős–Szekeres bound; decreasing blocks ordered increasingly supply the sharp examples of length mn.

3 · Logical flowchart

4 · Definitions, theorems and proofs

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

∑i∈S∑j∈Taij=∑(i,j)∈S×Taij=∑j∈T∑i∈Saij for finite index sets S and T

Statement

Let S and T be finite sets and let a:S×T→R, or a:S×T→N, written aij for a(i,j). Then S×T is finite and

∑i∈S(∑j∈Taij)  =  ∑p∈S×Tap  =  ∑j∈T(∑i∈Saij),

all three sums being the sums over a finite index set of The sum ∑i∈Sai over a finite index set, and its product form, carried by Finite sums and finite products, by recursion when the values are real and by Finite sums and finite products of natural numbers, ∑k<nak and ∏k<nak in N when they are natural.

This is not a clause of 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. That theorem splits one sum along a partition of its own index set; the identity above exchanges the roles of two different index sets, and it is what an argument that counts a set of pairs in two ways needs. Both outer index sets may be empty, in which case all three quantities are 0 (respectively 1 for the product form of the underlying recursion), since a sum over the empty index set is the empty sum.

Facts & Assumptions

Given: Finite sets S and T, and a list a defined on S×T with values in R or in N.

[L2]

Splitting along a partition: if P is finite, J is finite, and (Pj)j∈J are pairwise disjoint subsets of P whose union is P, then ∑p∈Pap=∑j∈J(∑p∈Pjap), for real-valued and for natural-valued a alike (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, clause 3).

[L3]

Reindexing along a bijection: if h:V→P is a bijection of finite sets then ∑v∈Vah(v)=∑p∈Pap (The sum ∑i∈Sai over a finite index set, and its product form, clause (b)).

[L4]

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

Proof

technique · direct
1.1

The row slices. For i∈S put Pi:={i}×T. Each Pi is a subset of the finite set S×T, hence finite; the family (Pi)i∈S is pairwise disjoint, because a point of Pi has first coordinate i; and its union is S×T, because every p∈S×T is (i,j) for some i∈S and j∈T.

L1construct
1.2

The column slices. For j∈T put Qj:=S×{j}. The same three observations with the coordinates exchanged show that each Qj is finite, that the family (Qj)j∈T is pairwise disjoint, and that its union is S×T.

L1construct
1.3

The slice bijections. For i∈S the map hi:T→Pi, hi(j):=(i,j), takes its values in Pi by definition and has the second-coordinate map as a two-sided inverse, so it is a bijection; likewise gj:S→Qj, gj(i):=(i,j), is a bijection for each j∈T.

L3L4construct
2.1

Splitting the sum over S×T along the row slices gives ∑p∈S×Tap=∑i∈S(∑p∈Piap).

step 1.1L2
2.2

Splitting it along the column slices gives ∑p∈S×Tap=∑j∈T(∑p∈Qjap).

step 1.2L2
2.3

Reindexing each inner sum along the bijection of step 1.3 gives ∑p∈Piap=∑j∈Tahi(j)=∑j∈Taij for every i∈S, and ∑p∈Qjap=∑i∈Saij for every j∈T.

step 1.3L3
3.1

Substituting step 2.3 into step 2.1 and into step 2.2 gives ∑i∈S(∑j∈Taij)=∑p∈S×Tap=∑j∈T(∑i∈Saij), which is the statement.

step 2.1step 2.2step 2.3∎

Remarks

  • What is actually used. Only the splitting clause and the reindexing clause, and each of them is stated for a real-valued and for a natural-valued summand. One argument therefore proves both readings, and nothing about subtraction or about the order enters.

  • Why the slices and not an induction. The two partitions of S×T are the same set cut two ways, so the identity is a statement about one sum, not a statement relating two recursions. That is why no induction appears and why the empty cases need no separate treatment: a sum over an empty index set is the empty sum, and the argument passes through it unchanged.

DefinitionDefinition: AI-adaptedProof: Not applicablejudge pass (z-ai/glm-5.2)verified 2026-07-29 (claude-fable-5)Open item page →

A relation R⊆X×Y between finite sets, its row fibres Rx and its column fibres Ry

Definition

Let X and Y be finite sets (Finite, countably infinite, countable, uncountable, The cardinality ∣A∣ of a finite set) and let R⊆X×Y be a relation between them. For x∈X and y∈Y set

Rx:={ y∈Y : (x,y)∈R },Ry:={ x∈X : (x,y)∈R },

the row fibre of R at x and the column fibre of R at y.

XYx1x2x3y1y2y3Sample:Rx2=fy2;y3gandRy2=fx1;x2g.

(a) Everything here is finite. X×Y is finite (The product rule: ∣A×B∣=∣A∣ ∣B∣, and ∣∏i<mAi∣=∏i<m∣Ai∣, clause 1), so R is finite as a subset of it, and Rx⊆Y and Ry⊆X are finite as subsets of finite sets (A subset of a finite set is finite, with ∣B∣≤∣A∣, and equality holds if and only if B=A, clause 1). Hence ∣R∣, ∣Rx∣ and ∣Ry∣ are all defined, and each is a natural number (The cardinality ∣A∣ of a finite set).

(b) The fibres are the slices of R, up to a bijection. For x∈X,

R∩({x}×Y)  =  {x}×Rx,

since (u,v) lies in the left-hand side exactly when u=x, v∈Y and (x,v)∈R, that is exactly when u=x and v∈Rx. The map y↦(x,y) is a bijection of Rx onto {x}×Rx, its two-sided inverse being the second-coordinate map (Injection, surjection, bijection), so ∣{x}×Rx∣=∣Rx∣ by the transport clause (c) of The cardinality ∣A∣ of a finite set. Symmetrically R∩(X×{y})=Ry×{y} and ∣Ry×{y}∣=∣Ry∣.

(c) The slices partition R. The sets {x}×Rx, for x∈X, are pairwise disjoint, because a point of {x}×Rx has first coordinate x; and their union is R, because every (u,v)∈R has u∈X and v∈Ru. Symmetrically the sets Ry×{y}, for y∈Y, are pairwise disjoint with union R.

(d) Neighbours. When X=Y and R is symmetric ((x,y)∈R implies (y,x)∈R) and irreflexive ((x,x)∉R for every x), Rx=Rx and this common set is called the set of neighbours of x; it is a subset of X∖{x}.

Remarks

  • A relation, not a matrix. The object counted here is a subset of a product of two finite sets. Nothing about arrays, entries or indices by position is used, and the two fibre families are the only structure the counting arguments need.

  • No graph vocabulary. Clause (d) fixes the words symmetric, irreflexive and neighbour for a relation on a single finite set. Nothing among this page's declared prerequisites defines a graph, and none of the results stated with clause (d) needs one.

  • Both fibre families are indexed by a finite set, which is what lets the cardinalities be summed at all: a sum over a finite index set is defined only when the index set is finite (The sum ∑i∈Sai over a finite index set, and its product form).

TheoremStatement: AI-adaptedProof: AI-adaptedprecheck passverified 2026-08-03 (gpt-5.6-sol-codex-subscription)Open item page →

Double counting: ∑x∈X∣Rx∣=∣R∣=∑y∈Y∣Ry∣ for a relation between finite sets

Statement

Let X and Y be finite sets and let R⊆X×Y, with row fibres Rx and column fibres Ry as in A relation R⊆X×Y between finite sets, its row fibres Rx and its column fibres Ry. Then, in N,

∑x∈X∣Rx∣  =  ∣R∣  =  ∑y∈Y∣Ry∣,

the sums being those of The sum ∑i∈Sai over a finite index set, and its product form.

Both index sets may be empty. If X=∅ then R=∅, every column fibre is empty, and all three quantities are 0; the same holds with the roles of X and Y exchanged.

Facts & Assumptions

Given: Finite sets X and Y, a relation R⊆X×Y, and its fibres.

[L1]

R, every Rx and every Ry are finite, so all the cardinalities written below are defined (A relation R⊆X×Y between finite sets, its row fibres Rx and its column fibres Ry, clause (a), The cardinality ∣A∣ of a finite set).

[L2]

The row slices {x}×Rx and column slices Ry×{y} are pairwise disjoint within their respective families and each family has union R by clause (c); they are finite because clause (b) bijects them with the finite fibres from [L1] (A relation R⊆X×Y between finite sets, its row fibres Rx and its column fibres Ry, clauses (b) and (c), The cardinality ∣A∣ of a finite set, clause (c)).

[L3]

∣{x}×Rx∣=∣Rx∣ and ∣Ry×{y}∣=∣Ry∣, by the slice bijections of clause (b) of A relation R⊆X×Y between finite sets, its row fibres Rx and its column fibres Ry and the transport clause (c) of The cardinality ∣A∣ of a finite set (Injection, surjection, bijection).

[L4]

The sum rule for a finite partition: if (Ci)i∈I is a family of pairwise disjoint finite sets indexed by a finite set I, then ⋃i∈ICi is finite with ∣⋃i∈ICi∣=∑i∈I∣Ci∣ (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, clause 2, The sum ∑i∈Sai over a finite index set, and its product form).

Proof

technique · direct
1.1

The row slices form a family of pairwise disjoint finite sets indexed by the finite set X, and their union is R, so [L4] gives ∣R∣=∑x∈X∣{x}×Rx∣.

L1L2L4
1.2

The column slices form a family of pairwise disjoint finite sets indexed by the finite set Y, and their union is R, so [L4] gives ∣R∣=∑y∈Y∣Ry×{y}∣.

L1L2L4
2.1

Replacing each summand of step 1.1 by ∣Rx∣ and each summand of step 1.2 by ∣Ry∣, which is legitimate by [L3] since the two lists have the same values at every index, gives ∑x∈X∣Rx∣=∣R∣=∑y∈Y∣Ry∣.

step 1.1step 1.2L3∎

Remarks

  • Where the hypotheses are spent. Finiteness of X and of Y is what makes the two index sets legitimate index sets for a sum, and finiteness of R is what makes ∣R∣ defined. Disjointness of the slices is automatic, since a slice is determined by one coordinate of its points, which is why no hypothesis of that kind appears in the statement.

  • The count stays in N. Every quantity here is a cardinality, and the sums are the N-valued ones. Nothing is embedded into R until an identity with a subtraction or a division has to be written.

CorollaryStatement: AI-adaptedProof: AI-generatedprecheck passjudge pass (z-ai/glm-5.2)verified 2026-07-29 (claude-fable-5)Open item page →

If X is nonempty, some row fibre is at least the average size and some row fibre is at most the average size

Statement

Let X and Y be finite sets with X≠∅, let R⊆X×Y, and let Rx be its row fibres (A relation R⊆X×Y between finite sets, its row fibres Rx and its column fibres Ry). Since ∣X∣≠0, the real number

μ  :=  ι(∣R∣)ι(∣X∣)

is defined, where ι:N→R is the canonical natural (The canonical natural ι(n)=n⋅1F of a field). Then there are x+,x−∈X with

ι(∣Rx+∣) ≥ μandι(∣Rx−∣) ≤ μ.

The two elements need not be distinct, and neither inequality need be an equality: μ is a real number and a fibre size is a natural number, so no fibre need meet the average exactly.

Facts & Assumptions

Given: Finite sets X≠∅ and Y, a relation R⊆X×Y with row fibres Rx, and a fixed enumeration φ:∣X∣→X of X, which exists because X is finite (The cardinality ∣A∣ of a finite set).

[L2]

The bridge over a finite index set: for a finite S and c:S→N, ι(∑i∈Sci)=∑i∈Sι(ci). This is not a clause of The sum ∑i∈Sai over a finite index set, and its product form and is derived here: both sides are computed through one and the same enumeration ψ:∣S∣→S, and ι(∑k<ncψ(k))=∑k<nι(cψ(k)) is clause 6 of Laws of finite sums and products in N, and ι(∑k<nak)=∑k<nι(ak).

[L3]

A constant real summand: ∑i∈Sλ=ι(∣S∣) λ for λ∈R (The sum ∑i∈Sai over a finite index set, and its product form, clause (c)).

[L4]

Additivity and the vanishing test over a finite index set: for u,v:S→R one has ∑i∈S(ui+vi)=∑i∈Sui+∑i∈Svi; and if ui≥0 for every i∈S and ∑i∈Sui=0, then ui=0 for every i∈S. Both are clauses 1 and 4 of Laws of finite sums and finite products applied to the list k↦uψ(k) through an enumeration ψ of S (The sum ∑i∈Sai over a finite index set, and its product form, Finite sums and finite products, by recursion); for the second, ψ is onto S, so every value of u is some uψ(k).

[L6]

∣X∣=0 if and only if X=∅ (The cardinality ∣A∣ of a finite set, clause (b)).

[L7]

R is an ordered field: its order is total, a nonzero element has a multiplicative inverse, and a<b is equivalent to b−a>0 (Ordered field, Field).

Proof

technique · contradiction
1.1

Since X≠∅, [L6] gives ∣X∣≠0, hence ∣X∣≥1 and ι(∣X∣)>0 by [L5]; in particular ι(∣X∣)≠0, so μ=ι(∣R∣)/ι(∣X∣) names a single real number and ι(∣X∣) μ=ι(∣R∣).

givenL5L6L7
1.2

Applying [L2] to the list x↦∣Rx∣ and then [L1] gives ∑x∈Xι(∣Rx∣)=ι(∑x∈X∣Rx∣)=ι(∣R∣).

L1L2
1.3

A positive list over a nonempty finite index set has nonzero sum: if w:X→R has wx>0 for every x∈X and ∑x∈Xwx=0, then wx≥0 for every x, so [L4] forces wx=0 for every x∈X; as X has an element, its value is then both 0 and positive, which is impossible.

assume-contraL4L7
2.1

By [L3] with the constant μ, ∑x∈Xμ=ι(∣X∣) μ=ι(∣R∣), the second equality by step 1.1.

step 1.1L3
3.1

Suppose there were no x+ with ι(∣Rx+∣)≥μ. Since the order of R is total, ι(∣Rx∣)<μ for every x∈X, so wx:=μ−ι(∣Rx∣) is positive for every x; and by additivity, step 1.2 and step 2.1, ∑x∈Xwx+∑x∈Xι(∣Rx∣)=∑x∈Xμ, that is ∑x∈Xwx=ι(∣R∣)−ι(∣R∣)=0, contradicting step 1.3. So some x+∈X has ι(∣Rx+∣)≥μ.

step 1.2step 1.3step 2.1L4L7
3.2

Suppose there were no x− with ι(∣Rx−∣)≤μ. Then ι(∣Rx∣)>μ for every x∈X, so wx:=ι(∣Rx∣)−μ is positive for every x; the same computation gives ∑x∈Xwx=ι(∣R∣)−ι(∣R∣)=0, again contradicting step 1.3. So some x−∈X has ι(∣Rx−∣)≤μ.

step 1.2step 1.3step 2.1L4L7
4.1

Steps 3.1 and 3.2 are the two assertions of the statement.

step 3.1step 3.2discharge-contradiction∎

Remarks

  • Why X≠∅ is a hypothesis and not decoration. It is used twice: to make ι(∣X∣) invertible, so that μ exists at all, and to produce the element at which the vanishing test is contradicted. With X=∅ there is no fibre to exhibit and no quotient to compare it to.

  • The average lives in R and the fibre sizes live in N. A quotient of two natural numbers is not in general a natural number, so the comparison has to be made after both sides are carried into R by ι. This is the reason the statement is written with ι throughout rather than as ∣Rx∣≥∣R∣/∣X∣, which is not an inequality between elements of one ordered set.

  • Nothing is claimed about attainment. The proof produces an x+ and an x− and no more; a relation whose fibre sizes all differ from μ exists, and it is exhibited on the companion page.

DefinitionDefinition: AI-adaptedProof: Not applicablejudge pass (z-ai/glm-5.2)verified 2026-07-29 (claude-fable-5)Open item page →

⌈m/n⌉ for naturals m and n≥1: the least q∈N with m≤nq

Definition

Let m,n∈N with n≥1 (The natural numbers N (von Neumann), Order on the natural numbers, On N the order is membership: m<n  ⟺  m∈n), and put

Q(m,n)  :=  { q∈N : m≤n q },

the multiplication being that of N (Multiplication of natural numbers).

Q(m,n) is nonempty, so the definition below has something to pick from. Since n≠0, Every nonzero natural number is a successor gives n=σ(d) for some d∈N, and then n⋅m=σ(d)⋅m=d⋅m+m=m+d⋅m by the successor-left law of Distributivity and the successor law for multiplication and the commutativity of addition (Addition is commutative), so m≤n⋅m by the definition of the order (Order on the natural numbers), which asks for a natural j with m+j=nm and is met by j=d⋅m. Hence m∈Q(m,n).

Definition. ⌈m/n⌉ is the least element of Q(m,n), which exists by the well-ordering principle (The well-ordering principle) applied to the nonempty subset Q(m,n) of N. It is a natural number, and it is defined for n≥1 only.

Four clauses, recorded here because they are what the notation is used for.

(a) m≤n⌈m/n⌉. This is membership of ⌈m/n⌉ in Q(m,n).

(b) Minimality. If q∈N satisfies m≤nq then ⌈m/n⌉≤q; equivalently, every q with q<⌈m/n⌉ satisfies nq<m, by trichotomy (Trichotomy of the order on N).

(c) Two values read off directly. ⌈0/n⌉=0, since 0≤n⋅0 makes 0 the least element of N that qualifies; and ⌈m/1⌉=m, since m≤1⋅m=m while m≤1⋅q forces m≤q (Zero and one under multiplication, Multiplication is commutative).

(d) The reading in R. With ι:N→R the canonical natural (The canonical natural ι(n)=n⋅1F of a field), clause (a) gives ι(m)≤ι(n) ι(⌈m/n⌉) by the multiplicativity of ι (clause 0 of Laws of finite sums and products in N, and ι(∑k<nak)=∑k<nι(ak)) and its strict monotonicity (clause 7); and ι(n)>0 because n≥1. Since R is an ordered field (Ordered field, Field), dividing by ι(n) gives

ι(m)ι(n) ≤ ι(⌈m/n⌉).

Remarks

  • This is not a floor and it is not a ceiling function. It is defined for a pair of natural numbers with n≥1, its value is a natural number, and it is fixed by one order property and one minimality property. It is not defined for a real argument, it does not extend to negative numbers, and it carries no division: the symbol m/n inside the brackets is part of the notation and not an operation performed anywhere above.

  • Why it is introduced at all. The strong form of the pigeonhole principle says that some fibre has at least "the average, rounded up" elements, and that phrase needs a name for the rounding. The least q with m≤nq is exactly what the proof produces, and the well-ordering principle is exactly what makes it exist, so nothing stronger is required.

  • Nothing among this page's declared prerequisites supplies a division with remainder, and the definition above deliberately does not attempt one: no r with m=nq+r and r<n is produced or claimed here.

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

If ∣A∣>k∣B∣ then every f:A→B has a fibre with more than k elements, and for nonempty B some fibre has at least ⌈∣A∣/∣B∣⌉ elements

Statement

Let A and B be finite sets, let k∈N, let f:A→B, and for b∈B write

f−1[{b}]  :=  { a∈A : f(a)=b }

for the fibre of f over b (Injection, surjection, bijection). Then:

  1. The counting form. If ∣A∣>k ∣B∣ then there is b∈B with ∣f−1[{b}]∣>k.
  2. The ceiling form. If B≠∅ then there is b∈B with ∣f−1[{b}]∣≥⌈∣A∣/∣B∣⌉ (⌈m/n⌉ for naturals m and n≥1: the least q∈N with m≤nq, which is defined because ∣B∣≥1).

Every quantity here is a natural number and the comparisons are those of N (Order on the natural numbers). Clause 1 at k=0 says that a nonempty A has a nonempty fibre. Clause 1 is vacuous when B=∅, since then k ∣B∣=0, the hypothesis says A≠∅, and there is no function from a nonempty set to ∅ for the conclusion to be about. Clause 2 at A=∅ says only that some fibre has at least 0 elements, since ⌈0/∣B∣⌉=0.

Facts & Assumptions

Given: Finite sets A and B, a natural number k, a function f:A→B, and the fibres f−1[{b}] for b∈B.

[L2]

Monotonicity over a finite index set: if c,d:S→N satisfy ci≤di for every i∈S, then ∑i∈Sci≤∑i∈Sdi. Both sums are computed through one enumeration ψ:∣S∣→S (The sum ∑i∈Sai over a finite index set, and its product form), and cψ(j)≤dψ(j) for every j<∣S∣, so clause 4 of Laws of finite sums and products in N, and ι(∑k<nak)=∑k<nι(ak) applies (Finite sums and finite products, by recursion).

[L3]

A constant natural summand: ∑i∈Sk=∣S∣⋅k (The sum ∑i∈Sai over a finite index set, and its product form, clause (c)).

[L4]

Order and arithmetic of N: multiplication is commutative (Multiplication is commutative); exactly one of p<q, p=q, q<p holds (Trichotomy of the order on N); p<q if and only if σ(p)≤q (Discreteness: σ(n) is the immediate successor); every nonzero natural is a successor (Every nonzero natural number is a successor); and 0≤p for every p (Order on the natural numbers).

[L5]

The ceiling (⌈m/n⌉ for naturals m and n≥1: the least q∈N with m≤nq): for n≥1, ⌈m/n⌉ is the least q∈N with m≤nq, so any q<⌈m/n⌉ satisfies nq<m.

[L6]

∣B∣=0 if and only if B=∅ (The cardinality ∣A∣ of a finite set, clause (b)).

Proof

technique · contradiction
1.1

Suppose, for contradiction, that ∣A∣>k ∣B∣ and yet ∣f−1[{b}]∣≤k for every b∈B.

assume-contra
1.2

By [L1], ∣A∣=∑b∈B∣f−1[{b}]∣.

L1
1.3

For clause 2, assume B≠∅; then ∣B∣≠0 by [L6], so ∣B∣≥1 and c:=⌈∣A∣/∣B∣⌉ is defined, and B has at least one element.

L4L5L6
2.1

Clause 1. Under the assumption of step 1.1, monotonicity and the constant sum give ∣A∣=∑b∈B∣f−1[{b}]∣≤∑b∈Bk=∣B∣⋅k=k ∣B∣, which contradicts ∣A∣>k ∣B∣ by trichotomy. So the supposition of step 1.1 is untenable and clause 1 holds.

step 1.1step 1.2L2L3L4
2.2

Clause 2 when c=0. Choose any b∈B, available by step 1.3; then ∣f−1[{b}]∣≥0=c by [L4].

step 1.3L4
3.1

Clause 2 when c≠0. Write c=σ(q) by [L4]. Then q<c, so [L5] gives ∣B∣ q<∣A∣, that is ∣A∣>q ∣B∣ by commutativity; clause 1, established in step 2.1, therefore produces b∈B with ∣f−1[{b}]∣>q, and ∣f−1[{b}]∣≥σ(q)=c by [L4].

step 1.3step 2.1L4L5
4.1

Clause 1 is step 2.1, and clause 2 is steps 2.2 and 3.1, whose two cases are exhaustive.

step 2.1step 2.2step 3.1discharge-contradiction∎

Remarks

  • Where the ceiling earns its keep. Clause 2 is not a separate argument: it is clause 1 applied at the single value q with σ(q)=c, and the only thing that has to be checked is that this q satisfies ∣A∣>q∣B∣, which is exactly the minimality of c. That is the whole reason the ceiling was defined by minimality rather than by a division.

  • The case c=0 is not a degenerate nuisance. It occurs precisely when A=∅, where the conclusion is empty of content but still needs an element of B to be stated about, and that is where B≠∅ is spent in clause 2.

  • Disjointness of the fibres is free, since a fibre is determined by the value it lies over. This is what lets the sum rule be applied with no hypothesis beyond finiteness, in contrast to a union of arbitrary sets.

DefinitionDefinition: AI-adaptedProof: Not applicableverified 2026-08-03 (gpt-5.6-sol-codex-subscription)Open item page →

A finite family (Ai)i∈I of subsets of a finite set X, the intersections AJ for J⊆I, and the convention A∅=X

Definition

A sieve family consists of a finite set X, called the ambient set, a finite set I, called the index set, and a family (Ai)i∈I of subsets of X, that is a function I→P(X) (Finite, countably infinite, countable, uncountable, The cardinality ∣A∣ of a finite set). For J⊆I set

AJ  :=  {⋂i∈JAi,J≠∅,X,J=∅,

and write U:=⋃i∈IAi for the union of the family.

Why the ambient set has to be named, and why A∅:=X is a stipulation. For J≠∅ the intersection ⋂i∈JAi is the set of elements belonging to every Ai with i∈J, and it is determined by the family alone. For J=∅ that description is satisfied by every set whatsoever, so it determines nothing; an intersection of no subsets of X is X only relative to X. Naming X as part of the data and stipulating A∅=X is what makes the symbol AJ defined for all J⊆I, which is what the complementary form of the sieve identity requires.

(a) Every AJ is a finite subset of X. For J≠∅ pick i∈J; then AJ⊆Ai⊆X. For J=∅, AJ=X. In both cases AJ⊆X is finite by clause 1 of A subset of a finite set is finite, with ∣B∣≤∣A∣, and equality holds if and only if B=A, and so is U⊆X; hence ∣AJ∣ and ∣U∣ are natural numbers (The cardinality ∣A∣ of a finite set).

(b) The index sets of the sieve's sums are finite. P(I) is finite with ∣P(I)∣=2∣I∣ (∣P(A)∣=2∣A∣ for finite A); the set P(I)∖{∅} of nonempty subsets of I and the set [I]j of j-element subsets of I are subsets of P(I), hence finite (A subset of a finite set is finite, with ∣B∣≤∣A∣, and equality holds if and only if B=A), and ∣[I]j∣=(∣I∣j) (The set [A]k of k-element subsets and the binomial coefficient (nk):=∣[n]k∣).

(c) Monotonicity. If J⊆J′⊆I then AJ′⊆AJ. For J=∅ this is clause (a); otherwise an element lying in every Ai with i∈J′ lies in every Ai with i∈J.

(d) The trace of a point. For x∈X put

T(x)  :=  { i∈I : x∈Ai }⊆I,

a finite set. For every nonempty J⊆I,

x∈AJ  ⟺  J⊆T(x),

both sides saying that x∈Ai for every i∈J. And x∈U if and only if T(x)≠∅. Writing t(x):=∣T(x)∣, clause (b) applied to T(x) gives ∣[T(x)]j∣=(t(x)j), and for nonempty J the condition x∈AJ with ∣J∣=j says exactly that J∈[T(x)]j.

XA0A1A2xx2Af0;2g;T(x)=f0;2g.

Remarks

  • The counts stay in N; the identities do not. Each ∣AJ∣ is a natural number. Every identity that sieves them carries a minus sign, and N has no subtraction, so those identities are stated in R through the canonical natural and read back by its injectivity. That is a property of the identities, not of this definition, which introduces no arithmetic at all.

  • I is an arbitrary finite index set, not a natural number. Nothing below numbers the sets A0,A1,…; the subsets J⊆I are the objects the sums run over, and ∣J∣ rather than any position is what carries the sign.

  • The clause A∅=X supplies every empty-subfamily term. In the complementary form at J=∅ it contributes ∣X∣; later sieve instances also use it when identifying the intersection at the empty subfamily. Removing the stipulation would leave those terms undefined.

TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passverified 2026-07-29 (claude-fable-5)Open item page →

Inclusion and exclusion: ι∣⋃i∈IAi∣=∑∅≠J⊆I(−1)∣J∣+1 ι∣AJ∣, together with the complementary form counting the elements in none of the Ai

Statement

Let X, I, (Ai)i∈I and the intersections AJ be a sieve family (A finite family (Ai)i∈I of subsets of a finite set X, the intersections AJ for J⊆I, and the convention A∅=X), let U:=⋃i∈IAi, and let ι:N→R be the canonical natural (The canonical natural ι(n)=n⋅1F of a field). Then, in R:

  1. The sieve identity. ι∣U∣  =  ∑J∈P(I)∖{∅}(−1)∣J∣+1 ι∣AJ∣, the sum being over the finite index set of nonempty subsets of I.
  2. The complementary form. ι∣X∖U∣  =  ∑J∈P(I)(−1)∣J∣ ι∣AJ∣, the sum now being over all subsets of I, its term at J=∅ being ι∣X∣ by the stipulation A∅=X.

The identities are stated in R because their terms carry signs and N has no subtraction; every cardinality appearing is a natural number carried into R by ι, and ι is injective, so an identity between two of them may be read back in N (Laws of finite sums and products in N, and ι(∑k<nak)=∑k<nι(ak), clause 7).

Both readings at I=∅ are part of the statement. Then U=∅ and clause 1 reads 0=0, the index set of its sum being empty. Clause 2 reads ι∣X∣=ι∣A∅∣, its sum having the single term at J=∅. At ∣J∣=1 the sign in clause 1 is (−1)2=1 and A{i}=Ai, so the singleton terms enter with a plus sign.

Facts & Assumptions

Given: A sieve family X, I, (Ai)i∈I with intersections AJ, union U, traces T(x) and t(x):=∣T(x)∣, all as in A finite family (Ai)i∈I of subsets of a finite set X, the intersections AJ for J⊆I, and the convention A∅=X; the abbreviation J:=P(I)∖{∅}; and, for V⊆X, the indicator 1V:X→R with 1V(x)=1 for x∈V and 1V(x)=0 otherwise.

[L3]

Sums over a finite index set (The sum ∑i∈Sai over a finite index set, and its product form): the value is independent of the enumeration used; ∑i∈nai=∑i<nai (clause (a)); a sum over ∅ is 0 and a constant real summand gives ∑i∈Sλ=ι(∣S∣) λ (clause (c)).

[L5]

Additivity and scaling of a real finite sum over a finite index set: ∑i∈S(ui+vi)=∑i∈Sui+∑i∈Svi and ∑i∈Sλui=λ∑i∈Sui. Both are clauses 1 and 2 of Laws of finite sums and finite products read through an enumeration of S (The sum ∑i∈Sai over a finite index set, and its product form, Finite sums and finite products, by recursion).

[L6]

Partition of a power set by cardinality: for a finite S with N:=∣S∣, the sets [S]j for j∈σ(N) are pairwise disjoint with union P(S), since a subset of S has exactly one cardinality and that cardinality is at most N (A subset of a finite set is finite, with ∣B∣≤∣A∣, and equality holds if and only if B=A, clause 2).

[L7]

Powers of −1 and the alternating row sum: (−1)0=1 and (−1)p+1=−(−1)p (Integer powers am); and ∑j<t+1(−1)j ι(tj)=0 for every t≥1 (∑k<n+1(nk)=2n, and ∑k<n+1(−1)kι ⁣(nk)=0 for n≥1, clause 2). The hypothesis t≥1 there is not decoration: at t=0 that sum is 1.

[L8]

ι is additive and injective (Laws of finite sums and products in N, and ι(∑k<nak)=∑k<nι(ak), clauses 0 and 7), and R is an ordered field, so subtraction is available (Ordered field, Field).

Proof

technique · direct
1.1

Indicator sums. For every V⊆X one has ∑x∈X1V(x)=ι∣V∣: the sets V and X∖V are disjoint finite sets with union X, so [L2] splits the sum into ∑x∈V1+∑x∈X∖V0, which is ι∣V∣⋅1+ι∣X∖V∣⋅0=ι∣V∣ by the constant clause of [L3].

L1L2L3construct
1.2

The double list. Define h:J×X→R by h(J,x):=(−1)∣J∣+1 1AJ(x); both J and X are finite by [L1], so both iterated sums of h are defined.

L1construct
1.3

Fix x∈X and write t:=t(x). The sets J1:={ J∈J:J⊆T(x) } and J∖J1 are disjoint with union J; by [L1] we have 1AJ(x)=1 for J∈J1 and 1AJ(x)=0 for J∈J∖J1, so splitting by [L2] gives ∑J∈Jh(J,x)=∑J∈J1(−1)∣J∣+1, and J1=P(T(x))∖{∅}.

L1L2L3
1.4

Grouping the subsets of T(x) by size. By [L6] applied to T(x), then the constant clause of [L3] on each block, then scaling by −1 and (−1)j+1=−(−1)j from [L7], ∑J∈P(T(x))(−1)∣J∣+1=∑j<t+1(∑J∈[T(x)]j(−1)j+1)=∑j<t+1ι(tj) (−1)j+1=−∑j<t+1(−1)j ι(tj).

L1L2L3L5L6L7
1.5

Splitting off the empty subset. {∅} and P(T(x))∖{∅} are disjoint with union P(T(x)), so [L2] and [L7] give ∑J∈P(T(x))(−1)∣J∣+1=(−1)0+1+∑J∈P(T(x))∖{∅}(−1)∣J∣+1=−1+∑J∈P(T(x))∖{∅}(−1)∣J∣+1.

L2L3L7
2.1

The inner sum is the indicator of U. If t≥1 then [L7] makes the right-hand side of step 1.4 zero, so step 1.5 gives ∑J∈P(T(x))∖{∅}(−1)∣J∣+1=1. If t=0 then T(x)=∅, so P(T(x))∖{∅}=∅ and that sum is 0 by [L3]. Since x∈U exactly when t≥1 by [L1], step 1.3 gives ∑J∈Jh(J,x)=1U(x) for every x∈X.

step 1.3step 1.4step 1.5L1L3L7
2.2

The outer sum recovers the sieve terms. Scaling by the constant (−1)∣J∣+1 and applying step 1.1 to V=AJ gives ∑x∈Xh(J,x)=(−1)∣J∣+1 ι∣AJ∣ for every J∈J.

step 1.1L5
3.1

Clause 1. Summing step 2.2 over J, interchanging by [L4], and then using step 2.1 and step 1.1 with V=U: ∑J∈J(−1)∣J∣+1ι∣AJ∣=∑J∈J∑x∈Xh(J,x)=∑x∈X∑J∈Jh(J,x)=∑x∈X1U(x)=ι∣U∣.

step 1.1step 2.1step 2.2L4
4.1

Clause 2. The sets U and X∖U are disjoint finite sets with union X, so ∣X∣=∣U∣+∣X∖U∣ by [L2] and hence ι∣X∖U∣=ι∣X∣−ι∣U∣ by the additivity of ι in [L8]. On the other side, {∅} and J are disjoint with union P(I), so [L2], [L3] and [L7] give ∑J∈P(I)(−1)∣J∣ι∣AJ∣=ι∣A∅∣+∑J∈J(−1)∣J∣ι∣AJ∣=ι∣X∣−∑J∈J(−1)∣J∣+1ι∣AJ∣, which by step 3.1 is ι∣X∣−ι∣U∣. The two right-hand sides agree, which is clause 2.

step 3.1L2L3L5L7L8∎

Remarks

  • Where the alternating row sum is spent, and why its hypothesis matters. The whole content of the proof is that each x contributes 1 to the right-hand side when it lies in some Ai and 0 otherwise. The first case is the vanishing of the full alternating row sum of t(x), which holds only for t(x)≥1; the second case is not that identity at all but the emptiness of the index set. Applying the identity at t(x)=0 would give 1, not 0, and would make the theorem false.

  • The empty intersection is used once. Only in clause 2, at the term J=∅, where A∅=X contributes ι∣X∣. Clause 1 never mentions it.

  • No choice principle is used. A sum over a finite index set is defined because all its enumerations agree, not by selecting one, and the family (Ai)i∈I is given as a function.

LemmaStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (z-ai/glm-5.2)verified 2026-07-29 (claude-fable-5)Open item page →

∑j<m+1(−1)j ι(tj)=(−1)m ι(t−1m) for every t≥1 and every m

Statement

Let t∈N with t≥1 and let m∈N. Then, in R,

∑j<m+1(−1)j ι(tj)  =  (−1)m ι(t−1m),

where ι is the canonical natural (The canonical natural ι(n)=n⋅1F of a field), the binomial coefficients are the counts of The set [A]k of k-element subsets and the binomial coefficient (nk):=∣[n]k∣, and t−1 is the truncated difference of Finite sums and finite products of natural numbers, ∑k<nak and ∏k<nak in N, which for t≥1 is the ordinary one, so that (t−1)+1=t.

The hypothesis t≥1 is part of the statement. At t=0 and m=1 the left-hand side is ι(00)−ι(01)=1, while the truncated difference gives t−1=0 and the right-hand side is −ι(01)=0.

Two readings worth recording. At m=0 both sides are 1, since (t0)=(t−10)=1. For m≥t both sides are 0: the terms of the left-hand side with j>t vanish and the remaining sum is the full alternating row sum of t, which vanishes because t≥1, while (t−1m)=0 because m>t−1.

Facts & Assumptions

Given: Naturals t≥1 and m; the abbreviation s:=t−1, so that s+1=t (Finite sums and finite products of natural numbers, ∑k<nak and ∏k<nak in N, Order on the natural numbers); the real finite sum of Finite sums and finite products, by recursion; and integer powers (Integer powers am) in the ordered field R (Ordered field, Field).

[L1]

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

[L2]

Recursion clauses of the real finite sum: ∑j<0uj=0 and ∑j<p+1uj=∑j<puj+up (Finite sums and finite products, by recursion, Laws of finite sums and finite products).

[L3]

Pascal's rule, with no restriction relating the two indices: (n+1k+1)=(nk)+(nk+1) for all n,k∈N (Pascal's rule (n+1k+1)=(nk)+(nk+1), and the hockey-stick identity ∑i≤n(ik)=(n+1k+1), clause 1).

[L5]

Powers of −1: (−1)0=1 and (−1)p+1=(−1)p⋅(−1)=−(−1)p (Integer powers am).

Proof

technique · induction
1.1

Fix t≥1 and write s:=t−1, so that s+1=t; the claim is proved by induction on m, for this fixed t.

given
1.2

Base case m=0. By [L2] the left-hand side is the single term (−1)0ι(t0), which is 1 by [L4] and [L5]; and the right-hand side is (−1)0ι(s0)=1 for the same reason.

baseL2L4L5
1.3

Inductive hypothesis: fix m and assume ∑j<m+1(−1)jι(tj)=(−1)mι(sm).

ih
1.4

Pascal's rule at n=s and k=m, together with s+1=t, gives (tm+1)=(sm)+(sm+1), hence ι(tm+1)=ι(sm)+ι(sm+1) by the additivity of ι.

L3L4
2.1

By the recursion clause of [L2] and the hypothesis of step 1.3, ∑j<m+2(−1)jι(tj)=(−1)mι(sm)+(−1)m+1ι(tm+1).

step 1.3L2
3.1

Substituting step 1.4 into step 2.1 and using (−1)m+1=−(−1)m from [L5]: (−1)mι(sm)+(−1)m+1(ι(sm)+ι(sm+1))=(−1)mι(sm)−(−1)mι(sm)+(−1)m+1ι(sm+1)=(−1)m+1ι(sm+1).

step 1.4step 2.1L5algebra
4.1

So the claim holds at m+1 whenever it holds at m, and it holds at m=0; by [L1] it holds for every m∈N, for the fixed t≥1, which was arbitrary.

step 1.2step 1.3step 3.1L1discharge-induction∎

Remarks

  • Where t≥1 is spent. In exactly one place: the identity s+1=t, which is what lets Pascal's rule be applied with upper index s+1. Under the truncated difference the equation s+1=t fails at t=0, where s=0 and s+1=1, and the statement fails there too.

  • Why not the full alternating row sum. The published corollary of the binomial theorem gives the sum over the whole row, and only for t≥1. A truncation of that row is a different quantity, and the identity above is what says how far a truncation misses: by exactly one binomial coefficient of the row above, with the sign of the last term kept.

TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passverified 2026-08-03 (gpt-5.6-sol-codex-subscription)Open item page →

Truncating the sieve at an odd depth over-estimates the size of the union and truncating it at an even depth under-estimates it

Statement

Let X, I, (Ai)i∈I and the intersections AJ be a sieve family (A finite family (Ai)i∈I of subsets of a finite set X, the intersections AJ for J⊆I, and the convention A∅=X), let U:=⋃i∈IAi, put N:=∣I∣, and let ι be the canonical natural (The canonical natural ι(n)=n⋅1F of a field). For j∈N and m∈N set

Sj  :=  ∑J∈[I]jι∣AJ∣,Tm  :=  ∑i<m(−1)i Si+1,

the first sum being over the finite set of j-element subsets of I and the second the real finite sum of Finite sums and finite products, by recursion. Thus T0=0, T1=S1 and T2=S1−S2. Then, in R:

  1. Odd truncation over-estimates. ι∣U∣≤T2r+1 for every r∈N.
  2. Even truncation under-estimates. ι∣U∣≥T2r for every r∈N.
  3. Both are equalities once the truncation reaches ∣I∣. Tm=ι∣U∣ for every m≥N.

Clause 1 at r=0 is the union bound ι∣U∣≤S1, and clause 2 at r=0 is the trivial ι∣U∣≥T0=0; the first substantial even case is r=1, where T2=S1−S2.

Facts & Assumptions

Given: A sieve family X, I, (Ai)i∈I with intersections AJ, union U, traces T(x) and t(x):=∣T(x)∣ (A finite family (Ai)i∈I of subsets of a finite set X, the intersections AJ for J⊆I, and the convention A∅=X); N:=∣I∣; the quantities Sj and Tm of the Statement; and, for V⊆X, the indicator 1V:X→R with value 1 on V and 0 off it.

[L3]

Splitting a sum along a partition of its index set (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, clause 3); and, for sums over a finite index set, the bridge ∑i∈nui=∑i<nui, the empty index set and the constant summand (The sum ∑i∈Sai over a finite index set, and its product form, clauses (a) and (c)).

[L5]

Real finite-sum laws, read over a finite index set through an enumeration (The sum ∑i∈Sai over a finite index set, and its product form): additivity, scaling, splitting at an index and monotonicity (Laws of finite sums and finite products, clauses 1 to 4, Finite sums and finite products, by recursion).

[L6]

The partial alternating row sum: ∑j<M+1(−1)jι(tj)=(−1)Mι(t−1M) for every t≥1 and every M (∑j<m+1(−1)j ι(tj)=(−1)m ι(t−1m) for every t≥1 and every m).

[L7]

Powers of −1: (−1)0=1 and (−1)p+1=−(−1)p (Integer powers am); and (−1)2r=1, (−1)2r+1=−1. For the last two, (−1)2r=((−1)2)r=1r by clause 1 of Laws of integer exponents, and 1r=ι(1)r=ι(1r)=ι(1)=1 by clauses (b) and (d) of Exponentiation of natural numbers, mn, and its agreement with the integer power in R with The canonical natural ι(n)=n⋅1F of a field; then (−1)2r+1=(−1)2r⋅(−1)=−1.

[L9]

Boundary values of a binomial coefficient: (n0)=1 for every n, while (nj)=0 whenever j>n, so in particular (0j)=0 for j≥1 (The set [A]k of k-element subsets and the binomial coefficient (nk):=∣[n]k∣); ι(0)=0 and ι(p)≥0 for every natural p, ι being strictly increasing with ι(0)=0 (Laws of finite sums and products in N, and ι(∑k<nak)=∑k<nι(ak), clause 7).

[L10]

R is an ordered field (Ordered field, Field).

Proof

technique · direct
1.1

Each Sj with j≥1 counted pointwise. By [L1], ι∣AJ∣=∑x∈X1AJ(x) for every J⊆I; interchanging the resulting double sum by [L4] gives Sj=∑x∈X(∑J∈[I]j1AJ(x)). For j≥1 every J∈[I]j is nonempty, so by [L2] the inner sum is ι of the number of J∈[I]j with J⊆T(x), that is ι∣[T(x)]j∣=ι(t(x)j). Hence Sj=∑x∈Xι(t(x)j) for every j≥1.

L1L2L4
1.2

The pointwise truncation. For x∈X and m∈N put cm(x):=∑i<m(−1)i ι(t(x)i+1).

construct
1.3

A closed form for cm(x). Splitting ∑j<m+1(−1)jι(t(x)j) at the index 1 by [L5] gives (−1)0ι(t(x)0)+∑i<m(−1)1+iι(t(x)1+i), which by [L7] and scaling is 1−cm(x); hence cm(x)=1−∑j<m+1(−1)jι(t(x)j). So cm(x)=1−(−1)mι(t(x)−1m) when t(x)≥1, by [L6]. When t(x)=0 every term of cm(x) is ι(0i+1)=0 by [L9], so cm(x)=0.

L5L6L7L9
2.1

Tm counted pointwise. Scaling step 1.1 by (−1)i gives (−1)iSi+1=∑x∈X(−1)iι(t(x)i+1) for every i; summing over i∈m, using ∑i∈m=∑i<m from [L3] and interchanging by [L4], gives Tm=∑x∈Xcm(x) for every m∈N.

step 1.1step 1.2L3L4L5
2.2

The pointwise comparison. Let x∈X and r∈N. If x∉U then t(x)=0 by [L2], so c2r(x)=c2r+1(x)=0=1U(x) by step 1.3. If x∈U then t(x)≥1, and step 1.3 with [L7] gives c2r+1(x)=1+ι(t(x)−12r+1)≥1=1U(x) and c2r(x)=1−ι(t(x)−12r)≤1=1U(x), since ι of a natural number is at least 0 by [L9]. So c2r+1(x)≥1U(x)≥c2r(x) for every x∈X.

step 1.3L2L7L9L10
3.1

Clauses 1 and 2. Monotonicity of a finite sum over the index set X, applied to step 2.2, gives ∑x∈Xc2r(x)≤∑x∈X1U(x)≤∑x∈Xc2r+1(x); the middle term is ι∣U∣ by [L1] and the outer two are T2r and T2r+1 by step 2.1.

step 2.1step 2.2L1L5
4.1

Clause 3. The sets [I]i+1 for i∈N are pairwise disjoint with union P(I)∖{∅}, since a nonempty J⊆I has exactly one cardinality and it satisfies 1≤∣J∣≤N by [L2]; splitting the sieve sum along this partition, and using (−1)∣J∣+1=(−1)i+2=(−1)i for J∈[I]i+1 from [L7], gives ∑J∈P(I)∖{∅}(−1)∣J∣+1ι∣AJ∣=∑i<N(−1)iSi+1=TN, which equals ι∣U∣ by [L8]. For m≥N, splitting Tm at the index N by [L5] and noting that i≥N forces i+1>N, hence [I]i+1=∅ and Si+1=0 by [L2], [L3] and [L9], gives Tm=TN=ι∣U∣; with step 3.1 this completes all three clauses.

step 3.1L2L3L5L7L8L9∎

Remarks

  • Why the parity is written as 2r and 2r+1. Nothing among this page's declared prerequisites defines the words even and odd, and the statement needs only the two families of truncation depths, which the two displayed forms name directly. The sign facts (−1)2r=1 and (−1)2r+1=−1 are then the whole use of parity in the proof.

  • Where the error term comes from. Step 1.3 says that a truncation at depth m misses the indicator of U at a point of trace size t≥1 by exactly (−1)mι(t−1m), a single binomial coefficient. The sign of that term is what makes the inequality go one way for one parity and the other way for the other, and its nonnegativity is what makes the inequality hold at all.

  • A point outside the union contributes nothing at any depth, which is why no hypothesis relating X to U appears. The ambient set may be much larger than the union without affecting either side.

TheoremStatement: AI-adaptedProof: AI-adaptedprecheck passverified 2026-08-03 (gpt-5.6-sol-codex-subscription)Open item page →

The number of surjections from an n-element set onto a k-element set is ∑i<k+1(−1)i(ki)(k−i)n, read in R through ι

Statement

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

Surj⁡(A,B):={ f:f is a surjection A→B }

(Injection, surjection, bijection). Then Surj⁡(A,B) is finite and, in R,

ι∣Surj⁡(A,B)∣  =  ∑i<k+1(−1)i ι(ki) ι((k−i) n),

where ι is the canonical natural (The canonical natural ι(n)=n⋅1F of a field), (k−i)n is the N-valued power of Exponentiation of natural numbers, mn, and its agreement with the integer power in R, and k−i is the truncated difference of Finite sums and finite products of natural numbers, ∑k<nak and ∏k<nak in N, which is the ordinary one throughout the range i≤k of the sum.

All three degenerate readings are part of the statement, and each is computed rather than stipulated.

Facts & Assumptions

Given: Finite sets A and B with n:=∣A∣ and k:=∣B∣; the set Map⁡(A,B) of all functions A→B; and, for b∈B, the set Fb:={ f∈Map⁡(A,B):b∉f[A] } of functions missing the value b.

[L1]

Map⁡(A,B) is finite with ∣Map⁡(A,B)∣=k n. This is The set AB of functions B→A between finite sets is finite, with ∣AB∣=∣A∣∣B∣ with its A taken to be B and its B taken to be A, so that its AB is the set of functions A→B and its formula reads ∣B∣∣A∣=k n (Exponentiation of natural numbers, mn, and its agreement with the integer power in R).

[L2]

(Fb)b∈B is a family of subsets of the finite set X:=Map⁡(A,B) indexed by the finite set B, hence a sieve family with ambient set X, and its intersections FJ for J⊆B satisfy F∅=X (A finite family (Ai)i∈I of subsets of a finite set X, the intersections AJ for J⊆I, and the convention A∅=X, A subset of a finite set is finite, with ∣B∣≤∣A∣, and equality holds if and only if B=A, The cardinality ∣A∣ of a finite set).

[L3]

f∈Map⁡(A,B) is a surjection exactly when f[A]=B, that is exactly when there is no b∈B with b∉f[A] (Injection, surjection, bijection). Hence Surj⁡(A,B)=X∖⋃b∈BFb, and it is finite as a subset of X (A subset of a finite set is finite, with ∣B∣≤∣A∣, and equality holds if and only if B=A).

[L4]

For a finite sieve family (Fb)b∈B in X with F∅=X, the complementary identity is ι∣X∖⋃b∈BFb∣=∑J∈P(B)(−1)∣J∣ι∣FJ∣ (Inclusion and exclusion: ι∣⋃i∈IAi∣=∑∅≠J⊆I(−1)∣J∣+1 ι∣AJ∣, together with the complementary form counting the elements in none of the Ai, clause 2).

[L6]

Partition of a power set by cardinality: the sets [B]i for i∈σ(k) are pairwise disjoint with union P(B), since a subset of B has exactly one cardinality and it is at most k; and ∣[B]i∣=(ki) (A subset of a finite set is finite, with ∣B∣≤∣A∣, and equality holds if and only if B=A, clause 2, The set [A]k of k-element subsets and the binomial coefficient (nk):=∣[n]k∣, ∣P(A)∣=2∣A∣ for finite A).

[L7]

Splitting a sum along a partition of its index set (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, clause 3); a constant real summand ∑p∈Sλ=ι(∣S∣)λ and the bridge ∑i∈nui=∑i<nui (The sum ∑i∈Sai over a finite index set, and its product form, clauses (a) and (c)); and the real finite sum itself (Finite sums and finite products, by recursion).

Proof

technique · direct
1.1

The ambient set. Put X:=Map⁡(A,B); it is finite with ∣X∣=k n by [L1].

L1
1.2

The sieve family. For b∈B the set Fb of functions missing b is a subset of X, and by [L3] a function f∈X is a surjection exactly when f∉⋃b∈BFb; so Surj⁡(A,B)=X∖⋃b∈BFb is the complement of the union of the sieve family (Fb)b∈B inside X.

L2L3construct
1.3

The intersections are function sets. For every J⊆B, FJ=Map⁡(A,B∖J): for J≠∅, f∈FJ says that f misses every b∈J, that is that f takes all its values in B∖J; and for J=∅ both sides are Map⁡(A,B), the left by the stipulation F∅=X of [L2]. Hence ∣FJ∣=∣B∖J∣ n=(k−∣J∣) n by [L1] applied to B∖J and by [L5].

L1L2L5
2.1

The sieve. Applying [L4] to the family of step 1.2 and substituting step 1.3, ι∣Surj⁡(A,B)∣=∑J∈P(B)(−1)∣J∣ ι∣FJ∣=∑J∈P(B)(−1)∣J∣ ι((k−∣J∣) n).

step 1.2step 1.3L4
3.1

Grouping the subsets of B by size. Splitting the last sum along the partition of [L6] and using the constant clause of [L7] on each block, where the summand depends on J only through ∣J∣=i, gives ∑J∈P(B)(−1)∣J∣ι((k−∣J∣) n)=∑i<k+1ι(ki) (−1)i ι((k−i) n).

step 2.1L6L7
4.1

Combining steps 2.1 and 3.1 gives ι∣Surj⁡(A,B)∣=∑i<k+1(−1)i ι(ki) ι((k−i) n), and Surj⁡(A,B) is finite by [L3]; since ι is injective, the identity determines the count in N.

step 2.1step 3.1L3L8∎

Remarks

  • The convention 00=1 is load bearing exactly once, at n=0 and k=0, where the formula returns ι(00) and the truth is that the empty function is a surjection onto the empty set. It is not a convenience: it is the base clause of the recursion defining natural exponentiation, and changing it would make the formula false at that single point.

  • Why the family is indexed by B and not by A. The sieve removes the functions that miss a value, and there is one condition per element of the codomain. This is also why the alternating sum runs to k and not to n.

  • The count is a natural number. The identity is stated in R because it carries signs, and ι is injective, so it pins down the natural number ∣Surj⁡(A,B)∣ exactly.

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

The derangement number Dn: the number of bijections of an n-element set with no fixed point

Definition

Let A be a finite set. A derangement of A is a bijection f:A→A with f(a)≠a for every a∈A (Injection, surjection, bijection). Write

Der⁡(A):={ f∈Bij⁡(A) : f(a)≠a for every a∈A },

where Bij⁡(A) is the set of bijections of A onto itself.

Der⁡(A) is finite. Bij⁡(A) is finite with ∣Bij⁡(A)∣=∣A∣! (A finite set A with ∣A∣=n has exactly n! bijections onto itself, and n! bijections onto any set of the same cardinality, The factorial n! and the falling factorial nk‾, defined by recursion in N), and Der⁡(A) is a subset of it, hence finite (A subset of a finite set is finite, with ∣B∣≤∣A∣, and equality holds if and only if B=A, clause 1). So ∣Der⁡(A)∣ is a natural number (The cardinality ∣A∣ of a finite set).

The count depends only on ∣A∣. Let h:A→A′ be a bijection of finite sets. The map f↦h∘f∘h−1 sends Bij⁡(A) into Bij⁡(A′), since composites and inverses of bijections are bijections, and it sends Der⁡(A) into Der⁡(A′): if h(f(h−1(a′)))=a′ for some a′∈A′ then, applying h−1 and writing a:=h−1(a′), we get f(a)=a. The map g↦h−1∘g∘h is a two-sided inverse, so Der⁡(A)≈Der⁡(A′) and the two sets have the same cardinality by the transport clause (c) of The cardinality ∣A∣ of a finite set.

Definition. For n∈N (The natural numbers N (von Neumann)) set

Dn  :=  ∣Der⁡(n)∣∈N,

the derangement number. Since ∣n∣=n, the previous paragraph gives ∣Der⁡(A)∣=D∣A∣ for every finite set A.

Three values, read off the definition and not stipulated.

  • D0=1. Here 0=∅, the only function ∅→∅ is the empty function, it is a bijection, and the condition "f(a)≠a for every a∈∅" holds vacuously. So Der⁡(∅)={∅}.
  • D1=0. Here 1={0} and the only bijection of {0} is the identity, which fixes 0.
  • D2=1. Here 2={0,1}, the two bijections are the identity and the exchange of 0 and 1, and only the second is fixed-point free.

Remarks

  • A set of bijections, with no group vocabulary. The object counted is a set of functions. Nothing among this page's declared prerequisites defines a symmetric group, a permutation cycle or a conjugacy class, and no result about Dn stated here needs one.

  • D0=1 is not a convention. It is what the definition returns at n=0, and it is the value that makes the closed formula and the first recurrence true at their first legal index. A text that sets D0=1 "by convention" is stipulating what is here computed.

TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passverified 2026-08-03 (gpt-5.6-sol-codex-subscription)Open item page →

ι(Dn)=ι(n!)∑i<n+1(−1)i/ι(i!), with the term at i=0 equal to 1 and D0=1

Statement

For every n∈N, in R,

ι(Dn)  =  ι(n!)∑i<n+1(−1)iι(i!),

where Dn is the derangement number (The derangement number Dn: the number of bijections of an n-element set with no fixed point), n! the factorial (The factorial n! and the falling factorial nk‾, defined by recursion in N) and ι the canonical natural (The canonical natural ι(n)=n⋅1F of a field). Each division is legitimate because i!≠0, hence ι(i!)≠0.

The index runs from 0, and the term at i=0 is (−1)0/ι(0!)=1. At n=0 the identity reads ι(D0)=ι(0!)⋅1=1, which agrees with D0=1; at n=1 it reads ι(D1)=1⋅(1−1)=0; and at n=2 it reads ι(D2)=2⋅(1−1+1/2)=1.

Since ι is injective, the identity determines Dn as a natural number (Laws of finite sums and products in N, and ι(∑k<nak)=∑k<nι(ak), clause 7).

Facts & Assumptions

Given: A natural number n, the set X:=Bij⁡(n) of bijections of n onto itself, and, for a∈n, the set Aa:={ f∈X:f(a)=a } of bijections fixing a.

[L3]

Der⁡(n)=X∖⋃a∈nAa, since a bijection of n is a derangement exactly when it fixes no point (The derangement number Dn: the number of bijections of an n-element set with no fixed point, Injection, surjection, bijection).

[L4]

For a finite sieve family (Aa)a∈n in X with A∅=X, the complementary identity is ι∣X∖⋃a∈nAa∣=∑J∈P(n)(−1)∣J∣ι∣AJ∣ (Inclusion and exclusion: ι∣⋃i∈IAi∣=∑∅≠J⊆I(−1)∣J∣+1 ι∣AJ∣, together with the complementary form counting the elements in none of the Ai, clause 2).

[L5]
[L9]

R is an ordered field, so division by a nonzero element is available (Ordered field, Field); and (−1)0=1 (Integer powers am).

Proof

technique · direct
1.1

The ambient set and the sieve family. X=Bij⁡(n) is finite with ∣X∣=n! by [L1], the sets Aa for a∈n are subsets of X, and Der⁡(n) is the complement in X of their union by [L3].

L1L2L3construct
1.2

The intersections are bijection sets of a smaller set. For J⊆n the map f↦f ⁣↾ ⁣(n∖J) is a bijection of AJ onto Bij⁡(n∖J). Indeed a bijection f of n fixing every point of J has f[J]=J, hence f[n∖J]=n∖J by injectivity, so its restriction is a bijection of n∖J; conversely a bijection g of n∖J extends by the identity on J to a bijection of n fixing every point of J, and the two constructions are mutually inverse. For J=∅ both sides are X, by the stipulation of [L2].

L1L2L3construct
1.3

Hence ∣AJ∣=∣n∖J∣!=(n−∣J∣)! for every J⊆n, by [L1] applied to n∖J and by [L7].

L1L7
2.1

The sieve. Applying [L4] to the family of step 1.1 and substituting step 1.3, ι(Dn)=ι∣Der⁡(n)∣=∑J∈P(n)(−1)∣J∣ ι((n−∣J∣)!).

step 1.1step 1.2step 1.3L4
3.1

Grouping the subsets of n by size. Splitting along the partition of [L5] and using the constant clause of [L6] on each block, where the summand depends on J only through ∣J∣=i, gives ι(Dn)=∑i<n+1ι(ni) (−1)i ι((n−i)!).

step 2.1L5L6
4.1

Each coefficient collapses. For i<n+1, that is i≤n, [L8] gives ι(ni) ι((n−i)!)=ι(n!)/ι(i!), so the i-th summand of step 3.1 is (−1)i ι(n!)/ι(i!); scaling the sum by the constant ι(n!) through [L6] gives ι(Dn)=ι(n!)∑i<n+1(−1)i/ι(i!).

step 3.1L6L8L9∎

Remarks

CorollaryStatement: Literature-sourcedProof: AI-generatedprecheck passjudge pass (z-ai/glm-5.2)verified 2026-07-29 (claude-fable-5)Open item page →

ι(Dn)=ι(n) ι(Dn−1)+(−1)n for n≥1, and Dn=(n−1)(Dn−1+Dn−2) for n≥2

Statement

Let Dn be the derangement numbers (The derangement number Dn: the number of bijections of an n-element set with no fixed point) and ι the canonical natural (The canonical natural ι(n)=n⋅1F of a field). Then:

  1. For every n≥1, in R, ι(Dn)  =  ι(n) ι(Dn−1)+(−1)n.
  2. For every n≥2, in N, Dn  =  (n−1) (Dn−1+Dn−2).

All differences are the truncated ones (Finite sums and finite products of natural numbers, ∑k<nak and ∏k<nak in N), which in the stated ranges are the ordinary ones.

Both hypotheses are exactly what the proofs need, and nothing is asserted outside them. Clause 1 is proved from the identity n=(n−1)+1 and its consequence n!=(n−1)!⋅n, both of which fail at n=0 under the truncated difference, where n−1 is 0; so n=1 is its first legal index, and there it reads ι(D1)=ι(1) ι(D0)−1=0. Clause 2 is derived by applying clause 1 twice, at n and at n−1, so it needs n−1≥1; its first legal index is n=2, where it reads D2=1⋅(D1+D0)=1. Under the truncated difference the two displayed formulas happen also to be true at n=0 and at n=1 respectively, both sides being 1 in the first case and 0 in the second, but neither of those readings is proved here and neither is claimed.

Facts & Assumptions

Given: A natural number n with n≥1 in clause 1 and n≥2 in clause 2; the abbreviation p:=n−1, so that p+1=n (Order on the natural numbers, Finite sums and finite products of natural numbers, ∑k<nak and ∏k<nak in N, Every nonzero natural number is a successor).

[L1]

The derangement formula: ι(Dm)=ι(m!)∑i<m+1(−1)i/ι(i!) for every m∈N (ι(Dn)=ι(n!)∑i<n+1(−1)i/ι(i!), with the term at i=0 equal to 1 and D0=1).

[L2]

Recursion clause of the real finite sum: ∑i<q+1ui=∑i<qui+uq (Finite sums and finite products, by recursion, Laws of finite sums and finite products).

[L3]

Factorials: σ(m)!=m!⋅σ(m), so n!=p!⋅n when p+1=n; and m!≠0 for every m (The factorial n! and the falling factorial nk‾, defined by recursion in N).

[L4]

ι is additive and multiplicative with ι(1)=1, and it is injective (Laws of finite sums and products in N, and ι(∑k<nak)=∑k<nι(ak), clauses 0 and 7, The canonical natural ι(n)=n⋅1F of a field). In particular ι(n)−1=ι(p) when p+1=n, and ι(m!)≠0.

[L5]

Powers of −1: (−1)0=1 and (−1)q+1=−(−1)q (Integer powers am).

[L6]

R is an ordered field, so subtraction and division by a nonzero element are available (Ordered field, Field).

Proof

technique · direct
1.1

Let n≥1 and put p:=n−1, so p+1=n. Then n!=p!⋅n by [L3], hence ι(n!)=ι(p!) ι(n) by [L4], and both ι(n!) and ι(p!) are nonzero.

givenL3L4
1.2

The formula at p. By [L1] and p+1=n, ι(Dp)=ι(p!)∑i<n(−1)i/ι(i!).

L1
1.3

Splitting the sum at its last index. By [L2], ∑i<n+1(−1)i/ι(i!)=∑i<n(−1)i/ι(i!)+(−1)n/ι(n!).

L2
2.1

Clause 1. Multiplying step 1.3 by ι(n!) and using [L1] at m=n, step 1.1 and step 1.2, ι(Dn)=ι(n!)∑i<n(−1)i/ι(i!)+(−1)n=ι(n) ι(p!)∑i<n(−1)i/ι(i!)+(−1)n=ι(n) ι(Dp)+(−1)n.

step 1.1step 1.2step 1.3L1L6
3.1

Now let n≥2, so that p=n−1≥1 and p−1=n−2. Applying step 2.1 at p in place of n gives ι(Dp)=ι(p) ι(Dn−2)+(−1)p, hence (−1)p=ι(Dp)−ι(p) ι(Dn−2); and (−1)n=(−1)p+1=−(−1)p by [L5], so (−1)n=ι(p) ι(Dn−2)−ι(Dp).

step 2.1L5L6
4.1

Clause 2. Substituting step 3.1 into step 2.1, ι(Dn)=ι(n) ι(Dp)−ι(Dp)+ι(p) ι(Dn−2)=(ι(n)−1)ι(Dp)+ι(p) ι(Dn−2)=ι(p)(ι(Dp)+ι(Dn−2)), using ι(n)−1=ι(p) from [L4]; the right-hand side is ι(p (Dn−1+Dn−2)) by the additivity and multiplicativity of ι, so Dn=(n−1)(Dn−1+Dn−2) by injectivity.

step 2.1step 3.1L4L6algebra∎

Remarks

  • Clause 2 is derived from clause 1 and not from the formula. Two instances of clause 1, at n and at n−1, are enough, and that is why clause 2 begins one index later: the second instance needs n−1≥1.

  • Why clause 1 is stated in R and clause 2 in N. Clause 1 carries the term (−1)n, which is not a natural number when n is odd. Clause 2 has no signs left in it, both sides are counts, and injectivity of ι carries the identity back into N where it belongs.

  • The truncated difference is why the hypotheses have to be written out. Under it the symbols Dn−1 and Dn−2 never become ill formed: at n=0 the first reads D0 and at n=1 the second reads D0 as well. So a reader cannot tell from the shape of the formula where it stops being proved, and the ranges n≥1 and n≥2 have to be stated rather than inferred.

DefinitionDefinition: AI-adaptedProof: Not applicableverified 2026-08-03 (gpt-5.6-sol-codex-subscription)Open item page →

A finite list of reals, and its strictly increasing and strictly decreasing sublists

Definition

Let N∈N (The natural numbers N (von Neumann)). A finite list of reals of length N is a function a:N→R, written ai for a(i); here N={ i:i<N } is the von Neumann natural itself (On N the order is membership: m<n  ⟺  m∈n, Order on the natural numbers), so the indices are 0,1,…,N−1 and the list of length 0 is the empty function. The list is pairwise distinct when a is injective, that is when ai≠aj whenever i≠j (Injection, surjection, bijection).

A sublist of a of length L, for L∈N, is a function s:L→N that is strictly increasing on indices, meaning s(p)<s(q) whenever p<q<L; its terms are as(0),…,as(L−1). Such an s is injective, since natural-order trichotomy gives p<q or q<p when p≠q, and hence s(p)≠s(q) (Trichotomy of the order on N).

The sublist s is

  • strictly increasing when as(p)<as(q) for all p<q<L;
  • strictly decreasing when as(p)>as(q) for all p<q<L,

the order being that of the ordered field R (Ordered field).

Boundary readings, which are part of the definition and not exceptions. A sublist of length 0 or 1 has no pair p<q<L at all, so it is both strictly increasing and strictly decreasing, vacuously. A list of length N has a sublist of length 1 exactly when N≥1, namely s(0):=i for any i<N; and it has no sublist of length L with L>N, since s would be an injection of L into N, contrary to the finite pigeonhole principle (The pigeonhole principle on N, clause 2).

Every count here is a natural number. The length of a list and the length of a sublist are naturals, and no cardinality of an infinite set is used; a list is a function on a natural number, so it is finite in the sense of The cardinality ∣A∣ of a finite set.

Remarks

  • A sublist is a choice of positions, not a choice of values. Two positions carrying equal values are different sublists of length 1. This is why the monotonicity conditions are stated on as(p) and as(q) rather than on a set of values, and why the pairwise-distinctness hypothesis has to be imposed separately when a result needs it.

  • Strictness on both sides. The indices increase strictly, so a sublist reads the list left to right without repeating a position; the values increase or decrease strictly, so no two terms of a monotone sublist are equal. Neither strictness is redundant: a list may repeat a value, and then a nondecreasing sublist could be longer than any strictly increasing one.

  • The empty list. At N=0 the only sublists are the empty one, of length 0. Any statement asserting the existence of a sublist of length 1 is therefore false at N=0, and any statement about lists of length mn+1 has content at m=0 or n=0 precisely because mn+1≥1.

TheoremStatement: AI-adaptedProof: AI-adaptedprecheck passverified 2026-08-03 (gpt-5.6-sol-codex-subscription)Open item page →

Every list of mn+1 pairwise distinct reals has a strictly increasing sublist of length m+1 or a strictly decreasing sublist of length n+1

Statement

Let m,n∈N and let a:(mn+1)→R be a pairwise distinct finite list of reals of length mn+1 (A finite list of reals, and its strictly increasing and strictly decreasing sublists). Then a has a strictly increasing sublist of length m+1 or a strictly decreasing sublist of length n+1.

The length mn+1 is at least 1 for all m and n, so the statement has content at every pair of indices. At m=0 the list has one term and the required increasing sublist has length 1, which the single position supplies; at n=0 the same reading holds for the decreasing sublist, and the increasing one of length 1 is also available.

Facts & Assumptions

Given: Naturals m and n, the length N:=mn+1, and a pairwise distinct list a:N→R. For i<N and L≥1, call s:L→N an increasing run ending at i when s is a strictly increasing sublist of a (in both senses of A finite list of reals, and its strictly increasing and strictly decreasing sublists) with s(L−1)=i, and define a decreasing run ending at i in the same way with the values strictly decreasing.

[L1]

A nonempty subset of N with an upper bound has a greatest element. Let E⊆N be nonempty with E⊆σ(M) for some M. Every e∈E then satisfies e≤M by On N the order is membership: m<n  ⟺  m∈n, so the set C:={ c∈N:e≤c for every e∈E } contains M and has a least element c0 by The well-ordering principle. If c0∉E then every e∈E satisfies e≤c0 and e≠c0, hence e<c0 and σ(e)≤c0 by Discreteness: σ(n) is the immediate successor; since E is nonempty, c0≠0, so c0=σ(c1) for some c1 (Every nonzero natural number is a successor) and e≤c1 for every e∈E, putting c1∈C below c0 and contradicting minimality. So c0∈E and c0 is the greatest element of E.

[L2]

For every i<N there is an increasing run and a decreasing run ending at i, both of length 1: take s:1→N with s(0)=i, which is vacuously monotone in both senses (A finite list of reals, and its strictly increasing and strictly decreasing sublists).

[L3]

Every run has length at most N: a run of length L is injective into N, and there is no injection of L into N when N<L (The pigeonhole principle on N, clause 2, Injection, surjection, bijection, A finite list of reals, and its strictly increasing and strictly decreasing sublists).

[L4]

Order facts in N: k<N  ⟺  k∈N, N={k:k<N} and k<σ(M)  ⟺  k≤M (On N the order is membership: m<n  ⟺  m∈n, Order on the natural numbers, The natural numbers N (von Neumann)); exactly one of p<q, p=q, q<p holds (Trichotomy of the order on N); p<q  ⟺  σ(p)≤q (Discreteness: σ(n) is the immediate successor); every nonzero natural is a successor (Every nonzero natural number is a successor); and the truncated difference of Finite sums and finite products of natural numbers, ∑k<nak and ∏k<nak in N, for which 1≤L gives (L−1)+1=L.

[L5]

∣m×n∣=m n and ∣N∣=N (The product rule: ∣A×B∣=∣A∣ ∣B∣, and ∣∏i<mAi∣=∏i<m∣Ai∣, clause 1, The cardinality ∣A∣ of a finite set); and there is no injection σ(K)→K for any K∈N (The pigeonhole principle on N, clause 1). A bijection m×n→mn exists because the two sets have the same cardinality (The cardinality ∣A∣ of a finite set, clause (d)).

[L6]

R is an ordered field, so its order is total and ai≠aj gives ai<aj or ai>aj (Ordered field, Field).

Proof

technique · contradiction
1.1

If m=0 or n=0, then N=mn+1=1, and the one-term sublist ending at 0 supplied by [L2] has the required length 1=m+1 or 1=n+1, respectively. Hence assume m,n≥1 and suppose, for contradiction, that a has neither required sublist.

L2casesassume-contra
1.2

The two run lengths. For i<N let Inc(i) be the set of lengths of increasing runs ending at i and Dec(i) the set of lengths of decreasing runs ending at i. Both are nonempty by [L2] and both are contained in σ(N) by [L3] and [L4], so both have a greatest element by [L1]; write inc(i) and dec(i) for those greatest elements. Both are at least 1.

L1L2L3L4construct
2.1

The bound imposed by the supposition. If some inc(i) were at least m+1, truncating a longest increasing run ending at i to its first m+1 positions would give a strictly increasing sublist of length m+1; so inc(i)≤m for every i<N by [L4], and likewise dec(i)≤n. Combined with inc(i)≥1 and dec(i)≥1 from step 1.2, this gives inc(i)−1<m and dec(i)−1<n, so the map Φ(i):=(inc(i)−1, dec(i)−1) sends N into m×n.

step 1.1step 1.2L4construct
2.2

Extending a run. Let i<j<N. If ai<aj and s is an increasing run of length L:=inc(i) ending at i, then s′:L+1→N defined by s′ ⁣↾ ⁣L:=s and s′(L):=j is again a strictly increasing sublist: its indices increase because s(L−1)=i<j, and its values increase because as(p)<as(L−1)=ai<aj for p<L−1. So L+1∈Inc(j) and inc(j)≥L+1>inc(i). Symmetrically, if ai>aj then dec(j)>dec(i).

step 1.2L4L6construct
3.1

Φ is injective. Let i<j<N; since a is pairwise distinct, ai≠aj, so ai<aj or ai>aj by [L6]. In the first case step 2.2 gives inc(i)≠inc(j), in the second dec(i)≠dec(j); either way Φ(i)≠Φ(j), because both run lengths are at least 1, so inc(i)=(inc(i)−1)+1 by [L4] and equal first coordinates would force equal run lengths, and likewise for the second coordinate. As i and j were an arbitrary pair of distinct indices, Φ is injective.

step 2.1step 2.2L4L6
4.1

The contradiction. Composing Φ with a bijection m×n→mn from [L5] gives an injection of N=σ(mn) into mn, which [L5] forbids. So the supposition of step 1.1 is untenable, and a has a strictly increasing sublist of length m+1 or a strictly decreasing sublist of length n+1.

step 2.1step 3.1L5discharge-contradiction∎

Remarks

  • Where pairwise distinctness is spent. Only in step 3.1, to force one of the two strict comparisons between ai and aj. Without it a list may repeat a value, and then two positions carrying that value force neither run length to increase.

  • Why a greatest element exists at all. The lengths of runs ending at a fixed position form a nonempty set of naturals bounded by the length of the list, and a nonempty bounded set of naturals has a greatest element; that is derived in the facts from the well-ordering principle alone. No maximum of a finite set of reals is involved, and no choice principle is used, since inc(i) and dec(i) are determined by i rather than selected.

  • The bound mn+1 is not improvable, and the witness is a list of mn distinct reals with neither long sublist; it is constructed in For all m and n there is a list of mn pairwise distinct reals with no strictly increasing sublist of length m+1 and no strictly decreasing sublist of length n+1.

TheoremStatement: AI-adaptedProof: AI-adaptedprecheck passverified 2026-08-03 (gpt-5.6-sol-codex-subscription)Open item page →

For all m and n there is a list of mn pairwise distinct reals with no strictly increasing sublist of length m+1 and no strictly decreasing sublist of length n+1

Statement

Let m,n∈N. Then there is a pairwise distinct finite list of reals a:(mn)→R (A finite list of reals, and its strictly increasing and strictly decreasing sublists) with no strictly increasing sublist of length m+1 and no strictly decreasing sublist of length n+1.

Together with the bound mn+1, this says that mn+1 is the least length at which the two alternatives become unavoidable.

At m=0 or n=0 the list is empty, and there is no sublist of any positive length at all, so the assertion holds for the trivial reason that both required sublists have length at least 1.

Facts & Assumptions

Given: Naturals m and n, the finite sets m×n and mn, and the ordered field R with the canonical natural ι:N→R (The canonical natural ι(n)=n⋅1F of a field).

[L1]

Arithmetic and order of N: addition and multiplication are as in Addition of natural numbers and Multiplication of natural numbers; p≤q means p+j=q for a unique j, written q−p (Order on the natural numbers, Addition is cancellative, Finite sums and finite products of natural numbers, ∑k<nak and ∏k<nak in N), and ≤ is transitive (≤ is a linear order on N); p<q if and only if p+1≤q (Discreteness: σ(n) is the immediate successor); p+k<q+k  ⟺  p<q (Order is compatible with addition); addition is commutative (Addition is commutative); σ(b)⋅n=b⋅n+n (Distributivity and the successor law for multiplication); multiplication is monotone in its first factor, since p+d=q gives q n=n q=n p+n d=p n+d n by commutativity and distributivity (Multiplication is commutative, Distributivity and the successor law for multiplication), so p≤q implies p n≤q n; exactly one of p<q, p=q, q<p holds (Trichotomy of the order on N); and k<N  ⟺  k∈N (On N the order is membership: m<n  ⟺  m∈n).

[L3]

An injection between finite sets of equal cardinality is a bijection: it is a bijection onto its image, the image has the same cardinality as the domain, and clause 3 of A subset of a finite set is finite, with ∣B∣≤∣A∣, and equality holds if and only if B=A then makes the image the whole codomain (The cardinality ∣A∣ of a finite set, Injection, surjection, bijection).

[L4]

There is no injection of L into K when K<L (The pigeonhole principle on N, clause 2).

[L5]

ι is strictly increasing, hence injective (Laws of finite sums and products in N, and ι(∑k<nak)=∑k<nι(ak), clause 7); and R is an ordered field (Ordered field, Field).

[L6]

Sublists (A finite list of reals, and its strictly increasing and strictly decreasing sublists): a sublist of length L is a strictly increasing s:L→mn, hence injective; it is strictly increasing, respectively decreasing, when its values do the same.

Proof

technique · constructive
1.1

If m=0 or n=0, then mn=0 and the empty list has no sublist of the positive lengths m+1 and n+1, proving the assertion in these boundary cases. Hence for the construction below assume m,n≥1.

givenL1L2
1.2

The index bijection. Define β:m×n→N by β(b,j):=b n+j. Its values lie in mn: from j<n and b<m we get j+1≤n and b+1≤m, so β(b,j)+1=bn+(j+1)≤bn+n=σ(b)⋅n≤mn by [L1], whence β(b,j)<mn.

L1construct
1.3

β is injective. Suppose β(b,j)=β(b′,j′) with (b,j),(b′,j′)∈m×n. If b<b′ then σ(b)≤b′, so β(b,j)<bn+n=σ(b) n≤b′n≤β(b′,j′) by [L1], a contradiction; symmetrically b′<b is impossible, so b=b′ by [L1], and then j=j′ by cancellation.

L1construct
2.1

The list. By [L2] and [L3], the injection β of step 1.3 is a bijection of m×n onto mn, so every index i<mn is β(b,j) for exactly one pair, and aβ(b,j)  :=  ι(b n+n−j)(b<m, j<n) defines a list a:(mn)→R. Write blk(β(b,j)):=b for the block of an index.

step 1.2step 1.3L2L3construct
3.1

Inside a block the values decrease. Let b<m and j<j′<n. Then β(b,j)<β(b,j′) by [L1], while n−j′≥1 and n−j=(n−j′)+(j′−j) with j′−j≥1, so n−j′<n−j and hence aβ(b,j′)<aβ(b,j) by [L1] and [L5].

step 2.1L1L5
3.2

Across blocks the values increase, and the block is monotone in the index. Let b<b′<m and j,j′<n. Then bn+n−j≤bn+n=σ(b) n≤b′n<b′n+(n−j′), the last step because n−j′≥1; so aβ(b,j)<aβ(b′,j′) by [L5]. Moreover β(b,j)<β(b′,j′), by the computation of step 1.3; equivalently, blk is nondecreasing along the index order.

step 1.3step 2.1L1L5
4.1

The list is pairwise distinct. Two indices with different blocks carry different values by step 3.2, and two indices in the same block carry different values by step 3.1; since every index has exactly one block by step 2.1, distinct indices carry distinct values.

step 2.1step 3.1step 3.2
4.2

No strictly increasing sublist of length m+1. Let s:L→mn be a strictly increasing sublist. The map blk∘s:L→m is injective: if p<q<L had blk(s(p))=blk(s(q)), then s(p)<s(q) lie in one block, so as(p)>as(q) by step 3.1, contradicting that the sublist increases. Hence L≤m by [L4] and natural-order trichotomy, so L≠m+1.

step 2.1step 3.1L1L4L6
4.3

No strictly decreasing sublist of length n+1. Let s:L→mn be a strictly decreasing sublist and let p<q<L. Then s(p)<s(q), so blk(s(p))≤blk(s(q)) by step 3.2; and blk(s(p))<blk(s(q)) would give as(p)<as(q) by step 3.2, contradicting that the sublist decreases. Thus, if L>0, all the s(p) lie in the block of s(0), say s(p)=β(b,jp), and p↦jp is injective into n because s is injective and β is a bijection. If L=0, the empty map is already an injection L→n. In either case [L4] and natural-order trichotomy give L≤n, so L≠n+1.

step 1.1step 2.1step 3.2L1L4L6
5.1

Together with the boundary cases in step 1.1, the list of step 2.1 is therefore a pairwise distinct list of mn reals with no strictly increasing sublist of length m+1 and no strictly decreasing sublist of length n+1, which is the assertion.

step 1.1step 4.1step 4.2step 4.3discharge-construct∎

Remarks

  • The two block counts are not interchangeable. The construction uses m blocks of n terms each. An increasing sublist meets each block at most once, so its length is bounded by the number of blocks, m; a decreasing sublist lies inside one block, so its length is bounded by the block size, n. Exchanging the roles would bound the increasing sublists by n and the decreasing ones by m, which is the sharpness statement for the pair (n,m) and not for (m,n).

  • Why the values are written through ι. The terms of a list of reals are real numbers, and bn+n−j is a natural number, which is a set and not an element of R. The strict monotonicity of ι is what transports the comparisons between the naturals into comparisons between the terms.

  • The degenerate cases are discharged first. If m=0 or n=0 then m×n and mn are both empty, and step 1.1 proves directly that the empty list has neither required positive-length sublist.

RemarkRemark: AI-generatedProof: Not applicableverified 2026-08-03 (gpt-5.6-sol-codex-subscription)Open item page →

The conventions this page fixes: the empty intersection, where the counts live, the first index of every sum, and what the declared prerequisites do not supply

This item is the page's ledger: every convention the page fixes, with the item that fixes it, and a statement of what this page's declared prerequisites do not supply. It continues Conventions fixed on this page, and what counting is deliberately not done here, the same kind of ledger for the page finite-counting-and-binomial-coefficients, which is this page's declared prerequisite.

Conventions fixed here

The empty intersection is the ambient set, and the ambient set is part of the data. A finite family (Ai)i∈I of subsets of a finite set X, the intersections AJ for J⊆I, and the convention A∅=X fixes a finite X together with the family (Ai)i∈I and stipulates A∅=X. This is a stipulation and not a theorem: for nonempty J the intersection is determined by the family, and for J=∅ the description "belongs to every Ai with i∈J" is satisfied by everything, so it determines nothing without an ambient set to be relative to. The clause supplies the J=∅ term in the complementary form of Inclusion and exclusion: ι∣⋃i∈IAi∣=∑∅≠J⊆I(−1)∣J∣+1 ι∣AJ∣, together with the complementary form counting the elements in none of the Ai and in later sieves whenever an intersection must also be identified at the empty subfamily.

Counts live in N; every alternating identity lives in R. A cardinality is a natural number, a natural number here is a set, and a set is not an element of R. Every identity on this page that uses a negative summand, and every one that divides counts, is therefore stated in R with the counts carried across by the canonical natural ι (The canonical natural ι(n)=n⋅1F of a field), and read back through the injectivity of ι where the conclusion is about natural numbers. Truncated natural differences such as n−1 and n−2 remain in N and are not negative summands.

Every index range starts at 0, and the lower-bound hypotheses on this page exist only because of it. ∑j<m+1(−1)j ι(tj)=(−1)m ι(t−1m) for every t≥1 and every m carries t≥1; without it the identity fails at t=0 and m=1. ι(Dn)=ι(n) ι(Dn−1)+(−1)n for n≥1, and Dn=(n−1)(Dn−1+Dn−2) for n≥2 carries n≥1 in its first clause, because the identity n!=(n−1)!⋅n that proves it fails at n=0 under the truncated difference, and n≥2 in its second, because that clause applies the first one at n−1. ⌈m/n⌉ for naturals m and n≥1: the least q∈N with m≤nq carries n≥1, without which the set it takes a least element of can be empty.

00=1, and the place it is spent is named. The convention is the base clause of the recursion in Exponentiation of natural numbers, mn, and its agreement with the integer power in R, not an import. In The number of surjections from an n-element set onto a k-element set is ∑i<k+1(−1)i(ki)(k−i)n, read in R through ι it is what makes the formula correct at n=0 and k=0, where the empty function is the unique surjection ∅→∅ and the formula returns ι(00). At n=0 with k≥1 the same formula returns the full alternating row sum, which vanishes only because k≥1; and at k=0 with n≥1 it returns ι(0n), which is 0 for the same reason read the other way. Powers of −1 are the real powers of Integer powers am throughout, since −1 is not a natural number.

A sum over a finite index set is what all of this is written in. The sum ∑i∈Sai over a finite index set, and its product form is the notion used for every sum whose index set is a set of subsets, a set of elements or a relation's fibre family, and its value is independent of the enumeration chosen. The facts about it that are used constantly and are not clauses of it are the bridge ι(∑N)=∑Rι over such an index set, and the additivity, scaling and monotonicity laws over such an index set. Both are derived, in the Facts of the items that use them, from the corresponding clauses about a sum over an initial segment together with the enumeration that defines the sum over an index set.

A relation, not a matrix. A relation R⊆X×Y between finite sets, its row fibres Rx and its column fibres Ry sets up a subset of a product of two finite sets, its two fibre families and their slice partitions. Double counting: ∑x∈X∣Rx∣=∣R∣=∑y∈Y∣Ry∣ for a relation between finite sets states the resulting equality of the two fibre sums with the size of the relation, and nothing more.

Fibres of a function. If ∣A∣>k∣B∣ then every f:A→B has a fibre with more than k elements, and for nonempty B some fibre has at least ⌈∣A∣/∣B∣⌉ elements is stated about the fibres f−1[{b}] of a function between finite sets. Its two clauses are one argument: the ceiling form is the counting form applied at the single index below the ceiling, which is why the ceiling was defined by minimality.

What this page's declared prerequisites do not supply

Each of the following is a statement about what this page may cite, and about nothing else.

  • No floor and no ceiling as general notions, and no division with remainder. ⌈m/n⌉ for naturals m and n≥1: the least q∈N with m≤nq defines only the least q with m≤nq, for naturals m and n≥1. It is not defined for a real argument, it produces no remainder, and nothing here extends it.

  • No divisibility. No result on this page is stated in terms of one natural number dividing another, and no argument uses such a relation.

  • No graph vocabulary. Nothing among this page's declared prerequisites defines a graph, a vertex or an edge. The results that would usually be stated about graphs are stated instead about a finite set carrying a symmetric irreflexive relation, which is exactly what their proofs use.

  • No probability. Nothing among this page's declared prerequisites defines a probability space, a measure or an expectation. The averaging principle is a statement about a quotient of two counts, and the hat-check ratio on the companion page is a quotient of two counts; neither is called a probability and neither is treated as one.

  • No symmetric group. The derangement number Dn: the number of bijections of an n-element set with no fixed point counts a set of bijections. No group structure on that set is defined or used.

5 · Examples, counterexamples and false statements

False statementConstruction: AI-adaptedVerification: AI-generatedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)verified 2026-07-29 (claude-fable-5)Open item page →

FALSE: the real-valued three-set inclusion-exclusion identity remains true after deleting the triple-intersection term

Statement

FALSE. The statement

for all finite sets A, B, C, in R, ι∣A∪B∪C∣=ι∣A∣+ι∣B∣+ι∣C∣−ι∣A∩B∣−ι∣A∩C∣−ι∣B∩C∣.

This is the sieve identity of Inclusion and exclusion: ι∣⋃i∈IAi∣=∑∅≠J⊆I(−1)∣J∣+1 ι∣AJ∣, together with the complementary form counting the elements in none of the Ai for a family of three sets with the term at the triple intersection deleted. The identity is correct only when the triple term + ι∣A∩B∩C∣ is present, and the claim above is refuted by a family in which that term is not 0.

Facts & Assumptions

Given: The one-element set A:=B:=C:={0}, taken inside the ambient set X:={0}, and the canonical natural ι (The canonical natural ι(n)=n⋅1F of a field).

[L3]

(−1)0=1 and (−1)p+1=−(−1)p, so (−1)2=1, (−1)3=−1 and (−1)4=1 (Integer powers am).

[L4]

R is an ordered field, so 1≠0 and its arithmetic is available (Ordered field, Field).

Refutation

technique · constructive
1.1

Take I:=3={0,1,2}, X:={0} and A0:=A1:=A2:={0}, so that the family of the displayed claim is A=A0, B=A1, C=A2. Every intersection of a nonempty subfamily is {0}, and the union is {0}.

givenconstruct
1.2

Every set occurring in the computation is {0}, so by [L1] each of ι∣A∣, ι∣B∣, ι∣C∣, ι∣A∩B∣, ι∣A∩C∣, ι∣B∩C∣, ι∣A∩B∩C∣ and ι∣A∪B∪C∣ equals 1.

L1
2.1

The right-hand side of the displayed claim is therefore 1+1+1−1−1−1=0, while its left-hand side is 1. Since 1≠0 in R by [L4], the claim is false at this family.

step 1.1step 1.2L4
3.1

The true identity at the same family. By [L2] the sieve sum has the three singleton terms with sign (−1)2=1, the three two-element terms with sign (−1)3=−1 and the one three-element term with sign (−1)4=1, so it reads 1+1+1−1−1−1+1=1, which is ι∣A∪B∪C∣. The deleted triple term is exactly the discrepancy found in step 2.1.

step 1.2step 2.1L2L3discharge-construct∎

Remarks

  • The claim is the sieve truncated at depth 2, and the Bonferroni inequalities say what such a truncation does in general: an even truncation under-estimates. Here it under-estimates by 1, and the claim asserts equality, so the failure is in the direction the inequality predicts.

  • The witness is as small as it can be. Three sets are needed for a triple intersection to exist, and the discrepancy is the size of that intersection, so any family with a nonempty triple intersection refutes the claim. Taking all three sets equal to a single point makes every cardinality in the computation equal to 1.

False statementConstruction: AI-adaptedVerification: AI-generatedprecheck passverified 2026-08-03 (gpt-5.6-sol-codex-subscription)Open item page →

FALSE: truncating the sieve at a fixed depth of at least two gives the exact size of the union

Statement

FALSE. The statement

for every sieve family X, I, (Ai)i∈I and every m≥2, ι∣⋃i∈IAi∣=Tm,

with Sj and Tm as in Truncating the sieve at an odd depth over-estimates the size of the union and truncating it at an even depth under-estimates it.

The claim reads the Bonferroni inequalities as if a truncation at any depth beyond the first were already exact. What is true is that the truncation is an over-estimate at an odd depth and an under-estimate at an even depth, and that it is guaranteed to become exact once the depth reaches ∣I∣, though special families may become exact earlier; the hypothesis m≥2 does nothing to close that gap when ∣I∣ exceeds m.

Facts & Assumptions

Given: The ambient set X:={0}, the index set I:=3={0,1,2}, the family A0:=A1:=A2:={0}, and the truncation depth m:=2.

[L3]

Sj=∑J∈[I]jι∣AJ∣ and Tm=∑i<m(−1)iSi+1; a constant real summand gives ∑p∈Sλ=ι(∣S∣)λ (Truncating the sieve at an odd depth over-estimates the size of the union and truncating it at an even depth under-estimates it, The sum ∑i∈Sai over a finite index set, and its product form, clause (c), Finite sums and finite products, by recursion, Laws of finite sums and finite products).

[L4]

(−1)0=1 and (−1)1=−1 (Integer powers am); R is an ordered field, so 1≠0 (Ordered field, Field).

[L5]

Clause 3 of Truncating the sieve at an odd depth over-estimates the size of the union and truncating it at an even depth under-estimates it, which says Tm=ι∣⋃i∈IAi∣ once m≥∣I∣.

Refutation

technique · constructive
1.1

The witness. With X={0} and A0=A1=A2={0}, every AJ with J⊆I is {0}, and the union is {0}, so ι∣⋃i∈IAi∣=1 by [L1].

givenconstruct
2.1

The first two truncation levels. Each summand ι∣AJ∣ is 1 by step 1.1, so S1=ι∣[I]1∣⋅1=3 and S2=ι∣[I]2∣⋅1=3 by [L2] and the constant clause of [L3]; likewise S3=1.

L1L2L3
3.1

Therefore T2=(−1)0S1+(−1)1S2=3−3=0, while ι∣⋃i∈IAi∣=1. Since 1≠0 by [L4], the displayed claim fails at this family and at m=2, which satisfies its hypothesis m≥2.

step 1.1step 2.1L3L4
4.1

What is true here instead. Clause 2 of Truncating the sieve at an odd depth over-estimates the size of the union and truncating it at an even depth under-estimates it gives ι∣⋃iAi∣≥T2, and indeed 1≥0; and T3=3−3+1=1, which is the exact value, in agreement with clause 3 of that theorem at m=3=∣I∣. So the truncation becomes exact one level later than the claim asserts, and the gap at depth 2 is the whole content of the failure.

step 2.1step 3.1L3L4L5discharge-construct∎

Remarks

  • The claim is not repaired by raising the fixed depth. For any fixed m the same all-equal family with I taken to have more than m elements refutes it again; clause 3 guarantees exactness once the depth reaches ∣I∣, while other families may already be exact sooner. That is why the true uniform guarantee fixes the depth relative to ∣I∣ rather than absolutely.

  • The direction of the error is not accidental. Depth 2 is an even truncation, and an even truncation under-estimates, so the truncated value is below the truth rather than above it. A witness at depth 3 would over-shoot instead.

False statementConstruction: AI-adaptedVerification: AI-adaptedprecheck passjudge pass (z-ai/glm-5.2)verified 2026-07-29 (claude-fable-5)Open item page →

FALSE: every list of mn pairwise distinct reals has a strictly increasing sublist of length m+1 or a strictly decreasing sublist of length n+1

Statement

FALSE. The statement

for all m,n∈N, every pairwise distinct finite list of reals of length mn has a strictly increasing sublist of length m+1 or a strictly decreasing sublist of length n+1 (A finite list of reals, and its strictly increasing and strictly decreasing sublists).

This is Every list of mn+1 pairwise distinct reals has a strictly increasing sublist of length m+1 or a strictly decreasing sublist of length n+1 with the length lowered from mn+1 to mn. The true theorem is sharp, so lowering the length by one destroys it, and it does so at every pair (m,n) rather than at some exceptional pair.

Facts & Assumptions

Given: The naturals m and n, and lists of reals with their sublists as in A finite list of reals, and its strictly increasing and strictly decreasing sublists.

[L1]

For all m,n∈N there is a pairwise distinct list of reals of length mn with no strictly increasing sublist of length m+1 and no strictly decreasing sublist of length n+1 (For all m and n there is a list of mn pairwise distinct reals with no strictly increasing sublist of length m+1 and no strictly decreasing sublist of length n+1).

[L2]

Every pairwise distinct list of reals of length mn+1 has a strictly increasing sublist of length m+1 or a strictly decreasing sublist of length n+1 (Every list of mn+1 pairwise distinct reals has a strictly increasing sublist of length m+1 or a strictly decreasing sublist of length n+1).

[L3]

2⋅2=4 (Multiplication of natural numbers, Order on the natural numbers), and the terms of a list are elements of the ordered field R (Ordered field).

Refutation

technique · constructive
1.1

Read the displayed claim at m=n=2: every pairwise distinct list of reals of length 4 would have a strictly increasing sublist of length 3 or a strictly decreasing sublist of length 3.

givenL3
1.2

By [L1] at m=n=2 there is a pairwise distinct list of reals of length 2⋅2=4 with no strictly increasing sublist of length 3 and no strictly decreasing sublist of length 3.

L1L3construct
2.1

That list refutes the reading of step 1.1, so the displayed claim is false. The same argument runs at every pair (m,n), since [L1] produces a witness for each of them; the claim therefore fails everywhere, not at an exceptional pair.

step 1.1step 1.2L1
3.1

What survives is [L2]: the conclusion holds once the length is raised to mn+1. So the least length at which the alternative becomes unavoidable is mn+1, and the claim above is exactly the assertion that it is mn.

step 2.1L1L2discharge-construct∎

Remarks

Sources