Discrete Mathematics: Chapter 1: The Foundations: Logic and Proofs Section 1.7: Introduction To Proofs
Discrete Mathematics: Chapter 1: The Foundations: Logic and Proofs Section 1.7: Introduction To Proofs
•• Showthat
if n is an odd integer, then is odd.
• Proof :
Assume that n is an odd integer. This implies that
there is some integer k such that
n = 2k + 1.
Then = = + 4k + 1 = 2( + 2k) + 1.
Thus, is odd.
Direct Proof (Example 2)
•• Show
that
if m and n are both square numbers,
then mn is also a square number.
• Proof :
• Show that
if 3n + 2 is an odd integer, then n is odd.
• Proof :
•• Showthat
if n = ab, where a and b are positive,
then a ≤ or b ≤ .
• Proof :
•• The
proof by contradiction method makes use
of the equivalence r ⌝r r ^⌝ r
p≡⌝p→ T F F
F T F
where is any contradiction
• One way to show that the latter is as follows:
First assume ⌝ p is true, and then show that for
some proposition r, r is true and ⌝ r is true
• That is, we show ⌝ p → ( r ^ ⌝ r ) is true
Proof by Contradiction (Example 1)
• Show that
if 3n + 2 is an odd integer, then n is odd.
• Proof :
Assume that the statement is false. Then we
have 3n + 2 is odd, and n is even.
The latter implies that n = 2k for some integer
k, so that 3n + 2 = 3(2k) + 2 = 2(3k + 1).
Thus, 3n + 2 is even. A contradiction occurs, so
the original statement is true
Proof by Contradiction (Example 2)
•• Showthat
is irrational.
• Proof :
Assume on the contrary that it is rational.
Then it can be expressed as a / b, for some
positive integers a and b with b ≠ 0.
Further, we may restrict a and b to have no
common factor.
Proof by Contradiction (Example 2)
•• Proof
(continued):
It follows that = so that a is even.
Then a = 2c for some integer c, so that
= .
It follows that = so that b is even.
A contradiction occurs, so that the original
statement is true.
Methods of Proving
↔ ↔…↔
≡ (→ ) ^ ( → ) ^ … ^ ( → )
Proofs of Equivalence (Example)
•• Show
that the following statements about the
integer n are equivalent :
p := “n is even”
q := “n – 1 is odd”
r := “ is even”
• To do so, we can show the three propositions
p → q, q → r, r → p
are all true. Can you do so ?
Solution
3. – = ab – Subtract by in (2)
4. (a – b)(a + b) = b(a – b) Factor in (3)
5.
5. a
a++bb==b
b Divide
Divide by
by (a
(a –– b)
b) in
in (4)
(4)
6.
6. 2b
2b =
=bb By
By (1)
(1) and
and (5)
(5)
7.
7. 2
2==1
1 Divide
Divide by
by b
b in
in (6)
(6)
Common Mistakes in Proofs
•• Showthat
if is an even integer, then n is even.
• Proof :
Suppose that is even.
Then = 2k for some integer k.
Let n = 2m for some integer m.
Thus, n is even.
• p→ q q → p