Foundations
Peano Axioms
The five axioms that define the natural numbers: zero exists, every number has a successor, successors are injective, zero is not a successor, and induction. All of arithmetic follows from these.
Why This Matters
The Peano axioms are the foundation on which all of arithmetic is built. When you write a proof by induction, you are invoking the fifth Peano axiom. When you assume that natural numbers "just work" in any mathematical argument, you are implicitly relying on these five axioms. For ML theory, induction is the primary proof technique for statements about sequences, iterations, and recursive algorithms. Understanding where induction comes from clarifies when it applies and what it assumes.
The Five Axioms
Peano Axioms
The Peano axioms define a set together with a distinguished element and a function (the successor function) satisfying:
- Zero exists:
- Closure under successor: For every ,
- Injectivity of successor: If , then
- Zero is not a successor: There is no such that
- Induction: If a set contains and is closed under (meaning implies ), then
What Each Axiom Does
Axiom 1 gives us a starting point. Without it, could be empty.
Axiom 2 says we can always count one more. The natural numbers do not stop.
Axiom 3 prevents "merging." Two different numbers cannot have the same successor. Combined with Axiom 4, this ensures the natural numbers form a chain: with no repetitions.
Axiom 4 prevents cycles. Without it, the chain could loop back: for some would make finite and cyclic (like clock arithmetic).
Axiom 5 is the most powerful. It says the natural numbers consist of exactly what you get by starting at and repeatedly applying . No "rogue" elements exist. This axiom is the foundation of proof by induction.
Main Theorems
Principle of Mathematical Induction
Statement
Let be a property of natural numbers. If:
- is true (base case)
- For all , (inductive step)
Then is true for all .
Intuition
Let . The base case says . The inductive step says is closed under . By Axiom 5, . Induction is not a separate theorem; it is a direct restatement of Axiom 5 in terms of propositions rather than sets.
Proof Sketch
Define . By hypothesis, and implies . By Peano Axiom 5, . Therefore holds for all .
Why It Matters
Induction is the workhorse proof technique in discrete mathematics and theoretical CS. Convergence proofs for iterative algorithms, correctness proofs for recursive programs, and bounds on sequence growth all rely on induction. It is the axiomatic justification for "if it works for step , it works for step ."
Failure Mode
Induction requires both the base case and the inductive step. A common error is proving the inductive step without verifying the base case. For example, "if all horses in a group of size are the same color, then all horses in a group of size are the same color" has a valid-looking inductive step but fails at because two groups of size 1 need not overlap. The base case (, not ) fails.
Defining Arithmetic from Peano Axioms
Addition is defined recursively using the successor function:
Multiplication is defined using addition:
From these recursive definitions, all familiar properties (commutativity, associativity, distributivity) can be proved by induction.
Connection to Godel Incompleteness
Peano arithmetic (PA) is the first-order theory obtained from the Peano axioms with the induction axiom replaced by an axiom schema (one instance for each first-order formula). Godel's first incompleteness theorem states that PA, if consistent, is incomplete: there exist true statements about natural numbers that cannot be proved within PA.
This means no finite axiom system can capture all truths about natural numbers. The Peano axioms are the starting point, but they are provably insufficient to decide every arithmetic question.
Strong Induction
Strong Induction
Strong induction (or complete induction) uses a stronger inductive hypothesis: assume for all , then prove .
Formally: if for all , the statement "for all , " implies , then holds for all .
Strong induction is equivalent to ordinary induction over the Peano axioms. The proof uses the well-ordering principle: every nonempty subset of has a least element.
Common Confusions
Induction is circular reasoning
Induction does not assume what it is trying to prove. The inductive step proves the conditional statement . Combined with the base case , this gives for all by Axiom 5. The logical structure is: base case, then modus ponens applied repeatedly.
Induction works for real numbers
Standard induction applies only to natural numbers (or, more generally, to well-ordered sets). You cannot induct over the real numbers because between any two reals there are infinitely many others, and there is no "next" real. For continuous arguments, you need different techniques (e.g., continuity arguments, the least upper bound property).
Canonical Examples
Sum of first n natural numbers
Claim: .
Base case: . . True.
Inductive step: assume . Then . This matches the formula for .
By induction, the formula holds for all .
Exercises
Problem
Using the recursive definition of addition from the Peano axioms, prove that for all .
Problem
Why does the second-order version of the induction axiom (quantifying over all subsets ) pin down uniquely up to isomorphism, while the first-order axiom schema does not?
References
Canonical:
- Peano, Arithmetices Principia, Nova Methodo Exposita (1889)
- Enderton, A Mathematical Introduction to Logic (2001), Chapter 3
Current:
-
Hodel, An Introduction to Mathematical Logic (2013), Chapter 6
-
Kaye, Models of Peano Arithmetic (1991), Chapters 1-2
-
Munkres, Topology (2000), Chapter 1 (set theory review)
Next Topics
- Number theory and ML: how number-theoretic ideas connect to machine learning
Last reviewed: April 2026
Builds on This
- Foundational DependenciesLayer 0A