Discrete Mathematic LEC-02:: Method of Proofs
Discrete Mathematic LEC-02:: Method of Proofs
Discrete Mathematic LEC-02:: Method of Proofs
DISCRETE MATHEMATIC
LEC-02:
Method of Proofs
Lecture 2
Direct Proof
Proof by Contraposition
Proof by Contradiction
Proof by Cases.
Definitions
• Why proof?
• Proof: A sequence of statements, ending with the
proposition being proved; each statement is either an axiom
or can be deduced easily from the previous statements.
• In proving theorems or solving problems, creativity and insight
are needed, which cannot be taught.
Definitions
• Axiom:
• Proof:
Indirect Proofs
Proof by Contraposition
Proof by contraposition of P=>Q
Assume ¬Q.
Therefore ¬P.
So ¬Q=>¬P ≡ P=>Q
Example 6
• Theorem: If n2 is even, then n is even
• Proof:
Assume n is odd
=> n = 2k + 1
=> n2 = 2(2k2 + 2k) + 1
Therefore n2 is odd
So if n is odd then n2 is odd. This is equivalent to if n2 is even
then n is even.
Example 7
Proof by contradiction of P
Assume ¬P
…
R
…
¬R
Contradiction
Therefore P
Example 8
• Theorem: There are infinitely many primes.
• Proof:
Assume there are only finitely many primes.
=> Q = p1, p2, .., pk are all primes.
=> Q = p1p2…pk + 1 is not a prime.
=> Q = p1p2…pk + 1 has a prime divisor p > 1.
Q = p * R1.
=> Contradiction.
Therefore there are infinitely many primes.
Example 9
• Theorem: 2 is irrational
• Proof:
Open Question
• Show a proof by contradiction of the following theorem.
• Theorem: if n2 is odd, then n is odd.
Proof by Cases
Case 2: is irrational.
is rational (done.)
Test 1
Proof by contraposition:
Test 4
Proof by contradiction:
Test 5
Show that if is an integer and is
odd, then is even by using direct
proof?
Is odd n is even
Summary
• Direct proofs
• Proofs by contraposition
• Proofs by contradiction
• Proofs by cases
• Homework: Problem Set 2