Quantifiers & Predicate Logic
Quantifiers & Predicate Logic
A statement containing a variable: $P(x)$ = "$x$ is even." Becomes a proposition when $x$ is assigned a value or quantified.
- Universal: $\forall x\, P(x)$ — "For all $x$, $P(x)$"
- Existential: $\exists x\, P(x)$ — "There exists an $x$ such that $P(x)$"
$$\lnot (\forall x\, P(x)) \equiv \exists x\, \lnot P(x)$$
$$\lnot (\exists x\, P(x)) \equiv \forall x\, \lnot P(x)$$
Symbolize: "Every integer is either even or odd."
$\forall n \in \mathbb{Z}, \; (2 \mid n) \lor (2 \nmid n)$.
Negate: "All students passed the exam."
Original: $\forall s\, P(s)$. Negation: $\exists s\, \lnot P(s)$ — "Some student did not pass."
Negate: $\exists x\,(x^2 < 0)$.
$\forall x\,(x^2 \geq 0)$ — true for real numbers.
Practice Problems
Show Answer Key
1. $\exists p\,(\text{prime}(p) \land p > 100)$
2. $\exists x\,(x \leq 0)$
3. True
4. "There is a dog that can fly." ($\exists d\, F(d)$)
5. $\forall \epsilon > 0\, \exists \delta > 0\, ...$
6. False (in $\mathbb{R}$)
7. $\forall x\, (x \leq 5 \lor x \geq 3)$
8. The set of values $x$ can take
9. "For all $x$, if $P(x)$ then $Q(x)$"
10. $\exists x\, \forall y\, (x+y \neq 0)$
11. False
12. $\forall a,b \in \mathbb{R}\,(a < b \to \exists q \in \mathbb{Q},\, a < q < b)$