Proofs and induction · Definition
Proof by contradiction
Before you start you need to know
It helps when it is easier to exploit the falsity of a statement than to build its truth directly.
Definition
A proof by contradiction of a statement \(p\) assumes \(p\) is false and deduces something absurd from it, so that \(p\) must be true.
The method relies on the fact that a statement and its negation cannot both be true. If negating \(p\) leads to an absurdity, then \(p\) cannot be false. The absurdity is usually a statement of the form «\(r\) and not \(r\)»: for example, a number that is even and odd at once, or a fraction in lowest terms that turns out reducible.
The classic example is the irrationality of \(\sqrt2\). Assume \(\sqrt2=a/b\) with \(a/b\) in lowest terms; then \(a^2=2b^2\), so \(a\) is even, \(a=2c\) and \(b^2=2c^2\), so \(b\) is even too. But then the fraction was not in lowest terms. Another is Euclid's: if the primes were \(p_1,\dots,p_n\), the number \(N=p_1\cdots p_n+1\) is divisible by none of them, so it has a prime factor outside the list.
For an implication \(p\Rightarrow q\), assume \(p\) together with \(\neg q\), since that is the negation of the implication. Do not confuse this with the contrapositive, which proves \(\neg q\Rightarrow\neg p\) directly and looks for no absurdity.
Use it when the statement says something does not exist or is impossible («there is no», «is irrational», «are infinite»), because negating it gives a concrete object to work with.
Think about it
What is the difference between contradiction and contrapositive?
The contrapositive proves \(\neg q\Rightarrow\neg p\) directly; contradiction assumes \(p\wedge\neg q\) and reaches any absurdity.
Exercises 10
- To prove \(p\) by contradiction, the first step is:
- We want to prove «there are infinitely many primes» by contradiction. What is assumed?
- If the complete list of primes were \(2,3,5\), what is \(N=2\cdot3\cdot5+1\)?
- Assume \(\sqrt2=a/b\) with \(a/b\) in lowest terms and obtain \(a^2=2b^2\). What follows immediately?
- In the proof that \(\sqrt2\) is irrational, where is the contradiction?
- To prove «if \(p\) then \(q\)» by contradiction, assume:
- To prove that the sum of a rational \(r\) and an irrational \(x\) is irrational, assume \(r+x=s\) with \(s\) rational. What contradiction arises?
- Which of these is a valid contradiction at the end of a proof?
- To prove that \(a^2-b^2=2\) has no integer solutions, assume a solution. Then \((a-b)(a+b)=2\); which argument gives the contradiction?
- We want to prove that among any three integers two have the same parity. Assume not. What is the contradiction?
References
- Kenneth H. Rosen, Discrete Mathematics and Its Applications, 8th edition, McGraw-Hill, 2019. §1.7
- Susanna S. Epp, Discrete Mathematics with Applications, 5th edition, Cengage, 2019. §4.6
- László Lovász, József Pelikán, Katalin Vesztergombi, Discrete Mathematics: Elementary and Beyond, 1st edition, Springer, 2003. Cap. 1