A statement can have two quantifiers, one inside the other, as in “for every x there is a y such that …”. This lesson shows how to read such statements one quantifier at a time, how to decide them on small domains drawn as truth grids, why the order of “for every” and “there is” matters, how to negate them step by step, and how two quantifiers say “exactly one” and “at least two”.
Two quantifiers
Lesson 2.1 (Predicates and open statements) met open statements in two variables, such as M(m, n), “m is a multiple of n”. Quantifying one variable leaves an open statement in the other: ∃n M(m, n), “m is a multiple of some whole number n”, is still open in m, because m is free. Quantifying the other variable as well gives a statement, decided with the rules of lessons 2.2 and 2.3 (The universal quantifier, The existential quantifier), used once for each quantifier.
Quantifiers are nested when one of them is within the scope of another,[1] as in ∀x ∃y P(x, y): “for every x there is a y such that P(x, y)”. Everything after a quantifier can be read as an open statement:[2] ∀x ∃y P(x, y) is ∀x Q(x), where Q(x) is the open statement ∃y P(x, y).
Nested quantifiers are common in mathematics.[3] They are read one at a time, from the left: first the outer quantifier, then, for each value it allows, the inner one.[4] Each variable has its own domain, and the domains may differ;[5] this site states them in words. Each quantifier gets its own letter: using one letter for two quantifiers in the same statement can cause confusion,[6] so a new letter is used for each.
The domain of every variable is the whole numbers. Say what each statement claims, and decide it.
- ∀m ∀n (m + n ≥ m): for all whole numbers m and n, adding n to m does not make it smaller. True: n ≥ 0, and adding m to both sides of 0 ≤ n gives m ≤ m + n.
- ∃n ∀m (m × n is a multiple of 10): there is a whole number whose product with every whole number is a multiple of 10. True: n = 10 is a witness, since m × 10 = 10 × m for every m; so is 0.
- ∀m ∃n (m + n is a multiple of 5): every whole number can be raised to a multiple of 5 by adding a whole number. True: for a given m, take n = 4 × m; then m + 4 × m = 5 × m (combining like terms). The n chosen depends on m.
Answer: all three are true. In (3) the inner “there is” was decided separately for each value of m, with its own witness; in (2) one witness, 10, works for every m at once.
Truth grids
When both domains are finite, an open statement P(x, y) can be drawn as a grid: one row for each value of x, one column for each value of y, and in each cell the truth value of P(x, y) for that pair. Deciding a statement with two quantifiers is then a search through the grid, like two loops, one inside the other: for each row, a pass through its cells.[7]
| Statement | In words | On the grid |
|---|---|---|
| ∀x ∀y P(x, y) | for every x and every y | every cell is T |
| ∃x ∃y P(x, y) | for some x and some y | some cell is T |
| ∀x ∃y P(x, y) | for every x there is a y | every row has a T |
| ∃x ∀y P(x, y) | some x works with every y | some row is all T |
| ∀y ∃x P(x, y) | for every y there is an x | every column has a T |
| ∃y ∀x P(x, y) | some y works with every x | some column is all T |
| x ↓ y → | 4 | 6 | 8 | 9 |
|---|---|---|---|---|
| 1 | T | T | T | T |
| 2 | T | T | T | F |
| 3 | F | T | F | T |
| 4 | T | F | T | F |
Let P(x, y) be “x is a factor of y”, with x = 1, 2, 3, 4 and y = 4, 6, 8, 9, as in the figure. Decide the six statements of the table.
- ∀x ∀y: false, since the cell x = 2, y = 9 is F (9 = 4 × 2 + 1). ∃x ∃y: true, since the cell x = 2, y = 4 is T (4 = 2 × 2) (Factors and multiples).
- ∀x ∃y: true. Every row has a T: 1 is a factor of 4, 2 of 4, 3 of 6 (6 = 2 × 3), 4 of 4.
- ∃x ∀y: true. Row x = 1 is all T: 1 is a factor of every whole number.
- ∀y ∃x: true. Every column has a T, in row 1.
- ∃y ∀x: false. Each column has an F: column 4 at x = 3 (4 = 1 × 3 + 1), column 6 at x = 4 (6 = 1 × 4 + 2), column 8 at x = 3 (8 = 2 × 3 + 2), column 9 at x = 2.
Answer: true, except ∀x ∀y and ∃y ∀x. In words, ∃y ∀x would say that one of 4, 6, 8, 9 has all of 1, 2, 3, 4 as factors, and none has.
The order of the quantifiers
The order of nested quantifiers matters, unless they are all “for every” or all “there is”.[10]
- ∀x ∀y P(x, y) ≡ ∀y ∀x P(x, y) and ∃x ∃y P(x, y) ≡ ∃y ∃x P(x, y).
- If ∃y ∀x P(x, y) is true, then ∀x ∃y P(x, y) is true.
- The converse fails: ∀x ∃y P(x, y) can be true while ∃y ∀x P(x, y) is false.[12]
(1) ∀x ∀y P(x, y) is true exactly when P(a, b) is true for every value a of x and every value b of y, that is, for every pair; so is ∀y ∀x P(x, y). Both say “for all x and y”. In the same way both existential statements are true exactly when some pair makes P(x, y) true: “there are x and y such that …”.[13]
(2) Suppose ∃y ∀x P(x, y) is true, and let b be a witness: P(a, b) is true for every value a of x. Take any value a. Then P(a, b) is true, so b is a witness for ∃y P(a, y). This holds for every a, so ∀x ∃y P(x, y) is true. On a grid: a column that is all T puts a T in every row.
(3) The next example is a counterexample.
The difference: in ∀x ∃y P(x, y) the value of y may depend on x, a different one for each x; in ∃y ∀x P(x, y) one value of y must serve every x.[14] For each x there may be a fitting y while no single y fits every x.[15]
The domain of x and y is the whole numbers, and P(x, y) is “x + y is odd”. Decide ∀x ∃y P(x, y) and ∃y ∀x P(x, y).
- ∀x ∃y P(x, y): let x be any whole number. If x is even, take y = 1: x + 1 is odd. If x is odd, take y = 0: x + 0 = x is odd (Even and odd numbers). So every x has a witness, and the statement is true. The witness depends on x.
- ∃y ∀x P(x, y): let y be any whole number, and take x = y. Then x + y = 2 × y, which is even. So no y works for every x, and the statement is false.
Answer: the first is true and the second false, which proves part (3) of the Theorem. The figure shows the grid for the numbers from 0 to 3.
| x ↓ y → | 0 | 1 | 2 | 3 |
|---|---|---|---|---|
| 0 | F | T | F | T |
| 1 | T | F | T | F |
| 2 | F | T | F | T |
| 3 | T | F | T | F |
| x ↓ y → | 0 | 1 | 2 | 3 |
|---|---|---|---|---|
| 0 | F | T | F | T |
| 1 | T | F | T | F |
| 2 | F | T | F | T |
| 3 | T | F | T | F |
A student writes “every whole number is followed by a whole number one greater” as ∃n ∀m (n = m + 1). Decide the student’s statement and write the right one.
- The student’s statement says that one number n is 1 more than every m. It is false: for any n, the value m = n gives n + 1 ≠ n, so n is not 1 more than this m.
- The sentence says that each m has its own follower: ∀m ∃n (n = m + 1). It is true: for a given m, the whole number n = m + 1 is a witness.
Answer: ∀m ∃n (n = m + 1), which is true; the student’s version is false. “For every … there is” lets the witness depend on the first variable; “there is … for every” demands one witness for all.
Build a grid
Tap the cells to make P(x, y) true or false for each pair, with x and y from 0 to 2, and watch the six statements change.
| x ↓ y → | 0 | 1 | 2 |
|---|---|---|---|
| 0 | |||
| 1 | |||
| 2 |
- F∀x ∀y P(x, y)(every cell is T)
- T∃x ∃y P(x, y)(some cell is T)
- F∀x ∃y P(x, y)(every row has a T)
- F∃y ∀x P(x, y)(some column is all T)
- F∃x ∀y P(x, y)(some row is all T)
- F∀y ∃x P(x, y)(every column has a T)
Challenges
- Make ∀x ∃y true and ∃y ∀x false.
- Make ∃x ∀y true and ∀x ∀y false.
- Make ∀x ∃y and ∀y ∃x both true with only three T cells.
However the grid is filled, it never makes ∃y ∀x P(x, y) true and ∀x ∃y P(x, y) false: part (2) of the Theorem above proves why.
Read the grid
- Round
- 1
- Score
- 0
- Streak
- 0
Is this statement true? Tap what settles it — one cell, one row (a value of x) or one column (a value of y) — or choose the card if nothing single settles it.
∀x ∃y P(x, y), where P(x, y) is “x + y is a multiple of 3”.
For every x there is a y such that x + y is a multiple of 3. Rows: x = 0, 1, 2, 3, 4. Columns: y = 0, 1, 2, 3, 4.
| x ↓ y → | |||||
|---|---|---|---|---|---|
Negating nested statements
A statement with nested quantifiers is negated by applying De Morgan’s laws for quantifiers (lesson 2.4, Negating quantified statements) once for each quantifier, from the outside in,[16] until no negation stands in front of a quantifier.[17] Each step uses the law on the open statement that follows the outer quantifier, which is allowed by the Proposition of lesson 2.4 on replacing the sentence after a quantifier. For two quantifiers:
- ¬∀x ∃y P(x, y) ≡ ∃x ¬∃y P(x, y) ≡ ∃x ∀y ¬P(x, y);
- ¬∃x ∀y P(x, y) ≡ ∀x ¬∀y P(x, y) ≡ ∀x ∃y ¬P(x, y).
Every quantifier changes, and the negation ends up on the sentence. On a grid, the negation of “every row has a T” is “some row has no T”, which is “some row is all F”: the grid of ¬P(x, y) has an all-T row.
The domain is the whole numbers. Negate ∃n ∀m (m × n is even) step by step, and decide which of the two is true.
- ¬∃n ∀m (m × n is even) ≡ ∀n ¬∀m (m × n is even) (law (2) of lesson 2.4, for ∃n).
- ≡ ∀n ∃m ¬(m × n is even) (law (1), for ∀m) ≡ ∀n ∃m (m × n is odd), since a whole number that is not even is odd.
- Decide: n = 2 is a witness for the statement, since m × 2 = 2 × m is even for every m. So the statement is true and the negation false; n = 2 is a counterexample to the negation, as no m makes m × 2 odd.
Answer: the negation is “for every n there is an m with m × n odd”; it is false, and the statement is true. The number 0 is another witness for the statement.
The domain is the whole numbers. Negate “for every m there is an n such that n > m and n is a multiple of 7”, and decide which of the two is true.
- In symbols: ∀m ∃n (n > m ∧ n is a multiple of 7).
- Move the negation in: ∃m ∀n ¬(n > m ∧ n is a multiple of 7).
- De Morgan’s law (lesson 1.9, De Morgan’s laws) and the negation of >: ∃m ∀n (n ≤ m ∨ n is not a multiple of 7); by the conditional law (lesson 1.10, The laws of logic) this is ∃m ∀n (n > m → n is not a multiple of 7): “some whole number has no multiple of 7 above it”.
- Decide: for any m, the number n = 7 × (m + 1) = 7 × m + 7 is a multiple of 7 and is greater than m, since 7 × m ≥ 1 × m = m (larger factors give a larger product). So the statement is true and its negation false.
Answer: the negation is “there is an m such that every n greater than m is not a multiple of 7”; it is false. Check at m = 20: 7 × 21 = 147 > 20, though 21 = 7 × 3 already works.
Exactly one, and at least two
Lesson 2.3 (The existential quantifier) introduced ∃!x P(x), “there is exactly one x such that P(x)”, and noted that it can be written with ∃, ∀ and connectives. Two quantifiers do it: one value works, and every value that works is that one.[18]
∃!x P(x) has the same truth value as ∃x (P(x) ∧ ∀y (P(y) → y = x)).
Suppose exactly one member a makes P(x) true. Then P(a) is true, and every b with P(b) true is a, so P(b) → b = a is true for every b (when P(b) is false the conditional is true anyway). So a is a witness for the right side, which is true.
Conversely, suppose the right side is true, with a witness a. Then P(a) is true, so the truth set has a member; and every member b of the truth set satisfies b = a, so it has no other. The truth set has exactly one member, and ∃!x P(x) is true. The two statements are true together, so false together.
Velleman writes the inner part with ¬∃ instead: ∃x (P(x) ∧ ¬∃y (P(y) ∧ y ≠ x)), “no other value works”.[19] The two forms say the same: by part (2) of the Theorem of lesson 2.4 on negating “some”, ¬∃y (P(y) ∧ y ≠ x) ≡ ∀y (P(y) → ¬(y ≠ x)), and ¬(y ≠ x) is y = x. Each step replaces the sentence after a quantifier by an equivalent one, as the Proposition of lesson 2.4 allows.
“At least two” needs two variables as well, and a condition that they differ: ∃x ∃y (P(x) ∧ P(y) ∧ x ≠ y). Without x ≠ y the statement says only “at least one”, because two variables may take the same value.[20]
The domain is the whole numbers. Write “exactly one whole number n has n + n = 8” with ∃ and ∀, and decide it.
- By the Proposition: ∃n (n + n = 8 ∧ ∀k (k + k = 8 → k = n)).
- Witness n = 4: 4 + 4 = 8. For the inner part, let k be any whole number with k + k = 8. Then 2 × k = 8, so k = 8 ÷ 2 = 4 = n. So ∀k (k + k = 8 → k = 4) is true.
Answer: the statement is true; 4 is the only whole number whose double is 8.
A student writes “there are at least two whole numbers whose square is 16” as ∃x ∃y (x × x = 16 ∧ y × y = 16) and decides it is true. Check the formula, the claim, and the same claim for the integers.
- The formula is true with x = y = 4: two variables may take the same value. It says only that some whole number has the square 16.
- The claim needs x ≠ y: ∃x ∃y (x × x = 16 ∧ y × y = 16 ∧ x ≠ y). For whole numbers it is false: 4 is the only whole number with square 16, since 0 × 0, 1 × 1, 2 × 2, 3 × 3 are less than 16 and every number from 5 on has a square of at least 25 (Perfect squares and square roots).
- For the integers it is true: 4 and −4 are different, and (−4) × (−4) = 16.
Answer: the student’s formula is true but does not say “at least two”; the correct statement is false for the whole numbers and true for the integers.
The unit Proof shows how to prove statements of the form ∀x ∃y: take an arbitrary x and produce a y for it, as in the examples above. Its lesson “Existence and uniqueness proofs” proves statements of the form “exactly one” in the two parts of the Proposition: that some value works, and that every value that works is that one. With this lesson the unit Logic ends: statements, connectives, truth tables, valid arguments, and the two quantifiers, alone and nested.
Exercises
The domain is the whole numbers. Decide (1) ∀m ∃n (m + n is a multiple of 6); (2) ∃n ∀m (m + n is a multiple of 6); (3) ∃n ∀m (m + n ≥ 6).
▸ Show solution
- (1) True: for a given m, take n = 5 × m; then m + 5 × m = 6 × m.
- (2) False: for any n, the values m = 0 and m = 1 give n and n + 1. They cannot both be multiples of 6: if n = 6 × a and n + 1 = 6 × b, then b > a, so b ≥ a + 1 and n + 1 = 6 × b ≥ 6 × a + 6 = n + 6, which is impossible. So some m fails.
- (3) True: n = 6 is a witness, since m + 6 ≥ 0 + 6 = 6 for every whole number m; so is every n ≥ 6.
Let P(x, y) be “x + y ≥ 5”, with x = 1, 2, 3 and y = 1, 2, 3, 4. Draw the truth grid and decide the six statements of section 2.
▸ Show solution
The grid (rows x = 1, 2, 3; columns y = 1, 2, 3, 4) has T exactly where x + y ≥ 5: row 1 at y = 4; row 2 at y = 3, 4; row 3 at y = 2, 3, 4.
- ∀∀: false (1 + 1 = 2). ∃∃: true (1 + 4 = 5).
- ∀x ∃y: true, every row has a T. ∃x ∀y: false, every row has an F in column 1 (3 + 1 = 4 < 5).
- ∀y ∃x: false, column 1 has no T. ∃y ∀x: true, column 4 is all T (5, 6, 7). As the Theorem says, ∃y ∀x true makes ∀x ∃y true.
The domain is the whole numbers. Negate ∀m ∃n (m + n is a perfect square) with no ¬ in front of a quantifier, and decide which of the two is true.
▸ Show solution
- ¬∀m ∃n (m + n is a perfect square) ≡ ∃m ∀n (m + n is not a perfect square).
- The statement is true: for a given m, take n = m × m + m + 1. Then m + n = m × m + 2 × m + 1, and expanding (m + 1) × (m + 1) with the distributive property gives the same sum (Expanding with the distributive property), so m + n is a perfect square. So the negation is false. For example, m = 3 gives n = 13 and 3 + 13 = 16 = 4 × 4.
With x and y from 0 to 2, give a truth grid on which ∀x ∃y and ∀y ∃x are true but ∃x ∀y and ∃y ∀x are false. What is the least number of T cells such a grid can have?
▸ Show solution
For example, T exactly at (x, y) = (0, 1), (1, 2) and (2, 0), and F elsewhere. Each row has exactly one T, so ∀x ∃y is true; each column has exactly one T, so ∀y ∃x is true.
No row and no column is all T, so ∃x ∀y and ∃y ∀x are false. At least three T cells are needed: with fewer, one of the three rows would have no T. So the least number is 3.
Write “exactly one n has n × n = 36” with ∃ and ∀, and decide it for the whole numbers and for the integers.
▸ Show solution
- ∃n (n × n = 36 ∧ ∀k (k × k = 36 → k = n)).
- Whole numbers: true, with n = 6. If k × k = 36, then k is not 0 to 5 (squares at most 25) and not 7 or more (squares at least 49), so k = 6.
- Integers: false. The integers with square 36 are 6 and −6 ((−6) × (−6) = 36; an integer from −5 to 5 has a square at most 25, and one beyond has a square at least 49). A witness would have to be one of them, and each fails the inner part because of the other: for n = 6, the value k = −6 makes k × k = 36 true and k = 6 false.
Write “there are at least two prime numbers strictly between 10 and 14” with two quantifiers, decide it, and explain why the condition x ≠ y is needed.
▸ Show solution
∃x ∃y (x is prime ∧ y is prime ∧ 10 < x < 14 ∧ 10 < y < 14 ∧ x ≠ y). True: 11 and 13 are different primes between 10 and 14.
Without x ≠ y the formula would be true even if only one prime lay between 10 and 14, with x = y, so it would not say “at least two”.
Summary
- In a statement with nested quantifiers, everything after a quantifier is an open statement; read the quantifiers one at a time, from the left.
- On finite domains, P(x, y) is a truth grid: ∀x ∃y says every row has a T, ∃y ∀x that some column is all T, and so on.
- Two quantifiers of the same kind can be swapped. ∃y ∀x implies ∀x ∃y, but not conversely: in ∀x ∃y the y may depend on x.
- Negate from the outside in, changing every quantifier: ¬∀x ∃y P(x, y) ≡ ∃x ∀y ¬P(x, y).
- “Exactly one” is ∃x (P(x) ∧ ∀y (P(y) → y = x)); “at least two” needs x ≠ y.
Sources
- 1.Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).Chapter 1, “The Foundations: Logic and Proofs”, section 1.5, “Nested Quantifiers” (1.5.1, “Introduction”), p. 60 (the whole topic: pp. 60–61).
“we avoided nested quantifiers, where one quantifier is within the scope of another”
Used for: quantifiers are nested when one is within the scope of another (the source’s example: ∀x∃y(x + y = 0)). - 2.Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).Chapter 1, “The Foundations: Logic and Proofs”, section 1.5, “Nested Quantifiers” (1.5.1, “Introduction”), p. 61 (the whole topic: pp. 61).
“Note that everything within the scope of a quantifier can be thought of as a propositional function.”
Used for: everything after a quantifier can be read as an open statement; ∀x ∃y P(x, y) is ∀x Q(x) with Q(x) the open statement ∃y P(x, y). - 3.Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).Chapter 1, “The Foundations: Logic and Proofs”, section 1.5, “Nested Quantifiers” (1.5.1, “Introduction”), p. 61 (the whole topic: pp. 61).
“Nested quantifiers commonly occur in mathematics and computer science.”
Used for: nested quantifiers are common in mathematics. - 4.Daniel J. Velleman, How to Prove It: A Structured Approach (2nd ed., Cambridge University Press, 2006).Chapter 2, “Quantificational Logic”, section 2.1, “Quantifiers”, p. 60 (the whole topic: pp. 60–61).
“It may be best in this case to think about the quantifiers one at a time, in order.”
Used for: nested quantifiers are read one at a time, from the left. - 5.Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).Chapter 1, “The Foundations: Logic and Proofs”, section 1.5, “Nested Quantifiers” (1.5.6, “Translating English Sentences into Logical Expressions”, Example 13), p. 67 (the whole topic: pp. 66–67).
“where the domains of discourse for w, f, and a consist of all the women in the world, all airplane flights, and all airlines, respectively.”
Used for: each variable has its own domain, and the domains may differ. - 6.Daniel J. Velleman, How to Prove It: A Structured Approach (2nd ed., Cambridge University Press, 2006).Chapter 2, “Quantificational Logic”, section 2.1, “Quantifiers”, p. 59 (the whole topic: pp. 58–59).
“Although this isn’t wrong, the double use of the variable y could cause confusion.”
Used for: using one letter for two quantifiers makes a statement hard to read, so a new letter is used (the source then replaces ∃yM(x, y) by ∃zM(x, z)). - 7.Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).Chapter 1, “The Foundations: Logic and Proofs”, section 1.5, “Nested Quantifiers” (1.5.2, “Understanding Statements Involving Nested Quantifiers”: “Thinking of Quantification as Loops”), p. 61 (the whole topic: pp. 61–62).
“In working with quantifications of more than one variable, it is sometimes helpful to think in terms of nested loops.”
Used for: deciding a statement with two quantifiers is a search like two loops, one inside the other. - 8.Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).Chapter 1, “The Foundations: Logic and Proofs”, section 1.5, “Nested Quantifiers” (1.5.2, “Understanding Statements Involving Nested Quantifiers”: “Thinking of Quantification as Loops”), p. 62 (the whole topic: pp. 61–62).
“Similarly, to determine whether ∀x∃yP(x, y) is true, we loop through the values for x. For each x we loop through the values for y until we find a y for which P(x, y) is true.”
Used for: for each row (value of x), a pass through its cells (values of y). - 9.Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).Chapter 1, “The Foundations: Logic and Proofs”, section 1.5, “Nested Quantifiers” (1.5.3, “The Order of Quantifiers”, Table 1), p. 63 (the whole topic: pp. 62–63).
“P(x, y) is true for every pair x, y.”
Used for: the table of the six statements and when each is true: the source’s Table 1, “Quantifications of Two Variables”, gives this for ∀x∀yP(x, y) and ∀y∀xP(x, y), “For every x there is a y for which P(x, y) is true” for ∀x∃yP(x, y), and so on; the readings on a grid are this site’s. - 10.Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).Chapter 1, “The Foundations: Logic and Proofs”, section 1.5, “Nested Quantifiers” (1.5.3, “The Order of Quantifiers”), p. 62 (the whole topic: pp. 62–63).
“It is important to note that the order of the quantifiers is important, unless all the quantifiers are universal quantifiers or all are existential quantifiers.”
Used for: the order of nested quantifiers matters unless they are all universal or all existential. - 11.Daniel J. Velleman, How to Prove It: A Structured Approach (2nd ed., Cambridge University Press, 2006).Chapter 2, “Quantificational Logic”, section 2.2, “Equivalences Involving Quantifiers”, p. 66 (the whole topic: pp. 66–67).
“However, if the quantifiers are the same type (both ∀ or both ∃), it turns out the order can always be switched without affecting the meaning of the formula.”
Used for: two quantifiers of the same type can be switched (part (1) of the Theorem). - 12.Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).Chapter 1, “The Foundations: Logic and Proofs”, section 1.5, “Nested Quantifiers” (1.5.3, “The Order of Quantifiers”), p. 63 (the whole topic: pp. 62–63).
“From these observations, it follows that if ∃y∀xP(x, y) is true, then ∀x∃yP(x, y) must also be true. However, if ∀x∃yP(x, y) is true, it is not necessary for ∃y∀xP(x, y) to be true.”
Used for: parts (2) and (3) of the Theorem. - 13.Daniel J. Velleman, How to Prove It: A Structured Approach (2nd ed., Cambridge University Press, 2006).Chapter 2, “Quantificational Logic”, section 2.2, “Equivalences Involving Quantifiers”, p. 67 (the whole topic: pp. 66–67).
“In fact, this suggests that a good way of reading the pair of quantifiers ∃y∃x or ∃x∃y would be “there are objects x and y such that”
Used for: both orders of two existential quantifiers read “there are x and y such that …”; the source reads ∀x∀y and ∀y∀x as “for all objects x and y”. - 14.Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).Chapter 1, “The Foundations: Logic and Proofs”, section 1.5, “Nested Quantifiers” (1.5.3, “The Order of Quantifiers”), p. 63 (the whole topic: pp. 63).
“In other words, in the second case, y can depend on x, whereas in the first case, y is a constant independent of x.”
Used for: in ∀x ∃y P(x, y) the value of y may depend on x; in ∃y ∀x P(x, y) one value of y serves every x. - 15.Daniel J. Velleman, How to Prove It: A Structured Approach (2nd ed., Cambridge University Press, 2006).Chapter 2, “Quantificational Logic”, section 2.1, “Quantifiers”, p. 61 (the whole topic: pp. 60–62).
“For each value of x there is a corresponding value of y that makes the equation true, but no single value of y works for every x.”
Used for: for each x there may be a fitting y while no single y fits every x. - 16.Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).Chapter 1, “The Foundations: Logic and Proofs”, section 1.5, “Nested Quantifiers” (1.5.7, “Negating Nested Quantifiers”, Example 15), p. 67 (the whole topic: pp. 67–68).
“By successively applying De Morgan’s laws for quantifiers in Table 2 of Section 1.4 to move the negation inside successive quantifiers”
Used for: a statement with nested quantifiers is negated by applying De Morgan’s laws for quantifiers once for each quantifier, from the outside in (the section begins: nested statements “can be negated by successively applying the rules for negating statements involving a single quantifier”). - 17.Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).Chapter 1, “The Foundations: Logic and Proofs”, section 1.5, “Nested Quantifiers” (1.5.7, “Negating Nested Quantifiers”, Example 14), p. 67 (the whole topic: pp. 67).
“By successively applying De Morgan’s laws for quantifiers in Table 2 of Section 1.4, we can move the negation in”
Used for: the negation is moved inside, past each quantifier, until no negation stands in front of a quantifier (the source’s task: “so that no negation precedes a quantifier”). - 18.Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).Chapter 1, “The Foundations: Logic and Proofs”, section 1.5, “Nested Quantifiers” (1.5.6, “Translating English Sentences into Logical Expressions”, Example 12), p. 66 (the whole topic: pp. 66).
“To say that x has exactly one best friend means that there is a person y who is the best friend of x, and furthermore, that for every person z, if person z is not person y, then z is not the best friend of x.”
Used for: “exactly one” is written with two quantifiers: one value works, and every other value does not. - 19.Daniel J. Velleman, How to Prove It: A Structured Approach (2nd ed., Cambridge University Press, 2006).Chapter 2, “Quantificational Logic”, section 2.2, “Equivalences Involving Quantifiers”, p. 68 (the whole topic: pp. 67–68).
“Similarly, in general we can think of ∃!x P(x) as an abbreviation for the formula”
Used for: ∃!x P(x) can be written with ∃, ∀ (the source uses ¬∃) and connectives; the formula follows in the source. - 20.Daniel J. Velleman, How to Prove It: A Structured Approach (2nd ed., Cambridge University Press, 2006).Chapter 2, “Quantificational Logic”, section 2.2, “Equivalences Involving Quantifiers”, p. 67 (the whole topic: pp. 67).
“It is important to realize that when we talk about objects x and y, we are not ruling out the possibility that x and y are the same object.”
Used for: two variables may take the same value. - 21.Daniel J. Velleman, How to Prove It: A Structured Approach (2nd ed., Cambridge University Press, 2006).Chapter 2, “Quantificational Logic”, section 2.2, “Equivalences Involving Quantifiers”, p. 67 (the whole topic: pp. 67).
“But to say that x is a bigamist you must say that there are two different people to whom x is married, and this formula doesn’t say that y and z are different.”
Used for: “at least two” needs a condition that the two variables differ.