Induction (Simple & Structural)
Base + step = everything
Induction is the workhorse proof technique for .
Simple induction:
1. Base case: prove .
2. Inductive step: prove .
Strong (complete) induction: instead of assuming , assume for
all (or ).
Structural induction: for inductively defined sets (lists, trees), induct
on the structure:
1. Base: prove for the constructors (e.g. empty list).
2. Step: assuming for the components, prove for the constructed value.
All three are reducible to P5 (Peano's induction axiom).
- 0.0sTheorem 2.11: Domino Induction
- 1.0sIf S1 falls and each falling domino knocks down the next, all Sn fall.
- 2.5sEight dominos S1 through S8 stand in a row.
- 3.7sNow we knock the first one over.
- 4.5sEach falling domino topples the next one in sequence.
- 6.5sCascade: the rule S_k falls implies S_{k+1} falls.
- 9.5sAll dominos fall. By induction, every Sn falls.
For all unary naturals , .
Proof sketch. By induction on . Base : (by first eq.) (same eq.). Step: assume . Then .
Definition 3.5 (Summation).
Definition 3.6 (Product).
These are 'higher-order' operations: they take a function and a range, and reduce. Note the empty cases: an empty sum is 0 (the additive identity) and an empty product is 1 (the multiplicative identity). This is essential for induction.
Some theorems require induction over two variables. The technique:
Theorem. (addition is commutative).
Proof by nested induction. We prove it by induction on , then within each step, by induction on .
Outer induction on :
- Base : We need . Inner induction on :
- Base : (first axiom) (trivially). ✓
- Step : (second axiom). And (first axiom on the right). ✓
- Step : Assume (outer IH). We need . Inner induction on :
- Base : (first axiom). And (second axiom) (outer IH with ). ✓
- Step : (outer IH) (outer IH again) (second axiom). ✓
So for all .
Reading. Note that the inner induction re-uses the outer IH each time. The two levels of induction can swap roles (do inner on outer and vice versa) depending on the theorem.