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}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How to write notation for predicate logic

A

example
∃X∀Y : f(x)

note that order matters for ∀Y and ∃X

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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))

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does ¬ ∀Y : f(y) simplify to

A

¬ ∀Y: f(y) same as ∃ Y : ¬f(y)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly