Proof by Contadiction
Proof by Contadiction
Proof by Contradiction
196
CHAPTER 17. PROOF BY CONTRADICTION 197
Proof: Suppose not. That is, suppose that there were a largest
even integer. Let’s call it k.
Since k is even, it has the form 2n, where n is an integer. Consider
k + 2. k + 2 = (2n) + 2 = 2(n + 1). So k + 2 is even. But k + 2
is larger than k. This contradicts our assumption that k was the
largest even integer. So our original claim must have been true.
The proof starts by informing the reader that you’re about to use proof
by contradiction. The phrase “suppose not” is one traditional way of doing
this. Next, you should spell out exactly what the negation of the claim is.
Then use mathematical reasoning (e.g. algebra) to work forwards until you
deduce some type of contradiction.
√
17.2 2 is irrational
One
√ of the best known examples of proof by contradiction is the proof that
2 is irrational. This proof, and consequently knowledge of the existence of
irrational numbers, apparently dates back to the Greek philosopher Hippasus
in the 5th century BC.
We defined a rational number to be a real number that can be written as
a fraction ab , where a and b are integers and b is not zero. If a number can
be written as such a fraction, it can be written as a fraction in lowest terms,
i.e. where a and b have no common factors. If a and b have common factors,
it’s easy to remove them.
Also, we proved (above) that, for any integer k, if k is odd then k 2 is odd.
So the contrapositive of this statement must also be true: (*) if k 2 is even
then k is even.
Now, we can prove our claim:
√
Suppose not. That is, suppose that 2 were rational.
√ a
Then we can write 2 as a fraction b
where a and b are integers
with no common factors.
CHAPTER 17. PROOF BY CONTRADICTION 198
√ a2
Since 2 = ab , 2 = b2
. So 2b2 = a2 .
By the definition of even, this means a2 is even. But then a must
be even, by (*) above. So a = 2n for some integer n.
If a = 2n and 2b2 = a2 , then 2b2 = 4n2 . So b2 = 2n2 . This means
that b2 is even, so b must be even.
We now have a contradiction. a and b were chosen not to have
any common factors. But they are both even, i.e. they are both
divisible by 2.
√
Because assuming that√ 2 was rational led to a contradiction, it
must be the case that 2 is irrational.
Proof: Suppose not. That is, suppose there were only finitely
many prime numbers. Let’s call them p1 , p2 , up through pn .
Consider Q = p1 p2 · · · pn + 1.
If you divide Q by one of the primes on our list, you get a re-
mainder of 1. So Q isn’t divisible by any of the primes p1 , p2 ,
up through pn . However, by the Fundamental Theorem of Arith-
metic, Q must have a prime factor (which might be either itself
or some smaller number). This contradicts our assumption that
p1 , p2 ,. . . pn was a list of all the prime numbers.
CHAPTER 17. PROOF BY CONTRADICTION 199
Notice one subtlety. We’re not claiming that Q must be prime. Rather,
we’re making the much weaker claim that Q isn’t divisible by any of the first
n primes. It’s possible that Q might be divisible by another prime larger
than pn .
So, on the face of it, lossless file compression algorithms can’t win. How
do they work so well in practice? One secret is that compression algorithms
can ensure that file sizes never increase much. If a file would increase in size,
the algorithm stores the original version unchanged, preceded with a one-bit
marker. This bounds the potential damage if we encounter a “bad” input
file.
The second secret is that commonly-occurring files are not created at
random but have definite patterns. Text files contain natural language text.
Digitized images contain values that tend to change gradually. Compression
algorithms are tuned so that common types of files shrink. The fact that
some files might get bigger isn’t a serious practical problem if those files are
unlikely to occur on your disk.
17.5 Philosophy
Proof by contradiction strikes many people as mysterious, because the argu-
ment starts with an assumption known to be false. The whole proof consists
of building up a fantasy world and then knocking it down. Although the
method is accepted as valid by the vast majority of theoreticians, these proofs
are less satisfying than direct proofs which construct the world as we believe
it to be. The best mathematical style avoids using proof by contradiction
except when it will definitely result in a much simpler argument.
There is, in fact, a minority but long-standing thread within theoretical
mathematics, called “constructive mathematics,” which does not accept this
proof method. They have shown that most of standard√mathematics can
be re-built without it. For example, the irrationality of 2 can
√ be proved
constructively, by showing that there is an error separating 2 from any
chosen fraction ab .