# 前束范式

**前束范式**（Prenex normal form，PNF）是一阶逻辑公式的一种标准形式，其中所有量词都集中在最前面：一个公式处于前束范式，如果它具有形状 \( Q_1 x_1 \cdots Q_n x_n \, M \)，其中每个 \(Q_i\) 要么是全称量词 \(\forall\)，要么是存在量词 \(\exists\)，而 \(M\) 是无量词公式。<sup>[1](https://mathworld.wolfram.com/PrenexNormalForm.html)</sup> 量词序列称为**前缀**，无量词的剩余部分称为**母式**。<sup>[2](https://www.barrywatson.se/cl/cl_pnf.html)</sup> 例如，\( \exists x \forall y \exists z \,(P(x) \lor Q(x,y,z)) \) 处于前束范式，而 \( \exists x \forall y \,(P(x) \lor \exists z \, Q(x,y,z)) \) 不是，因为 \(z\) 上的量词位于一个析取内部。<sup>[1](https://mathworld.wolfram.com/PrenexNormalForm.html)</sup>

| 关键事实 | 细节 |
|---|---|
| 定义 | 一串量词（前缀）后接一个无量词公式（母式）<sup>[1](https://mathworld.wolfram.com/PrenexNormalForm.html)</sup><sup> • </sup><sup>[2](https://www.barrywatson.se/cl/cl_pnf.html)</sup> |
| 存在性定理 | 一阶逻辑的每个公式都可转换为逻辑等价的前束范式公式<sup>[1](https://mathworld.wolfram.com/PrenexNormalForm.html)</sup> |
| 历史起源 | 查尔斯·桑德斯·皮尔士（Charles Sanders Peirce）最早讨论将量化公式转换为前束范式的规则，见其1883年札记和《论逻辑代数》（On the Algebra of Logic，1885）<sup>[3](https://plato.stanford.edu/archives/sum2021/entries/logic-firstorder-emergence/)</sup> |
| 规模代价 | 当双蕴含 ↔ 出现时，教科书式转换可使公式指数增长，但转换可以只带来多项式增长（《信息处理快报》（Information Processing Letters），2016）<sup>[4](https://www.sciencedirect.com/science/article/abs/pii/S002001901630028X)</sup> |
| 定理范围 | 该定理对经典一阶逻辑成立，但对直觉主义理论一般不成立<sup>[5](https://iiia.csic.es/tacl2024/abstracts/conference/book_abstracts_TACL24.pdf)</sup> |
| 主要用途 | 自动定理证明中斯科伦化和子句形式的标准预处理步骤<sup>[6](https://www.sciencedirect.com/topics/computer-science/prenex-normal-form)</sup> |

## 定义与术语

无量词母式 \(M\) 是原子公式的布尔组合，由 \(\neg\)、\(\land\) 和 \(\lor\) 等联结词构成。<sup>[7](https://community.wvu.edu/~krsubramani/courses/sp09/cc/lecnotes/fol.pdf)</sup> 有些表述会附加一个附带条件：公式应当是**整饬的**（rectified），意思是不同的量词出现约束不同的变量，并且约束变量与自由变量不同。<sup>[6](https://www.sciencedirect.com/topics/computer-science/prenex-normal-form)</sup> 每个一阶公式都有整饬的等价公式，因此这一条件不损失一般性。<sup>[6](https://www.sciencedirect.com/topics/computer-science/prenex-normal-form)</sup>

前缀可以为空，因此完全无量词的公式也算作前束的。<sup>[8](https://cs.uwaterloo.ca/~david/cl/fol-hodges.pdf)</sup> 前束公式也称为前束范式或前束形式。<sup>[9](https://encyclopediaofmath.org/wiki/Prenex_formula)</sup>

## 前束范式定理

核心结果通常称为前束范式定理，它断言每个一阶公式都逻辑等价于某个前束范式公式。<sup>[1](https://mathworld.wolfram.com/PrenexNormalForm.html)</sup> 证明是构造性的：一组有限的等价规则将每个量词向外移过其上方的联结词，反复应用后终止于一个前束公式。<sup>[7](https://community.wvu.edu/~krsubramani/courses/sp09/cc/lecnotes/fol.pdf)</sup>

这些规则分为三组。否定规则交换量词类型：<sup>[10](https://homepage.divms.uiowa.edu/~hzhang/c188/notes/Ch01-06-unify.pdf)</sup>

\[ \neg \forall x \, A(x) \equiv \exists x \, \neg A(x), \qquad \neg \exists x \, A(x) \equiv \forall x \, \neg A(x). \]

分配规则在量化变量不在另一个合取项或析取项中自由出现时，将量词从合取或析取中拉出，例如当 \(x\) 在 \(B\) 中不自由时，\( (\forall x \, A(x)) \land B \equiv \forall x \,(A(x) \land B) \)。<sup>[10](https://homepage.divms.uiowa.edu/~hzhang/c188/notes/Ch01-06-unify.pdf)</sup> 若考虑 \(\land\) 与 \(\lor\) 的交换律，六条这样的规则覆盖联结词为 \(\neg\)、\(\land\) 或 \(\lor\) 的情形。<sup>[10](https://homepage.divms.uiowa.edu/~hzhang/c188/notes/Ch01-06-unify.pdf)</sup> 最后，重命名规则 \( \forall x \, \varphi \equiv \forall y \, \varphi[x \leftarrow y] \)（其中 \(y\) 不出现在 \(\varphi\) 中）可将冲突的约束变量分开。<sup>[7](https://community.wvu.edu/~krsubramani/courses/sp09/cc/lecnotes/fol.pdf)</sup>

典型的转换过程如下：<sup>[11](https://www2.imm.dtu.dk/courses/02286/Slides/FirstOrderLogicPrenexFormsSkolemizationClausalFormTrans.pdf)</sup>

1. 通过用 \(\neg\)、\(\land\) 和 \(\lor\) 重写，消去联结词 \(\to\) 和 \(\leftrightarrow\)。<sup>[11](https://www2.imm.dtu.dk/courses/02286/Slides/FirstOrderLogicPrenexFormsSkolemizationClausalFormTrans.pdf)</sup>
2. 使用否定规则和德摩根律，将否定向内推，以达到否定范式。<sup>[10](https://homepage.divms.uiowa.edu/~hzhang/c188/notes/Ch01-06-unify.pdf)</sup>
3. 重命名约束变量，使得没有变量被量化两次，也没有变量同时是约束的和自由的。<sup>[10](https://homepage.divms.uiowa.edu/~hzhang/c188/notes/Ch01-06-unify.pdf)</sup>
4. 反复应用分配规则，将所有量词拉到前面。<sup>[11](https://www2.imm.dtu.dk/courses/02286/Slides/FirstOrderLogicPrenexFormsSkolemizationClausalFormTrans.pdf)</sup>

重命名步骤对正确性很重要。如果一个量化变量还在公式其他地方自由出现，或者两个量词共用一个变量，那么将量词向外拉可能改变它们约束的是哪些出现；重命名为新名字可避免这一点。<sup>[10](https://homepage.divms.uiowa.edu/~hzhang/c188/notes/Ch01-06-unify.pdf)</sup>

## 转换的规模

教科书算法有一个值得了解的规模代价。如果输入公式只使用 \(\land\)、\(\lor\) 和 \(\neg\)，输出与输入规模相同。但当双蕴含 \(\leftrightarrow\) 出现时，朴素地消去该联结词——即用 \(\to\)、\(\land\) 和 \(\neg\) 按定义替换 \(A \leftrightarrow B\)——会在每个嵌套层级使子公式加倍，并导致公式指数增长。<sup>[4](https://www.sciencedirect.com/science/article/abs/pii/S002001901630028X)</sup> 2016 年《信息处理快报》（*Information Processing Letters*）的一则短文表明，尽管如此，转换为前束形式仍可以只带来公式规模的多项式增长。<sup>[4](https://www.sciencedirect.com/science/article/abs/pii/S002001901630028X)</sup> 在实践中，前束化本身在算法上并不昂贵，尽管所得形式在进一步用作定理证明器的输入时可能变得昂贵。<sup>[6](https://www.sciencedirect.com/topics/computer-science/prenex-normal-form)</sup>

## 在自动推理中的作用

前束形式是通往子句形式的标准跳板。斯科伦（Skolem）在1928年表明，每个一阶公式都可以“斯科伦化”：先找到一个等价的前束范式，去掉所有量词，并把每个存在量化变量替换为一个函数项，该函数项的参数是在该存在量词左侧被全称约束的变量。<sup>[6](https://www.sciencedirect.com/topics/computer-science/prenex-normal-form)</sup> 例如，对 \( \exists x \forall y \forall z \, A \) 作斯科伦化，得到 \( \forall y \forall z \, A[c/x] \)，其中 \(c\) 是新常量。<sup>[11](https://www2.imm.dtu.dk/courses/02286/Slides/FirstOrderLogicPrenexFormsSkolemizationClausalFormTrans.pdf)</sup> 结果保持可满足性，而这正是基于消解的证明器所需要的。<sup>[12](https://www.cambridge.org/core/books/abs/computability-and-logic/normal-forms/5C2F0D12C34FA3DE1F260FAEDD753F45)</sup>

量词前缀也可用作复杂度度量。前束范式公式前缀中量词的数量和顺序，成为衡量量化理论公式复杂度的一种便利标准。<sup>[13](https://www.originalsources.com/Document.aspx?DocID=LGGPBEB75LRTMT1)</sup> 在量化布尔公式（QBF）求解中，公式以前束合取范式（PCNF）处理；具有 \(k \geq 0\) 个量词交替的公式位于多项式层级的第 \(k+1\) 层，并且根据第一个量词的不同，或是 \(\Sigma^{P}_{k+1}\)-完全的，或是 \(\Pi^{P}_{k+1}\)-完全的。<sup>[14](https://arxiv.org/abs/1701.06612)</sup> 对 QBF 求解器的实证研究表明，求解器性能随 PCNF 实例中交替数的变化而显著变化。<sup>[14](https://arxiv.org/abs/1701.06612)</sup>

## 历史

美国哲学家和逻辑学家查尔斯·桑德斯·皮尔士在1883年和1885年的论文中引入了量词的现代记号，并最早讨论将量化公式转换为前束范式的规则。<sup>[3](https://plato.stanford.edu/archives/sum2021/entries/logic-firstorder-emergence/)</sup> 他把量词视为布尔联结词的推广，其中 \(\Pi\) 充当可能无限的合取，\(\Sigma\) 充当可能无限的和；这种记号使嵌套量化易于表达，勒文海姆（Löwenheim）后来认为，正是这种记号使勒文海姆–斯科伦定理（Löwenheim–Skolem theorem）成为可能。<sup>[3](https://plato.stanford.edu/archives/sum2021/entries/logic-firstorder-emergence/)</sup>

该定理的适用范围受底层逻辑限制。在经典一阶逻辑中，它被公认为数理逻辑中最广泛使用的定理之一，但对直觉主义理论一般不成立：用于将全称量词移出前件的等价式在直觉主义中不可证明，因此标准程序失效。<sup>[5](https://iiia.csic.es/tacl2024/abstracts/conference/book_abstracts_TACL24.pdf)</sup> 这一限制促使人们引入公式类层级 \(E_k\) 和 \(U_k\)，它们在经典情形下分别对应于 \(\Sigma_k\) 和 \(\Pi_k\)，而在半经典算术中，受限的前束范式定理对这些公式类成立。<sup>[5](https://iiia.csic.es/tacl2024/abstracts/conference/book_abstracts_TACL24.pdf)</sup>

## References

1. [Prenex Normal Form, Wolfram MathWorld](https://mathworld.wolfram.com/PrenexNormalForm.html)
2. [Prenex Normal Form (PNF), Barry Watson](https://www.barrywatson.se/cl/cl_pnf.html)
3. [The Emergence of First-Order Logic, Stanford Encyclopedia of Philosophy (Summer 2021 edition)](https://plato.stanford.edu/archives/sum2021/entries/logic-firstorder-emergence/)
4. [A note on the size of prenex normal forms, Information Processing Letters 116(7), 2016](https://www.sciencedirect.com/science/article/abs/pii/S002001901630028X)
5. [Prenex normal form theorems in intuitionistic arithmetic and the effective topos, Satoshi Nakata, TACL 2024](https://iiia.csic.es/tacl2024/abstracts/conference/book_abstracts_TACL24.pdf)
6. [Prenex Normal Form - an overview, ScienceDirect Topics](https://www.sciencedirect.com/topics/computer-science/prenex-normal-form)
7. [An Introduction to First-Order Logic, K. Subramani, West Virginia University lecture notes](https://community.wvu.edu/~krsubramani/courses/sp09/cc/lecnotes/fol.pdf)
8. [Classical Logic I: First-Order Logic, Wilfrid Hodges](https://cs.uwaterloo.ca/~david/cl/fol-hodges.pdf)
9. [Prenex formula, Encyclopedia of Mathematics](https://encyclopediaofmath.org/wiki/Prenex_formula)
10. [Logic in Computer Science, chapter notes, H. Zhang, University of Iowa](https://homepage.divms.uiowa.edu/~hzhang/c188/notes/Ch01-06-unify.pdf)
11. [First Order Logic: Prenex normal form, Skolemization, Clausal form, V. Goranko, DTU course slides](https://www2.imm.dtu.dk/courses/02286/Slides/FirstOrderLogicPrenexFormsSkolemizationClausalFormTrans.pdf)
12. [Normal Forms, Computability and Logic, Cambridge University Press](https://www.cambridge.org/core/books/abs/computability-and-logic/normal-forms/5C2F0D12C34FA3DE1F260FAEDD753F45)
13. [From Frege to Gödel: A Source Book in Mathematical Logic, 1879–1931, Original Sources](https://www.originalsources.com/Document.aspx?DocID=LGGPBEB75LRTMT1)
14. [Evaluating QBF Solvers: Quantifier Alternations Matter, arXiv:1701.06612](https://arxiv.org/abs/1701.06612)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 逻辑与离散数学 › Formal logic and foundations › Logical calculi and logical syntax › Predicate logic › Equality, many-sorted and first-order variants

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/prenex-normal-form

English original: https://www.edgepedia.org/prenex-normal-form
