Proof by Contradiction

So far, we have looked exclusively at proofs by construction where our goal is to construct an object, e.g., an evaluation trace that provides evidence that a proposition holds. However, in some cases, it is not feasible to construct such evidence directly. This is particularly true when we to prove that an object does not obey some property of interest. Indeed, as we've seen from our study of mathematical logic, reasoning about the negation of a property can be subtly tricky!

In these situations, we can employ a different proof technique, proof by contradiction, to show the proposition of interest. Proving a proposition by contradiction proceeds as follows:

  • For the sake of contradiction, assume that , i.e., the negation of the goal proposition, is true.
  • From this assumption, derive additional facts until we can exhibit a logical contradiction.
  • If we are able to derive a contradiction, we know that it must be because we assumed holds. Thus, it must be the case that does not hold and therefore holds instead.

Note that in terms of our formal natural deduction rules, this final step invokes the law of the excluded middle:

Definition (Law of the Excluded Middle)

For any proposition , exactly one of or is provable.

We saw this briefly when we reasoned about set inclusion proofs involving the empty set. However, reasoning via contradiction is pervasive throughout mathematics. A classical example of contradiction proof is showing that is irrational. Recall that the definition of a rational number.

Definition (Rational Number)

A number is considered rational whenever there exists numbers and such that .

In other words, a number is rational if it can be expressed as a fraction.

In contrast, an irrational number is precisely a number that is not rational! By "negating" the definition of rational number, we see that we must show that there is no way to decompose the number into a fraction. But that means that we have to show that every possible fractional decomposition does not work, a much harder task than exhibiting a single fractional decomposition!

Instead of this route, we can use a proof by contradiction. We will assume that is irrational and then follow our nose until we arrive at a contradiction.

Take the time to read and scrutinize this classic proof! It is especially important to understand the details of a proof by contradiction because one misstep or unstated assumption can lead to a contradiction that may not be real.

Proof (Irrationality of square root of two)

Claim: is irrational.

Proof. Assume for the sake of contradiction that is rational. By the definition of rational, there exists and such that . Furthermore, assume that is simplified, i.e., and have no common factors. Now consider the following algebraic manipulation:

Observe that must be even because it is divisible by 2 (precisely because it is equal to ). Because the square of an even number is also even, must be even as well. Therefore, for some integer . Substituting back for yields:

Now observe that must be even as well because it is divisible by 2 as well and thus is even. However, we have now established that both and are even. This is a contradiction because we assumed they had no factors in common, but, in fact, they do---the common factor is 2.

Thus, our original assumption that is rational is incorrect; must be irrational, instead.

Reading Exercises

Check 1: Empty Set Inclusion (‡)

Prove the following set equality using a proof by contradiction:

Claim

For any sets and , .