Discrete Structures Lecture 7
Discrete Structures Lecture 7
(Discrete Mathematics)
Fall 2016
Lecture - 7
Introduction to
Proofs
Proofs
• Proof:
A proof is a valid argument that establishes the truth of a
mathematical statement.
• Proofs are essential in mathematics and computer
science.
• Some applications of proof methods
• Proving mathematical theorems
• Designing algorithms and proving they meet their specifications
• Verifying computer programs
• Establishing operating systems are secure
• Making inferences in artificial intelligence
• Showing system specifications are consistent
• …
Terminology
• Theorem: A statement that can be shown true. Sometimes
called facts.
• Lemma: A less important theorem that is useful to prove a
theorem.
• Proof: Demonstration that a theorem is true.
p q pq
T T T
T F F
F T T
F F T
Methods of Proving Theorems
Vacuous Proof
• Proof:
P(0) is “if 0 > 0, then 02 > 0”.
Since the hypothesis of P(0) is false, then P(0) is
true.
• Vacuous proof:
p q is true when p is false.
Vacuous Proof Example
• If n is both odd and even then n2 = n + n
Trivial Proof
• Consider an implication: 𝑝 → 𝑞
• Proof:
P(0) is “if ab >0, then (𝑎𝑏)0 > 0”.
(𝑎𝑏)0 = 1 > 0
Since the conclusion of P(0) is true, P(0) is true.
• Trivial proof:
p q is true when q is true.
Trivial Proof Example
• If n is the sum of two prime numbers, then either
n is odd or n is even.
• Assume p is true.
• Odd Number:
n is odd if n=2k+1 for some k of type integer.
• Even Number:
n is even if n=2k for some k of type integer.
Direct Proof
• Theorem:
If n is an odd integer, then 𝑛2 is odd.
• Proof:
Assume n is an odd integer.
By definition, ∃ integer k,
such that n = 2k + 1
2
𝑛2 = (2k + 1)
𝑛2 = 4𝑘 2 + 4k + 1 = 2 (2𝑘 2 + 2k) + 1
Let m = 2𝑘 2 + 2k.
𝑛2 = 2m + 1
So, by definition, 𝑛2 is odd.
Direct Proof
• Theorem:
If n and m are both perfect squares then nm is also a
perfect square.
• Proof:
Assume n and m are perfect squares. Definition:
An integer a is
By definition, ∃ integers s and t perfect square if
such that n = 𝑠 2 and m = 𝑡 2 . ∃ integer b such
that a= 𝑏2 .
nm = 𝑠 2 𝑡 2 = (𝑠𝑡)2
Let k = st.
nm = 𝑘 2
So, by definition, nm is a perfect square.
Direct Proof
• Prove If n and m are odd integers then n + m is even.
Example
• Theorem:
The sum of two rational numbers is rational.
• Proof:
Assume r and s are rational.
∃ p,q r = p/q q ≠ 0 Definition:
The real number r
∃ t,u s = t/u u ≠ 0 is rational if r=p/q,
r+s = p/q + t/u = (pu+tq) / (qu) ∃ integers p and q
that q ≠ 0.
Since q ≠ 0 and u ≠ 0 then qu ≠ 0.
Let m=(pu+tq) and n=qu where n ≠ 0.
So, r+s = m/n, where n ≠ 0.
So, r+s is rational.
Proof Techniques
Conditional Its
statement contrapositive
• Assume ¬q is true.
2 𝑏2 = 𝑎2
So, 𝑎2 is even and by previous theorem, a is even.
∃ k a = 2k.
2 𝑏2 = 4 𝑘 2
𝑏2 = 2 𝑘 2
So, 𝑏 2 is even and by previous theorem, b is even.
∃ m b = 2m.
So, a and b have common factor 2 which contradicts the Assumption.
Practice Exercise and Chapter Reading
• Q – 1,2,3,6,9,10,17,18,19
• Chapter 1, Kenneth H. Rosen, Discrete Mathematics and
Its Applications, Section 1.7