Professional Documents
Culture Documents
(Discrete Mathematics)
Fall 2016
Lecture - 5
Rules of Inference
Rules of Inference
• Rules of inference are templates for constructing valid
arguments.
• Rules of inference are basic tools for establishing the truth
of statements.
• Valid means that the conclusion of the argument must
follow from the truth of the preceding statements of the
argument.
Valid Arguments
• Consider the following argument involving
propositions:
• “if you are in this class, then you will get a grade”
• “You are in this class”
Therefore,
“You will get a grade”
Argument form:
pq
p
q
Definitions
• An Argument in propositional logic is a sequence of
propositions that end with a conclusion.
• All except the final proposition in the argument are called
premises.
• The final proposition is called conclusion.
• An argument is valid if the truth of all premises implies that the
conclusion is true.
• i.e. (p1 p2 … pn) q is a tautology.
• An Argument form in propositional logic is sequence of
compound propositions involving propositions variables. An
argument form is valid if no matter which particular
propositions are substituted for the propositional variables in
its premises, the conclusion is true if the premises are all true.
Modus Ponens
• The tautology (p (p→q)) → q is basis of modus ponens.
p
pq
q
Modus Ponens
q
pq
p
Modus Tollens Example
• Assume you are given the following two statements:
• “you will not get a grade”
• “if you are in this class, you will get a grade”
p→q
q→r
∴p→r
Hypothetical Syllogism Example
• Assume you are given the following statements:
• If it rains today, then we will not have a barbecue today. If we do not
have a barbecue today, then we will have a barbecue tomorrow.
Therefore, if it rains today, then we will have a barbecue tomorrow.
• “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
• “The trophy was not awarded”
• t
• Can you conclude: “It rained”?
Example of Proof
1. ¬t 3rd hypothesis
2. s→t 2nd hypothesis
3. ¬s Modus tollens using steps 1 & 2
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
More Rules of Inference
• Disjunctive syllogism: If p q is true, and p is false, then q
must be true
[(p q) ¬p] q
1. p → q 1st Hypothesis
2. ¬ q → ¬ p Contrapositive of 1
3. ¬p→r 2nd Hypothesis
4. ¬q→r Hypothetical syllogism using 2 and 3
5. r→s 3rd Hypothesis
6. ¬q→s Hypothetical syllogism using 4 and 5
Fallacies
• Several common fallacies arise in incorrect arguments.