# 定理

定理是数学或逻辑中已被证明的陈述，即由公认的出发点（公理、定义或先前已证明的陈述）通过一连串有效推理推导出来的陈述。在形式演绎系统中，定理被精确定义为出现在证明最后一条的公式，其中证明是一个有限的公式序列，每个公式要么是公理，要么通过应用推理规则从前面的条目得出。<sup>[1](https://plato.stanford.edu/entries/logic-propositional/)</sup> 该词也用来指被证明的陈述本身，以区别于公理（无需证明即被接受）和猜想（被提出但尚未证明）。<sup>[2](https://library.fiveable.me/history-of-mathematics/unit-4/euclids-elements-axiomatic-method/study-guide/dnSqlgBw0HFDcRGq)</sup>

| 关键事实 | 详情 |
|---|---|
| 形式定义 | 出现在证明最后一条的公式；证明是一个有限的公式序列，每个公式要么是公理，要么通过推理规则从前面的条目得出<sup>[1](https://plato.stanford.edu/entries/logic-propositional/)</sup> |
| 形式演绎的引入 | 戈特洛布·弗雷格（Gottlob Frege），1879年，使用有限的一组公理和推理规则<sup>[1](https://plato.stanford.edu/entries/logic-propositional/)</sup> |
| 经典典范 | 欧几里得（Euclid）的《几何原本》（*Elements*，约公元前300年），13卷，建立在定义、五条公设和五条共同概念之上<sup>[3](https://mathshistory.st-andrews.ac.uk//Biographies/Euclid/)</sup><sup> • </sup><sup>[4](https://mathshistory.st-andrews.ac.uk/DSB/Euclid.pdf)</sup> |
| 完全性（命题情形） | 在弗雷格的系统中，所有且仅有经典命题重言式是定理<sup>[1](https://plato.stanford.edu/entries/logic-propositional/)</sup> |
| 里程碑式的计算机辅助证明 | 四色定理，1976年，阿佩尔（Appel）与哈肯（Haken），用计算机检查了1,936张地图，耗时超过1,000个计算机小时<sup>[5](https://blogs.ams.org/mathgradblog/2014/06/29/color-theorem/)</sup> |
| 机器检验的形式化 | Lean和Coq等证明助手验证每一步；Lean的内核在依值类型论中检查证明项<sup>[6](https://lean-lang.org/doc/reference/latest/)</sup> |
| 局限 | 哥德尔不完备定理表明，对所有现有数学的完全形式化，以及用有穷方法对算术作出一致性证明，都是不可能的<sup>[7](https://encyclopediaofmath.org/wiki/G%C3%B6del_incompleteness_theorem)</sup> |

## 形式定义

在逻辑中，定理的概念是句法地定义的，不涉及真值或意义。一个形式演绎系统由一组公理和一组推理规则组成；证明是一个有限的公式序列，其中每个条目要么是公理，要么通过某条规则从前面的条目得出，而定理是任何作为这样一个序列最后条目出现的公式。<sup>[1](https://plato.stanford.edu/entries/logic-propositional/)</sup> 公式A在经典命题演算中的定理性用十字转门符号写作 \( \turnstile{\CPC} \rA \)。<sup>[1](https://plato.stanford.edu/entries/logic-propositional/)</sup> 一个相关概念是从假设出发的推导：一个序列，其最后条目是A，且每个条目要么是公理，要么是某组假设的成员，要么是对前面条目应用推理规则的结果。<sup>[1](https://plato.stanford.edu/entries/logic-propositional/)</sup>

这类形式演绎系统由戈特洛布·弗雷格于1879年引入。<sup>[1](https://plato.stanford.edu/entries/logic-propositional/)</sup> 弗雷格的经典命题逻辑系统在如下意义上是完全的：所有且仅有经典命题重言式是定理，因此句法上的可证明性概念与语义上在每个真值指派下都有效的概念完全重合。<sup>[1](https://plato.stanford.edu/entries/logic-propositional/)</sup> 一个形式演绎系统的定理集是递归可枚举的，意味着存在一个机械程序最终会列出每一条定理；对于经典命题逻辑，有效性实际上可以通过更简单的真值表求值方法判定。<sup>[1](https://plato.stanford.edu/entries/logic-propositional/)</sup> 对于更丰富的系统，情况就变了：一阶量化理论在1936年被丘奇（Church）和图灵（Turing）证明为不可判定，尽管其有效式仍然是递归可枚举的。<sup>[1](https://plato.stanford.edu/entries/logic-propositional/)</sup>

## 定理、公理与公理方法

定理总是相对于某个出发点而言的。公理是无需证明即被接受为真的陈述，定义则确定一个词项的含义；公理方法从少数这样的公认出发点出发，构建整个理论。<sup>[2](https://library.fiveable.me/history-of-mathematics/unit-4/euclids-elements-axiomatic-method/study-guide/dnSqlgBw0HFDcRGq)</sup><sup> • </sup><sup>[8](https://stemmascience.org/en/node/euclid_elements/)</sup> 直接证明随后按公认的逻辑方法，从已知的东西一步步走向被认为为真但尚未确立的东西。<sup>[9](https://nrich.maths.org/articles/proof-brief-historical-survey)</sup>

**欧几里得的《几何原本》。** 这种方法的经典典范是欧几里得的《几何原本》，约成书于公元前300年，它将希腊传统中的几何学、数论和比例论组织成一个单一的演绎系统，并在两千多年间作为标准的数学教科书。<sup>[3](https://mathshistory.st-andrews.ac.uk//Biographies/Euclid/)</sup><sup> • </sup><sup>[10](https://www.philosophyprofessor.com/philosophers/euclid/)</sup> 每一卷前面都有定义，第一卷载有五条公设和五条共同概念，构成整部著作的基础。<sup>[4](https://mathshistory.st-andrews.ac.uk/DSB/Euclid.pdf)</sup> 《几何原本》中可能没有哪个结果是由欧几里得首次证明的；他的贡献在于组织材料，并将其置于一个单一、逻辑连贯的严格证明框架中加以阐述。<sup>[3](https://mathshistory.st-andrews.ac.uk//Biographies/Euclid/)</sup> 其中的定理包括素数有无穷多个的证明（第九卷）和正多面体恰好有五种的证明（第十三卷）。<sup>[11](https://mathshistory.st-andrews.ac.uk/HistTopics/Prime_numbers/)</sup><sup> • </sup><sup>[3](https://mathshistory.st-andrews.ac.uk//Biographies/Euclid/)</sup> 欧几里得在每次证明结束时都用希腊语短语ὅπερ ἔδει δεῖξαι，即“这正是所要证明的”，中世纪几何学家将其译为*quod erat demonstrandum*，缩写Q.E.D.即源于此。<sup>[12](https://mathshistory.st-andrews.ac.uk/Miller/mathword/q/)</sup>

《几何原本》还表明，公理与定理之间的界限可以移动。第五条公设即平行公设，自古以来就有人怀疑它是一条可推导的定理而非独立的公理，托勒密（Ptolemy）和普罗克洛斯（Proclus）等人曾试图证明它。<sup>[10](https://www.philosophyprofessor.com/philosophers/euclid/)</sup><sup> • </sup><sup>[4](https://mathshistory.st-andrews.ac.uk/DSB/Euclid.pdf)</sup> 从中世纪到十九世纪初，数百个《几何原本》版本为同一批定理提供了各自的附加原理，这是一批旨在使欧几里得著作更加严格的新公理的积累。<sup>[13](https://link.springer.com/article/10.1007/s00407-015-0173-9)</sup> 到了十九世纪，这条公设反而被放弃，非欧几何由罗巴切夫斯基（Lobachevski，1826年、1829年）和鲍耶（Bolyai，1832年）以及黎曼（Riemann，1854年）发展出来。<sup>[4](https://mathshistory.st-andrews.ac.uk/DSB/Euclid.pdf)</sup>

## 什么算作证明

因为定理的可靠性取决于其证明，证明的标准就很重要。在数学中，证明一个陈述意味着构造一个逻辑论证，该论证在公认的标准下确立该陈述成立。<sup>[9](https://nrich.maths.org/articles/proof-brief-historical-survey)</sup> 在实践中，接受具有社会维度：一个数学证明常常在其他数学家分析并认为正确时才被接受为真，而一个被广泛接受的证明并不保证该陈述无可辩驳地为真。<sup>[14](https://www.livescience.com/physics-mathematics/mathematics/proof-by-intimidation-ai-is-confidently-solving-impossible-math-problems-but-can-it-convince-the-worlds-top-mathematicians)</sup> 阿尔弗雷德·肯普（Alfred Kempe）1879年关于四色定理的论证被数学界接受了十一年，直到1890年珀西·希伍德（Percy Heawood）暴露出一个重大漏洞。<sup>[5](https://blogs.ams.org/mathgradblog/2014/06/29/color-theorem/)</sup><sup> • </sup><sup>[15](https://www.ams.org/journals/bull/2024-61-03/S0273-0979-2024-01823-0/viewer/)</sup> 安德鲁·怀尔斯（Andrew Wiles）1995年对费马大定理的证明长达129页，其中含有一个重大缺陷，是审稿人在同行评审中发现的；怀尔斯又花了一年时间修复这个问题。<sup>[16](https://www.techradar.com/pro/anthropic-formalizes-fermats-last-theorem-like-never-before-using-claude-but-it-still-took-11-days-to-write-out)</sup>

一项对职业数学家的调查发现，对于视觉论证和计算机辅助论证是否算作证明，存在真实的分歧，尽管数学家认为两者都不典型。<sup>[17](https://eric.ed.gov/?id=EJ1238317)</sup> 四色定理最终于1976年由肯尼思·阿佩尔（Kenneth Appel）和沃尔夫冈·哈肯（Wolfgang Haken）在约翰·A·科赫（John A. Koch）的算法协助下证明，这是首次使用计算机辅助证明一个重大定理。<sup>[5](https://blogs.ams.org/mathgradblog/2014/06/29/color-theorem/)</sup> 该证明将问题归约为1,936张地图，用专用程序检查这些地图耗费了一千多个计算机小时；可约性部分由不同的程序和计算机独立检查，而不可避免性部分则需要数百页的手工验证。<sup>[5](https://blogs.ams.org/mathgradblog/2014/06/29/color-theorem/)</sup> 该证明引发了关于证明本质的相当大争议，随着计算机日益强大，这场讨论仍在继续。<sup>[5](https://blogs.ams.org/mathgradblog/2014/06/29/color-theorem/)</sup>

## 形式定理与机器检验定理

形式证明是用形式语言写成的证明，以便计算机能验证其正确性，支持这一点的程序称为证明助手或交互式定理证明器。<sup>[18](https://link.springer.com/article/10.1365/s13291-020-00221-1)</sup> 在此类系统中，形式证明不只是一串论证，而是一个称为证明项的数据结构，它编码了从公理到结论的整个逻辑论证；一个小的可信组件——内核——验证证明项是有效的构造。<sup>[19](https://www.nature.com/articles/s41586-025-09833-y)</sup> Lean是一个基于依值类型论的交互式定理证明器，它在一个极小的内核中实现其核心类型论，该内核除了检查证明项之外什么也不做，因此策略和精化中的缺陷不会威胁整个系统的可靠性。<sup>[6](https://lean-lang.org/doc/reference/latest/)</sup> Coq是一个形式证明管理系统，提供用于定义、算法和定理的语言，以及半交互式、机器检验证明的环境。<sup>[20](https://github.com/formalize/coq/)</sup>

里程碑包括乔治·贡捷（Georges Gonthier）在Coq中验证四色定理证明，托马斯·黑尔斯（Thomas Hales）及其同事在HOL Light和Isabelle中验证开普勒猜想证明，以及劳伦斯·保尔森（Lawrence Paulson）在Isabelle/HOL中形式化哥德尔不完备定理。<sup>[18](https://link.springer.com/article/10.1365/s13291-020-00221-1)</sup> 在弗里克·维迪克（Freek Wiedijk）追踪的100个重要数学定理清单中，有95个已在十个系统中的至少一个中被形式化，Isabelle以100个中的83个位居HOL Light之后排名第二。<sup>[18](https://link.springer.com/article/10.1365/s13291-020-00221-1)</sup>

## AI时代的定理

AI系统现在在形式框架内生成和验证定理。AlphaProof是一个在Lean环境中搜索证明的强化学习智能体，它在2024年国际数学奥林匹克上尝试的五个问题中证明了三个，尽管其解答所需计算时间远超人类参赛者。<sup>[19](https://www.nature.com/articles/s41586-025-09833-y)</sup> Anthropic报告称，使用其Claude系统在Lean中产出了怀尔斯费马大定理证明的完全计算机检验形式化：1300万行代码，超过社区主要证明库Mathlib的五倍，在十一天内产出，人类输入仅限于偶尔的高层指导，沿途证明了约30,300个独立定理，并在最终版本中使用了其中29,500个。<sup>[16](https://www.techradar.com/pro/anthropic-formalizes-fermats-last-theorem-like-never-before-using-claude-but-it-still-took-11-days-to-write-out)</sup>

这一发展重新点燃了关于定理是什么的旧辩论。形式验证的拥护者认为，被Lean这样的系统接受的证明不留隐藏假设或暗示性但不完整论证的余地，也不留曾使过去证明出错的语言误解的余地。<sup>[14](https://www.livescience.com/physics-mathematics/mathematics/proof-by-intimidation-ai-is-confidently-solving-impossible-math-problems-but-can-it-convince-the-worlds-top-mathematicians)</sup> 其他人则指出，AI可以产出没有人有时间阅读或理解的证明，这就提出了一个问题：一个无人能跟上的已证明陈述究竟带来了什么。<sup>[14](https://www.livescience.com/physics-mathematics/mathematics/proof-by-intimidation-ai-is-confidently-solving-impossible-math-problems-but-can-it-convince-the-worlds-top-mathematicians)</sup><sup> • </sup><sup>[21](https://www.theatlantic.com/technology/2026/09/math-crisis-openai-millennium-prize/688631/)</sup> 定理作为从公理出发的推导的最后条目这一形式定义，并未因这些发展而改变；改变的是谁、或什么，在产出这个推导。

## References

1. [Propositional Logic, Stanford Encyclopedia of Philosophy](https://plato.stanford.edu/entries/logic-propositional/)
2. [Euclid's Elements and axiomatic method, Fiveable study guide](https://library.fiveable.me/history-of-mathematics/unit-4/euclids-elements-axiomatic-method/study-guide/dnSqlgBw0HFDcRGq)
3. [Euclid (325 BC - 265 BC), MacTutor History of Mathematics](https://mathshistory.st-andrews.ac.uk//Biographies/Euclid/)
4. [Euclid, Dictionary of Scientific Biography (MacTutor PDF)](https://mathshistory.st-andrews.ac.uk/DSB/Euclid.pdf)
5. [The Four Color Theorem, AMS Graduate Student Blog](https://blogs.ams.org/mathgradblog/2014/06/29/color-theorem/)
6. [The Lean Language Reference](https://lean-lang.org/doc/reference/latest/)
7. [Gödel incompleteness theorem, Encyclopedia of Mathematics](https://encyclopediaofmath.org/wiki/G%C3%B6del_incompleteness_theorem)
8. [The Elements: definition, axiom, proof, Stemma Science](https://stemmascience.org/en/node/euclid_elements/)
9. [Proof: A Brief Historical Survey, NRICH](https://nrich.maths.org/articles/proof-brief-historical-survey)
10. [Euclid: The Elements and the Axiomatic Method, PhilosophyProfessor](https://www.philosophyprofessor.com/philosophers/euclid/)
11. [Prime numbers, MacTutor History of Mathematics](https://mathshistory.st-andrews.ac.uk/HistTopics/Prime_numbers/)
12. [Earliest Known Uses of Some of the Words of Mathematics (Q), MacTutor](https://mathshistory.st-andrews.ac.uk/Miller/mathword/q/)
13. [The development of Euclidean axiomatics, Archive for History of Exact Sciences](https://link.springer.com/article/10.1007/s00407-015-0173-9)
14. ['Proof by intimidation': AI is confidently solving 'impossible' math problems, Live Science](https://www.livescience.com/physics-mathematics/mathematics/proof-by-intimidation-ai-is-confidently-solving-impossible-math-problems-but-can-it-convince-the-worlds-top-mathematicians)
15. [Proofs for a price: Tomorrow's ultra-rigorous mathematical culture, Bulletin of the AMS](https://www.ams.org/journals/bull/2024-61-03/S0273-0979-2024-01823-0/viewer/)
16. [Anthropic 'formalizes' Fermat's Last Theorem using Claude, TechRadar](https://www.techradar.com/pro/anthropic-formalizes-fermats-last-theorem-like-never-before-using-claude-but-it-still-took-11-days-to-write-out)
17. [On Mathematicians' Disagreements on What Constitutes a Proof, Research in Mathematics Education (ERIC)](https://eric.ed.gov/?id=EJ1238317)
18. [Formalising Mathematics in Praxis: Isabelle/HOL, Jahresbericht der DMV](https://link.springer.com/article/10.1365/s13291-020-00221-1)
19. [Olympiad-level formal mathematical reasoning with reinforcement learning, Nature](https://www.nature.com/articles/s41586-025-09833-y)
20. [Coq: formal proof management system, GitHub](https://github.com/formalize/coq/)
21. [Math Can't Go On Like This, The Atlantic](https://www.theatlantic.com/technology/2026/09/math-crisis-openai-millennium-prize/688631/)

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

Topic: 物质世界与数学 › 数学与统计学 › 逻辑与离散数学 › Formal logic and foundations › Foundations of mathematics › Foundational programs and schools

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/theorem

English original: https://www.edgepedia.org/theorem
