Predicates and Quantifiers
What You’ll Learn
Section titled “What You’ll Learn”In this lesson you’ll learn what a predicate is, how the universal quantifier (“for all”) and existential quantifier (“there exists”) turn predicates into propositions, how to negate quantified statements, and why the order of nested quantifiers changes the meaning.
The Concept
Section titled “The Concept”Propositional logic has a limit. "" isn’t a proposition, because its truth depends on . But statements like that are everywhere in mathematics, so we need a way to handle them.
A predicate is a statement whose truth depends on one or more variables. We write it like a function:
is true. is false. by itself is neither.
Every predicate needs a domain (also called the universe of discourse), the set of values the variable is allowed to take. The same predicate can change truth value entirely depending on the domain, so leaving it unstated is a real source of confusion.
The universal quantifier
Section titled “The universal quantifier”reads “for all , .” It claims the predicate holds for every element of the domain.
- To prove it: show it holds for every element, usually with a general argument.
- To disprove it: find one element where it fails. That element is a counterexample.
The asymmetry there is important. Universal claims are hard to prove and easy to destroy.
The existential quantifier
Section titled “The existential quantifier”reads “there exists an such that .” It claims at least one element of the domain satisfies the predicate.
- To prove it: exhibit one example. That’s a full proof.
- To disprove it: show it fails for every single element.
Exactly the reverse asymmetry. Existential claims are easy to prove and hard to destroy.
You’ll also see , meaning “there exists exactly one.”
Negating quantifiers
Section titled “Negating quantifiers”This is the practical heart of the lesson:
In words:
- “Not everything has property ” means “something lacks .”
- “Nothing has property ” means “everything lacks .”
The rule of thumb: push the negation inward, flip the quantifier. becomes and vice versa. That’s the same shape as De Morgan’s laws, and for good reason. Over a finite domain, is a long chain of ANDs and is a long chain of ORs.
The classic mistake: negating “all swans are white” as “all swans are non-white.” Wrong. The negation is “some swan is not white.” You only need one black swan.
Nested quantifiers
Section titled “Nested quantifiers”When a predicate has two variables, you need two quantifiers, and the order matters enormously.
Let mean ” likes ,” over a domain of people.
| Statement | Meaning |
|---|---|
| Everyone likes everyone. (Very friendly world.) | |
| Somebody likes somebody. (Very weak claim.) | |
| Everyone likes at least one person. (Can differ per person.) | |
| Some one person is liked by everyone. (Much stronger.) |
Compare the last two carefully. lets the choice of depend on . commits to a single that works for all .
Same-type quantifiers can be swapped freely: . Mixed quantifiers cannot.
This distinction is not academic. The definition of a limit, the definition of continuity, and most of real analysis hinge on exactly this ordering.
Worked Examples
Section titled “Worked Examples”Example 1: Translate to symbols.
Domain: all integers. Let mean ” is even” and mean ” is prime.”
- “Every integer is even or odd.”
- “Some prime is even.”
- “No even number greater than 2 is prime.”
Solution.
- - a tautology, so trivially true.
- - true, witnessed by .
- - true. Note how “no” turned into a universal with a negated conclusion, not an existential.
Example 2: Negate and simplify.
Negate: , over the real numbers.
Solution.
Is the negation true? Try : , and . Yes.
So the original universal statement is false, and is the counterexample. Worth noticing: over the domain of integers the original statement is true. The domain changed the answer.
Example 3: Negate a nested statement.
Negate: .
Solution. Flip each quantifier as you push the negation through:
Over the integers the original is true (take ), so the negation is false, and indeed no single fails for every .
Example 4: Order matters.
Domain: real numbers. Compare these two statements.
Solution.
The first is true. Given any , pick . The is allowed to depend on .
The second is false. It claims one fixed real number is bigger than every real number, including itself. No such number exists.
Same predicate, same domain, two quantifiers swapped, opposite truth values.
Example 5: Read a definition.
The formal definition of a limit:
Reading it. For every error tolerance you name, there is some closeness such that every within of lands within of .
The ordering is doing all the work. comes after , so it’s allowed to depend on . If you swapped them and demanded one that works for every , almost no function would have a limit.
Real-World Applications
Section titled “Real-World Applications”Database queries are quantified statements. SELECT * FROM users WHERE ... is existential: find the ones satisfying a predicate. A constraint like “every order must reference a valid customer” is universal, and the database enforces it on every write.
Software specifications live and die on quantifier order. “Every request eventually gets a response” is then . “There is a timeout that bounds every request” is then , a much stronger promise. Formal verification tools check specifications written in exactly this notation.
Search engines and type systems use quantifiers too. A generic function that works “for all types ” is a universal claim the compiler verifies.
And in everyday argument, quantifier negation keeps you honest. Someone says “all politicians are corrupt.” The counterclaim isn’t “no politicians are corrupt,” it’s “at least one isn’t.” That’s a far more defensible position, and confusing the two makes people argue past each other constantly.
Retrying will remove your ✅ checkmark until you pass again.