Quantifiers
Learning objectives
- Read and write statements using and
- Translate between English and quantified symbolic logic
- Use bounded quantifiers and over an explicit domain
- Recognize how the order of nested quantifiers changes the meaning
Propositional logic alone cannot say 'every integer has a successor'. Propositional logic only talks about whole sentences — it cannot reach inside a sentence to talk about every object or some object. To express the bulk of real mathematical statements — "every continuous function is integrable," "there exists a prime between and ," "for every there is a such that…" — we need quantifiers. The two quantifiers ("for all") and ("there exists") are the gateway from propositional to predicate logic, and once their order rules are nailed down, you can read essentially any modern mathematical text.
Universal and existential quantifiers
The universal quantifier means "for all" or "for every." The formula asserts that the predicate is true for every value in the domain of discourse. To prove a universal statement, you must establish for an arbitrary ; to disprove it, a single counterexample suffices.
The existential quantifier means "there exists" or "for some." The formula asserts that there is at least one in the domain for which is true. To prove an existential statement, you must exhibit a witness — a specific that works; to disprove it, you must show fails for every .
Bounded quantifiers
Real mathematics almost always quantifies over a specific domain, not the entire universe. We write bounded quantifiers as or . The unwritten translation is:
The universal uses an implication (the property only has to hold for the 's that are in ) while the existential uses a conjunction (you need an that both lies in and satisfies the property). Notice how the connective differs — that asymmetry has a habit of biting students.
Order matters: vs.
Quantifier order is non-commutative in a way that bites every undergraduate. To see the bite directly, the widget below shows two panels side by side: on the left and on the right, both for the same . Cycle through the four presets — including the ε–δ definition of continuity, where the two orderings define pointwise vs uniform continuity, and the everyday "every student has a favourite course" example.
The single subtlest move in predicate logic is the order of nested quantifiers. Consider two superficially similar statements about :
"For every , there is some with ." This is true: given , choose . The witness is allowed to depend on .
"There is some such that, for every , ." This is false: it demands a single that works for every at once. Any choice of would have to satisfy and simultaneously, which is impossible.
The pattern allows to depend on ; the pattern demands a single that works for every . These two patterns are not interchangeable, and almost every "-" definition in analysis hinges on this distinction.
Pause and think: In the ε–δ definition of limit, we say . Why is the allowed to depend on ? What would change if we swapped to ? (Hint: the swapped version would be the definition of uniform continuity at , which is a much stronger condition.)
Try it
- Before translating: identify whether "There is a real number whose square is " is true or false. Then write it symbolically and double-check by inspection.
- Predict first: is true? Now is true? Explain the difference.
- Translate into symbols: "Every nonzero real number has a multiplicative inverse." Then "There is an integer that divides every integer." Both statements should use a quantifier; check whether each is true.
- Find a witness: prove by exhibiting one.
- Find a counterexample: disprove .
A trap to watch for
The most damaging mistake in early predicate logic is treating as if it meant the same as . They are not the same. The give-away phrasing is "there exists a… for every…" — English word order can mask which quantifier is on the outside. A single example to keep in mind: "for every person there is a mother" (true, everyone has a mother) versus "there is a person who is the mother of everyone" (false). Same words, different quantifier order, opposite truth values. Whenever you read a multi-quantifier statement, draw an arrow from each variable to its scope: the in depends on ; the in does not.
What you now know
You can read, write, and translate quantified statements with bounded domains, and you know that quantifier order is load-bearing — and usually say different things. The next section attacks the operations on quantifiers: how to negate them, push negations through them, and recognize logically equivalent quantified statements.
References
- Velleman, D. J. (2019). How to Prove It: A Structured Approach (3rd ed.). Cambridge University Press, ch. 2.
- Enderton, H. B. (2001). A Mathematical Introduction to Logic (2nd ed.). Academic Press, ch. 2.
- Smullyan, R. M. (1995). First-Order Logic. Dover Publications, ch. 2.
- Mendelson, E. (2015). Introduction to Mathematical Logic (6th ed.). Chapman and Hall/CRC, ch. 2.