Class: CSE 16 Subject: computer-science discrete-math Date: 2024-11-06 Teacher: Prof. Musacchio
Proof by Contradiction
Rational Def
- A real number is rational if for some . Also, is irrational if it is not rational, that is if for every
Example 1
- Proposition The number is irrational.
- Proof. Suppose for the sake of contradiction that it is not true that is irrational.
- Then is rational, so there are integers and for which . (6.1)
- Let this fraction be fully reduced; in particular, this means that a and b are not both even. (If they were both even, then the fraction could be further reduced by factoring 2’s from the numerator and denominator and canceling.)
- Squaring both sides of Equation 6.1 gives , and therefore . (6.2)
- From this it follows that is even. But we proved earlier (Exercise 1 on page 136) that being even implies a is even.
- Thus, as we know that a and b are not both even, it follows that b is odd.
- Now, since a is even there is an integer for which .
- Plugging this value for a into Equation (6.2), we get , so , and hence . This means is even, so is even also. But previously we deduced that is odd.
- Thus we have the contradiction is even and is odd.