Skip to content
Part IA Michaelmas, Lent Term

Universal Quantification

The Universal Quantifier

The universal quantifier ∀\forall means “for all” or “for every”.

The statement ∀x.P(x)\forall x. P(x) means: P(x)P(x) is true for every element xx in the domain of discourse.

Syntax

∀x∈S.P(x)\forall x \in S. P(x)

means “for all xx in the set SS, P(x)P(x) holds.”

Examples

  • ∀n∈N.n≥0\forall n \in \mathbb{N}. n \geq 0 (true)
  • ∀n∈Z.n2≥0\forall n \in \mathbb{Z}. n^2 \geq 0 (true)
  • ∀n∈Z.n>0\forall n \in \mathbb{Z}. n > 0 (false: −1-1 is a counterexample)

Proof Strategy: Universal Generalisation

To prove ∀x∈S.P(x)\forall x \in S. P(x):

  1. Fix an arbitrary xx: “Let x∈Sx \in S be arbitrary”
  2. Prove P(x)P(x): Show that P(x)P(x) holds for this fixed xx
  3. Conclude: Since xx was arbitrary, the statement holds for all x∈Sx \in S

Key Point

The xx you work with must be arbitrary, not a specific value. You cannot assume anything about xx beyond what every element of SS satisfies.

Example

Statement: For all integers nn, if nn is even then n+2n + 2 is even.

Proof:

Let n∈Zn \in \mathbb{Z} be arbitrary. Assume nn is even.

Then n=2kn = 2k for some integer kk.

We have n+2=2k+2=2(k+1)n + 2 = 2k + 2 = 2(k + 1).

Since k+1k + 1 is an integer, n+2n + 2 is even.

Since nn was arbitrary, the statement holds for all integers.

Nested Quantifiers

Multiple quantifiers can be nested. The order matters:

∀x.∀y.P(x,y)\forall x. \forall y. P(x, y)

“For all xx and for all yy, P(x,y)P(x, y) holds.”

∀y.∀x.P(x,y)\forall y. \forall x. P(x, y)

These are equivalent: ∀x.∀y.P(x,y)≡∀y.∀x.P(x,y)\forall x. \forall y. P(x, y) \equiv \forall y. \forall x. P(x, y)

However, when mixing ∀\forall and ∃\exists, order matters critically.

Scope and Binding

Example

In ∀x∈N.x+y>0\forall x \in \mathbb{N}. x + y > 0:

  • xx is bound by ∀\forall
  • yy is free (the statement depends on yy)

In ∀x.∀y.x+y>0\forall x. \forall y. x + y > 0:

  • Both xx and yy are bound

Restricted Quantification

Instead of ∀x∈S.P(x)\forall x \in S. P(x), you may see:

∀x.(x∈S⇒P(x))\forall x. (x \in S \Rightarrow P(x))

These are logically equivalent.

Example

∀n∈N.n≥0\forall n \in \mathbb{N}. n \geq 0 is equivalent to ∀n.(n∈N⇒n≥0)\forall n. (n \in \mathbb{N} \Rightarrow n \geq 0).

Common Structures

Universal Implication

∀x.(P(x)⇒Q(x))\forall x. (P(x) \Rightarrow Q(x)) means “for all xx, if P(x)P(x) then Q(x)Q(x)”.

To prove:

  1. Fix arbitrary xx
  2. Assume P(x)P(x)
  3. Prove Q(x)Q(x)

Hidden Quantifiers

Many statements hide quantifiers:

“The product of two odd integers is odd.”

Formally: ∀m,n∈Z.(Odd(m)∧Odd(n))⇒Odd(m⋅n)\forall m, n \in \mathbb{Z}. (\text{Odd}(m) \land \text{Odd}(n)) \Rightarrow \text{Odd}(m \cdot n)

Common Pitfalls

Forgetting to Fix Arbitrarily

Trap: Proving for a specific value does not prove “for all”.

Proving P(0)P(0), P(1)P(1), P(2)P(2) does not prove ∀n.P(n)\forall n. P(n).

Using Non-arbitrary Values

Trap: If you pick x=5x = 5 and prove P(5)P(5), you have not proved ∀x.P(x)\forall x. P(x).

You must prove it for an arbitrary, unspecified xx.

Assuming the Consequent

Trap: When proving ∀x.(P(x)⇒Q(x))\forall x. (P(x) \Rightarrow Q(x)), you assume P(x)P(x), not Q(x)Q(x).


Summary

  • ∀x.P(x)\forall x. P(x) means ”P(x)P(x) is true for all xx”
  • Proof by universal generalisation: fix arbitrary xx, prove P(x)P(x)
  • ∀x.∀y.P(x,y)≡∀y.∀x.P(x,y)\forall x. \forall y. P(x, y) \equiv \forall y. \forall x. P(x, y)
  • Hidden quantifiers must be made explicit for rigorous proof