1 Predicate Logic and Quantifiers
Predicate logic extends propositional logic by introducing variables and predicates. A predicate P(x) is a statement whose truth depends on the value of x. Quantifiers bind variables:
- Universal quantifier
∀x P(x): "For all x, P(x) holds." - Existential quantifier
∃x P(x): "There exists an x such that P(x) holds."
Example over integers: ∀x (x² ≥ 0) — true (squares are non-negative) ∃x (x + 3 = 5) — true (x = 2 is a witness) ∀x (x + 1 = x) — false (no integer satisfies this)
The domain of discourse specifies what values variables range over; always state it clearly.