Definition · applies to formulas in logic · also called quantifiers

High school

A quantifier is a phrase that says how many values of a variable a statement is about. The two main quantifiers are “for all” ($\forall$), as in “for all real numbers $x$, $x^2 \geq 0$,” and “there exists” ($\exists$), as in “there exists a real number $x$ such that $x^2 = 2$.”

Undergraduate (first-order logic)

Consider a formula $\varphi$ and a variable $x$. The universal quantifier $\forall$ and the existential quantifier $\exists$ build the formulas

\[\forall x \, \varphi \quad \text{and} \quad \exists x \, \varphi,\]

where $\forall x \, \varphi$ is true if $\varphi$ is true for every object $x$ in the domain of discourse, and $\exists x \, \varphi$ is true if $\varphi$ is true for at least one object $x$ in the domain of discourse.

Properties

  • A quantifier binds its variable: in $\forall x \, (x^2 \geq y)$, the variable $x$ is bound and the variable $y$ is free. A formula in which a quantifier binds every variable is a sentence.
  • Negating a quantifier switches it: $\neg \forall x \, \varphi$ is equivalent to $\exists x \, \neg \varphi$, and $\neg \exists x \, \varphi$ is equivalent to $\forall x \, \neg \varphi$.
  • The order of different quantifiers matters: $\forall x \, \exists y \, (y > x)$ is true over the real numbers, but $\exists y \, \forall x \, (y > x)$ is false, because no real number is larger than every real number.

All definitions · All distinctions · All examples · Notation