predicate logic
Quantifiers
You should know: predicate logic
Overview
A quantifier specifies how many members of a domain satisfy a given property, turning an open statement with a free variable ('x is even') into a statement with a definite truth value ('for all x, x is even' — false; 'there exists an x that is even' — true). The two quantifiers of first-order logic, universal (∀) and existential (∃), are the backbone of how mathematics states general laws and existence claims precisely.
Intuition
Compare 'every student passed the exam' (a claim about ALL students — false if even one failed) with 'some student passed the exam' (a claim about AT LEAST ONE student — true if just one did). These are exactly the universal and existential quantifiers. Getting the order of nested quantifiers right matters enormously: 'for every door there exists a key that opens it' is very different from 'there exists a key that opens every door'.
Formal Definition
The two quantifiers of first-order logic:
P(x) is true for every x in the domain
P(x) is true for at least one x in the domain
Notation
| Notation | Meaning |
|---|---|
| 'for all' — the universal quantifier | |
| 'there exists' — the existential quantifier | |
| 'there exists exactly one' — the unique existential quantifier |
Properties
Quantifier order matters
Example: 'Everyone has a mother' (∀x∃y) vs. 'someone is the mother of everyone' (∃y∀x) — very different claims.
Vacuous truth
Condition: A universal statement over an empty domain is vacuously true
Applications
Worked Examples
For all integers x, there exists a y that is x's successor.
Answer: ∀x∈ℤ ∃y∈ℤ (y=x+1)
Practice Problems
Is the statement ∀x∈ℝ ∃y∈ℝ (y² = x) true?
Common Mistakes
Assuming ∀x∃y P(x,y) and ∃y∀x P(x,y) mean the same thing.
They don't — in ∃y∀x, the SAME y must work for every x; in ∀x∃y, each x may get its own different y. The second is a strictly stronger claim.
Summary
- ∀ ('for all') and ∃ ('there exists') convert open statements into statements with a definite truth value.
- Negating a quantified statement flips ∀↔∃ and negates the inner predicate (quantifier duality).
- The order of nested quantifiers changes meaning — ∀∃ and ∃∀ are generally NOT equivalent.
- A universal statement over an empty domain is vacuously true.
Mathematics