# 函数演算（逻辑）

函数演算，或称一阶谓词逻辑，是一种形式系统。在其中，关于个体的陈述用谓词、项和量词写出，并由公理通过明确的推理规则加以证明。它是数学与计算机科学的标准逻辑框架，也是自动定理证明、SMT 求解以及形式验证中机器检验证明的基础。

| 关键事实 | 详情 |
|---|---|
| 主题内容 | 量词仅辖个体；变元和谓词指称论域元素与关系，而非函数或命题<sup>[1](https://builds.openlogicproject.org/content/first-order-logic/syntax-and-semantics/syntax-and-semantics.pdf)</sup> |
| 完全性 | \( \Gamma \vDash \varphi \) 当且仅当 \( \Gamma \vdash \varphi \)；由库尔特·哥德尔（Kurt Gödel）证明，《逻辑函数演算公理的完全性》，《数学月刊》，1930<sup>[2](https://doi.org/10.1007/bf01696781)</sup><sup> • </sup><sup>[3](https://www.cambridge.org/core/journals/journal-of-symbolic-logic/article/abs/completeness-of-the-firstorder-functional-calculus/2F7FFE04841B89975F5EA447A01481CD)</sup> |
| 推论 | 可靠性与完全性产生紧致性定理和勒文海姆–斯科伦定理<sup>[4](https://builds.openlogicproject.org/content/first-order-logic/first-order-logic.pdf)</sup> |
| 可判定性 | 有效性不可判定，且等价于停机问题；证明搜索仅是半可判定的<sup>[5](https://avigad.github.io/lamr/first_order_logic.html)</sup> |
| 自动化 | 鲁滨逊（Robinson）的归结原理，作为单一推理规则，构成一阶逻辑的一个完全系统<sup>[6](https://web.stanford.edu/class/linguist289/robinson65.pdf)</sup> |
| 现代工具 | 证明器 Vampire 5.0 在 CASC 2025 上赢得全部八个定理证明赛区第一名；在里斯本举行的 CASC 2026 上，Vampire 再次横扫所有赛区<sup>[7](https://cysec.wien/news/2026-08-06_casc_2026_vampire/)</sup> |

## 运作方式

该演算分两层构建：项与公式。一个签名固定非逻辑词汇：常元符号、函数符号和谓词符号，每个函数和谓词带有一个元数，外加一个无穷的变元集合。<sup>[8](https://www.cs.ox.ac.uk/people/james.worrell/lecture07.pdf)</sup> 项由变元、常元符号以及施加于项的函数符号构建，它们指称对象。公式由施加于项的谓词符号构建（原子公式，当语言中包含等号时允许 \( t_{1} = t_{2} \)），然后在联结词 \( \neg \)、\( \wedge \)、\( \vee \)、\( \Rightarrow \) 以及量词 \( \forall x \) 和 \( \exists x \) 下封闭，依据一个归纳定义，该定义以“除此之外别无公式”这一子句收尾。<sup>[1](https://builds.openlogicproject.org/content/first-order-logic/syntax-and-semantics/syntax-and-semantics.pdf)</sup><sup> • </sup><sup>[8](https://www.cs.ox.ac.uk/people/james.worrell/lecture07.pdf)</sup>

意义由结构给出。一个结构提供一个非空论域，为每个谓词符号提供论域上的一个 \( k \) 元关系，为每个函数符号提供一个函数，为每个常元提供一个元素。<sup>[1](https://builds.openlogicproject.org/content/first-order-logic/syntax-and-semantics/syntax-and-semantics.pdf)</sup> 满足关系 \( M, s \vDash \varphi \) 通过归纳定义，其中变元指派 \( s \) 将变元与论域元素相连；全称子句读作：\( M, s \vDash \forall x\, \psi \) 当且仅当对论域中的每个元素 \( m \)，都有 \( M, s[m/x] \vDash \psi \)。<sup>[1](https://builds.openlogicproject.org/content/first-order-logic/syntax-and-semantics/syntax-and-semantics.pdf)</sup> 一个公式若在至少一种解释下为真则是可满足的，若在每一种解释下都为真则是有效的。<sup>[9](https://www.cs.cornell.edu/courses/cs4860/2018fa/lectures/FOL-LogicBook.pdf)</sup>

## 如何施行

**希尔伯特系统**采用公理模式加两条规则。在亨金（Henkin）的表述中，公式由条件句 \( A \supset B \) 和量化 \( (x)A \) 构建；公理包括 \( A \supset B \supset .A \supset (B \supset C) \supset .A \supset C \) 以及当 \( x \) 在 \( A \) 中不自由时 \( (x)(A \supset B) \supset .A \supset (x)B \)，规则是肯定前件（从 \( A \) 和 \( A \supset B \) 推出 \( B \)）和概括（从 \( A \) 推出 \( (x)A \)）。<sup>[3](https://www.cambridge.org/core/journals/journal-of-symbolic-logic/article/abs/completeness-of-the-firstorder-functional-calculus/2F7FFE04841B89975F5EA447A01481CD)</sup>

**自然演绎**则对每个量词使用引入规则和消去规则，并附有局部可靠性检查，且通过柯里–霍华德同构具有计算意义：存在量词对应于依赖对类型 \( \Sigma x{:}\tau.\,\tau' \)。<sup>[10](https://www.cs.cmu.edu/~iliano/courses/15F-CMU-CS317/dl/quantifiers.pdf)</sup> **相继式演算** LK 以四条量词引入规则扩展命题系统，受制于边条件：在 \( \forall \)-右和 \( \exists \)-左中，自由变元 \( b \) 不得出现在结论中；LK 的可靠性通过对证明的归纳加以证明。<sup>[11](https://www.cs.columbia.edu/~toni/Courses/Logic2021/Notes/page18.pdf)</sup>

核心元定理是完全性：\( \Gamma \vdash \varphi \) 当且仅当 \( \Gamma \vDash \varphi \)。<sup>[12](https://www3.cs.stonybrook.edu/~cse371/9bch9.pdf)</sup> 可靠性（若 \( \Gamma \vdash \varphi \) 则 \( \Gamma \vDash \varphi \)）相对容易；完全性则通过证明每个一致集都有模型来证明，使用带存在见证的极大一致饱和扩张。<sup>[13](https://hume.ucdavis.edu/phi113/C2P2gjDecember2019.pdf)</sup><sup> • </sup><sup>[4](https://builds.openlogicproject.org/content/first-order-logic/first-order-logic.pdf)</sup>

## 起源

这项工作在单一著作中迈出了超越传统逻辑的两步——关系与量词，贡献了真值函项命题演算、将命题分析为函数与主目、量化理论以及纯形式的推导。<sup>[14](https://plato.stanford.edu/ENTRIES/logic-firstorder-emergence/)</sup><sup> • </sup><sup>[15](https://www.attoparsec.com/artifacts/gottlob/Frege_Begriffsschrift.pdf)</sup> 刘洋（Yang Liu）2017 年的一项分析表明，该系统是一阶完全的：距标准一阶理论所差的那条公理 \( \forall x(\varphi \to \psi(x)) \to (\varphi \to \forall x\psi(x)) \)，可从弗雷格（Frege）的公理和规则推导出来。<sup>[16](https://doi.org/10.1080/01445340.2017.1350549)</sup>

哥廷根讲座给出了一阶逻辑作为公理系统的一个精确、现代的表述，并明确表述了元逻辑问题，且大体上成为《理论逻辑基础》（Grundzüge der theoretischen Logik），即一阶逻辑作为独特子系统在其中浮现的那部教科书。<sup>[14](https://plato.stanford.edu/ENTRIES/logic-firstorder-emergence/)</sup><sup> • </sup><sup>[17](https://link.springer.com/article/10.1007/s11229-025-05401-z)</sup> 希尔伯特（Hilbert）和阿克曼（Ackermann）将判定问题描述为数学逻辑的中心问题<sup>[18](https://www.tandfonline.com/doi/abs/10.1080/01445340.2013.816555)</sup>，正是在这一背景下，哥德尔于 1930 年证明了完全性。<sup>[2](https://doi.org/10.1007/bf01696781)</sup> 1949 年之前，一阶函数演算只有哥德尔的证明以及希尔伯特和伯奈斯（Bernays）给出的一个变体；莱昂·亨金（Leon Henkin）1949 年在《符号逻辑杂志》（Journal of Symbolic Logic）上的论文给出了一个新的模型论证明，该证明可推广到具有不可数无穷多原始符号的语言。<sup>[3](https://www.cambridge.org/core/journals/journal-of-symbolic-logic/article/abs/completeness-of-the-firstorder-functional-calculus/2F7FFE04841B89975F5EA447A01481CD)</sup>

## 变体

**等号与多类逻辑。** 带等号时，\( t_{1} = t_{2} \) 是一个原子公式，始终解释为实际的相等。<sup>[8](https://www.cs.ox.ac.uk/people/james.worrell/lecture07.pdf)</sup> 多类逻辑将论域划分为不相交的类，谓词和量词携带类信息，而推理规则无需额外代价。<sup>[19](https://www.mpi-inf.mpg.de/fileadmin/inf/rg1/Documents/relevant-script-ar-I.pdf)</sup>

**模态函数演算。** 露丝·C. 巴尔坎（Ruth C. Barcan）1946 年的论文将刘易斯（Lewis）模态演算 S2 扩展至包含量化，产生了一个一阶模态函数演算；这一构造部分受到阿隆佐·丘奇（Alonzo Church）1944 年《数理逻辑导论》（Introduction to Mathematical Logic）的启发。<sup>[20](https://doi.org/10.2307/2269159)</sup>

**高阶。** 二阶逻辑对谓词和函数进行量化，而不仅仅对个体。哥德尔 1929/1930 年的完全性定理和 1931 年的不完全性定理——后者是关于足够强的算术形式理论的结果——揭示了元逻辑的分野：一阶逻辑是完全的，满足紧致性和向下勒文海姆–斯科伦性质，而二阶逻辑在完全标准语义下缺乏可靠且完全的能行证明系统，且不满足紧致性，尽管在亨金的一般语义下它恢复了一阶逻辑式的完全性和紧致性。<sup>[14](https://plato.stanford.edu/ENTRIES/logic-firstorder-emergence/)</sup> 亨金 1950 年的论文证明了一般（亨金）语义下类型论的完全性。<sup>[21](https://doi.org/10.2307/2266967)</sup>

## 应用

**自动定理证明。** 鲁滨逊 1965 年的归结原理面向机器，且作为唯一的推理原则，构成一阶逻辑的一个完全系统，将代换与真值函项分析结合在一个过程中。<sup>[6](https://web.stanford.edu/class/linguist289/robinson65.pdf)</sup><sup> • </sup><sup>[22](https://doi.org/10.1145/321250.321253)</sup> 机械化依赖于范式：量词被移到前面，存在量词用斯科伦函数（在证明中替代存在量词的选择函数）消去，母式被化为合取范式。<sup>[5](https://avigad.github.io/lamr/first_order_logic.html)</sup> 埃尔布朗（Herbrand）解释和紧致性构成现代演算的基础，这些演算包括语义表、自由变元语义表、归结和叠加。<sup>[19](https://www.mpi-inf.mpg.de/fileadmin/inf/rg1/Documents/relevant-script-ar-I.pdf)</sup> 基于连接的证明器如 leanCoP 追求目标导向的证明搜索。<sup>[23](https://doi.org/10.1016/s0747-7171%2803%2900037-3)</sup>

**经验证的证明器。** 一阶逻辑的归结演算已在 Isabelle/HOL 中机器形式化，并利用语义树、埃尔布朗定理和提升引理证明了其可靠性和完全性<sup>[24](https://isa-afp.org/browser_info/current/AFP/Resolution_FOL/document.pdf)</sup>，而弗罗姆（From）和雅各布森（Jacobsen）基于 SeCaV 的证明器从单边相继式演算生成可检验的证书。<sup>[25](https://drops.dagstuhl.de/storage/00lipics/lipics-vol237-itp2022/LIPIcs.ITP.2022.13/LIPIcs.ITP.2022.13.pdf)</sup>

**SMT。** SMT 求解器在 SAT 求解之上使用 DPLL(\( T \)) 架构判定无量词片段，其中理论原子被抽象为布尔变元，候选指派由理论求解器验证。<sup>[5](https://avigad.github.io/lamr/first_order_logic.html)</sup> Vampire 由维也纳工业大学（TU Wien）与合作伙伴开发，融合了基于饱和的证明、高阶推理、归纳、算术以及人工智能辅助的证明搜索，在 2025 年赢得全部八个 CASC 赛区，并在里斯本举行的 CASC 2026 上再次横扫。<sup>[7](https://cysec.wien/news/2026-08-06_casc_2026_vampire/)</sup>

## 局限与替代方案

**不可判定性。** 一阶逻辑的可证明性问题等价于停机问题，因此实用工具要么判定片段（如 SMT 求解器所做），要么运行半可判定的证明搜索，保证若存在证明则必能找到。<sup>[5](https://avigad.github.io/lamr/first_order_logic.html)</sup>

**表达力。** 一阶逻辑无法表达一个结构的论域是有限的或不可数的<sup>[4](https://builds.openlogicproject.org/content/first-order-logic/first-order-logic.pdf)</sup>，且它覆盖了除依赖构造或计算概念之外的全部数学，这正是为那些概念设计专门逻辑的原因。<sup>[9](https://www.cs.cornell.edu/courses/cs4860/2018fa/lectures/FOL-LogicBook.pdf)</sup> 任何同时满足紧致性和勒文海姆–斯科伦性质的逻辑系统，其表达力都不可能超过一阶逻辑，因此元逻辑的强项与表达力的限度同存同亡。<sup>[14](https://plato.stanford.edu/ENTRIES/logic-firstorder-emergence/)</sup>

**替代方案。** 二阶逻辑以完全性和紧致性为代价换取表达力。<sup>[14](https://plato.stanford.edu/ENTRIES/logic-firstorder-emergence/)</sup> 模态一阶演算，如巴尔坎基于 S2 的系统，以经典语义换取模态算子。<sup>[20](https://doi.org/10.2307/2269159)</sup> 亨金 1950 年关于一般语义下类型论的完全性结果，是通往高阶框架的标准桥梁。<sup>[21](https://doi.org/10.2307/2266967)</sup>

## References

1. [Syntax and Semantics (Open Logic Project)](https://builds.openlogicproject.org/content/first-order-logic/syntax-and-semantics/syntax-and-semantics.pdf)
2. [Kurt Gödel (1930). Die Vollständigkeit der Axiome des logischen Funktionenkalküls. Monatshefte für Mathematik.](https://doi.org/10.1007/bf01696781)
3. [The completeness of the first-order functional calculus (Henkin, Journal of Symbolic Logic 14, 1949, 159–166)](https://www.cambridge.org/core/journals/journal-of-symbolic-logic/article/abs/completeness-of-the-firstorder-functional-calculus/2F7FFE04841B89975F5EA447A01481CD)
4. [First-order Logic (Open Logic Project textbook)](https://builds.openlogicproject.org/content/first-order-logic/first-order-logic.pdf)
5. [First-Order Logic, Logic and Mechanized Reasoning (Avigad, CMU course text)](https://avigad.github.io/lamr/first_order_logic.html)
6. [A Machine-Oriented Logic Based on the Resolution Principle (J. A. Robinson, 1965)](https://web.stanford.edu/class/linguist289/robinson65.pdf)
7. [Vampire Retains Overall Title at CASC 2026](https://cysec.wien/news/2026-08-06_casc_2026_vampire/)
8. [First-Order Logic (James Worrell, Oxford, Logic and Proof Hilary 2026)](https://www.cs.ox.ac.uk/people/james.worrell/lecture07.pdf)
9. [Logics (Cornell CS4860 Logic Book chapter)](https://www.cs.cornell.edu/courses/cs4860/2018fa/lectures/FOL-LogicBook.pdf)
10. [Quantifiers (CMU 15-317 chapter)](https://www.cs.cmu.edu/~iliano/courses/15F-CMU-CS317/dl/quantifiers.pdf)
11. [Predicate Calculus (Toniann Pitassi, Columbia Logic 2021 notes)](https://www.cs.columbia.edu/~toni/Courses/Logic2021/Notes/page18.pdf)
12. [Chapter 9: Completeness Theorem for Predicate Logic (Hilbert system H)](https://www3.cs.stonybrook.edu/~cse371/9bch9.pdf)
13. [C2P2L: The Completeness of Classical Propositional and Predicate Logic (UC Davis course notes)](https://hume.ucdavis.edu/phi113/C2P2gjDecember2019.pdf)
14. [The Emergence of First-Order Logic (Stanford Encyclopedia of Philosophy)](https://plato.stanford.edu/ENTRIES/logic-firstorder-emergence/)
15. [Begriffsschrift, a formula language, modeled upon that of arithmetic, for pure thought (Frege 1879, trans. in van Heijenoort's From Frege to Gödel)](https://www.attoparsec.com/artifacts/gottlob/Frege_Begriffsschrift.pdf)
16. [Yang Liu (2017). Frege's Begriffsschrift is Indeed First-Order Complete. History and Philosophy of Logic.](https://doi.org/10.1080/01445340.2017.1350549)
17. [Hilbert and Schröder's mathematical logic (Synthese, 2025)](https://link.springer.com/article/10.1007/s11229-025-05401-z)
18. [Completeness: from Gödel to Henkin (History and Philosophy of Logic, Vol 35, No 1)](https://www.tandfonline.com/doi/abs/10.1080/01445340.2013.816555)
19. [Automated Reasoning I lecture notes (Max Planck Institute for Informatics)](https://www.mpi-inf.mpg.de/fileadmin/inf/rg1/Documents/relevant-script-ar-I.pdf)
20. [Ruth C. Barcan (1946). A Functional calculus of first order based on strict implication. Journal of Symbolic Logic.](https://doi.org/10.2307/2269159)
21. [Leon Henkin (1950). Completeness in the theory of types. Journal of Symbolic Logic.](https://doi.org/10.2307/2266967)
22. [J. A. Robinson (1965). A Machine-Oriented Logic Based on the Resolution Principle. Journal of the ACM.](https://doi.org/10.1145/321250.321253)
23. [leanCoP: lean connection-based theorem proving (Journal of Symbolic Computation, 2003)](https://doi.org/10.1016/s0747-7171%2803%2900037-3)
24. [The Resolution Calculus for First-Order Logic (Isabelle/HOL formalization, Archive of Formal Proofs)](https://isa-afp.org/browser_info/current/AFP/Resolution_FOL/document.pdf)
25. [Verifying a Sequent Calculus Prover for First-Order Logic with Functions in Isabelle/HOL (ITP 2022, LIPIcs vol. 237)](https://drops.dagstuhl.de/storage/00lipics/lipics-vol237-itp2022/LIPIcs.ITP.2022.13/LIPIcs.ITP.2022.13.pdf)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026; Oct 25, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 逻辑与离散数学 › Formal logic and foundations › Logical calculi and logical syntax › Predicate logic

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/functional-calculus-logic

English original: https://www.edgepedia.org/functional-calculus-logic
