L09 Inference II Sp24
L09 Inference II Sp24
L09 Inference II Sp24
(Discrete Mathematics)
Lecture # 9
Lecture Outline
• Ch. 1.6 Rules of Inference
– Rules of inference
– Proof using rules of Inference
– Fallacy
– Rules of inference with quantifiers
Summary: Rules of Inference
Rules of Inference Tautology Name
p (p ∧ (p → q)) → q Modus ponens
p→q
∴q
¬q ( ¬ q ∧ (p → q))→ Modus tollens
p→q ¬p
∴ ¬p
p→q ((p → q) ∧ (q → r)) Hypothetical
q→r → (p → r) syllogism
∴p→r
p∨q ((p ∨ q)∧ ¬ p) → q Disjunctive
¬p syllogism
∴q
Summary: Rules of Inference
Rules of Inference Tautology Name
p p → (p ∨ q) Addition
∴p∨q
p∧q (p ∧ q) → p Simplification
∴p
p ((p) ∧ (q)) → (p ∧ q) Conjunction
q
∴p∧q
H1: s c
H2: ms
H3: m t
H4 t h
C: h
(( s c) (m s) ( m t) (t h)) h ???
Example-1 of Proof H1: s c
H2: ms
Step3: Proof using rules of inference H3: m t
H4 th
1. ¬s c H1 C: h
2. ¬s Simplification using step 1
3. m s H2
4. ¬m Modus tollens using steps 2 & 3
5. ¬m t H3
6. t Modus ponens using steps 4 & 5
7. t h H4
8. h Modus ponens using steps 6 & 7
Hence we get conclusion, h
Example-2 Proof
• “If it does not rain or 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
H1: (¬𝑟∨¬𝑓)→(𝑠∧𝑑)
• “The trophy was not awarded”
t
pq
q
p
Example-3 Proof
• We have hypotheses
“If you send me an e-mail message, then I will finish writing the
program,”
“If you do not send me an e-mail message, then I will go to sleep early,”
“If I go to sleep early, then I will wake up feeling refreshed”
The conclusion “If I do not finish writing the program, then I will wake up
feeling refreshed.”
H1: p q
• Let p = “You send me an e-mail message,”
• q = “I will finish writing the program,” H2: p r
• r = “I will go to sleep early,” H3: rs
• s = “I will wake up feeling refreshed.”
C: q s
Example-3 Proof H1: p q
H2: p r
H3: rs
1. p→q 1st Hypothesis C: q s
2. ¬q→¬p Contrapositive of 1
• Step Reason
1. ∀x(D(x) → C(x)) Hypothesis
2. D(Ali)→C(Ali) Universal instantiation from 1
3. D(Ali) Hypothesis
4. C(Ali) Modus ponens from 2 and 3
Rules of Inference for the Existential
Quantifier
• Assume that we know that x P(x) is true then we can
conclude that P(c) is true for some value of c
– This is called “existential instantiation”.
– Example: There is a fish in a pool therefore Some fish a is in
pool.
x(P(x) Q(x))
P(a), where a is a particular element in the domain
Q(a)
Combination of Rules of Inference and
Quantified Statement
Universal Modus Tollens
x(P(x) Q(x))
¬Q(a), where a is a particular element in the domain
¬P(a)
Example of Proof
1. x (R(x)→T(x)) Hypothesis
2. R(Maria) → T(Maria) Universal instantiation using
1
3. R(Maria) Hypothesis
4. T(Maria) Modes ponens using 2 and 3
5. C(Maria) Hypothesis
6. C(Maria) T(Maria) Conjunction using 5 and 4
7. x (C(x)T(x)) Existential generalization
using 6
Chapter Reading