← mapLogic & Proof

Quantifiers

⚗ Dr. Möbius, from the lab

"x>3x > 3" isn't true and isn't false — it's a predicate, a sentence with a gaping hole in it. Today we plug those holes with the two most powerful words in all of mathematics: for all and there exists. Master their dance and their negation, and you can read any theorem ever written. Botch the order and — I am not joking — you will accidentally claim that one person is the biological mother of the entire human race. Let's not do that.

THE BIG IDEA

The quantifiers ∀ (for all) and ∃ (there exists) turn predicates into propositions, their negations swap into each other, and their order is not interchangeable.

Predicates: sentences with holes

Last lesson we kept tripping over sentences like "x>3x > 3" or "nn is even." These aren't propositions — they have no truth value until you say what xx or nn is. We call them predicates: declarative templates with one or more free variables. Write a predicate as P(x)P(x), a function from objects to truth values. P(5)P(5) might be true, P(2)P(2) false.

To forge a predicate into an honest proposition, you do one of two things: claim it holds for everything, or claim it holds for something. Those are the quantifiers.

For all, there exists

The universal quantifier ∀\forall means "for all" / "for every." The statement ∀x∈Z, P(x)\forall x \in \mathbb{Z},\ P(x) reads "for every integer xx, P(x)P(x) holds." It's true only if P(x)P(x) is true for every single xx in the domain — no exceptions allowed.

The existential quantifier ∃\exists means "there exists" / "for some." The statement ∃x∈Z, P(x)\exists x \in \mathbb{Z},\ P(x) reads "there is at least one integer xx with P(x)P(x)." It's true if even one xx works.

Always nail down the domain — the set xx ranges over. "∃x, x2=2\exists x,\ x^2 = 2" is false over Q\mathbb{Q} (we proved no fraction squares to 22 informally back in Irrationals & the Real Line) but true over R\mathbb{R}. Same predicate, different universe, different truth value. Quantifying without a domain is like firing the particle accelerator without a target — loud, useless, and someone loses an eyebrow.

The asymmetry of proof burden

