81. Proving implications: the Contrapositive Method

It is very common to use the contrapositive to prove an implication. Since “$P \Rightarrow Q$” is equivalent to “$\neg Q \Rightarrow \neg P$”, you can prove “$P \Rightarrow Q$” by using the direct method to prove “$\neg Q \Rightarrow \neg P$”. In detail:

81.0.3 Method: Contrapositive Method

(The contrapositive method) To prove $P \Rightarrow Q$, assume $Q$ is false and deduce that $P$ is false.

81.0.4 Warning This method is typically used in math texts without mentioning that the contrapositive is being used. You have to realize that yourself.

81.0.5 Example The proof of the following theorem is an illustration of the use of the contrapositive, written the way it might be written in a math text. Recall that an integer $k$ is even if $2 \mid k$.

81.1 Theorem

For all positive integers $n$, if $n^{2}$ is even, so is $n$.

Proof Let $n$ be odd. Then 2 does not occur in the prime factorization of $n$. But the prime factorization of $n^{2}$ merely repeats each prime occurring in the factorization of $n$, so no new primes occur. So 2 does not occur in the factorization of $n^{2}$ either, so by Theorem 80.2, $n^{2}$ is odd. This proves the theorem.

81.1.1 Remarks

a) If you didn’t think of proving the contrapositive, you might be dumbfounded when you saw that a proof of a theorem which says “if $n^{2}$ is even then $n$ is even” begins with, “Let $n$ be odd...” The contrapositive of the statement to be proved is, “If $n$ is odd, then $n^{2}$ is odd.” The proof of the contrapositive proceeds like any direct-method proof, by assuming the hypothesis ($n$ is odd).

b) The contrapositive of Theorem 80.2 is used in the proof of Theorem 81.1. That theorem says that if $n$ is even, then its prime factorization contains 2. Here we are using it in its contrapositive form: if 2 does not occur in the prime factorization of $n$, then $n$ is not even, i.e., $n$ is odd. Again, the proof does not mention the fact that it is using Theorem 80.2 in the contrapositive form.

c) Theorem 81.1, like most theorems in mathematics, is a universally quantified implication, so using universal generalization we showed that if $n$ is an arbitrary positive integer satisfying the hypothesis, then it must satisfy the conclusion. In such a proof, we are not allowed to make any special assumptions about $n$ except that it satisfies the hypothesis. On the other hand, if we suspected that the theorem were false, we could prove that it is false merely by finding a single positive integer $n$ satisfying the hypothesis but not the conclusion. (Consider the statement, “If $n$ is prime, then it is odd.”) This phenomenon has been known to give students the impression that proving statements is much harder than disproving them, which somehow doesn’t seem fair.

81.1.2 Exercise Prove by the contrapositive method that if $n^{2}$ is odd then so is $n$.

81.2 Exercise set

Exercises 81.2.1 through 81.2.3 provide other methods of proof.

81.2.1 Exercise Prove that

$$(P \wedge \neg Q )\Leftrightarrow \neg (P \Rightarrow Q) \tag{81.1}$$

is a tautology. Thus to prove that an implication is false, you must show that its hypothesis is true and its conclusion is false. In particular, the negation of an implication is not an implication.

81.2.2 Exercise Prove that the rule

$$\neg P \Rightarrow Q \vdash P \vee Q \tag{81.2}$$

is a valid inference rule. (A proof using this rule would typically begin the proof of $P \vee Q$ by saying, “Assume $\neg P$...” and then proceed to deduce $Q$.)

81.2.3 Exercise Prove that the rule

$$P \Rightarrow Q, Q \Rightarrow R \vdash P \Rightarrow R$$

is a valid inference rule. (This allows proofs to be strung together.)

81.2.4 Exercise (hard) Use the methods of this chapter to prove that $n$ is prime if and only if $n >1$ and there is no divisor $k$ of $n$ satisfying $1< k \leq \sqrt{n}$.

Pages 120–121 of the book (PDF).