Title: CHAPTER 7: PROOF TECHNIQUES
1CHAPTER 7 PROOF TECHNIQUES
- Fundamental Discrete Structure
- BCT 1073
2CONTENT
- 7.1 Introduction
- 7.2 Direct method
- 7.3 Indirect method
- 7.4 Contradiction method
- 7.5 Mathematical Induction
3OBJECTIVES
- At the end of this chapter you should be able to
- Apply direct method, indirect method,
contradiction, and mathematical induction to
prove a theorem.
47.1 INTRODUCTION
5Introduction
- A theorem is a statement that can be shown to be
true. - Theorems can also be referred to as facts or
results. - A proof is a valid argument that established the
truth of a theorem. - A proof can include axioms (or postulate), which
are statements we assume to be true.
6Some Terminology
- Less important theorems sometimes are called
propositions. - A lemma is a less important theorem that is
helpful in the proof of other result. - A corollary is a theorem that can be established
directly from a theorem that has been proved. - A conjecture is a statement that is being
proposed to be a true statement.
7Applications
- It is used to prove results about the
- complexity of algorithms
- theorems about graphs and trees
- wide range of identities and inequalities.
8Some Applications in CS
- Verifying the correctness of certain types of
computer programs - Establishing that operating system are secure
- Making inferences in Artificial Intelligence (AI)
- Showing that system specifications are consistent
9Methods of Proof
- To prove the theorem, we have four methods of
proof - (a) Direct method
- (b) Indirect method
- (c) Contradiction method
- (d) Mathematical Induction
10Useful Definitions
The integer n is even if there exists an integer
k such that n 2k.
The integer n is odd if there exists an integer k
such that n 2k 1.
- Note that an integer is either even or odd,
- and no integer is both even and odd.
117.2 DIRECT METHOD
Lesson outcome Apply direct method to prove a
theorem.
12DIRECT METHOD
- A direct proof shows that a conditional statement
p?q is true by showing that - if p is true, than q must also be true.
- We assume that p is true and use axioms,
definitions, and previously proven theorems,
together with rules of inference, to show that q
must also be true.
13Example 7.2.1
- Give a direct proof of the theorem If n is an
odd - integer, then n2 is odd.
SOLUTIONS
Let n is an odd integer
We want to show that n2 is an odd integer.
Therefore, n2 is an odd integer.
14Example 7.2.2
- Give a direct proof that if m and n are both
perfect squares, then - nm is also a perfect square. (An integer a is a
perfect square if - there is an integer b such that a b2).
SOLUTIONS
Let m and n are both perfect squares
We want to show that mn is perfect square.
Therefore, mn is perfect square.
15EXERCISE 7.2
- Use a direct method of proof to show that if x
and y are odd integer then xy is also odd. - Prove p ? q for the following p and q.
- p number can be divided by 6
- q number can be divided by 3.
167.3 INDIRECT METHOD
Lesson outcome Apply indirect method to prove a
theorem.
17INDIRECT METHOD
- Is known as proof by contraposition.
- Let p ? q ,
- converse q ? p
- contrapositive q ? p
- inverse p ? q
18Example 7.3.1
- Give an indirect proof of the theorem If 3n2 is
odd, then n is - odd. (n is an integer)
SOLUTIONS
Let p 3n2 is odd, q n is odd Contrapositive
q ? p n is
even ? 3n2 is even
Let n is an even integer
We want to show that 3n2 is even.
Therefore, 3n2 is even.
19EXERCISE 7.3
- Use an indirect method of proof to show that if
xy is odd integer, then x and y are also odd
integers. - Show that if n is an integer and n35 is odd,
then n is even using a proof by contraposition.
207.4 CONTRADICTION METHOD
Lesson outcome Apply contradiction method to
prove a theorem.
21CONTRADICTION METHOD
- Prove p ? q is true.
- Assume p and q are true and show that q must
also be true.
22Example 7.4.1
- Give a proof by contradiction of the theorem If
3n2 is odd, - then n is odd.
Let p 3n2 is odd, q n is odd Contradiction
Assume p and q is true.
3n2 is odd and n is even
SOLUTIONS
n is even
Contradiction
3n2 is even.
Therefore, if 3n2 is odd, then n must be odd.
23Example 7.4.2
- Give a proof by contradiction of If x x x,
then x 0.
SOLUTIONS
Let p x x x, q x 0 Contradiction
Assume p and q is true. x x x and x ?
0
Contradiction
Therefore, if x x x, then x must zero.
24EXERCISE 7.4
- Use a contradiction method of proof to show that
if x and y are odd integer then xy is also odd. - Show that if n is an integer and n35 is odd,
then n is even using a proof by contradiction.
257.5 MATHEMATICAL INDUCTION
Lesson outcome Apply mathematical induction to
prove a theorem.
26Motivation
- Suppose we have a ladder and we want to know
whether we can reach every step on this ladder. - We know 2 things
- (a) We can reach the first rung of the
ladder. - (b) If we can reach a particular rung of the
ladder, then we can reach the next rung.
27MATHEMATICAL INDUCTION
- Objective To proof that the statement P(n) is
true for each integer n n0 - Steps
- 1. Prove that the statement is true for n n0.
- 2. Assume that the statement is true for n k.
- 3. Prove that the statement is true for n k
1. - 4. Conclusion Therefore, the statement is true
for each integer n n0
28How to Remember?
- Thinking of the ladder and the rules for reaching
steps can help you remember how mathematical
induction works. - Another way
- (a) A line of people person 1, person 2, and so
on. A secret is told to person 1, and each person
tells the secret to the next person in line, if
the former person hear it. - (b) row of domino
-
29Example 7.5.1
- Use mathematical induction to show that
- for any positive integer n.
SOLUTIONS
Let
1. Prove that the statement is true for n n01
which is clearly true.
2. Assume that the statement is true for n k.
is true.
Let
30Example 7.5.1 (cont)
3. Prove that the statement is true for n k 1.
We want to prove that
4. Conclusion Therefore, the statement is true
for each integer n n0
31EXERCISE 7.5
- Show by mathematical induction that, for all n1,
- Show by mathematical induction that, for all n1,
32Thank You