DM Set02 Inference Proofs
DM Set02 Inference Proofs
Tassos Dimitriou
CpE-203
Discrete Structures
Set 2
Prof. Tassos Dimitriou
Tassos Dimitriou
Outline
Rules on Inference
Valid Arguments
Proof techniques
1
1/17/2019
Tassos Dimitriou
Rules of inference
Proofs: valid arguments that establish the truth of
mathematical statements
Argument: a sequence of statements that end with a conclusion
All but the final proposition are called premises.
The final proposition is called conclusion.
Tassos Dimitriou
Valid Arguments
Assume you are given the following two statements:
“If you have a current password, then you can log onto the
network”
“You have a current password”
Therefore, “You can log onto the network”
pq
p
q
2
1/17/2019
Tassos Dimitriou
p
pq
q
CpE-203: Discrete Structures 5
Tassos Dimitriou
3
1/17/2019
Tassos Dimitriou
Tassos Dimitriou
Modus Tollens
Assume that we know: ¬q and p → q
Recall that p → q ¬q → ¬p
Thus, we know ¬q and ¬q → ¬p
We can conclude ¬p
q
pq
p
4
1/17/2019
Tassos Dimitriou
Tassos Dimitriou
5
1/17/2019
Tassos Dimitriou
Example Proof
We have the hypotheses:
“It is not sunny this afternoon and it is colder than yesterday”
“We will go swimming only if it is sunny”
“If we do not go swimming, then we will take a canoe trip”
“If we take a canoe trip, then we will be home by sunset”
Does this imply that “we will be home by sunset”?
When
p = “It is sunny this afternoon”
q = “it is colder than yesterday”
r = “We will go swimming”
s = “we will take a canoe trip”
t = “we will be home by sunset”
Tassos Dimitriou
Example of proof
1. ¬p q 1st hypothesis
2. ¬p Simplification using step 1
3. r→p 2nd hypothesis
4. ¬r Modus tollens using steps 2 & 3
5. ¬r → s 3rd hypothesis
6. s Modus ponens using steps 4 & 5
7. s→t 4th hypothesis
8. t Modus ponens using steps 6 & 7
6
1/17/2019
Tassos Dimitriou
Tassos Dimitriou
p pq
Addition Simplification
pq p
p pq
Conjunction q Resolution p r
pq qr
CpE-203: Discrete Structures 14
7
1/17/2019
Tassos Dimitriou
Example Proof
“If it does not rain or if it is not foggy, then the sailing race will
be held and the lifesaving demonstration will go on”
( r f) (s d)
“If the sailing race is held, then the trophy will be awarded”
st
“The trophy was not awarded”
t
Tassos Dimitriou
Example of proof
1. ¬t 3rd hypothesis
2. s→t 2nd hypothesis
3. ¬s Modus tollens using steps 2 & 3
4. (¬r¬f)→(sd) 1st hypothesis
5. ¬(sd)→¬(¬r¬f) Contrapositive of step 4
6. (¬s¬d)→(rf) DeMorgan’s law and double negation law
7. ¬s¬d Addition from step 3
8. rf Modus ponens using steps 6 & 7
9. r Simplification using step 8
8
1/17/2019
Tassos Dimitriou
Fallacies
Fallacies resemble rules of inference but are wrong.
Example 1: If you do every problem in this book, then you will
learn discrete mathematics. You learned discrete mathematics.
Therefore, you did every problem in this book.
((p → q) ∧ q) → p is not a tautology.
Called the fallacy of affirming the conclusion
Tassos Dimitriou
9
1/17/2019
Tassos Dimitriou
Tassos Dimitriou
10
1/17/2019
Tassos Dimitriou
Example of proof
Given the hypotheses:
“Linda, a student in this class, owns a red
convertible.” C(Linda)
R(Linda)
“Everybody who owns a red convertible has
gotten at least one speeding ticket”
x (R(x)→T(x))
Can you conclude: “Somebody in this class
x (C(x)T(x))
has gotten a speeding ticket”?
Tassos Dimitriou
Proofs
11
1/17/2019
Tassos Dimitriou
Terminology
Theorem: a statement that can be shown true. Sometimes
called facts.
Proposition: less important theorem
Proof: Demonstration that a theorem is true.
Axiom: A statement that is assumed to be true.
Lemma: a less important theorem that is useful to prove a
theorem.
Corollary: a theorem that can be proven directly from a
theorem that has been proved.
Conjecture: a statement that is being proposed to be a true
statement.
Tassos Dimitriou
Direct proofs
Consider an implication: p→q
If p is false, then the implication is always true
To perform a direct proof, assume that p is true, and show that q
must therefore be true
12
1/17/2019
Tassos Dimitriou
Indirect proofs
Consider an implication: p→q
It’s contrapositive is ¬q→¬p
Tassos Dimitriou
13
1/17/2019
Tassos Dimitriou
Tassos Dimitriou
Proof by contradiction
Given a statement p, assume it is false (i.e. assume ¬p)
14
1/17/2019
Tassos Dimitriou
Tassos Dimitriou
Proofs of equivalences
This is showing the definition of a bi-conditional
15
1/17/2019
Tassos Dimitriou
Tassos Dimitriou
Mistakes in proofs
Many mistakes result from the introduction of steps that
do not logically follow from those that precede it.
What’s wrong with the following “proof” that 1 = 2? Let a, b be
two equal positive integers:
16
1/17/2019
Tassos Dimitriou
Another example
What is wrong with this “proof?”
“Theorem:” If n2 is positive, then n is positive.
Tassos Dimitriou
Counterexamples
Given a universally quantified statement, find a single
example which it is not true
17
1/17/2019
Tassos Dimitriou
18