Week 4 and 5
Week 4 and 5
Week - 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.
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.
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”
pq
p
q
Modus Ponens
T T T T T
T F F F T
F T T F T
F F T F T
p
pq
q
Modus Ponens
• “ 2 > 32”
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
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
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
Example
• Consider the following argument
• If you do the every problem in this book, then you will
learn discrete mathematics. You learned discrete
mathematics
Therefore
You did every problem in this book
Let p = “you do the every problem in this book”
q = “you learned discrete mathematics”
pq
q
p
Exercise
• What rule of inference is used in each of these
arguments?
a) Alice is a mathematics major. Therefore, Alice is either
a mathematics major or a computer science major.
∀xP(x)
Universal instantiation
∴ P(c)
∃xP(x)
Existential instantiation
∴ P(c) for some element c
• 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
Example
• Given the hypothesis
“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.”
x(P(x) Q(x))
P(a), where a is a particular element in the domain
Q(a)
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(Linda) → T(Linda) Universal instantiation using 1
3. R(Linda) Hypothesis
4. T(Linda) Modes ponens using 2 and 3
5. C(Linda) Hypothesis
6. C(Linda) T(Linda) Conjunction using 5 and 4
7. x (C(x)T(x)) Existential generalization using 6
How do you know which one to use?
• Experience!
Pg - 70,71,72
Q - 2,4,5,13-d,13-b,23