量词

对所有、存在、属于和集合构造符号。

LaTeX 中的量词:任意、存在与属于

LaTeX 中的量词是 \forall(任意,∀)和 \exists(存在,∃),两者都是内置的;表示“不存在”的 \nexists 来自 amssymb,唯一存在写作 \exists!。量化命题通常把它们与属于符号 \in 以及逗号或冒号等分隔符组合使用:\forall x \in \mathbb{R},\ x^2 \geq 0。否定是 \neg,蕴含和等价是 \implies 和 \iff。下表列出了最常用的量词符号及各自所需的宏包;完整列表见下方。

速查表:量词与逻辑联结词

符号命令用途宏包复制
∀\forall
\forall任意(对所有)内置
∃\exists
\exists存在内置
∄\nexists
\nexists不存在amssymb
∃!\exists!
\exists!存在唯一内置
∀x∈A\forall x \in A
\forall x \in A对 A 中所有 x内置
∈\in
\in属于内置
∉\notin
\notin不属于内置
¬\neg
\neg非内置
∧\land
\land与内置
∨\lor
\lor或内置
  ⟹  \implies
\implies蕴含amsmath
  ⟺  \iff
\iff当且仅当内置

关于 LaTeX 量词的常见问题

如何在 LaTeX 中输入任意量词(for all)?
在数学模式中使用 \forall:$\forall x \in \mathbb{R}$ 输出 ∀x ∈ ℝ。它是内置命令。在约束变量后加一个分隔符,例如 \forall x,\ P(x) 或 \forall x : P(x),可以让公式更易读。
如何在 LaTeX 中输入存在和不存在?
存在是内置的 \exists(∃)。不存在是 \nexists(∄),需要 \usepackage{amssymb};\not\exists 不需要宏包也能用,但效果没那么美观。唯一存在写作 \exists!。
如何在 LaTeX 中表示“使得”(such that)?
在集合构造记号中用竖线或冒号:\{ x \in A \mid x > 0 \} 或 \{ x : x > 0 \};\mid 能给出正确的间距。在量化命题中常用逗号或 \text{ s.t. },例如 \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)