CTRR Ch2 Proving Methods
CTRR Ch2 Proving Methods
Nguyen An Khuong,
Huynh Tuong Nguyen
Chapter 2
Proving Methods
Discrete Structure for Computing (CO1007) Contents
Proof Methods
Homeworks and
Exercises
Contents
Homeworks and
Exercises
2.2
Proving Methods
Introduction
Nguyen An Khuong,
Huynh Tuong Nguyen
Contents
2.3
Proving Methods
Terminology
Nguyen An Khuong,
Huynh Tuong Nguyen
Contents
Proof Methods
Homeworks and
Exercises
2.4
Proving Methods
Nguyen An Khuong,
Huynh Tuong Nguyen
Contents
Proof Methods
Homeworks and
Exercises
2.5
Proving Methods
Proving a Theorem
Nguyen An Khuong,
Huynh Tuong Nguyen
Contents
Many theorem has the form ∀xP (x) → Q(x)
Proof Methods
2.6
Proving Methods
Methods of Proof
Nguyen An Khuong,
Huynh Tuong Nguyen
Contents
Homeworks and
• Proof by contraposition (chứng minh phản đảo) Exercises
2.7
Proving Methods
Direct Proofs
Nguyen An Khuong,
Huynh Tuong Nguyen
Definition
A direct proof shows that p → q is true by showing that if p is Contents
Homeworks and
Exercises
Example
2.8
Proving Methods
Proof by Contraposition
Nguyen An Khuong,
Huynh Tuong Nguyen
Definition
p → q can be proved by showing (directly) that its contrapositive,
¬q → ¬p, is true. Contents
Proof Methods
Homeworks and
Example Exercises
2.9
Proving Methods
Proofs by Contradiction
Nguyen An Khuong,
Huynh Tuong Nguyen
Definition
p is true if if can show that ¬p → (r ∧ ¬r) is true for some
proposition r.
Contents
Proof Methods
Example
Homeworks and
√ Exercises
Ex.: Prove that 2 is irrational.
√
Pr.: Let p is the proposition
√ “ 2 is irrational”. Suppose
√ ¬p is true,
which means 2 is rational. If so, ∃a, b ∈ Z, 2 = a/b, a, b
have no common factors. Squared, 2 = a2 /b2 , 2b2 = a2 , so
a2 is even, and a is even, too. Because of that a = 2c, c ∈ Z.
Thus, 2b2 = 4c2 , or b2 = 2c2 , which means b2 is even and so
is b. That means 2 divides both a and b, contradict with the
assumption.
2.10
Proving Methods
Problem
Nguyen An Khuong,
Huynh Tuong Nguyen
Contents
Proof Methods
Homeworks and
Exercises
2.11
Proving Methods
Mathematical Induction
Nguyen An Khuong,
Huynh Tuong Nguyen
Definition (Induction)
To prove that P (n) is true for all positive integers n, where P (n) Contents
Homeworks and
• Basis Step: Verify that P (1) is true. Exercises
2.12
Proving Methods
Example on Induction
Nguyen An Khuong,
Example Huynh Tuong Nguyen
n(n + 1)
1 + 2 + ... + n = .
2
Contents
Proof Methods
Solution Homeworks and
Let P (n) be the proposition that sum of first n is n(n + 1)/2 Exercises
1(1+1)
• Basis Step: P (1) is true, because 1 = 2
• Inductive Step:
k(k+1)
Assume that 1 + 2 + . . . + k = 2
.
Then:
k(k + 1)
1 + 2 + . . . + k + (k + 1) = + (k + 1)
2
k(k + 1) + 2(k + 1)
=
2
(k + 1)(k + 2)
=
2
Example
Prove that n < 2n for all positive integers n.
Contents
Solution
Proof Methods
Let P (n) be the proposition that n > 2n . Homeworks and
Exercises
• Basis Step: P (1) is true, because 1 > 21 = 2
• Inductive Step:
Assume that P (k) is true for the positive k, that is, k < 2k .
Add 1 to both side of k < 2k , note that 1 ≤ 2k .
k + 1 < 2k + 1 ≤ 2k + 2k = 2 · 2k = 2k+1 .
2.14
Proving Methods
Homeworks and Exercises
Nguyen An Khuong,
Huynh Tuong Nguyen
2.15