# 构造性证明

构造性证明通过给出一个数学对象的显式构造，并验证该构造具有所需性质，来确立该对象存在，而不是从不存在此类对象的假设推出矛盾。构造性数学把“存在”严格读作“我们可以构造”，并把每个逻辑联结词和量词重新解释为构造证据的指令。<sup>[1](https://plato.stanford.edu/entries/mathematics-constructive/)</sup> 在合适的形式构造系统中，存在性陈述的证明包含见证，并可支持程序抽取——这一技术是经过验证的软件以及 Rocq（原 Coq）和 Agda 等证明助手的基础。<sup>[1](https://plato.stanford.edu/entries/mathematics-constructive/)</sup>

| 关键事实 | 详情 |
|---|---|
| 构造性存在证明提供什么 | 一个计算见证 \(x\) 并确认所需性质 \(P(x)\) 的算法<sup>[2](https://iep.utm.edu/constructive-mathematics/)</sup> |
| 被拒斥的原则 | 一般而言的排中律和双重否定消去<sup>[3](https://plato.stanford.edu/entries/type-theory-intuitionistic/)</sup> |
| 选择公理的地位 | 完全选择蕴含排中律（迪亚科内斯库 1975；古德曼和迈希尔 1978），故不能无限制地承认<sup>[2](https://iep.utm.edu/constructive-mathematics/)</sup><sup> • </sup><sup>[4](https://www.cse.chalmers.se/~coquand/TRIESTE/BridgesReeves.pdf)</sup> |
| 计算内容 | 构造性证明可能体现一个原则上可抽取为程序的算法，而证明则充当其正确性验证<sup>[1](https://plato.stanford.edu/entries/mathematics-constructive/)</sup> |
| 证明即程序 | 在柯里–霍华德对应下，证明是一个项，其类型就是它所证明的命题<sup>[5](https://softwarefoundations.cis.upenn.edu/lf-6.7.1/ProofObjects.html)</sup> |
| 主要变体 | 直觉主义（INT）、俄罗斯递归（RUSS）、毕晓普式（BISH）和经典（CLASS）数学，它们都共享 BISH 核心<sup>[2](https://iep.utm.edu/constructive-mathematics/)</sup> |
| 实践中的抽取 | 在代数基本定理的一个 Coq 形式化中，超过 90% 的证明项落在 Prop 中，抽取出的程序约为 15 MB<sup>[6](https://users-cs.au.dk/spitters/extraction.pdf)</sup> |

## 如何运作

构造性证明的意义由布劳威尔–海廷–柯尔莫哥洛夫（BHK）解释给出，这是一种证明语义学，而非真值语义学。<sup>[7](https://www2.mathematik.tu-darmstadt.de/~streicher/CLM/clm.pdf)</sup> 每个逻辑符号都获得一个独特的构造性意义：证成 \(A \lor B\) 就是证成 \(A\) 和 \(B\) 中特定的一个；证成 \(\exists x\, A(x)\) 就是对 \(x\) 的范围中某个特定的 \(d\) 证成 \(A(d)\)；证成 \(A \rightarrow B\) 就是拥有一个把 \(A\) 的任何证明转换为 \(B\) 的证明的算法。<sup>[8](https://www.math.ucla.edu/~joan/m04n/newnotes.pdf)</sup><sup> • </sup><sup>[2](https://iep.utm.edu/constructive-mathematics/)</sup>

实际推论是：\(\forall n. \exists m. A(n,m)\) 的构造性证明产生一个满足 \(\forall n. A(n, f(n))\) 的算法函数 \(f\)，该函数可直接从证明本身读出。<sup>[7](https://www2.mathematik.tu-darmstadt.de/~streicher/CLM/clm.pdf)</sup> 并非所有经典的东西都丧失了：反证法对否定陈述仍然有效，双重否定消去对可判定陈述有效<sup>[2](https://iep.utm.edu/constructive-mathematics/)</sup>，而排中律对有限集的有限性质是可接受的，因为穷举验证会终止。<sup>[9](https://iep.utm.edu/intuitionism-math/)</sup> 类型论的选择公理——其中一个函数把每个 \(x: A\) 映射到一对 \((y, z)\)——是直觉主义类型论的定理而非假设。<sup>[3](https://plato.stanford.edu/entries/type-theory-intuitionistic/)</sup>

## 如何完成

在证明助手中，构造性证明是一个证明对象：一个项，其类型就是被证明的命题。在 Rocq（原 Coq）中，证明脚本通过逐步构造这个项来执行；例如，项 `ev_SS 2 (ev_SS 0 ev_0)` 的类型是 `ev 4`，证明可以直接写成这样的项。<sup>[5](https://softwarefoundations.cis.upenn.edu/lf-6.7.1/ProofObjects.html)</sup> 由于命题是类型、证明是项，检查一个证明就等于对一个项做类型检查，因此系统的可靠性只取决于类型检查引擎，而不取决于策略机制；不终止的不动点被拒绝，因为它们会允许构造假命题的证据。<sup>[5](https://softwarefoundations.cis.upenn.edu/lf-6.7.1/ProofObjects.html)</sup>

在直觉主义类型论中，每个类型和每个良类型的项都有范式，因此所有判断都是可判定的，而这个类型检查算法正是 Agda 等证明助手的关键组件。<sup>[10](https://www.cse.chalmers.se/~peterd/papers/IntuitionisticTypeTheory150505.pdf)</sup> Lean 的核心逻辑是归纳构造演算，它把陈述视为类型、把证明视为程序；Lean 允许定义可执行算法、在输入上运行它们，并同时证明该算法收敛。<sup>[11](https://arxiv.org/pdf/2602.01291)</sup>

## 起源

现代发展始于一篇博士论文《论数学的基础》（*Over de Grondslagen der Wiskunde*），它是其直觉主义的起点，以及一篇论证排中律的有效性等价于存在不可解数学问题的可能性的论文。<sup>[4](https://www.cse.chalmers.se/~coquand/TRIESTE/BridgesReeves.pdf)</sup><sup> • </sup><sup>[2](https://iep.utm.edu/constructive-mathematics/)</sup> 直觉主义命题逻辑和谓词逻辑的形式公理发表了，现在普遍称为直觉主义逻辑的公理。<sup>[1](https://plato.stanford.edu/entries/mathematics-constructive/)</sup><sup> • </sup><sup>[4](https://www.cse.chalmers.se/~coquand/TRIESTE/BridgesReeves.pdf)</sup> 哥德尔后来通过一种翻译表明，直觉主义理论与它们的经典对应物是等相容的。<sup>[8](https://www.math.ucla.edu/~joan/m04n/newnotes.pdf)</sup>

专著《构造性分析基础》（*Foundations of Constructive Analysis*）给出了斯通–魏尔斯特拉斯、哈恩–巴拿赫、谱定理、勒贝格收敛定理、哈尔测度和遍历定理的构造性发展，驳斥了希尔伯特 1928 年的主张，即放弃排中律会使数学瘫痪。<sup>[1](https://plato.stanford.edu/entries/mathematics-constructive/)</sup><sup> • </sup><sup>[4](https://www.cse.chalmers.se/~coquand/TRIESTE/BridgesReeves.pdf)</sup> 在逻辑方面，自然演绎提供了证明即程序观点所依托的证明形式模型。<sup>[7](https://www2.mathematik.tu-darmstadt.de/~streicher/CLM/clm.pdf)</sup>

## 变体

命题即类型原则连接了命题逻辑及其到谓词逻辑的扩展。<sup>[3](https://plato.stanford.edu/entries/type-theory-intuitionistic/)</sup><sup> • </sup><sup>[12](https://www.cs.cmu.edu/~fp/courses/15317-s23/lectures/04-pap.pdf)</sup> 在这一对应下，逻辑常项成为类型构造子：\(\bot = \varnothing\)，\(A \lor B = A + B\)，\(A \land B = A \times B\)，\(A \supset B = A \rightarrow B\)，\(\exists = \Sigma\)，\(\forall = \Pi\)。<sup>[3](https://plato.stanford.edu/entries/type-theory-intuitionistic/)</sup> 马丁–洛夫类型论是构造性数学的一个完整基础，它是直谓的，排除非直谓定义和马尔可夫原则，这使它有别于俄罗斯构造主义。<sup>[1](https://plato.stanford.edu/entries/mathematics-constructive/)</sup><sup> • </sup><sup>[10](https://www.cse.chalmers.se/~peterd/papers/IntuitionisticTypeTheory150505.pdf)</sup> 另一种形式系统是构造性策梅洛–弗兰克尔集合论（CZF）。<sup>[10](https://www.cse.chalmers.se/~peterd/papers/IntuitionisticTypeTheory150505.pdf)</sup>

构造性数学的诸变体是道格拉斯·布里奇斯（Douglas Bridges）和弗雷德·里奇曼（Fred Richman）1987 年著作《构造性数学的诸变体》（*Varieties of Constructive Mathematics*）的主题。<sup>[13](https://doi.org/10.1017/cbo9780511565663)</sup> 在这些变体中，BISH 是共同核心：直觉主义数学是 BISH 加上棒归纳和连续选择；俄罗斯递归数学是 BISH 加上可计算部分函数公理和马尔可夫原则；经典数学是 BISH 加上排中律。<sup>[2](https://iep.utm.edu/constructive-mathematics/)</sup> 在 BISH 中证明的每个定理，在 INT、RUSS 和 CLASS 中也是定理，且证明相同。<sup>[4](https://www.cse.chalmers.se/~coquand/TRIESTE/BridgesReeves.pdf)</sup> 其他面向抽取的框架包括可实现性——它可追溯到 S. C. 克林（S. C. Kleene）1945 年在《符号逻辑杂志》（*Journal of Symbolic Logic*）中引入递归可实现性<sup>[14](https://doi.org/10.2307/2964110)</sup>——以及哥德尔的辩证法解释和克里维纳的经典可实现性。<sup>[15](https://www.proofsociety.org/wp-content/uploads/2018/09/ProgramExtraction_slides.pdf)</sup>

## 应用

**程序抽取。** 在代数基本定理的一个 Rocq（原 Coq）形式化中，Set/Prop 区分把超过 90% 的证明项分配到 Prop，而抽取会忽略这些项；抽取出的程序仍有约 15 MB，大致均匀地分为构造实数和 FTA 证明两部分。若没有这一区分，程序将大约大 20 倍，且抽取需要约 2 GB 内存。<sup>[6](https://users-cs.au.dk/spitters/extraction.pdf)</sup> 在 Minlog 中从经典证明抽取的基于 DPLL 的 SAT 求解器能快速求解鸽笼公式，性能接近已验证求解器 Versat。<sup>[15](https://www.proofsociety.org/wp-content/uploads/2018/09/ProgramExtraction_slides.pdf)</sup> 其可靠性定理保证正确性：若 \(d\) 证明公式 \(A\)，则抽取出的项 \([[d]]\) 实现 \(A\)。<sup>[15](https://www.proofsociety.org/wp-content/uploads/2018/09/ProgramExtraction_slides.pdf)</sup> 乌尔里希·贝格尔（Ulrich Berger）及其同事在 2015 年抽取了已验证的 DPLL 和归结判定过程。<sup>[16](https://doi.org/10.48550/arxiv.1502.02131)</sup>

**证明挖掘。** 基于哥德尔泛函解释的单调变体的方法，从非线性分析中表面上非有效的证明中抽取有效的统一界；最早的应用在 1990–1993 年，抽取了切比雪夫逼近中的唯一性模和强唯一性常数，抽取出的界可以具有相当低的复杂度，甚至是原始递归的。<sup>[17](https://www2.mathematik.tu-darmstadt.de/~kohlenbach/ICM2018.pdf)</sup>

**形式化与同伦类型论。** 直觉主义类型论的变体是 NuPRL、Rocq（原 Coq）和 Agda 的基础，它们被用于形式化四色定理和费特–汤普森定理，以及验证一个实际可用的 C 编译器。<sup>[3](https://plato.stanford.edu/entries/type-theory-intuitionistic/)</sup> 立方类型论已经成熟：\(\pi_4(S^3) \cong \mathbb{Z}/2\mathbb{Z}\) 已被形式化，并在立方 Agda（Cubical Agda）中计算了一个布吕内里数（Brunerie number）。<sup>[18](https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.LICS.2026.16)</sup> 在同伦类型论中已经构造性地证明了球面的同伦群都是有限呈示的，并且他们的塞尔有限性定理证明的完整形式化存在于立方 Agda 中，这是一个实现立方风格 HoTT 的构造性证明助手。<sup>[18](https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.LICS.2026.16)</sup><sup> • </sup><sup>[19](https://doi.org/10.1017/s0956796821000034)</sup>

## 局限与替代方案

某些经典定理抗拒构造性证明。介值定理通常的区间二分法证明在每次二分步骤中使用排中律，有时隐藏在细节中<sup>[20](https://ar5iv.labs.arxiv.org/html/1804.05495)</sup>，尽管该定理的几个构造性替代版本适用于分析实践中出现的大多数函数。<sup>[4](https://www.cse.chalmers.se/~coquand/TRIESTE/BridgesReeves.pdf)</sup> 有限全知原则（LPO）表述为：对每个二元序列，判定所有项是否为 0，或者某一项是否为 1。<sup>[20](https://ar5iv.labs.arxiv.org/html/1804.05495)</sup> 在布劳威尔的连续性原则下，LPO 和 LLPO 可证明为假，而马尔可夫原则是相容的。<sup>[1](https://plato.stanford.edu/entries/mathematics-constructive/)</sup>

构造性反推数学按证明经典定理所需的非构造性原则对它们分类。布劳威尔的扇形定理蕴含 \([0,1]\) 上的海涅–博雷尔定理、紧致度量空间上的一致连续性，以及 \([0,1]\) 上连续函数的黎曼可积性；它在 INT 中成立但与 RUSS 矛盾，因此在 BISH 之上独立，并且它不蕴含经典的波尔查诺–魏尔斯特拉斯定理或介值定理。<sup>[21](https://www.math.ucla.edu/~joan/cuny08handout.pdf)</sup> 布劳威尔式反例指导构造化：给等价于弱柯尼希引理的存在性陈述添加唯一性假设，常常产生一个完全构造性的定理。<sup>[20](https://ar5iv.labs.arxiv.org/html/1804.05495)</sup> 把排中律加入直觉主义逻辑可恢复完整的经典系统，并且通过哥德尔 1933 年的翻译，每个经典定理都翻译成一个构造性可证明的公式，通常通过否定翻译；对于同样的公式，构造性逻辑是经典逻辑的限制，而该翻译以变形后的形式保留了经典推理。<sup>[2](https://iep.utm.edu/constructive-mathematics/)</sup><sup> • </sup><sup>[7](https://www2.mathematik.tu-darmstadt.de/~streicher/CLM/clm.pdf)</sup>

## References

1. [Constructive Mathematics (Stanford Encyclopedia of Philosophy)](https://plato.stanford.edu/entries/mathematics-constructive/)
2. [Constructive Mathematics | Internet Encyclopedia of Philosophy](https://iep.utm.edu/constructive-mathematics/)
3. [Intuitionistic Type Theory (Stanford Encyclopedia of Philosophy)](https://plato.stanford.edu/entries/type-theory-intuitionistic/)
4. [Constructive Mathematics in Theory and Programming Practice (Bridges & Reeves)](https://www.cse.chalmers.se/~coquand/TRIESTE/BridgesReeves.pdf)
5. [ProofObjects: The Curry-Howard Correspondence (Software Foundations)](https://softwarefoundations.cis.upenn.edu/lf-6.7.1/ProofObjects.html)
6. [Program extraction from large proofs (Cruz-Filipe, Letouzey, Spitters et al., FTA formalization in Coq)](https://users-cs.au.dk/spitters/extraction.pdf)
7. [Introduction to Constructive Logic and Mathematics (TU Darmstadt lecture notes, Thomas Streicher)](https://www2.mathematik.tu-darmstadt.de/~streicher/CLM/clm.pdf)
8. [Background and Motivation (Moschovakis, lecture notes on constructive mathematics)](https://www.math.ucla.edu/~joan/m04n/newnotes.pdf)
9. [Intuitionism in Mathematics | Internet Encyclopedia of Philosophy](https://iep.utm.edu/intuitionism-math/)
10. [Intuitionistic Type Theory (Peter Dybjer's exposition)](https://www.cse.chalmers.se/~peterd/papers/IntuitionisticTypeTheory150505.pdf)
11. [AMBER benchmark (constructive vs existential formal tasks in Lean)](https://arxiv.org/pdf/2602.01291)
12. [Lecture Notes on Proofs as Programs (CMU 15-317)](https://www.cs.cmu.edu/~fp/courses/15317-s23/lectures/04-pap.pdf)
13. [Douglas Bridges, Fred Richman (1987). Varieties of Constructive Mathematics. Cambridge University Press eBooks.](https://doi.org/10.1017/cbo9780511565663)
14. [G. Kreisel (1962). On weak completeness of intuitionistic predicate logic. Journal of Symbolic Logic.](https://doi.org/10.2307/2964110)
15. [Program Extraction tutorial slides (Schwichtenberg, Seisenberger et al., Proof Society 2018)](https://www.proofsociety.org/wp-content/uploads/2018/09/ProgramExtraction_slides.pdf)
16. [Berger, Ulrich and colleagues (2015). Extracting verified decision procedures: DPLL and Resolution. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1502.02131)
17. [Proof-theoretic Methods in Nonlinear Analysis (Kohlenbach, ICM 2018)](https://www2.mathematik.tu-darmstadt.de/~kohlenbach/ICM2018.pdf)
18. [A Computer Formalisation of the Serre Finiteness Theorem (Cubical Agda, LICS 2026)](https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.LICS.2026.16)
19. [ANDREA VEZZOSI, ANDERS MÖRTBERG, ANDREAS ABEL (2021). Cubical Agda: A dependently typed programming language with univalence and higher inductive types. Journal of Functional Programming.](https://doi.org/10.1017/s0956796821000034)
20. [Constructive Reverse Mathematics (arXiv:1804.05495)](https://ar5iv.labs.arxiv.org/html/1804.05495)
21. [Varieties of Reverse Constructive Mathematics (D. Bridges lecture handout)](https://www.math.ucla.edu/~joan/cuny08handout.pdf)

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

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

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/constructive-proof

English original: https://www.edgepedia.org/constructive-proof
