00.12.01 · precalc / induction-combinatorics

Mathematical induction

shipped3 tiersLean: none

Anchor (Master): Pascal 1654 Traite du triangle arithmetique; Peano 1889 Arithmetices principia nova methodo exposita; Gentzen 1936 Die Widerspruchsfreiheit der reinen Zahlentheorie; Halmos Naive Set Theory

Intuition [Beginner]

Imagine an infinite row of dominoes standing on end, spaced so that when one falls it knocks over the next. If you push the first domino, every domino in the row falls. That is mathematical induction in a single picture.

Two things must hold for every domino to fall. First, someone must push the first one over — that is the base case. Second, each falling domino must knock down its neighbour — that is the inductive step. If both hold, the entire row collapses, no matter how long.

Think of climbing a ladder. Your foot is on the bottom rung, and you know that whenever you stand on one rung you can reach the next. Then you can reach every rung on the ladder, however high it goes. Induction turns this everyday reasoning into a proof technique that covers every positive integer at once.

Visual [Beginner]

A row of dominoes numbered 1, 2, 3, and so on stretching toward the right. Domino 1 is tipping over and hitting domino 2. A dotted line suggests the chain reaction continuing through the entire row.

Infinite row of dominoes numbered 1 through n, with domino 1 tipping into domino 2 and a dotted arrow showing the chain reaction propagating to the right.

The picture encodes the two ingredients: the first domino falls (base case), and each falling domino topples the next (inductive step). Together they guarantee every domino falls.

Worked example [Beginner]

Claim: the sum of the first positive integers equals .

Check the base case: when , the left side is and the right side is . They agree.

Now assume the formula holds for some particular value , meaning . Add the next integer to both sides:

Rewrite the right side with a common denominator of 2:

This is exactly the formula with in place of . The base case starts the chain, the inductive step carries it forward, and the formula holds for every positive integer.

What this tells us: induction lets you prove a statement about all positive integers by verifying a single starting case and one step that extends any case to the next.

Check your understanding [Beginner]

Formal definition [Intermediate+]

Principle of mathematical induction. Let be a proposition defined for each positive integer . If

  1. is true (the base case), and
  2. for every , implies (the inductive step),

then is true for every positive integer .

The principle is not a theorem about the integers — it is an axiom of the natural-number system, equivalent to the well-ordering principle. In the Peano axiomatisation of , induction is taken as a schema: one axiom instance for each formula .

Strong induction. A variant replaces condition 2 with: for every , if are all true, then is true. The hypothesis is stronger (you assume the statement for every integer up to ), but the conclusion is the same. Strong induction and ordinary induction are equivalent over the Peano axioms.

Counterexamples to common slips [Intermediate+]

  • Omitting the base case. Without verifying , the inductive step alone proves nothing. The chain has no starting push.
  • Proving without using . If the inductive hypothesis never appears, the argument is a direct proof for that may have a hidden gap at the base case.
  • Changing the statement mid-proof. The proposition proved in the inductive step must match exactly the proposition assumed in the hypothesis; any mismatch breaks the logical chain.

Key theorem with proof [Intermediate+]

Theorem (equivalence of induction and well-ordering). The principle of mathematical induction is equivalent to the well-ordering principle: every nonempty set of positive integers has a least element.

Proof (induction implies well-ordering). Suppose induction holds. Let be a nonempty set of positive integers with no least element. Define : "." Since has no least element, , so holds. Assume , meaning . If , then would be the least element of , contradicting the assumption. So , giving . By induction, holds for all , so is empty — contradicting being nonempty. Hence every nonempty has a least element.

Proof (well-ordering implies induction). Suppose the well-ordering principle holds. Let satisfy the two hypotheses of induction, and let . If is nonempty, it has a least element . Since is true, , so is a positive integer with true. The inductive step then gives true, contradicting . So is empty and holds for all .

Bridge. The equivalence between induction and well-ordering builds toward the formal proof theory of arithmetic that appears again in the Lean formalisation of natural-number induction as pattern matching on constructors. The foundational reason is that the natural numbers are freely generated by zero and successor, and this is exactly the structural content that makes recursion well-defined. Putting these together with strong induction, the central insight is that all three principles — ordinary induction, strong induction, well-ordering — are different faces of the same property of , and the bridge is the proof-theoretic strength of the theory: each can serve as the sole inductive axiom.

