Predicate Logic
Predicate Logic
Predicate Logic
Dr. Hyunyoung Lee
1
Predicates
2
Example
3
Universal Quantifier (1)
4
Universal Quantifier (2)
5
Universal Quantifier (3)
6
Existential Quantifier
Example: ∃x (x>0 ⋀ x2 = 2)
is true if the domain is the real numbers
but false if the domain is the rational numbers.
7
Logical Equivalence (1)
8
Logical Equivalence (2)
9
Logical Equivalence (3)
10
De Morgan’s Laws
11
Example
Proof:
12
Nested Quantifiers
13
Nested Quantifiers Example (1)
14
Nested Quantifiers Example (2)
15
Quantified Predicate Example
16
Quantified Predicate Example (2)
lim f (x) = L
x!a
For every real number ε>0 there exists a δ>0 such that
|f(x)-L|<ε whenever 0 < |x-a| < δ.
17
Quantified Predicate Example (3)
❓
lim f (x) = L
x!a
18
Rules of Inference
19
Valid Arguments
20
Example
Therefore,
“You can log on to the network” (q)
21
Modus Ponens
22
Modus Tollens
¬q
p -> q
------
∴¬p
23
Simplification
p⋀q
------
∴p
24
Example Formal Argument
Argument
¬p ⇥ q 1) ¬p ∧ q Hypothesis
r p 2) ¬p Simplification of 1)
¬r s
s t 3) r → p Hypothesis
4) ¬r Modus tollens using 2) and 3)
)t 5) ¬r → s Hypothesis
6) s Modus ponens using 4) and 5)
7) s → t Hypothesis
8) t Modus ponens using 6) and 7)
25
Formal Argument in Action
p: “It will rain on Sunday”
¬p ⇥ q q: “It will be warm on Sunday”
r p r: “It will be cloudy on Sunday”
¬r s
s t s: “It will be sunny on Sunday”
t: “We will do picnic on Sunday”
)t ¬p ∧ q “It will not rain and it will be warm.”
26
Quantified Statements
8xP (x)
Universal instantiation
) P (a)
P (a) for an arbitrary a
Universal generalization
) 8xP (x)
9xP (x)
Existential instantiation
) P (a) for some a
P (a) for some a
Existential generalization
) 9xP (x)
27
Universal Modus Ponens
28