Reading ∀ and ∃ in order
The question
In a game where two cards must hit a target sum, what changes when you go first?
Play with the same cards and the same rule in both rounds.
- 1 SeePlay both orders against the challenger.
- 2 TryChange which badges open which doors.
- 3 ProveBuild a proof about switching order.
- 4 ApplyCount witnesses and find counterexamples.
Before you start · 3 quick checks on set membership, comparing a sum, and reading a pair
Two ideas before you start
2 ideas“For every” checks the whole list
Each site has its own true or false result for the selected condition.
Read ∀ as “for every.” A single failure gives a counterexample.
Exact definition
A domain is the set of allowed inputs. A predicate is a condition with a truth value for each allowed input. Write \(S\) for a domain and \(P(s)\) for a predicate on its elements \(s\). The statement \(\forall s\in S,\ P(s)\) is true exactly when \(P(s)\) is true at every element of \(S\).
“There exists” looks for a witness
The figure records whether each location has the selected object.
Read ∃ as “there exists.” Any element that makes the condition true is a witness.
Exact definition
The statement \(\exists s\in S,\ P(s)\) is true exactly when at least one element of \(S\) makes \(P(s)\) true. There can be several witnesses. The ordinary ∃ symbol puts no upper limit on how many.
Fine print about domains and pairs
Braces list the elements of a finite set. The symbol \(\in\) means “belongs to.” A pair \((x,y)\) keeps its positions: the first entry belongs to the domain for \(x\), and the second belongs to the domain for \(y\). A predicate on pairs, written \(P(x,y)\), gives one verdict for each allowed pair.
Read quantifiers from left to right. The outer quantifier tells you which variable is considered first, even if the variables appear in a different order inside the predicate. A variable can have different allowed values from another variable. Always carry each variable's own domain along when you rewrite a statement.
The empty set has no elements. A statement that every element of the empty set satisfies a condition is true because there is no counterexample. A statement that some element of the empty set satisfies it is false because there is no witness.
Play the sum game in both orders
- The page controls the challenger card \(x\). You control the reply card \(y\).
- In the first round, choose a reply after you see each challenger card. Retry a missed sum before moving on.
- In the second round, choose a reply before the challenger plays. Try other commitments to see how the challenger responds.
What would count as a win?
In the first round, the page dealt every possible challenger card. A strategy is a rule that supplies a reply to each card. The successful replies you entered give such a rule for this deck. A missed reply can be replaced because the claim for that challenger card asks whether a successful reply exists.
In the second round, each proposed reply faces every possible challenger card. To defeat one proposal, the page needs just one sum that misses. The full table lets you check the replies you skipped as well. Each column lists all possible outcomes against its fixed reply.
A move order is a way to read these logical claims. The board is fully specified and there is no chance in the game. Winning with one pair of moves shows only that \(P\) holds at that pair. A winning strategy for a quantified claim has to handle every move the claim allows the challenger.
Test access badges
A building has readers called Dawn, Noon, and Dusk. A badge opens a reader exactly when that pair has “Yes” in the table. The badge is reusable, and the readers work independently.
Submit a prediction to open the badge editor.
Change the permissions
- Toggle a reader–badge pair to change its entry. All unlisted pairs keep their starting values.
- Use the row and column counts to reach the goals. Advancing resets the permissions to the next goal's starting table.
Scan by rows to check whether every reader has a usable badge. The badge you pick can change between readers. To check for a badge that opens every reader, scan by columns. A “No” removes its column from consideration for that job.
Covering every row and finding a full column are different goals. Adding permission to a row that already has a “Yes” leaves the row count unchanged. It can still matter to the column count if that permission fills the last gap in a column.
Which order implies the other?
Let \(X\) and \(Y\) be sets and \(P(x,y)\) a predicate with a truth value on each pair from \(X\) and \(Y\). If \(\exists y\in Y\ \forall x\in X,\ P(x,y)\) is true, then \(\forall x\in X\ \exists y\in Y,\ P(x,y)\) is true. The converse, the implication with the roles of the two claims reversed, can fail.
Case for the proof builder. Let \(S=\{a,b\}\), with \(a\ne b\). Take \(X=Y=S\) and take \(P(x,y)\) to mean \(x\ne y\). Build a counterexample to the converse for any two distinct elements \(a,b\).
Suppose a fixed \(y_*\in Y\) satisfies \(P(x,y_*)\) for every \(x\in X\). Take an arbitrary \(x\in X\). The witness for that \(x\) can be the same \(y_*\), since the hypothesis gives \(P(x,y_*)\). This proves the per-input claim. If \(X\) is empty, the conclusion is true by the empty-domain rule. If \(Y\) is empty, the hypothesis is false.
The argument uses the meanings of the quantifiers and works for finite or infinite domains. In the counterexample, both positions draw from the same set, so the challenger can legally choose \(x=y\) for each commitment.
Over the integers, take the rule \(y\gt x\). After any given integer \(x\), choose its successor as \(y\). If \(y\) is chosen first, take \(x=y\) to defeat it. Here a rule for choosing the next move replaces the finite table.
Problems
Use the quantifier order to decide what to count or find. Enter an integer in digits, with a minus sign if needed. Each problem has hints and a worked solution.
Where the same reading appears next
The ε–δ definition of a limit asks for an input tolerance \(\delta\) after an output tolerance \(\varepsilon\) is given. The chosen \(\delta\) then faces every nearby input in the relevant part of the domain.
In convergent sequences, the existential choice is a starting index \(N\). It may depend on the requested error tolerance. Once chosen, it must work for the whole tail of the sequence.
In Cantor's diagonal argument, the proposed list is considered first. The proof then constructs a sequence missing from that particular list. The missing sequence is allowed to depend on the list.
Further reading
- Daniel J. Velleman, How to Prove It: A Structured Approach, material on quantifiers and proof strategies.