Professional Documents
Culture Documents
Dms 1
Dms 1
Dms 1
Quantifier
Universal quantifiers ∀: for all, for each, for every
All birds can fly : ∀ x, P(x) where x is bird.
P(x): X can fly
All men are giants: ∀ x, M(x) where x stand for
man
M(x): x is giant
Existential quantifiers ∃: for some
Some numbers are rational: ∃x, R(x)
R(x): x is rational
Operators:
∼ , ∧, ∨ ,⊕ , → ,↔
Inference Rules:
1.Modus Ponens: (P ∧ (P→Q)) →Q
P
P→Q
Q
Ex:
P: It is snowing today.
P→Q :If it snows today, then we will go to skiing.
Q : we will go to skiing
If Socrates is human, then Socrates is mortal.
Socrates is human.
………………………………………
∴ Socrates is mortal
2.Modus tollens ((P→Q) ∧ Q)) → P
P→Q
Q
……………………….
P
Ex:
If George does not have eight legs, then he is not
an insect.
George is an insect.
………………………………………
George has eight legs.
3.Hypothetical syllogism
P →Q
Q →R
……………………..
P →R
5.Addition
P
………………
P∨Q
6.Simplification
P∧Q
……………….
P
7.Conjuction
P
Q
…………………..
P∧Q
8.Resolution
P∨Q
PR
∼ ∨
…………………
Q ∨R
Contrapositive, converse, inverse
Ex
It is not sunny this afternoon and it is colder than
yesterday. ∼ p ∧q
We will go swimming only if it is sunny. r → p
If we do not go swimming then we take a canoe
trip. r → s
If we take a canoe trip then we will be home by
sunset. s →t
P: it is sunny this afternoon.
Q: it is colder than yesterday.
R: We will go swimming.
S: We take canoe trip.
T: We will be home by sunset.
Step1. ∼ p ∧q
Step 2. ∼ p {by simplification}
Step 3. r → p
Step 4. ∼ r {Modus tollens}
Step 5. r →s
…………………………………………………………………………
w