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

xS.P(x)\forall x \in S. P(x)

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

Examples

  • nN.n0\forall n \in \mathbb{N}. n \geq 0 (true)
  • nZ.n20\forall n \in \mathbb{Z}. n^2 \geq 0 (true)
  • nZ.n>0\forall n \in \mathbb{Z}. n > 0 (false: 1-1 is a counterexample)

Proof Strategy: Universal Generalisation

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

  1. Fix an arbitrary xx: “Let xSx \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 xSx \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 nZn \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 xN.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 xS.P(x)\forall x \in S. P(x), you may see:

x.(xSP(x))\forall x. (x \in S \Rightarrow P(x))

These are logically equivalent.

Example

nN.n0\forall n \in \mathbb{N}. n \geq 0 is equivalent to n.(nNn0)\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,nZ.(Odd(m)Odd(n))Odd(mn)\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