Inner variables may depend on outer ones
In ∀x ∃y P(x, y) the y is chosen after x is known, so it may be a different y for each x. That dependence is the whole content.
When quantifiers stack, order decides meaning. ∀x ∃y lets y depend on x; ∃y ∀x demands one y that works for all of them. One implies the other, in one direction only.
Core ideas
Nested quantifiers are where careful readers and careless ones separate. The difference is a single swap and a change of meaning.
In ∀x ∃y P(x, y) the y is chosen after x is known, so it may be a different y for each x. That dependence is the whole content.
One y serving every x implies each x has some y. The converse fails — and the lab lets you build the case where it fails.
∀x ∀y may be swapped freely, and so may ∃x ∃y. Swapping ∀ past ∃ changes the claim.
The material
The six two-variable forms, and the implication that holds between two of them.
With one two-place predicate and two quantifiers there are eight strings to write — but same-kind quantifiers commute, so ∀x ∀y and ∀y ∀x are one claim, and likewise the two ∃∃ forms. Six distinct statements remain, and the mixed ones pair up as mirror images: a claim about rows and a claim about columns.
Keep the two mirror pairs apart. ∃y ∀x P(x, y) asks for one y serving every x; ∃x ∀y P(x, y) asks for one x serving every y. Over the grid in the lab those are a full column and a full row, and a grid can have either without the other. The theorem below pairs each ∃∀ with the ∀∃ that shares its variables — mixing a row claim into a column argument is how proofs about quantifier order go quietly wrong.
∃y ∀x P(x, y) ⟹ ∀x ∃y P(x, y), and the converse does not hold in general.
Suppose ∃y ∀x P(x, y), and let b be such a y. Then P(x, b) holds for every x. So given any x, the value b witnesses ∃y P(x, y). Hence ∀x ∃y P(x, y).
For the converse, take the domain ℤ and P(x, y) = "y is greater than x". Every integer has something larger, so ∀x ∃y P(x, y) holds. But no single integer is larger than every integer, so ∃y ∀x P(x, y) is false.
□
The English versions are worth having by heart. ∀x ∃y is "everybody has somebody"; ∃y ∀x is "somebody is everybody's". The first is a mild claim; the second is a strong one.
Continuity of f at every point is ∀ε ∀x ∃δ, where δ may depend on both ε and x. Uniform continuity is ∀ε ∃δ ∀x: one δ that works at every point. The entire difference between the two definitions is where the ∃δ sits.
Three or more quantifiers behave the same way. ∀x ∃y ∀z is read left to right, and each variable may depend on those bound to its left and on no others. Reading the string in the order written is the whole technique.
A nested quantified statement is evaluated outside in. To decide ∀x ∃y P(x, y), take each x in turn and ask whether some y works for that particular x.
Interactive
A finite universe you can edit
Method
Left to right, and never rearrange.
∀x ∃y is "for each x… there is a y". Reading it as "there is a y for each x" in the sense of one shared y is the error itself.
A variable may depend on everything bound to its left. If your witness for y mentions x, you are proving ∀x ∃y, not ∃y ∀x.
Name one value and show it works for every x. If you cannot name it without knowing x, the statement is probably false.
For each candidate y, exhibit an x that defeats it. The x may depend on y, which is exactly what the negation permits.
Domain ℤ, P(x, y) = "x + y = 0".
In the first, the witness y = −x mentions x, which is the signature of a ∀∃ proof. If a proof of an ∃∀ statement produces a witness mentioning the universally quantified variable, the proof is wrong.
Using the lab's grid, construct a relation where ∀x ∃y holds and ∃y ∀x fails, and one where both hold — then say, for the successor preset on {1, …, 4}, why ∀x ∃y fails there and for which x. Being able to build the separating case, and to name the element a truncated domain breaks, is stronger evidence of understanding than recognising either.
Something to change about this lesson? Write it down, tick it off when it is handled, and export the list when you want to act on it. Kept in this browser only: nothing is sent anywhere, and nobody is notified.
No recommendations yet for this lesson.