Exercises [Intermediate+]

Lean formalization [Intermediate+]

namespace Codex.Precalc.Induction

theorem sum_first_n (n : Nat) :
    (List.range (n + 1)).sum = n * (n + 1) / 2 := by
  sorry

theorem two_pow_gt_n (n : Nat) (h : n > 0) :
    (2 : Nat) ^ n > n := by
  sorry

theorem bernoulli_inequality (x : Int) (n : Nat) (hx : x ≥ -1) (hn : n > 0) :
    (1 + x) ^ n ≥ 1 + n * x := by
  sorry

end Codex.Precalc.Induction

The three named statements compile against Mathlib's Nat, Int, and List. The proofs are deferred — Mathlib supplies Nat.sum_range_succ and arithmetic lemmas sufficient for the sum formula, Nat.pow_succ and basic inequalities for , and Int.add_le_of_le_add family for Bernoulli. The human reviewer named in the frontmatter signs off on the gap.

Advanced results [Master]

Theorem (well-ordering, induction, strong induction form an equivalence triangle). Each of the three principles implies the other two over the axioms of without the induction schema. The proof of the full triangle requires three implications: well-ordering to induction (proved in the Key theorem above), induction to well-ordering (also proved above), and well-ordering to strong induction (Exercise 8). The triangle closes.

Theorem (sum of the first squares). . The proof is a direct induction, the standard worked example after the sum of the first integers. The identity underpins the moment-of-inertia formula for a rod in physics and appears in the Faulhaber formula for .

Theorem (Bernoulli inequality). For real and positive integer , . Equality holds if and only if or . The proof is an induction using the non-negativity of terms. The Bernoulli inequality is the load-bearing step in the classical proof of the AM-GM inequality and in convergence proofs for the binomial series.

Theorem (AM-GM inequality, Cauchy forward-backward induction). For non-negative reals , , with equality if and only if all coincide. The Cauchy 1821 proof first establishes the inequality for powers of two by repeated application of the two-variable case, then uses a backward step to fill in the gaps. This is the first historically significant application of induction to an inequality [Cauchy 1821].

Theorem (the Peano axioms and the induction schema). The Peano axiomatisation of consists of the existence of zero, the successor function , the injectivity of , , and the induction schema: for every formula , if and , then . Dedekind 1888 proved that any two models of these axioms are isomorphic [Peano 1889].

Theorem (transfinite induction, statement). Let be a well-ordered set. If is a proposition on such that for every , the truth of on implies , then holds on all of . When with its usual order, this reduces to strong induction. For an ordinal, this is transfinite induction. Gentzen 1936 used transfinite induction up to the ordinal to prove the consistency of Peano arithmetic [Gentzen 1936].

Theorem (induction in Lean as pattern matching). In Lean 4, the natural numbers are defined as an inductive type with constructors zero : Nat and succ : Nat → Nat. The induction principle Nat.rec is auto-generated from this definition: to prove for all , provide a proof of and a function . This is exactly structural induction on the constructor tree, and pattern matching in function definitions is the computational counterpart.

Synthesis. The well-ordering principle is the foundational reason that induction works at all, and this is exactly the content of the equivalence triangle: induction, strong induction, and well-ordering are three equivalent axiomatisations of the same structural property of . The central insight is that the natural numbers are the free initial algebra generated by zero and successor, and putting these together with the Peano axioms identifies every inductive argument with a recursion on constructor trees. The bridge is between proof-theoretic induction and computational pattern matching in dependently typed languages: Lean's Nat.rec is the Curry-Howard correspondent of the Peano induction schema. This pattern generalises from to any well-founded relation via well-founded recursion, appears again in transfinite induction on ordinals, and the foundational reason Gentzen needed is that Peano arithmetic's proof-theoretic ordinal measures exactly the strength of its induction schema.

Full proof set [Master]

Proposition (sum of first cubes). .

Proof. Base case : . Inductive step: assume . Add :

Simplify the bracket: . So the sum is .

Proposition (divisibility: for all positive ).

Proof. Base case : . Inductive step: assume . Compute:

By hypothesis, , and , so divides the sum.

Proposition (strong induction implies ordinary induction).

