Skip to content
Part IA Michaelmas, Lent Term

Well-Founded Induction

The Principle of Well-Founded Induction

Statement

Let \prec be a well-founded relation on AA. Let PP be a property. If:

xA.(yx.P(y))P(x)\forall x \in A. (\forall y \prec x. P(y)) \Rightarrow P(x)

then xA.P(x)\forall x \in A. P(x) holds.

Intuition

To prove P(x)P(x) for all xx, we may assume P(y)P(y) holds for all yxy \prec x when proving P(x)P(x).

This generalises strong induction from N\mathbb{N} to any well-founded structure.

Examinable Proof

Theorem: Well-founded induction is valid.

Proof:

Suppose xA.(yx.P(y))P(x)\forall x \in A. (\forall y \prec x. P(y)) \Rightarrow P(x) holds.

Assume for contradiction that S={xA:¬P(x)}S = \{x \in A : \neg P(x)\} is non-empty.

Since \prec is well-founded, SS has a minimal element mm.

Key observation: mSm \in S implies ¬P(m)\neg P(m), but ym.P(y)\forall y \prec m. P(y) holds (since mm is minimal in SS).

By assumption, (ym.P(y))P(m)(\forall y \prec m. P(y)) \Rightarrow P(m).

This gives P(m)P(m), contradicting mSm \in S.

Therefore S=S = \emptyset, i.e., x.P(x)\forall x. P(x).

Connection to Strong Induction

On N\mathbb{N}

Strong induction on N\mathbb{N} is exactly well-founded induction for   =  <\prec \; = \; < on N\mathbb{N}.

The premise becomes: n.(m<n.P(m))P(n)\forall n. (\forall m < n. P(m)) \Rightarrow P(n).

Base Case

For n=0n = 0: the hypothesis m<0.P(m)\forall m < 0. P(m) is vacuously true, so we must prove P(0)P(0) directly.

This recovers the base case of strong induction.

Using Well-Founded Induction

Recipe

  1. Identify the well-founded relation \prec
  2. State the induction hypothesis: yx.P(y)\forall y \prec x. P(y)
  3. Prove P(x)P(x) assuming the hypothesis

Example: Termination of Euclid’s Algorithm

Claim: gcd(a,b)\gcd(a, b) terminates for all a,bNa, b \in \mathbb{N} (not both zero).

Well-founded relation: Lexicographic ordering on pairs (a,b)(a, b).

Proof: At each step, (a,b)(b,amodb)(a, b) \mapsto (b, a \bmod b).

Since amodb<ba \bmod b < b, the second component decreases (or stays zero while the first decreases).

By well-foundedness of the lexicographic order, the process terminates.

Lexicographic Ordering

Definition

For well-founded relations A\prec_A on AA and B\prec_B on BB, define the lexicographic order on A×BA \times B:

(a1,b1)(a2,b2)    a1Aa2(a1=a2b1Bb2)(a_1, b_1) \prec (a_2, b_2) \iff a_1 \prec_A a_2 \lor (a_1 = a_2 \land b_1 \prec_B b_2)

Well-Foundedness

If A\prec_A and B\prec_B are well-founded, then \prec (lexicographic) is well-founded.

Application

This justifies nested induction or induction on pairs.

Induction on Recursive Structures

Trees

For finite trees with subtree relation “is proper subtree of”:

This is well-founded (trees have finite depth).

Lists

For lists with “tail” operation:

“Is a proper suffix of” is well-founded.


Summary

  • Well-founded induction: if (yx.P(y))P(x)(\forall y \prec x. P(y)) \Rightarrow P(x) for all xx, then x.P(x)\forall x. P(x)
  • Proof: minimal element of counterexample set leads to contradiction
  • Specialises to strong induction on N\mathbb{N}
  • Lexicographic order preserves well-foundedness