Rules of Inference
Rules of Inference
Rosen 1.5
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
aka
law of detachment
q
2
3 2 3 2
2 3 ( 2 ) 2 3 2
22 2 3 ( 2 ) 2
2 3
22 ( 2 ) 22
3
2 3
2 2
2 2
3
2
2
Rules of Inference for Propositional Logic modus ponens
2 pq
3 3
2 ( 2 )2
2 2 p
3
2 q
2 A valid argument can lead to an incorrect
9 conclusion if one of its premises is wrong/false!
2
4
3
p: 2
2
2
3
q: 2
2
pq
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 [q ( p q)] p Modus tollen
3. r p Hypothesis
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