The Timpson Lyceum seal

The Timpson Lyceum · Discrete Math (2025)

Proof by Smallest Counterexample and Induction - Lecture 11 (Discrete Math)

Overview

This lecture develops two closely related techniques for proving that every natural number has some property: proof by smallest counterexample and proof by induction. Both rest on the well-ordering principle — the fact that every non-empty set of natural numbers has a least element. We first set up smallest counterexample as a contradiction argument (assume the set of "bad" numbers is non-empty, extract its least element, and derive an impossibility), then prove the principle of induction as a theorem from well-ordering and use it to verify summation formulas. These methods are foundational: any later course built on mathematics will use induction constantly to prove statements that must hold across infinitely many cases.

Key Concepts

Counterexample vs. smallest counterexample. A single counterexample disproves a universal statement (e.g. 33 disproves "every integer is even"). A smallest counterexample is the least value that falsifies the statement. Over the integers there is no smallest counterexample to "every integer is even" (the integers have no least element); over the naturals N={0,1,2,… }\mathbb{N} = \{0,1,2,\dots\} the smallest counterexample is 11. Smallest counterexamples exist for the naturals precisely because of well-ordering.

Well-ordering principle. Every non-empty subset of N\mathbb{N} has a least element. This is an axiom (it is provided by, and is logically equivalent to, the axiom of choice in ZFC); it is not something we prove. It supplies the notion of order that bare set theory does not.

Proof by contradiction (review). α⇒β\alpha \Rightarrow \beta is logically equivalent to (α∧¬β)⇒False(\alpha \wedge \neg\beta) \Rightarrow \text{False}. Intuitively: if having α\alpha without β\beta is impossible, then α\alpha forces β\beta.

Property / predicate. A property PP is a one-place predicate: feed it a natural number, it returns true or false (e.g. "is even").

Smallest-counterexample template. To prove every n∈Nn \in \mathbb{N} has property PP:

The opening and closing of every such proof are identical boilerplate; the real work is the middle step that turns "x−1x-1 has the property" into "xx has the property."

Principle of induction (a theorem, proved from well-ordering). If A⊆NA \subseteq \mathbb{N} satisfies 0∈Aand(k∈A⇒k+1∈A),0 \in A \quad\text{and}\quad \big(k \in A \Rightarrow k+1 \in A\big), then A=NA = \mathbb{N}. Intuition: 00 is in, so 11 is in, so 22 is in, and so on through every natural. The proof takes B=N∖AB = \mathbb{N} \setminus A, assumes B≠∅B \neq \varnothing, lets xx be its least element; then x≠0x \neq 0 (since 0∈A0 \in A), so x−1∈Ax-1 \in A, and the closure property forces x=(x−1)+1∈Ax = (x-1)+1 \in A — contradicting x∈Bx \in B.

Proof by induction (the technique). To show P(n)P(n) for all nn, let A={ n∈N:P(n) }A = \{\, n \in \mathbb{N} : P(n) \,\} (the set of values making the statement true) and verify the two hypotheses above:

Then A=NA = \mathbb{N} (or all naturals from the base value up), so PP holds everywhere. Unlike smallest counterexample, this is not a proof by contradiction, which makes it easier to follow; the two methods are logically equivalent.

Definitions used in the examples.

Worked Example

Claim (proved by induction): for every n∈Nn \in \mathbb{N}, ∑k=0nk=n(n+1)2\displaystyle \sum_{k=0}^{n} k = \frac{n(n+1)}{2}.

Let A={ n∈N:∑k=0nk=n(n+1)2 }A = \big\{\, n \in \mathbb{N} : \sum_{k=0}^{n} k = \tfrac{n(n+1)}{2} \,\big\}.

Base case (n=0n=0): ∑k=00k=0=0(0+1)2\sum_{k=0}^{0} k = 0 = \dfrac{0(0+1)}{2}, so 0∈A0 \in A.

Inductive step: assume x∈Ax \in A, i.e. ∑k=0xk=x(x+1)2\sum_{k=0}^{x} k = \dfrac{x(x+1)}{2}. Add the next term x+1x+1 to both sides:

∑k=0x+1k=∑k=0xk+(x+1)=x(x+1)2+(x+1)=x(x+1)+2(x+1)2=x2+3x+22=(x+1)(x+2)2.\begin{aligned} \sum_{k=0}^{x+1} k &= \sum_{k=0}^{x} k + (x+1) \\ &= \frac{x(x+1)}{2} + (x+1) \\ &= \frac{x(x+1) + 2(x+1)}{2} = \frac{x^2 + 3x + 2}{2} \\ &= \frac{(x+1)(x+2)}{2}. \end{aligned}

This is exactly the formula with nn replaced by x+1x+1, so x+1∈Ax+1 \in A. By the principle of induction A=NA = \mathbb{N}, hence the formula holds for every natural number. (For example, ∑k=01000k=1000⋅10012=500,500\sum_{k=0}^{1000} k = \frac{1000 \cdot 1001}{2} = 500{,}500.)

Representative smallest-counterexample proof (sketch): to prove ∑k=1n(2k−1)=n2\sum_{k=1}^{n}(2k-1) = n^2 for all n≥1n \ge 1 — "the sum of the first nn odd numbers is n2n^2" — let AA be the naturals where it fails, assume A≠∅A \neq \varnothing, take its least element xx. Since n=1n=1 works (∑k=11(2k−1)=1=12\sum_{k=1}^{1}(2k-1) = 1 = 1^2), we have x≥2x \ge 2, so x−1≥1x-1 \ge 1 makes the statement true: ∑k=1x−1(2k−1)=(x−1)2\sum_{k=1}^{x-1}(2k-1) = (x-1)^2. Adding the xx-th odd term 2x−12x-1 gives ∑k=1x(2k−1)=(x−1)2+(2x−1)=x2−2x+1+2x−1=x2\sum_{k=1}^{x}(2k-1) = (x-1)^2 + (2x-1) = x^2 - 2x + 1 + 2x - 1 = x^2, so xx makes the statement true — contradicting x∈Ax \in A. Thus A=∅A = \varnothing and the formula holds for all n≥1n \ge 1.

Summary