1 Proof by Contradiction
1 Proof by Contradiction
we discuss various indirect methods of proof. While direct proof is often pre-
ferred it is sometimes either not possible or not aesthetically pleasing. In these
cases one may resort to proof by contradiction or proof by mathematical induc-
tion. Proof by contradiction is especially indicated for nonexistence statements,
in which case it is essentially direct proof of the corresponding universal state-
ment. Contradiction is also often used for proving implications, in which case
it is often just direct proof of the contrapositive. Induction is most naturally
used to prove statements for all natural numbers.
1 Proof by Contradiction
In writing a proof by contradiction, you begin by imagining a situation where
the claimed result fails, and show that this is in fact contradictory. For example:
Example 1. There is no largest real number.
Proof. Assume for the sake of contradiction that there was a largest real number,
say n (i.e. assume there exists n such that n ≥ x for all x). We know 1 > 0 so
n + 1 > n by the order axioms. But this contradicts the initial assumption that
n ≥ n + 1.
(Note that this is a theorem for any ordered field, with the same proof.)
This simple example shows the general form of a contradiction argument.
• First we clue the reader in to the fact that the proof is operating by
contradiction, “Assume for the sake of contradiction. . . ” is standard.
• We assume the negation of the statement to be proved.
• We do work to obtain a contradiction. It’s not necessarily obvious what
the contradiction will be in advance. The most satisfying proofs are when
the contradiction shows “why” the assumption can’t happen.
The process of writing a proof by contradiction involves some suspension of dis-
belief. In order to be effective you need to reason as if the assumption you believe
must be false is in fact true. In the real world of course, you may end up discov-
ering new territories where your desired theorem fails. For example, much of the
early work in non-Euclidean geometry was done by people who didn’t believe
such a thing was possible. They patiently went about proving theorems with
the full expectation that eventually they would reach a contradiction, whereas
we now know no such contradiction can arise1 . Another example:
Example 2. For any integers a, b the product ab is even if and only if a is even
or b is even.
1 More precisely, non-Euclidean geometry is contradictory if and only if ordinary Euclidean
geometry is.
1
Proof. If a is even or b is even then clearly the product is too (lemma from
last week). Conversely assume for the sake of contradiction that ab is even but
neither a nor b is. Say a = 2k + 1, b = 2j + 1. Then ab = (2k + 1)(2j + 1) =
2(2kj + k + j) + 1 is not even, contradicting the assumption.
Examining this proof, it is clear that what we proved directly was the con-
trapositive of the hard implication. We stated
P =⇒ Q and Q =⇒ P
P =⇒ Q and ¬P =⇒ ¬Q
, and indeed all 4 combinations of direction are often used without comment.
Exercise 1
Prove that for any integers a, b if 3 divides ab then 3 divides a or 3 divides b.
You may need to divide into cases.
2
so a2 is even and thus (by the previous example) a is even, say a = 2k. Then
2b2 = 4k 2
b2 = 2k 2
so by the same argument we see b is even. But this contradicts the assumption
that ab was in lowest terms.
This fact allegedly angered the Pythagoreans, who ascribed great mystical
significance to whole number ratios, and may or may not have taken Hippasus
on a very long boat trip shortly after his proof. So it goes.
We see here a great advantage of proof by contradiction: you get some start-
ing assumptions for free. Instead of heading out into the wilderness attempting
to prove P directly, you can simply assume ¬P and use that to prove all sorts of
stuff that would otherwise be inaccessible. For this reason it’s embarrassingly
common to by reflex assume the contrary of a statement, proceed to directly
prove said statement, and then conclude by saying your direct proof contradicts
the original assumption.
For future use we introduce some terminology.
Definition 1. A real number is rational if it can be written as a fraction
(necessarily non-unique). The set of all rational numbers is denoted Q. A real
number that is not rational is irrational.
√
So Hippasus’ theorem is usually stated “ 2 is irrational.”
The next example is perhaps the worst correct proof everyone should know.
√
Theorem 2. 3 2 is irrational.
√
Proof. Assume to the contrary that 3 2 = ab . Then we have
a3
2=
b3
2b3 = a3
b3 + b3 = a3
Contradicting Fermat’s Last Theorem.
Of course one can adapt Hippasus’ proof as well.
Some more easy examples:
Theorem 3. The complex numbers C (a field) cannot be given the structure of
an ordered field.
Proof. Recall that complex numbers are expressions a + bi, a, b ∈ R where
i2 = −1. Assume for the sake of contradiction that there is a relation < giving
C the structure of an ordered field. We proved previously that in an ordered field
x2 ≥ 0 for all x. On the other hand we have i2 = −1 < 0 a contradiction.
3
Example 3. If for two integers a, b 4 divides a2 − 3b2 then at least one of a, b
is even.
Proof. Assume for the sake of contradiction that a, b are odd but 4 divides a2 −
3b2 . We write a = 2j + 1, b = 2k + 1. Then
a2 − 3b2 = 4j 2 + 4j + 1 − 12k 2 − 12k − 3 = 4(j 2 + j − 3k 2 − 3k − 1) + 2
which is not divisible by 4 (division algorithm: we wrote it as 4l + 2 and 0 <
2 < 4).
Exercise 2
recreational math articles, though it’s not his game either. See the Wikipedia page for better
references.
4
Proof. Assume for the sake of contradiction that the board size is > 1 × 1 and
the P2 has a winning strategy. In this case if the first player P1 eats the bottom
right piece there is at least one move that P2 can respond with that places P1
into a losing position (as long as P2 continues to play perfectly). But notice that
whichever piece P2 chooses the eaten portion of the board is simply a rectangle,
and P1 could have chosen to eat that piece originally, thus placing P2 in the
exact same losing position (P1 would be able to “steal” P2’s strategy). This
contradicts the assumption that P2 had a winning strategy.
After following the proof you may now sit down to a game of Chomp confi-
dent that if you move first you can force a win, but with no idea how to do so
in practice.
Exercise 3
Using the same type of “strategy stealing” argument as we did for Chomp,
show that the second player in tic-tac-toe cannot have a winning strategy.
Theorem 6. e is irrational.
Proof. Assuming for nefarious purposes that e = ab , with a, b integers, we define
1 1 1
k = b!(e − 1 − − − ··· − )
1! 2! b!
We prove two things about k:
k is a positive integer Indeed, k is positive since b! is positive and the sum
1 1
1 + 1! + 2! + · · · + b!1 ) is less than e, since it is only the first b + 1 terms of
the sum of positive numbers defining e. Moreover k is an integer since b!
divides the denominator every term inside the parenthesis.
1
k is less than b+1 Recall the formula
1 1 1 1
= + 2 + 3 + ...
x−1 x x x
(True for x > 1. To convince yourself of this, ignoring convergence issues,
simply multiply both sides by x − 1.) Now we have
1 1 1 1
k= + + + +. . .
(b + 1) (b + 2)(b + 1) (b + 3)(b + 2)(b + 1) (b + 4)(b + 3)(b + 2)(b + 1)
5
but this is term-wise less than or equal to the sum
1 1 1
+ + + ...
(b + 1) (b + 1)2 (b + 1)3
1
which equals b by the formula.
These two conclusions are contradictory so we conclude that e cannot be ratio-
nal.
6
Example 4. For all natural numbers n > 0:
n
X n(n + 1)
i = 1 + 2 + 3 + ··· + n =
i=1
2
by assumption, and
k(k + 1) k 2 + 3k + 2 (k + 1)(k + 1 + 1)
+ (k + 1) = =
2 2 2
as desired.
By induction we conclude the result holds for all n.
Exercise 4
Eccles pg. 56, 20
Exercise 5
Eccles pg. 56, 21
7
Proof. Assume φ satisfies the hypothesis of the proposition. Then define φ0 (n)
to be
∀k ≤ n, φ(n)
By assumption φ0 (0) is true (since φ0 (0) is equivalent to φ(0)), and φ0 (n) =⇒
φ0 (n + 1). By (regular!) induction we conclude that φ0 (n) holds for all n, but
since φ0 (n) =⇒ φ(n) we observe that φ(n) is also true for all n, as desired.
We recall that strong induction was already used in the previous notes to
show that we can write arbitrary sums without parentheses (a priori the asso-
ciativity axiom only tells us this for sums of 3 terms). The reader is invited to
revisit that proof.
We now prove Theorem 4, that one of the players in Chomp has a winning
strategy. To this end we define a valid Chomp position to be winning if the
player moving from that position can force a win by playing perfectly (i.e. that
player has a winning strategy from that position). Similarly we define a position
as losing if the player moving from that position is guaranteed to lose provided
her opponent plays perfectly (the second player to move as a winning strategy).
The form of the Theorem we prove is that every valid Chomp position is either
winning or losing.
F1 = 1
F2 = 1
Fn = Fn−2 + Fn−1
8
(φ is the so-called Golden Ratio). Then we have:
φn − ψ n
Fn =
φ−ψ
for all n.
Proof. We use induction on n. Observe
√ that both φ, ψ satisfy the equation
x + 1 = x2 . Also note that φ − ψ = 5. We then have
φ−ψ
= 1 = F1
φ−ψ
φ2 − ψ 2 (φ + 1) − (ψ + 1)
= = 1 = F2
φ−ψ φ−ψ
, which together will form the base of our induction. Assume then that the
Binet formula holds for all n ≤ k. We wish to deduce it for n = k + 1. Well
φk−1 − ψ k−1 φk − ψ k
Fk+1 = +
φ−ψ φ−ψ
by assumption, so doing algebra:
φk−1 + φk − (ψ k−1 + ψ k )
Fk+1 =
φ−ψ
φk−1 (1 + φ) − ψ k−1 (1 + ψ)
=
φ−ψ
φk+1 − ψ k+1
=
φ−ψ
as desired. Hence the Binet formula holds for all n by induction.
Remark 2. In class Mark commented that this formula gives little insight into
the nature of the sequence Fn . I suppose this depends on what type of insights one
is desirous of, however one immediately can see the fact mentioned by Andreas
that
Fn+1 φn+1 − ψ n+1
lim = lim =φ
n→∞ Fn n→∞ φn − ψ n
(since |φ| > 1 and |ψ| < 1).
Exercise 6
Show that every natural number > 1 is divisible by a prime (that is, for all
n ∈ N, n > 1 there is some prime p such that p divides n).
9
Definition 2. A natural number p > 1 is prime if the only natural numbers
dividing it are 1 and p.
The standard result that everyone should know is
Theorem 7 (Attributed to Euclid). There are infinitely may prime numbers.
Proof. For the sake of contradiction assume that there are only finitely many
prime numbers, say p1 , p2 , . . . , pn . Consider the number
q = p1 p2 . . . pn + 1
By construction none of the primes on the list divide q (division algorithm: the
remainder is 1). On the other hand the Exercise shows that some prime must
divide q. Contradiction.
There is a third form of induction that is commonly used, based on the
following theorem.
Theorem 8 (Well Ordering Principle). Any nonempty subset of the natural
numbers N has a smallest element.
Proof. We will prove the statements φ(n): “Every subset of N containing n has
a least element” by strong induction on n. Clearly any subset containing 0 has
a least element, namely 0 (the smallest natural number). Furthermore let S
be a subset containing k + 1 and assume the claim holds for all n ≤ k. Then
either k + 1 is the smallest element of S or there is some smaller element, say
j ∈ S with j ≤ k. But then the induction hypothesis applies so S has a smallest
element in that case too.
The reader will observe that this conclusion fails for rational or real numbers.
The set of all positive real numbers, for example, has no smallest element.
For writing proofs a common use of the Well Ordering Principle is proof by
minimal counterexample. This is a proof by contradiction wherein one notes
that if counterexamples exist then there must be a smallest one, and works for
a contradiction from there. An example from folklore:
“Theorem” 1. Every natural number is interesting.
Proof. Assume not. Then there are some uninteresting numbers and so by Well
Ordering there must be a smallest one. But being the smallest uninteresting
number is a very interesting property.
It is often stated that the Well Ordering Principle is strictly equivalent (in
Peano arithmetic) to the other forms of induction, and you can find many proofs
online or in textbooks. This is false. One needs to be in a setting slightly
stronger than Peano arithmetic for this theorem to hold, in particular you need
to somehow arrive at the following fact
Fact 1 (Predecessor Theorem). Every natural number other than 0 is the suc-
cessor of some other natural number.
10
Theorem 9. The Well Ordering Principle plus the Predecessor Theorem imply
the Induction Principle.
Proof. We start with the hypothesis of the Induction Principle: a family of
statements φ(n) such that
• φ(0) is true.
• φ(k) =⇒ φ(k + 1) (so ¬φ(k + 1) =⇒ ¬φ(k)).
Assume that the Well Ordering Principle holds but somehow φ(n) is not true
for some n. Then there is a smallest n (“minimal counterexample”) such that
φ(n) is not true. Since this is not 0 by assumption we can write the minimal
counterexample as k + 1 and so by the second point of the assumptions k is also
a counterexample, contradicting minimality.
The upshot is that in practical settings any inductive proof can be phrased
as a proof by minimal counterexample, which is often my favorite way to think
about them. Moreover inductive type arguments can often be constructed for
any well ordered set, not just the naturals (more on this later).
Finally we worked a fun combinatorial example. Define the Catalan numbers
Cn inductively as follows:
C1 = 1
n−1
X
Cn = Ci Cn−i
i=1
• (a + b) + (c + d)
• a + ((b + c) + d)
• a + (b + (c + d))
11
are Ci and Cn−i ways to parenthesise S1 and S2 , so Ci Ck+1−i total ways to
parenthesise a sum of k + 1 elements given that particular choice of final “+”
sign. There are k such choices so the total number of parenthesisztions is
k
X
Ci Ck+1−i = Ck+1
i=1
as desired.
12