rulesOfInference (Week 6)
rulesOfInference (Week 6)
rulesOfInference (Week 6)
Rules of Inference
Instructor:Engr Sadaf Khan Gondal
Proofs in mathematics are valid arguments
By valid we mean the conclusion must follow from the truth of the preceding
statements or premises
pq
The argument has the form: p
q
Valid Arguments in Propositional Logic
pq
p
(( p q) p ) q is a tautology (always true)
q
p q p q ( p q) p (( p q) p) q
0 0 1 0 1
0 1 1 0 1
1 0 0 0 1
1 1 1 1 1
therefore
Valid Arguments in Propositional Logic
Defn:
An argument (in propositional logic) is a sequence of propositions.
All but the final proposition are called premises.
The last proposition is the conclusion
The argument is valid iff the truth of all premises implies the conclusion is true
An argument form is a sequence of compound propositions
Valid Arguments in Propositional Logic
pq
p modus ponens
law of detachment
q
You then want to get from premises/hypotheses (A) to the conclusion (B)
using the rules of inference.
propositions hypotheses
Using the rules of inference to build arguments An example
1. p q
p It is sunny this afternoon
q It is colder than yesterday
2. r p
r We go swimming 3. r s
s We will take a canoe trip 4. st
t We will be home by sunset (the conclusion)
5. t
Step
Step Reason
Reason
Reason
1.
pp qq Hypothesis
Hypothesis
Hypothesis Rule of inference
pq
Tautology Name
p [ p ( p q )] q Modus ponens
2. p Simplifica
Simplification
tionusing
using(1)
(1) q
q
pq
3. r p Hypothesis
[q ( p q)] p Modus tollen
Hypothesis p
pq
4. r Modus
Modustollens
tollensusing
using(2)
(2)and
and(3)
(3) qr
pr
[( p q ) (q r )] ( p r ) Hypothetical syllogism
pq
5. r s Hypothesis p (( p q) p ) q Disjunctiv e syllogism
q
pq
7. s t Hypothesis p
p
( p q) p Simplification
hypotheses propositions
1. p r p Anna is skiing
2. r q q Bart is playing hockey
r it is snowing
pq
p r Resolution rule
q r
Consequently Anna is skiing or Bart is playing hockey
Rules of Inference & Quantified Statements
2.s ⇒ p by(f)
~p by the conclusion of (1)
∴ ~s by modus tollens
3. r ˅ s by(b)
~s by the conclusion of (2)
∴ r by elimination
4. r ⇒t by(c )
r by the conclusion of (3)
∴ t by modus ponens
Hence t is true and the glasses are on