86. Proof by Contradiction

Another hard-to-understand method of proof is proof by contradiction, one form of which is expressed by this rule of inference:

86.1 Theorem

$$\neg Q, P \Rightarrow Q \vdash \neg P \tag{86.1}$$

86.1.1 Remarks

a) Theorem 86.1 follows from the tautology

$$\left(\neg Q \wedge (P \Rightarrow Q)\right) \Rightarrow \neg P$$

b) This rule says that to prove $\neg P$ it suffices to prove $\neg Q$ and that $P \Rightarrow Q$.

86.1.2 Usage A proof using the inference rule of Theorem 86.1 is called proof by contradiction, or reductio ad absurdum (“r.a.a”).

86.1.3 Remarks

a) In practice it frequently happens that $Q$ is obviously false so that the work goes into proving $P \Rightarrow Q$. Thus a proof of $\neg P$ by contradiction might begin, “Suppose $P$ is true...”!

b) Authors typically don’t tell the reader they are doing a proof by contradiction. It is generally true that mathematical authors are very careful to tell the reader which previous or known theorems his proof depends on, but says nothing at all about the rule of inference or method of proof being used.

As an illustration of proof by contradiction, we will prove this famous theorem:

86.2 Theorem

$\sqrt{2}$ is not rational.

86.2.1 Remarks

a) The discovery of this theorem by an unknown person in Pythagoras’ religious colony in ancient Italy caused quite a scandal, because the “fact” that any real number could be expressed as a fraction of integers was one of the beliefs of their religion (another was that beans were holy).

b) Theorem 86.2 is a remarkable statement: it says that there is no fraction $m/n$ for which $(m/n)^{2} = 2$. Although $\sqrt{2}$ is approximately equal to $1414/1000$, it is not exactly equal to any fraction of integers whatever. The fact that $\sqrt{2}$ has a nonterminating decimal expansion does not of course prove this, since plenty of fractions (e.g., $1/3$) have nonterminating decimal expansions.

How on earth do you prove an impossibility statement like that? After all, you can’t go through the integers checking every fraction $m/n$. It is that sort of situation that demands a proof by contradiction.

Proof Here is the proof, using the Fundamental Theorem of Arithmetic. Suppose $\sqrt{2}$ is rational, so that for some integers $m$ and $n$, $2 = (m/n)^{2}$. Then $2n^{2} = m^{2}$. Every prime factor in the square of an integer must occur an even number of times. Thus $\mathrm{e}_{2}(m^{2})$ is even and $\mathrm{e}_{2}(n^{2})$ is even. But $\mathrm{e}_{2}(2n^{2}) = 1 + \mathrm{e}_{2}(n^{2})$, so $\mathrm{e}_{2}(2n^{2})$ is odd, a contradiction.

86.2.2 Remark In fact, $\pi$ (and many other numbers used in calculus) is not rational either, but the proof is harder.

86.2.3 Worked Exercise Use the Fundamental Theorem of Arithmetic to prove that there are an infinite number of primes. Answer This will be a proof by contradiction. Suppose there is a finite number of primes: suppose that $p_{1},p_{2},... ,p_{k}$ are all the primes. Let $m = p_{1} \cdot p_{2} \cdots p_{k} + 1$. Then the remainder when $m$ is divided by any prime is 1. Since no prime divides $m$, it cannot have a prime factorization, contradicting the Fundamental Theorem of Arithmetic.

86.2.4 Exercise Use proof by contradiction to prove that if $p$ is a prime and $p >2$, then $p$ is odd. (Answer on page 247.)

86.2.5 Exercise Prove that for all rational numbers $x$, $(x^{2} < 2)\Leftrightarrow (x^{2} \leq 2)$.

86.2.6 Exercise Give an example of a pair of distinct irrational numbers $r$ and $s$ with the property that $r +s$ is rational.

86.2.7 Exercise Use proof by contradiction to prove that if $r$ and $s$ are real numbers and $r$ is rational and $s$ is not rational, then $r +s$ is not rational.

86.2.8 Exercise Use proof by contradiction to prove that for any integer $k >1$ and prime $p$, the $k$th root of $p$ is not rational.

86.2.9 Exercise (hard) Use Problem 86.2.8 to prove that the $k$th root of a positive integer is either an integer or is not rational.

86.2.10 Exercise (hard) Show that there are infinitely many primes $p$ such that $p \operatorname{mod} 4 = 3$. Hint: Use proof by contradiction. Assume there are only finitely many such primes, and consider the number $m$ which is the product of all of them. Consider two cases, $m \operatorname{mod} 4 = 1$ and $m \operatorname{mod} 4 = 3$, and ask what primes can divide $m + 2$ or $m + 4$. Use problem 60.5.6, page 85 and other similar facts. Note that the similar statement about $p \operatorname{mod} 4 = 1$ is also true but much harder to prove.

Pages 125–127 of the book (PDF).