Here's a structural truth that decides how you'll prove things for the rest of your life. The two quantifiers have opposite economics:

  • To prove ∀x, P(x)\forall x,\ P(x): you must handle every xx — usually by arguing about an arbitrary, unnamed element (next lesson's whole technique). To disprove it: a single counterexample suffices. One purple swan and "all swans are white" is dead.
  • To prove ∃x, P(x)\exists x,\ P(x): a single example suffices — just exhibit one xx that works. To disprove it: you must rule out every xx, which is the hard universal job in disguise.

So ∀\forall is expensive to prove, cheap to refute; ∃\exists is cheap to prove, expensive to refute. One counterexample kills a universal; one witness proves an existential. This asymmetry is not some quirk to be memorized and forgotten — it's the fucking load-bearing beam of mathematical argument. Internalize it now and proofs stop feeling like guesswork.

Negation: push the not through, flip the quantifier

This is the mechanical move that makes quantifiers a tool rather than a vibe. What does it mean for "∀x, P(x)\forall x,\ P(x)" to be false? It means not everything satisfies PP — i.e., something fails it. In symbols: ¬(∀x, P(x))≡∃x, ¬P(x).\neg \big(\forall x,\ P(x)\big) \equiv \exists x,\ \neg P(x).

And dually, "∃x, P(x)\exists x,\ P(x)" is false when nothing satisfies PP — i.e., everything fails it: ¬(∃x, P(x))≡∀x, ¬P(x).\neg \big(\exists x,\ P(x)\big) \equiv \forall x,\ \neg P(x).

Look at what happened: the negation slid inward past the quantifier and flipped it — ∀\forall became ∃\exists, ∃\exists became ∀\forall — landing on the predicate. This is De Morgan's law (from Propositions & Connectives) scaled up to infinite collections: ∀\forall is a giant AND, ∃\exists is a giant OR, and negating a giant AND gives a giant OR of negations. Same move, bigger stage.

To negate a whole chain of quantifiers, you just walk left to right flipping each one and finally negate the innermost predicate. "∀x ∃y, P(x,y)\forall x\, \exists y,\ P(x,y)" negates to "∃x ∀y, ¬P(x,y)\exists x\, \forall y,\ \neg P(x,y)." Mechanical. Boring. Powerful. The Federation of Boring Textbook Authors makes students guess negations — actual guessing, in a mathematics class, god help them — while in my lab you compute them. No guessing. Ever. This is a lab, not a seance.

Order matters: everyone has a mother

Now the trap that sounds like philosophy but is pure logic. When you nest two different quantifiers, their order changes the meaning. Compare:

∀x ∃y, Mother(y,x)vs∃y ∀x, Mother(y,x).\forall x\, \exists y,\ \text{Mother}(y, x) \qquad\text{vs}\qquad \exists y\, \forall x,\ \text{Mother}(y, x).

The first: "for every person xx, there exists a person yy who is xx's mother." True — everyone has a mother. Crucially, the yy is allowed to depend on xx; different people get different mothers.

The second: "there exists a person yy such that for every person xx, yy is xx's mother." This says one single person is the mother of everybody — a universal mom. Wildly false. Here yy must be chosen first, before xx, so the same yy has to work for all xx at once.

That's the rule: in ∀x ∃y\forall x\, \exists y, the witness yy may vary with xx. In ∃y ∀x\exists y\, \forall x, the witness yy is fixed up front and must serve every xx. Swapping ∀\forall and ∃\exists is not free — it can turn a true statement into a catastrophic falsehood. This exact distinction is the soul of the epsilon-delta definitions you'll meet far down the line; getting it wrong there is precisely how otherwise intelligent people fail analysis and end up resenting mathematics forever, and I will not let that happen to you.

Translate until it's boring

The only way to own this is reps — boring, unglamorous, infallible reps. Take "every positive real has a square root" and grind it both directions: ∀x∈R, (x>0→∃y∈R, y2=x).\forall x \in \mathbb{R},\ \big(x > 0 \to \exists y \in \mathbb{R},\ y^2 = x\big). Notice the hidden implication from last lesson is still in there — "every positive AA" gives a ∀\forall guarding a →\to. Read symbols into crisp English, read English into airtight symbols, back and forth, until it's so automatic it's dull. Dull is the goal. Now go.

🔬 SPECIMENS (worked examples)

Worked example 1 — true or false, and why the domain is everything▸

Decide the truth value of each, paying attention to the domain: (a) ∀n∈N, n+1>n\forall n \in \mathbb{N},\ n + 1 > n. (b) ∃n∈N, n2=n\exists n \in \mathbb{N},\ n^2 = n. (c) ∀x∈R, x2≥0\forall x \in \mathbb{R},\ x^2 \ge 0.

(a) "For every natural nn, n+1>nn+1 > n." Adding one always increases a natural number, so this holds for every nn — no exceptions. True.

(b) "There exists a natural nn with n2=nn^2 = n." We only need one witness. Try n=1n = 1: 12=11^2 = 1. ✓ (Also n=0n = 0 works.) One example is all an ∃\exists requires. True.

(c) "For every real xx, x2≥0x^2 \ge 0." A square is never negative — that's the tiny inequality from Order & Inequality, and it holds across all of R\mathbb{R}. True.

The point of (b): existentials are cheap to prove — exhibit a witness and you're done, no need to survey the whole domain.

Worked example 2 — negating mechanically▸

Write the negation of "∀x∈R, ∃y∈R, x+y=0\forall x \in \mathbb{R},\ \exists y \in \mathbb{R},\ x + y = 0", pushing the negation all the way in, then say in English what the negation claims.

Walk the ¬\neg inward, flipping each quantifier as it passes, and negate the final predicate:

¬(∀x ∃y, x+y=0)≡∃x ¬(∃y, x+y=0)≡∃x ∀y, x+y≠0.\neg\big(\forall x\, \exists y,\ x + y = 0\big) \equiv \exists x\, \neg\big(\exists y,\ x + y = 0\big) \equiv \exists x\, \forall y,\ x + y \ne 0.

Step by step: the outer ∀\forall flips to ∃\exists; the inner ∃\exists flips to ∀\forall; the predicate x+y=0x + y = 0 becomes x+y≠0x + y \ne 0.

In English, the negation says: "there is some real xx such that for every real yy, x+y≠0x + y \ne 0" — i.e., some number has no additive partner summing to zero.

(For the record, the original is true — every xx has the witness y=−xy = -x — so its negation is false. But the negation procedure is purely mechanical and doesn't care about truth values.)

Worked example 3 — the trap: order of quantifiers▸

Over the domain R\mathbb{R}, compare these two statements and determine the truth value of each: (A) ∀x ∃y, y>x\forall x\, \exists y,\ y > x. (B) ∃y ∀x, y>x\exists y\, \forall x,\ y > x.

Same predicate "y>xy > x", opposite quantifier order — and that's everything.

(A) ∀x ∃y, y>x\forall x\, \exists y,\ y > x: "for every real xx, there is a real yy bigger than xx." Here yy may depend on xx — given any xx, just take y=x+1y = x + 1. There's always a bigger number. True.

(B) ∃y ∀x, y>x\exists y\, \forall x,\ y > x: "there is a real yy that is bigger than every real xx." Now yy is fixed first and must beat all xx at once — that's a largest real number, a universal champion. No such thing exists: whatever yy you pick, x=y+1x = y + 1 exceeds it. False.

So (A) is true and (B) is false, from nothing but the order. This is the "everyone has a bigger number" vs "one number is bigger than everyone" version of "everyone has a mother" vs "someone is everyone's mother." Order is not decoration.

☠ KNOWN HAZARDS

  • Forgetting the domain. "∃x, x2=2\exists x,\ x^2 = 2" is false over Q\mathbb{Q} but true over R\mathbb{R}. A quantifier without a stated universe is meaningless bullshit — and I mean that in the technical sense.

  • Negating a ∀\forall into a ∀\forall. ¬(∀x P(x))\neg(\forall x\, P(x)) is not "∀x ¬P(x)\forall x\, \neg P(x)" — it's "∃x ¬P(x)\exists x\, \neg P(x)". You must flip the quantifier when the negation passes through it.

  • Swapping quantifier order. ∀x ∃y\forall x\, \exists y and ∃y ∀x\exists y\, \forall x are different statements. The first lets yy depend on xx; the second demands one universal yy. Don't reorder them.

  • Trying to prove ∀\forall with one example. One example proves ∃\exists, never ∀\forall. To prove a universal you must cover every case — typically via an arbitrary element.

TL;DR

  • ▸

    A predicate P(x)P(x) has no truth value until quantified; ∀\forall ("for all") and ∃\exists ("there exists") turn it into a proposition — always over a stated domain.

  • ▸

    Burden asymmetry: a single counterexample disproves ∀\forall, a single witness proves ∃\exists. ∀\forall is hard to prove / easy to refute; ∃\exists is the reverse.

  • ▸

    Negation flips quantifiers: ¬∀x P(x)≡∃x ¬P(x)\neg \forall x\, P(x) \equiv \exists x\, \neg P(x) and ¬∃x P(x)≡∀x ¬P(x)\neg \exists x\, P(x) \equiv \forall x\, \neg P(x) — push the ¬\neg in, flip each quantifier, negate the predicate.

  • ▸

    Order matters: ∀x ∃y\forall x\, \exists y (the yy can depend on xx) is genuinely different from ∃y ∀x\exists y\, \forall x (one yy for everybody). "Everyone has a mother" vs "someone is everyone's mother."

  • ▸

    Translating English ↔\leftrightarrow symbols both ways is the core skill; "every positive AA is a BB" hides a ∀\forall guarding a →\to.

unlocks