W5 - predicate logic Flashcards
(4 cards)
1
Q
Predicates
A
A statement with a variable where the predicate is either True or False
A predicate is a kind of function whose codomain is the set {True,False}
2
Q
How to write notation for predicate logic
A
example
∃X∀Y : f(x)
note that order matters for ∀Y and ∃X
3
Q
What is
∀X: (p(X)∧q(X))
and
∃X: (p(X)∨q(X))
A
Universal quantifiers and conjunction mix in a natural way (since we need all ‘and’)
∀X: (p(X)∧q(X)) is logically equivalent to (∀X p(X))∧(∀X q(X))
Similarly, existential quantifiers and disjunction mix naturally too. (since as need all ‘or’)
∃X: (p(X)∨q(X)) is logically equivalent to (∃X p(X))∨(∃X q(X))
4
Q
What does ¬ ∀Y : f(y) simplify to
A
¬ ∀Y: f(y)
same as ∃ Y : ¬f(y)