Lec 9 Proofs
Lec 9 Proofs
Lec 9 Proofs
Topics to be covered:
What is proof
Three types of proofs.
Direct proof
Indirect proof (contraposition)
Proof by contradiction
What is a proof?
The integer in “N” is even if there exists an integer “K” such that n=2k, and “N”
is odd if there exists an integer “K” such that n=2k+1
Note that every integer is either even or odd, and no integer is both even and odd.
Direct Proof
Idea: assume that the hypotheses of this implication is true (n is odd). Then use rule
of inference and known theorem to show that q must also be true (n2 is odd).
Proving Theorem (direct proof)
N is odd. (n=2k+1).
Then n= 2k+1, where k is an integer.
Give direct proof of the statement “ the product of two odd integers is odd”.
Sol:
Let x and y are two odd integers.
We can say that x= 2m+1 and y = 2n+1
Product of xy will be : (2m+1) (2n+1) = 4mn+2n+2m+1
Take 2 common: 2(2mn+n+m)+1
If we treat (2mn+n+m) is single integer “a” then we have 2a+1 which is also odd.
Indirect proof (contraposition)
Example: give an indirect proof of the theorem “if 3n + 2 is odd, then n is odd.
Idea: Assume that the conclusion of this implication is false ( n is even). Then use rules of
inference and known theorems that p must also be false (3n + 2 is even).
Proving theorems (indirect proof)
N is even.
Then n= 2k, where k is an integer.
It follow that
3n + 2 = 3(2k)+2
6k+2
2(2k+1)
Therefore 3n + 2 is even.
we have to show that the contrapositive of the implication is true, so the implication itself is also true.
Example:
Sol ????
Proof by contradiction:
Sol:
According to given statement we have
P= 3n + 2, q = n is odd
Here we want to prove that statement by contradiction then we assume that q is false.
-|q = n is even
If n is even then we have, n = 2k
By putting value of n in p we will have,
P= 3n + 2= 3(2k) + 2
6k + 2
2(3k+1)
2m
3n + 2 is even, which contradict the given statement so n should be odd.