4.5 Proof by contradiction
Consider the conditional statement ‘’ and suppose we know that statement is false. This situation can be represented by the Euler diagram in Figure 4.2. (See Section 3.2.4 if you need to remind yourself about this.)
We can deduce that statement must also be false, because it is not possible to place a dot outside but inside . This is the key to the idea of a proof by contradiction: it is impossible to start with a true statement and deduce a false statement using valid logical deduction.
This means that we can prove a statement is true by showing that ‘not ’ for some statement that we know is false. As is false, ‘not ’ must also be false and so must be true. Such a proof of is called a proof by contradiction.
Example 4.23.
Let’s prove by contradiction that there is no integer that is both odd and even. This means that we should assume the negation is true and use that to deduce a statement that we know is false.
So, assume that there is some integer that is both even and odd. [Convince yourself that this is indeed the negation.] By definition (see Definition 2.6) this means we can write and for some integers and . This means that
(replacing ) | ||||||
(rearranging) | ||||||
(factorising) | ||||||
(dividing both sides by ). |
The statement must be false because and are integers and so must also be an integer. Every step of the argument is a valid logical deduction, and so the only statement involved that could be false (and must be false!) is the statement that there is some integer that is both even and odd.
Example 4.24.
We shall prove that there is no integer such that .
For a contradiction, assume that there is an integer with . Because is even then, by Exercise 4.21, must be even too. This means that there is an integer such that . Therefore and so
(since ) | ||||||
(dividing both sides by ). |
Because is an integer, this last equation implies that is even (since it can be written as times an integer). This contradicts the fact that is not even (as discussed after Definition 2.6) and so our assumption that such an integer exists must be false.
Note that in these examples, we clearly stated what we were assuming and that these assumptions were ‘for a contradiction’. You should do this too – it will help the reader to understand the structure of your proof.
Exercise 4.25.
Prove that if and are positive integers then .
-
Solution.For a contradiction, assume that and are positive integers and that . Then, by factorising the left-hand side, we have
As and are integers, so are and . Moreover, as and are positive, must also be positive. The only way two integers, one of which is positive, can multiply to give is if both are equal to , thus and must solve these equations simultaneously:
Adding the two equations gives and so . Putting in either equation gives . This contradicts our assumption that was a positive integer and so our assumption that must be false.