L02 Predicate Logic
L02 Predicate Logic
Discrete Mathematics
Propositional Logic - say a bit…
This week we’re using propositional logic as a foundation for
formal proofs.
10/15/20
Propositional Logic - 2 more defn…
p p p p p p
T F T F
F T T F
10/15/20
Propositional Logic - an unfamous
if NOT (blue AND NOT red) OR red then…
(p q) q p q
10/15/20
Propositional Logic - one last proof
10/15/20
Predicate Logic - everybody loves somebody
10/15/20
Predicates
…
Define:
EP(x) = “x eats pizza at least once a week.”
Universe of Discourse - x is a student in
cse1207
10/15/20
Predicates
x B(x)?
10/15/20
Predicates - the existential quantifier
x C(x)?
10/15/20
Predicates - the existential quantifier
10/15/20
Predicates - more examples
x (F(x)
C(x))
10/15/20
Predicates - more examples
10/15/20
Predicates - more examples
B(x) = “x is a hummingbird.”
L(x) = “x is a large bird.” Universe of discourse
H(x) = “x lives on honey.” is all creatures.
R(x) = “x is richly colored.”
x (H(x)
10/15/20 R(x))
Predicates - quantifier negation
x (L(x)
H(x))
10/15/20
Negations of Quantified Statements
Everyone likes football. Every mother loves her child.
Not everyone likes football = There exists someone who doesn’t like football.
(generalized) DeMorgan’s Law Say the domain has only three values.
The same idea can be used to prove it for any number of variables.
10/15/20
Predicates - quantifier negation
x (L(x)
H(x))
10/15/20
Negations of Quantified Statements
Not exists a plant that can fly = every plant cannot fly.
(generalized) DeMorgan’s Law Say the domain has only three values.
The same idea can be used to prove it for any number of variables.
10/15/20
Predicates - quantifier negation
10/15/20
Predicates - quantifier negation
10/15/20
Predicates - quantifier negation
10/15/20