Rules of Inference
Rules of Inference
Lecture 4, CMSC 56
Allyn Joy D. Calcaben
Rules of Inference
Templates for constructing valid arguments
Fallacies
common forms of incorrect reasoning which lead to
invalid arguments
Rules of Inference
An argument in propositional logic is a sequence of
propositions.
Therefore,
Example
“If you have a current password,
then you can log onto the network.”
Therefore,
“You can log onto the network.”
Example
Argument form:
p→q
p
∴q
p→q
p
PREMISES
∴q CONCLUSION
“If you have a current password, then you can log onto the network.”
“You have a current password.”
∴ “ You can log onto the network.”
RULE OF
TAUTOLOGY NAME
INFERENCE
p
p→q (p ∧ (p → q)) → q Modus Ponens
∴q
¬q
p→q (¬q ∧ (p → q))→¬p Modus Tollens
∴ ¬p
p→q
Hypothetical
q→r ((p → q) ∧ (q → r)) → (p → r)
∴p→r Syllogism
p∨q
Disjunctive
¬p ((p ∨ q)∧¬p) → q
∴q Syllogism
RULE OF
TAUTOLOGY NAME
INFERENCE
p
∴p∨q
p → (p ∨ q) Addition
p∧q
∴p
(p ∧ q) → p Simplification
p
q ((p) ∧ (q)) → (p ∧ q) Conjunction
∴p∧q
p∨q
¬p∨r ((p ∨ q) ∧ (¬p ∨ r)) → (q ∨ r) Resolution
∴q∨r
Example
State which rule of inference is the basis of the following
argument:
Step Reason
1. ¬p ∧ q Premise
Solution
We construct an argument to show that our premises lead to the desired conclusion as follows.
Step Reason
1. ¬p ∧ q Premise
2. ¬p Simplification using (1)
Solution
We construct an argument to show that our premises lead to the desired conclusion as follows.
Step Reason
1. ¬p ∧ q Premise
2. ¬p Simplification using (1)
3. r→p Premise
Solution
We construct an argument to show that our premises lead to the desired conclusion as follows.
Step Reason
1. ¬p ∧ q Premise
2. ¬p Simplification using (1)
3. r→p Premise
4. ¬r Modus tollens using (2) and (3)
Solution
We construct an argument to show that our premises lead to the desired conclusion as follows.
Step Reason
1. ¬p ∧ q Premise
2. ¬p Simplification using (1)
3. r→p Premise
4. ¬r Modus tollens using (2) and (3)
5. ¬r → s Premise
Solution
We construct an argument to show that our premises lead to the desired conclusion as follows.
Step Reason
1. ¬p ∧ q Premise
2. ¬p Simplification using (1)
3. r→p Premise
4. ¬r Modus tollens using (2) and (3)
5. ¬r → s Premise
6. s Modus ponens using (4) and (5)
Solution
We construct an argument to show that our premises lead to the desired conclusion as follows.
Step Reason
1. ¬p ∧ q Premise
2. ¬p Simplification using (1)
3. r→p Premise
4. ¬r Modus tollens using (2) and (3)
5. ¬r → s Premise
6. s Modus ponens using (4) and (5)
7. s→t Premise
Solution
We construct an argument to show that our premises lead to the desired conclusion as follows.
Step Reason
1. ¬p ∧ q Premise
2. ¬p Simplification using (1)
3. r→p Premise
4. ¬r Modus tollens using (2) and (3)
5. ¬r → s Premise
6. s Modus ponens using (4) and (5)
7. s→t Premise
8. t Modus ponens using (6) and (7)
Example
Show that the premises:
“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,” and
“If I go to sleep early, then I will wake up feeling refreshed”
p→q
Solution
Let p be the proposition “You send me an e-mail message,”
q the proposition “I will finish writing the program,”
r the proposition “I will go to sleep early,”
and s the proposition “I will wake up feeling refreshed.”
¬p → r
Solution
Let p be the proposition “You send me an e-mail message,”
q the proposition “I will finish writing the program,”
r the proposition “I will go to sleep early,”
and s the proposition “I will wake up feeling refreshed.”
r→s
Solution
Let p be the proposition “You send me an e-mail message,”
q the proposition “I will finish writing the program,”
r the proposition “I will go to sleep early,”
and s the proposition “I will wake up feeling refreshed.”
¬q → s
Solution
The premises are
p→q
¬p→r
r→s
Step Reason
1. p→q Premise
Solution
This argument form shows that the premises lead to the desired conclusion.
Step Reason
1. p→q Premise
2. ¬p → r Premise
Solution
This argument form shows that the premises lead to the desired conclusion.
Step Reason
1. p→q Premise
2. ¬p → r Premise
Step Reason
1. p→q Premise
Solution
This argument form shows that the premises lead to the desired conclusion.
Step Reason
1. p→q Premise
2. ¬q →¬p Contrapositive of (1)
Solution
This argument form shows that the premises lead to the desired conclusion.
Step Reason
1. p→q Premise
2. ¬q →¬p Contrapositive of (1)
3. ¬p → r Premise
Solution
This argument form shows that the premises lead to the desired conclusion.
Step Reason
1. p→q Premise
2. ¬q →¬p Contrapositive of (1)
3. ¬p → r Premise
4. ¬q → r Hypothetical syllogism using (2) and (3)
Solution
This argument form shows that the premises lead to the desired conclusion.
Step Reason
1. p→q Premise
2. ¬q →¬p Contrapositive of (1)
3. ¬p → r Premise
4. ¬q → r Hypothetical syllogism using (2) and (3)
5. r→s Premise
Solution
This argument form shows that the premises lead to the desired conclusion.
Step Reason
1. p→q Premise
2. ¬q →¬p Contrapositive of (1)
3. ¬p → r Premise
4. ¬q → r Hypothetical syllogism using (2) and (3)
5. r→s Premise
6. ¬q → s Hypothetical syllogism using (4) and (5)
Resolution
Resolution
A rule of inference used by many Computer programs to
automate the task of reasoning and proving theorems.
Resolution
A rule of inference used by many Computer programs to
automate the task of reasoning and proving theorems.
D(Marla)
Solution
Let D(x) denote “x is in this discrete mathematics class,”
and let C(x) denote “x has taken a course in computer science.”
C(Marla)
Solution
Premises:
∀x(D(x) → C(x))
D(Marla)
Conclusion: C(Marla)
Solution
The following steps can be used to establish the conclusion from the
premises.
Step Reason
1. ∀x(D(x) → C(x)) Premise
Solution
The following steps can be used to establish the conclusion from the
premises.
Step Reason
1. ∀x(D(x) → C(x)) Premise
2. D(Marla) → C(Marla) Universal instantiation from (1)
Solution
The following steps can be used to establish the conclusion from the
premises.
Step Reason
1. ∀x(D(x) → C(x)) Premise
2. D(Marla) → C(Marla) Universal instantiation from (1)
3. D(Marla) Premise
Solution
The following steps can be used to establish the conclusion from the
premises.
Step Reason
1. ∀x(D(x) → C(x)) Premise
2. D(Marla) → C(Marla) Universal instantiation from (1)
3. D(Marla) Premise
Step Reason
1. ∀x(D(x) → C(x)) Premise
2. D(Marla) → C(Marla) Universal instantiation from (1)
3. D(Marla) Premise
4. C(Marla) Modus ponens from (2) and (3)
Example
Show that the premises
“A student in this class has not read the book,” and
“Everyone in this class passed the first exam”
imply the conclusion “Someone who passed the first exam has not read
the book.”
Solution
Let C(x) be “x is in this class,”
B(x) be “x has read the book,” and
P(x) be “x passed the first exam.”
Solution
Let C(x) be “x is in this class,”
B(x) be “x has read the book,” and
P(x) be “x passed the first exam.”
∃x(C(x)∧¬B(x))
Solution
Let C(x) be “x is in this class,”
B(x) be “x has read the book,” and
P(x) be “x passed the first exam.”
∀x(C(x) → P(x))
Solution
Let C(x) be “x is in this class,”
B(x) be “x has read the book,” and
P(x) be “x passed the first exam.”
∃x(P(x)∧¬B(x))
Solution
Premises:
∃x(C(x)∧¬B(x))
∀x(C(x) → P(x))
Conclusion: ∃x(P(x)∧¬B(x))
Solution
Step Reason
1. ∃x(C(x)∧¬B(x)) Premise
Solution
Step Reason
1. ∃x(C(x)∧¬B(x)) Premise
2. C(a)∧¬B(a) Existential instantiation from (1)
Solution
Step Reason
1. ∃x(C(x)∧¬B(x)) Premise
2. C(a)∧¬B(a) Existential instantiation from (1)
3. C(a) Simplification from (2)
Solution
Step Reason
1. ∃x(C(x)∧¬B(x)) Premise
2. C(a)∧¬B(a) Existential instantiation from (1)
3. C(a) Simplification from (2)
4. ∀x(C(x) → P(x)) Premise
Solution
Step Reason
1. ∃x(C(x)∧¬B(x)) Premise
2. C(a)∧¬B(a) Existential instantiation from (1)
3. C(a) Simplification from (2)
4. ∀x(C(x) → P(x)) Premise
5. C(a) → P(a) Universal instantiation from (4)
Solution
Step Reason
1. ∃x(C(x)∧¬B(x)) Premise
2. C(a)∧¬B(a) Existential instantiation from (1)
3. C(a) Simplification from (2)
4. ∀x(C(x) → P(x)) Premise
5. C(a) → P(a) Universal instantiation from (4)
6. P(a) Modus ponens from (3) and (5)
Solution
Step Reason
1. ∃x(C(x)∧¬B(x)) Premise
2. C(a)∧¬B(a) Existential instantiation from (1)
3. C(a) Simplification from (2)
4. ∀x(C(x) → P(x)) Premise
5. C(a) → P(a) Universal instantiation from (4)
6. P(a) Modus ponens from (3) and (5)
7. ¬B(a) Simplification from (2)
Solution
Step Reason
1. ∃x(C(x)∧¬B(x)) Premise
2. C(a)∧¬B(a) Existential instantiation from (1)
3. C(a) Simplification from (2)
4. ∀x(C(x) → P(x)) Premise
5. C(a) → P(a) Universal instantiation from (4)
6. P(a) Modus ponens from (3) and (5)
7. ¬B(a) Simplification from (2)
8. P(a)∧¬B(a) Conjunction from (6) and (7)
Solution
Step Reason
1. ∃x(C(x)∧¬B(x)) Premise
2. C(a)∧¬B(a) Existential instantiation from (1)
3. C(a) Simplification from (2)
4. ∀x(C(x) → P(x)) Premise
5. C(a) → P(a) Universal instantiation from (4)
6. P(a) Modus ponens from (3) and (5)
7. ¬B(a) Simplification from (2)
8. P(a)∧¬B(a) Conjunction from (6) and (7)
9. ∃x(P(x)∧¬B(x)) Existential generalization from (8)
Combining Rules of Inference for
Propositions and Quantified Statements
Universal Modus Ponens
∀x(P(x) → Q(x))
P(a), where a is a particular element in the domain
∴ Q(a)
1. Alice is a Math major. Therefore, Alice is either a Math major or a CSI major.
2. Jerry is a Math major and a CSI major. Therefore, Jerry is a Math major.
3. If it is rainy, then the pool will be closed. It is rainy. Therefore, the pool is closed.
1. If it does not rain or if is not foggy, then the sailing race will be held and the lifesaving
demonstration will go on. If the sailing race is held, then the trophy will be awarded.
The trophy was not awarded. Therefore, it rained.
2. If I like Discrete Mathematics, then I will study. Either I don’t study or I pass Discrete
Mathematics. If I don’t pass Discrete Mathematics, then I don’t graduate. Therefore, if
I graduate then I like Discrete Mathematics.
3. All Computer Science majors are intelligent. Some Computer Science majors are logical
thinkers. Therefore, some intelligent are logical thinkers.