命题逻辑的联结词是 \land(与)、\lor(或)和 \lnot(非);\wedge、\vee 和 \neg 是完全等价的别名。蕴含和等价最好用 \implies(来自 amsmath)和 \iff 表示,它们会在箭头两侧加上关系符间距;直接用 \Rightarrow 和 \Leftrightarrow 也可以。量词是 \forall 和 \exists,\nexists 表示“不存在”,真和假这两个常量是 \top 和 \bot。
证明论和语义学有各自的推导符号:\vdash 表示“可证”即语法蕴涵,\models(也可写作 \vDash)表示“满足”即语义蕴涵,\nvdash 是前者的否定。推理标记 \therefore 和 \because 来自 amssymb,\nexists 和 \vDash 也是。公式之间的逻辑等价常用 \equiv 表示,异或是 \oplus,谢费尔竖线(与非)是 \uparrow。模态算子 \Box 和 \Diamond 列在模态逻辑符号页面。
这些符号都只能用于数学模式,所以要用 $...$ 包裹,并在导言区加载 \usepackage{amsmath, amssymb}。一个典型的公式:\forall x\, (P(x) \implies Q(x))。想了解它们如何与集合、函数和关系配合使用,请阅读我们的 LaTeX 数学表达式指南。
\forall\exists\nexists\neg\land\lor\Rightarrow\Leftarrow\Leftrightarrow\implies\iff\vdash\models\therefore\because\bot\top\square\equiv\not\equiv