Quantifiers turn open statements into propositions. That is their main job in the course: they let us talk about every allowed object, or at least one allowed object, without writing out every case separately.
Predicates and domains
Definition
Predicate
A predicate is a statement with one or more free variables. It becomes a proposition only after every free variable has been assigned a value or bound by a quantifier.
Definition
Domain
The domain is the set of allowed values for the variables.
The domain matters every time you read ∀ or ∃. The same formal string can
mean different things in different domains.
For example, the statement behaves differently over the natural numbers, integers, rationals, and reals. If you do not state the domain, you do not yet have a complete statement.
Common mistake
Do not forget the domain
∀x P(x) is incomplete unless it is clear which values x may take. In
practice, the domain is either stated explicitly or understood from context.
Universal and existential quantifiers
Definition
Quantifiers
∀x P(x) means that P(x) is true for every allowed value of x.
∃x P(x) means that there is at least one allowed value of x for which
P(x) is true.
If you prefer words:
∀means "for all" or "for every."∃means "there exists."
The statement is not finished until the quantifier is attached. For that
reason, P(x) alone is not a proposition, but ∀x P(x) and ∃x P(x) are.
Worked example
Read a quantified statement as English
Let P(x) mean "x is divisible by 2" and let the domain be the integers.
Then ∀x P(x) means:
"Every integer is divisible by 2."
That statement is false. By contrast, ∃x P(x) means:
"There is an integer that is divisible by 2."
That statement is true, for example .
Solution
What the quantifier is doing
Negating quantified statements
Theorem
Quantifier negation
The basic negation laws are:
Read these carefully. The negation always does two things:
- It flips the outer quantifier.
- It negates the predicate inside.
That is the whole pattern.
Worked example
Negate the definition of a prime number
The worksheet defines n to be prime by saying that, for every natural number
d, if d divides n, then or .
In symbols:
Its negation is:
This is exactly the meaning of "n is not prime": there is a divisor other than the trivial ones.
Solution
Why the negation is right
Worked example
Negate a statement about students
Suppose Student(x) means "x is a student" and Submitted(x) means "x has
submitted the form."
The statement
means that at least one student has submitted the form.
Its negation is
In words: every allowed object fails at least one of the two properties.
Solution
How to read the negation
Why quantifier order matters
The order of quantifiers is part of the meaning.
∀x ∃y P(x, y) says that for each x, there is a possibly different y that
works.
∃y ∀x P(x, y) says that one single y works for every x.
Those are very different statements. The first allows the choice of y to
depend on x. The second does not.
Worked example
One borrower per book is not the same as one person for all books
Let Book(b) mean that b is a book, and Borrows(x, b) mean that x
borrows b.
The statement
means that every book is borrowed by at least one person.
The statement
means that one person borrows every book.
The first statement can be true even when the second is false.
Solution
What the example teaches
Common incorrect formalizations
Common mistake
Implication is not conjunction
If the intended meaning is "for every student, if the student enrolls, then the student satisfies the prerequisite," then the correct shape is
or, more naturally,
Writing without the implication would state a very different and much stronger claim.
Worked example
Formalize a course requirement
Say that Taken(x, m) means "student x has taken mathematics course m."
Then the statement "Every student has taken at least one mathematics course"
can be written as
This is stronger and clearer than trying to compress the meaning into a single unstructured sentence.
Solution
Why the nested quantifier is necessary
Quick checks
Quick check
Write the negation of ∀x P(x) and simplify it.
Flip the quantifier and negate the predicate.
Solution
Answer
Quick check
What is the negation of ∃x (x is a student and x has submitted the form)?
Use De Morgan's law inside the predicate.
Solution
Answer
Quick check
Which statement is stronger: ∀x∃y P(x,y) or ∃y∀x P(x,y)?
Ask whether one witness must work for all x.
Solution
Answer
Quick check
Translate into English.
Read the quantifiers from the outside in.
Solution
Answer
Embedded check
Use the stepper to practice moving between a quantified statement and its negation.
Read and try
Negate one quantified statement carefully
The live stepper reveals one quantifier-negation move at a time.
Example
For every real number x, x^2 >= 0.
- 1. Start with the outer quantifier: “for every x.”
Read this first
For the propositional version of these ideas, review 1.1 Propositional logic.