MethodOfProof
MethodOfProof
111
Definition even and odd numbers
We call n is even if n is divisible by 2
i.e., n = 2*m for some integer m
n= 2 n = 2.1
n = 4 n = 2.2
….
….
N is odd if n is not divisible by 2
i.e., n = 2*m +1 for some integer m
n = 3 n = 2.1 + 1
n = 5 n = 2.2 + 1
….
….
112
Proving Theorems
Direct proof:
An implication p q can be proved by showing that
if p is true, then q is also true.
Example: Give a direct proof of the theorem
“If n is odd, then n2 is odd.”
Idea: Assume that the hypothesis of this implication
is true (n is odd). Then use rules of inference and
known theorems of math to show that q must also be
true (n2 is odd).
n is odd.
n is even.
Consequently, n2 = (2k)2.
= 4k2
= 2(2k2)
= 2m
121
Proving Theorems
Direct proof using cases:
Example: If q is not divisible by 3 then q2 mod 3 = 1
125
Proving Theorems
Indirect proof:
An implication p q is equivalent to its contra-
positive q p. Therefore, we can prove p q
by showing that whenever q is false, then p is also
false.
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 to show that p must also be false
(3n + 2 is even).
Therefore, 3n + 2 is even.
128
Example of which to use
Prove that if n is an integer and n3+5 is odd,
then n is even
129
Example of which to use
Prove that if n is an integer and n3+5 is odd, then
n is even
130
Proof methods
We will discuss six proof methods:
1. Direct proofs
2. Proof by cases
3. Indirect proofs
4. The Bi-conditional
5. Proof by contradiction
6. Counterexamples
131
Proving Theorems
The Bi-conditional proof:
If a theorem is of the form p q is equivalent to p
q and q p. You have to prove both
Example: Give a proof of the theorem
“An integer x is even if and only if x2 is even.”
Idea: Prove two things:-- (1) If x is even then x2 is
even , and (2) if x2 is even then x is even. We have
already proved both in previous slides.
133
Proof by contradiction
Given a statement p, assume it is false
Assume ¬p
134
Proof by contradiction example 1
Theorem (by Euclid): There are infinitely many
prime numbers.
139
The counter example
Sometimes we wish to show that a
proposition x (P(x) is false
140
Another Example on Proof
STATEMENT: All multiples of 3 are odd.
COUNTER EXAMPLE: The number 6 is multiple of 3
but it is not odd.