Professional Documents
Culture Documents
Disc Week 3
Disc Week 3
Disc Week 3
P(x) : x > 3
What are the truth values of P(4) and P(2)?
Q(x,y) : x = y + 3
What are the truth values of Q(1, 2) and Q(3,
0)?
Quantifiers
x P(x)
“for all x, P(x)”
“for every x, P(x)”
x P(x)
“for some x, P(x)”
“There exists an x such that P(x)”
“There is at least one x such that P(x)”
Nested Quantifiers
Nested Quantifiers
Expressed in English:
“For all real numbers x, for all real numbers y,
x+y=y+x
Expressed in English:
“For all real numbers y, for all real numbers x,
x+y=y+x
Rules of Inference
Rules of Inference
argument
H1
H2
H1, H2, … Hn the hypotheses (premises)
We use conjunction: H1 ^ H2 ^ H3…
Hn
C C is the conclusion.
“” means “therefore” or “it follows that”
Rules of Inference
q
pq [ q (p q)] p Modus tollens
------------------- mode that denies
p
pq
qr [(p q) (q r)] (p r) Hypothetical
------------------- syllogism
pr
pq
p [(p q) p] q Disjunctive
------------------- syllogism
q
Some Rules of Inference
p
------------------- ppq Addition
pq
pq
------------------- pqp Simplification
p
p
q [(p) (q)] (p q) Conjunction
-------------------
pq
pq
p r [(p q) (p r)] (q r) Resolution
-------------------
qr
Addition
If P is a premise, we can use Addition rule to
derive P∨Q.
P
∴P∨Q
Example
Let P be the proposition, “He studies very
hard” is true
Therefore − "Either he studies very hard Or
he is a very bad student." Here Q is the
proposition “he is a very bad student”.
Conjunction
If P and Q are two premises, we can use
Conjunction rule to derive P∧Q.
P
Q
∴P∧Q
Example
Let P − “He studies very hard”
Let Q − “He is the best boy in the class”
Therefore − "He studies very hard and he is
the best boy in the class"
Simplification
If P∧Q is a premise, we can use
Simplification rule to derive P.
P∧Q
∴P
Example
"He studies very hard and he is the best boy
in the class", P∧Q
Therefore − "He studies very hard"
Modus Ponens
If P and P→Q are two premises, we can use
Modus Ponens to derive Q.
P→Q
P
∴Q
Example
"If you have a password, then you can log on
to facebook", P→Q
"You have a password", P
Therefore − "You can log on to facebook"
Modus Tollens
If P→Q and ¬Q are two premises, we can
use Modus Tollens to derive ¬P.
P→Q
¬Q
∴¬P
Example
"If you have a password, then you can log
on to facebook", P→Q
"You cannot log on to facebook", ¬Q
Therefore − "You do not have a password "
Disjunctive Syllogism
If ¬P and P∨Q are two premises, we can use
Disjunctive Syllogism to derive Q.
¬P
P∨Q
∴Q
Example
"The ice cream is not vanilla flavored", ¬P
"The ice cream is either vanilla flavored or
chocolate flavored", P∨Q
Therefore − "The ice cream is chocolate flavored”
Hypothetical syllogism
pq
qr Hypothetical syllogism
pr
________________________________________
____