Professional Documents
Culture Documents
Proofs
[Proof by Contraposition – Proof by Contradiction –
Exhaustive Proofs – Proof by Cases]
Aamir Shahzad Hashmi
Exercises
• Sum of two rational numbers is a rational number.
Exercises
• Sum of two rational numbers is a rational number.
Proof:
Let we have two rational numbers:
and , where are integers, .
The sum of two rational numbers will be
• Proof:
Let be an even number. , where is some integer.
Then additive inverse of is .
• Proof:
Let be a rational number.
, where are integers, .
Then
Again, it is ratio of 2 integers, so it is a rational number.
Exercises
• Proof:
Let be an odd integer. , where is any integer.
Problem … ??? Because we are going to have a ratio, about which we cannot
say whether it is intger or not.
Exercises
It is an ODD number.
Exercises – Counterexample
Exercises
• First
part:
is a counter example.
Exercises
• 2nd
part:
Let’s take
e.g.
Show that if is odd, then is odd. ( is an integer)
Proof by Contraposition: Example
• Show
that if is odd, then is odd. ( is an integer)
• Proof:
Try Direct Proof
Let , an odd number.
What to do next???
So we get STUCK???
Proof by Contraposition: Example
• Show
that if is odd, then is odd. ( is an integer)
Proof:
Try In Direct Proof – by Contraposition
𝑝→𝑞≡(𝑝1∧𝑝2∧…∧𝑝𝑛)→𝑞≡(𝑝1→𝑞)∧(𝑝2→𝑞)∧…(𝑝𝑛→𝑞)
-
Proof by Cases – Examples
0 1 1 = (True)
0 1 1 = (True)
1 > (True)
1 > (True)
2 > (True)
2 > (True)
3 > (True)
3 > (True)
4 > (True)
45 > (True)
< (False)
5 < (False)
Proof by Cases – Examples
• Only consecutive integers which are perfect powers less than 100 are 8 and 9.
• We can check one by one all perfect powers less than 100.
• We have 3 cases:
I. .
Proof by Cases – Examples
• If
is an integer, then
• Proof
• We have 3 cases:
I. , is positive.
II.
III. . is negative. (because is negative number.)
Proof by Cases – Examples (Do it by yourself)
• no solutions in integers and for equation .
Example: no solutions in integers and for equation .
Equal to 8 or not
0 0 0 Less than 8
00 1
1 33 Less
Less than
than 88
00 2
2 12
12 Exceeds
Exceeds 88
11 0
0 11 Less
Less than
than 88
11 1
1 44 Less
Less than
than 88
1 2 13 Exceeds 8
1 2 13 Exceeds 8
2 0 4 Less than 8
2 0 4 Less than 8
2 1 7 Less than 8
2 1 7 Less than 8
2 2 16 Exceeds 8
2 2 16 Exceeds 8
3 0 9 Exceeds 8
3 0 9 Exceeds 8
Proof by Cases – Examples (Do it by yourself)
• Square of an integer ends with 0, 1, 4, 5, 6, or 9
Direct Proof: Example
• Show that there is no prime number between the range
(factorial of )
Direct Proof: Example
• Show that there is no prime number between the range
(factorial of )