المحددات الكمية

لكل ويوجد وينتمي إلى وترميز بناء المجموعة.

Quantifiers in LaTeX: for all, there exists and element of

The quantifiers in LaTeX are \forall (for all, ∀) and \exists (there exists, ∃), both built in; \nexists for there does not exist comes from amssymb, and unique existence is written \exists!. Quantified statements usually combine them with element of, \in, and a separator such as a comma or a colon: \forall x \in \mathbb{R},\ x^2 \geq 0. Negation is \neg, and implication and equivalence are \implies and \iff. The table lists the quantifier symbols people use most, with the package each one needs; the full list follows below.

Quick reference: quantifiers and connectives

SymbolCommandUsePackageCopy
∀\forall
\forallFor allbuilt in
∃\exists
\existsThere existsbuilt in
∄\nexists
\nexistsThere does not existamssymb
∃!\exists!
\exists!There exists exactly onebuilt in
∀x∈A\forall x \in A
\forall x \in AFor all x in Abuilt in
∈\in
\inElement ofbuilt in
∉\notin
\notinNot an element ofbuilt in
¬\neg
\negNotbuilt in
∧\land
\landAndbuilt in
∨\lor
\lorOrbuilt in
  ⟹  \implies
\impliesImpliesamsmath
  ⟺  \iff
\iffIf and only ifbuilt in

More connectives and proof symbols are on the logic symbols page, and subsets and set-builder notation on the set theory symbols page.

Frequently asked questions about quantifiers in LaTeX

How do I write for all in LaTeX?
Use \forall in math mode: $\forall x \in \mathbb{R}$ prints ∀x ∈ ℝ. It is built in. Add a separator after the bound variable, for example \forall x,\ P(x) or \forall x : P(x), to keep the formula readable.
How do I write there exists and there does not exist in LaTeX?
There exists is \exists (∃), built in. There does not exist is \nexists (∄), which needs \usepackage{amssymb}; \not\exists also works without a package but looks less clean. For unique existence write \exists!.
How do I write such that in LaTeX?
In set-builder notation use a vertical bar or colon: \{ x \in A \mid x > 0 \} or \{ x : x > 0 \}; \mid gives the right spacing. In a quantified statement a comma or \text{ s.t. } is common, as in \exists x \in A \text{ s.t. } x > 0.
∀\forall

For All

\forall
∃\exists

Exists

\exists
∄\nexists

Not Exists

\nexists
∃!\exists!
∈\in
∉\notin
∋\ni
∀x\forall x

For All x

\forall x
∃x\exists x

Exists x

\exists x
∀x∈A\forall x \in A

For All in Set

\forall x \in A
∃x∈A\exists x \in A

Exists in Set

\exists x \in A
∣\mid
{x∣P(x)}\{ x \mid P(x) \}

Set Builder

\{ x \mid P(x) \}
∀x∃y:P(x,y)\forall x \exists y : P(x, y)

Quantified Statement

\forall x \exists y : P(x, y)