Sheet 13 of 22
Direct proof, contradiction, induction
Needs sheet 09 for proof structure and sheet 10 for quantifiers.
Proofs in a mathematics paper are written in English with symbols in it. They skip steps that a proof system would spell out, and a reader is trusted to fill them in. Underneath, each one uses a small number of strategies, and each strategy is a rule from sheet 09 in everyday clothes.
Definition
Even, odd. An integer n is even when n = 2k for some integer k, and odd when n = 2k + 1 for some integer k.
Definitions come first because proofs start by unpacking them. A surprising amount of proving is just replacing a word with what it means.
13.1 Direct proof
To prove P → Q, assume P and work forward to Q. This is →I.
Example
Claim. The sum of two even numbers is even. Proof. Let m and n be even, so m = 2a and n = 2b for integers a and b. Then m + n = 2a + 2b = 2(a + b), and a + b is an integer, so m + n is even.
Notice “let m and n be even”. They are arbitrary, so the result holds for all evens. That is ∀I from sheet 10, and it is why a proof written about one m is really about every m.
13.2 Disproof by counterexample
A universal claim falls to a single case. Patterns, however long, do not prove one.
Counterexample
Is n² + n + 41 always prime? Try n = 0: 41. n = 1: 43. n = 2: 47. n = 3: 53. It stays prime for every n from 0 to 39, a result known since Euler. Then at n = 40 it gives 1681 = 41². Forty confirmations, and it is false.
Counterexample
Place n points on a circle and join all pairs. How many regions does the disc split into, if no three lines meet at a point inside? For 1 to 5 points: 1, 2, 4, 8, 16. Next is obviously 32. It’s 31.
13.3 Contraposition
Sometimes the direct route is blocked, but the contrapositive is easy. Since P → Q and ¬Q → ¬P are equivalent (sheet 06), proving one proves the other.
Example
Claim. If n² is even, then n is even. A direct attempt begins with n² = 2k and gets stuck, since square roots don’t help. Proof. Show the contrapositive instead: if n is odd then n² is odd. Let n = 2k + 1. Then n² = 4k² + 4k + 1 = 2(2k² + 2k) + 1, which is odd.
13.4 Contradiction
To prove P, assume ¬P and derive a contradiction. This is ¬I with DNE.
Example
Claim. √2 is irrational. Proof. Suppose it is rational, so √2 = a/b with integers a and b sharing no common factor. Squaring gives a² = 2b², so a² is even, and so a is even by the result above. Let a = 2c. Then 4c² = 2b², so b² = 2c², and b is even too. Then a and b share the factor 2, contradicting the choice of a and b. So √2 is not rational.
This result was known in ancient Greece, and it is usually linked to the Pythagoreans. Here is a second classic.
Example
Claim. There are infinitely many primes. Proof. This is the argument of Euclid’s Elements, Book IX, in modern form. Take any finite list of primes, multiply them together and add 1. Call the result N. N has at least one prime factor, and it cannot be any prime on the list, since each of those leaves remainder 1 when dividing N. So the list was incomplete. Thus no finite list contains all the primes.
Counterexample
It is a common misreading to think N itself must be prime. For the list 2, 3, 5, 7, 11, 13 you get N = 30031 = 59 × 509. The proof needs only that N has a prime factor missing from the list. Euclid’s own version is in fact more direct than a reductio: it shows how to extend any list.
Proofs by contradiction can be overused. If your “contradiction” is just the original P turning up again, you have a direct proof wearing a costume, and it reads better without.
13.5 Cases
Split the possibilities, prove the result in each. This is ∨E.
Example
Claim. n² + n is even for every integer n. Proof. If n is even, then n² and n are both even, so the sum is. If n is odd, both n² and n are odd, and two odds sum to an even. These two cases cover every integer.
The cases must exhaust the possibilities, and that check is the place to take care. The 1976 proof of the four colour theorem by Kenneth Appel and Wolfgang Haken used a computer to go through a very large number of cases, and the debate it set off about whether that counts as a proof is an interesting one.
13.6 Mathematical induction
Here is a way to prove something for infinitely many numbers in finite space.
Definition
Mathematical induction. To prove that a property holds of all natural numbers: prove it for the first (the base case), and prove that whenever it holds for k, it holds for k + 1 (the inductive step).
Picture a line of dominoes. Knock over the first, and ensure each topples the next. The method is deductive, despite the name (sheet 03): the principle is one of the axioms of arithmetic.
Example
Claim. 1 + 2 + … + n = n(n + 1)/2 for all n ≥ 1. Base case. For n = 1, both sides equal 1. Inductive step. Assume the formula for k. Then 1 + … + k + (k + 1) = k(k + 1)/2 + (k + 1) = (k + 1)(k + 2)/2, which is the formula for k + 1. So it holds for all n.
Strong induction is a variant in which the step assumes the claim for all numbers up to k. It is what you want when the case k + 1 breaks into smaller pieces of unknown size.
Example
Claim. Every integer above 1 is a product of primes. Proof. Suppose every integer from 2 up to k is. If k + 1 is prime, it is already a product of one prime. If not, then k + 1 = ab with a and b smaller and at least 2. Both are products of primes, so k + 1 is too.
13.7 A proof with a hole
The following is usually credited to George Pólya, and it is a good test of whether you see what an inductive step requires.
Try to break this
Claim. All horses are the same colour. Proof. By induction on the size of a set of horses. A set of one horse is all one colour. Suppose any set of k horses is one colour. Take a set of k + 1 horses. Remove one horse: the remaining k are one colour. Put it back and remove a different horse: again the remaining k are one colour. The two groups overlap, so all k + 1 are the same colour. Find the mistake. The answer is in the exercises.
13.8 Existence
Some proofs of “there exists” hand over the thing. Others do not.
Example
Claim. There are irrational numbers a and b with aᵇ rational. Proof. Consider √2 raised to the power √2. If it is rational, take a = b = √2. If it is irrational, take a to be that number and b = √2: then aᵇ = √2² = 2. Either way such a pair exists.
The proof does not say which case is true. It relies on the law of excluded middle, which is why the intuitionists of sheet 09 don’t accept it. (A separate, much deeper theorem does settle the matter: the number is irrational.)
13.9 Reading and writing proofs
Some practical advice follows, and all of it is about being kind to the reader.
- State what you are proving, and which technique you are using.
- Write sentences. Symbols are abbreviations. They do not replace the words “so” and “suppose”.
- Never start from the thing you want to prove and work towards something true. That shows that the claim implies a truth, which is affirming the consequent (sheet 08). Reversible steps can be rescued, but you must say so.
- Test the claim on small examples before you try to prove it, and try to break it. George Pólya’s How to Solve It (1945) remains good on this.
13.10 Exercises
Prove that the product of two odd numbers is odd.
Answer
Let
m = 2a + 1andn = 2b + 1. Thenmn = 4ab + 2a + 2b + 1 = 2(2ab + a + b) + 1, which is odd.Find the flaw in the proof that all horses are the same colour.
Answer
The step fails going from a set of 1 to a set of 2. With two horses, remove one, leaving horse A; remove the other, leaving horse B. The two groups do not overlap at all, so the “same colour as the overlap” move has nothing to work with. The step works for every larger k, and the base and step do not join up.
Use induction to show that
2ⁿ > nfor all natural numbers n.Answer
Base:
2⁰ = 1 > 0. Step: assume2ᵏ > k. Then2ᵏ⁺¹ = 2 · 2ᵏ > 2k, and2k ≥ k + 1whenk ≥ 1, which gives2ᵏ⁺¹ > k + 1. The case k = 0 is checked directly:2 > 1.Which technique would you try first for “If
3n + 2is odd, then n is odd”? Carry it out.Answer
Contraposition. Suppose n is even, with
n = 2k. Then3n + 2 = 6k + 2 = 2(3k + 1), which is even.Someone proves “
1 = 2” as follows: leta = b. Thena² = ab, soa² − b² = ab − b², so(a + b)(a − b) = b(a − b), soa + b = b, so2b = b, so2 = 1. Where is the error?Answer
Dividing by
a − b, which is zero. Every step before that is fine.A student’s proof that “
x > 1impliesx² > x” starts withx² > xand simplifies tox > 1. What is wrong, and how could it be repaired?Answer
It works from the conclusion to the hypothesis, so it proves the converse. Here it can be repaired by reversing the order. Start with
x > 1, multiply both sides by the positive number x, and getx² > x.