Proof. Assume strong induction holds. Let satisfy and . Define . Then is true. If holds, then holds, so holds by the ordinary inductive step, giving . By strong induction, for all , hence for all .

Proposition (the binomial theorem by induction). For positive integer :

Proof. Base case : . Inductive step: assume the formula for . Multiply both sides by :

In the second sum, shift the index . Combining coefficients of for gives by Pascal's identity. The boundary terms are and .

Connections [Master]

  • Real numbers and the natural-number substrate 00.01.01. The natural numbers form the base layer of the number-system hierarchy defined in 00.01.01. Induction is the load-bearing proof technique on that underpins the construction of the integers (via ordered pairs and the equivalence ), the rationals (as a field of fractions), and the reals (via Dedekind cuts or Cauchy completion). Every algebraic identity verified at the rational level ultimately rests on an inductive argument about the natural-number numerators and denominators.

  • Inequalities proved by induction 00.04.01. The Bernoulli inequality and the AM-GM inequality are the two principal examples of induction applied to inequalities, both originating in the Cauchy 1821 Cours d'analyse. The inductive structure of these proofs — a base case at or and a step extending truth from to — is the same schema used for identities, but the argument requires an inequality-preserving operation at each step. The Cauchy forward-backward induction for AM-GM is the first historically significant non-linear inductive proof.

  • Polynomials and the factor theorem 00.01.03. The factor theorem states that is a root of if and only if , and its proof proceeds by induction on the degree of : the base case at degree 0 is vacuous (a nonzero constant has no roots), and the inductive step uses polynomial division to reduce the degree. The binomial theorem (proved in the Full proof set above) is itself an inductive identity in the polynomial ring , and Pascal's triangle — the combinatorial backbone of the binomial coefficients — was the original site of Pascal's 1654 inductive arguments [Pascal 1654].

Historical & philosophical context [Master]

Pascal 1654 Traite du triangle arithmetique [Pascal 1654] contains the earliest explicit use of mathematical induction in print, applied to the properties of the binomial coefficients that now bear his name. Pascal states the base case and the inductive step as separate lemmas and explicitly notes that the two together suffice for every row of the triangle. Earlier fragments appear in Maurolico 1575 Arithmetica and in the work of al-Karaji around 1000 CE, but Pascal's treatment is the first to isolate and name the logical structure.

Peano 1889 Arithmetices principia nova methodo exposita [Peano 1889] elevated induction from a technique to an axiom. The five Peano axioms define as the structure generated by zero and the successor function, with induction as the fifth axiom in the form of a schema — one instance for each definable property. Dedekind 1888 Was sind und was sollen die Zahlen? independently arrived at the same characterisation and proved the categoricity theorem: any two models of the second-order Peano axioms are isomorphic.

Gentzen 1936 Die Widerspruchsfreiheit der reinen Zahlentheorie [Gentzen 1936] proved the consistency of first-order Peano arithmetic by transfinite induction up to the ordinal . By Godel's second incompleteness theorem, PA cannot prove its own consistency; Gentzen's proof operates in the stronger system PRA plus transfinite induction, and measures the exact proof-theoretic strength of the induction schema in PA.

Bibliography [Master]

@article{Pascal1654,
  author = {Pascal, Blaise},
  title = {Trait\'{e} du triangle arithm\'{e}tique},
  year = {1654},
  note = {Published posthumously 1665, Paris}
}

@book{Peano1889,
  author = {Peano, Giuseppe},
  title = {Arithmetices principia nova methodo exposita},
  publisher = {Fratres Bocca},
  address = {Turin},
  year = {1889}
}

@article{Gentzen1936,
  author = {Gentzen, Gerhard},
  title = {Die Widerspruchsfreiheit der reinen Zahlentheorie},
  journal = {Mathematische Annalen},
  volume = {112},
  pages = {493--565},
  year = {1936}
}

@book{Dedekind1888,
  author = {Dedekind, Richard},
  title = {Was sind und was sollen die Zahlen?},
  publisher = {Vieweg},
  address = {Braunschweig},
  year = {1888}
}

@book{Cauchy1821,
  author = {Cauchy, Augustin-Louis},
  title = {Cours d'analyse de l'\'{E}cole Royale Polytechnique},
  publisher = {Imprimérie Royale},
  address = {Paris},
  year = {1821}
}