# 数学归纳法

**数学归纳法**是一种证明技术，用来确立命题 P(n) 从某个起点开始往后对每个自然数 n 都成立：先对某个初始值证明该命题（基础情形），再证明只要它对 n 成立，它对 n + 1 也成立（归纳步骤）。形式上，如果 P(1) 为真，并且对所有 n ≥ 1，蕴含式 P(n) ⟹ P(n + 1) 成立，那么 P(n) 对所有 n ≥ 1 成立。<sup>[1](https://www.southampton.ac.uk/~wright/1001/appendix-a---well-ordering-principle.html)</sup> 这一方法是数论和算法分析的基础；在算法分析中，它是关于递归算法、数据结构和循环不变式的证明的底层依据。<sup>[2](https://www.csd.uwo.ca/~abrandt5/teaching/DiscreteStructures/Chapter5/index.html)</sup>

| 关键事实 | 详情 |
|---|---|
| 原理（弱形式） | 如果 P(1) 成立，并且对所有 n ≥ 1 都有 P(n) ⟹ P(n + 1)，那么 P(n) 对所有 n ≥ 1 成立。<sup>[1](https://www.southampton.ac.uk/~wright/1001/appendix-a---well-ordering-principle.html)</sup> |
| 强形式 | 如果 P(1) 成立，并且对所有 n ≥ 1 都有 (P(1) ∧ … ∧ P(n)) ⟹ P(n + 1)，则同样可得结论；两种形式等价。<sup>[1](https://www.southampton.ac.uk/~wright/1001/appendix-a---well-ordering-principle.html)</sup> |
| 逻辑基础 | 归纳法以良序原理为基础；良序原理指出，正整数的每个非空子集都有最小元。这两个原理等价。<sup>[3](https://www.csd.uwo.ca/~abrandt5/teaching/DiscreteStructures/Chapter5/induction.html)</sup><sup> • </sup><sup>[1](https://www.southampton.ac.uk/~wright/1001/appendix-a---well-ordering-principle.html)</sup> |
| 形式地位 | 在一阶皮亚诺算术中，归纳法是一个可数公理模式，每个公式对应一条公理；在二阶设定中，它是一条单一公理。<sup>[4](https://mathem.at/Materials/induction_en.html?lang=en)</sup> |
| 早期严格使用 | 弗朗切斯科·毛罗利科（Francesco Maurolico）在《算术二书》（Arithmeticorum Libri Duo，1575）中严格使用了这一原理；布莱兹·帕斯卡（Blaise Pascal）又在《算术三角形论》（Traité du Triangle Arithmétique，1655）中这样做了。<sup>[5](https://proofwiki.org/wiki/Definition%3APrinciple_of_Mathematical_Induction/Historical_Note)</sup> |
| 计算机科学中的使用 | 循环不变式这一方法由罗伯特·弗洛伊德（Robert Floyd）和 C. A. R. 霍尔（C. A. R. Hoare）在 20 世纪 60 年代开创，它把归纳法用于迭代算法；递归算法则直接通过归纳法证明正确性。<sup>[6](https://cs.carleton.edu/faculty/dln/book/ch05_mathematical-induction_2021_April_05.pdf)</sup><sup> • </sup><sup>[7](https://www.csd.uwo.ca/~abrandt5/teaching/DiscreteStructures/Chapter5/program-verification.html)</sup> |

## 证明如何运作

归纳证明有两个部分。基础情形验证 P 在范围内最小的值上成立，通常是 P(0) 或 P(1)。归纳步骤假定 P(n)——即归纳假设——并推出 P(n + 1)。一旦两者都建立，原理就准许得出命题对范围内每个自然数都成立的结论：基础情形启动链条，而每一步把它再延伸一个整数。<sup>[4](https://mathem.at/Materials/induction_en.html?lang=en)</sup><sup> • </sup><sup>[8](https://www.math.utoronto.ca/writing/Induction.pdf)</sup>

一个标准例子是前 n 个自然数之和的公式。基础情形验证 1 = 1(1+1)/2。归纳假设假定 1 + … + k = k(k+1)/2；在两边加上 k + 1 并化简，得到 1 + … + k + (k + 1) = (k+1)(k+2)/2，这正是 n = k + 1 时的公式。<sup>[8](https://www.math.utoronto.ca/writing/Induction.pdf)</sup> 起始值并不固定在 1；证明可以从任意整数开始，结论则覆盖从该点起往上的所有整数。<sup>[9](https://www.southampton.ac.uk/~wright/1001/proof-by-induction.html)</sup>

这一技术也适用于算术恒等式之外。关于字符串的命题可以通过对字符串长度作归纳来证明，关于图的命题可以通过对节点数作归纳来证明，关于文法的命题可以通过对产生式数目作归纳来证明。<sup>[10](https://interactivetextbooks.tudelft.nl/delftse-foundations-of-computation/content/logic/induction.html)</sup>

## 强归纳法

**强归纳法**（也称完全归纳法）强化了归纳假设。普通归纳法从 P(n) 直接跨到 P(n + 1)；强归纳法在确立 P(n + 1) 之前，先假定此前每一个实例都成立，即 P(0) ∧ P(1) ∧ … ∧ P(n)。<sup>[11](https://imo2014.org.za/problems/induction-vs-strong-induction/)</sup> 两种方法都在自然数上运作，并且证明的恰好是同一类命题；它们的区别只在于假设在使用那一刻提供了多少信息。<sup>[11](https://imo2014.org.za/problems/induction-vs-strong-induction/)</sup>

这种等价性可以直接证明。如果 P 满足弱归纳法的假设，定义 Q(n) 为合取式 P(1) ∧ … ∧ P(n)。那么 Q(1) = P(1) 成立；并且 Q(n) 蕴含 P(n)，P(n) 蕴含 P(n + 1)，后者又给出 Q(n + 1)；因此 Q 对所有 n 成立，P 也就对所有 n 成立。反过来，强归纳法的假设也可以用同样的手法化归为弱形式。<sup>[1](https://www.southampton.ac.uk/~wright/1001/appendix-a---well-ordering-principle.html)</sup> 当从 n + 1 出发的那一步要引用 n 本身之外的更早值时，强归纳法是自然的选择；例如在关于因子分解的证明中，n + 1 的因子都严格小于 n + 1。<sup>[11](https://imo2014.org.za/problems/induction-vs-strong-induction/)</sup>

## 与良序原理的关系

良序原理指出，正整数的每个非空子集都有最小元。<sup>[3](https://www.csd.uwo.ca/~abrandt5/teaching/DiscreteStructures/Chapter5/induction.html)</sup> 归纳法以这一原理为基础，两者等价：弱原理、强原理和良序三者都可以互相推导出来。<sup>[3](https://www.csd.uwo.ca/~abrandt5/teaching/DiscreteStructures/Chapter5/induction.html)</sup><sup> • </sup><sup>[1](https://www.southampton.ac.uk/~wright/1001/appendix-a---well-ordering-principle.html)</sup>

一个方向的推导通过逆否命题来进行。假设 A 是正整数的一个没有最小元的子集，令 B 为它的补集。那么 1 ∈ B，否则 1 就会是 A 的最小元；并且如果 1, …, n ∈ B，那么 n + 1 ∉ A，否则 n + 1 就会是 A 的最小元。由归纳法，B 是全部正整数，所以 A 为空，这正是良序。<sup>[1](https://www.southampton.ac.uk/~wright/1001/appendix-a---well-ordering-principle.html)</sup> 同样的等价关系解释了为什么归纳法能证明全称命题：如果关于正整数的某个命题对其中一些数不成立，那么反例集合有第一个元素，而归纳法无法越过这一点。<sup>[9](https://www.southampton.ac.uk/~wright/1001/proof-by-induction.html)</sup>

## 在算术基础中的形式地位

同一原理在不同周围理论中采取不同的逻辑形式。在皮亚诺算术——自然数的公理系统——中，归纳法在一阶逻辑里是可数的公理模式，每个公式对应一条公理；在二阶设定中，它是对所有性质进行量化的单条公理；在集合论中，它是一条定理。<sup>[4](https://mathem.at/Materials/induction_en.html?lang=en)</sup> 二阶形式就是自然数上的结构归纳原理，允许从 P(0) 以及从 P(n) 到 P(S(n)) 的步骤出发，证明任意全称性质 P(n)。<sup>[12](https://rocq-prover.org/doc/V8.16.1/refman/language/core/inductive.html)</sup>

一阶限制有实际后果。因为一阶逻辑中的归纳法需要无穷多条公理，而这些公理无法作为有限输入交给定理证明器，所以归纳推理对最先进的自动定理证明器仍然是一个严峻挑战。<sup>[13](https://arxiv.org/abs/2107.07669)</sup> 证明助手以不同方式处理这一点：在 Coq 证明助手中，把自然数定义为归纳类型会自动生成 nat_ind 之类的归纳原理，其类型恰好表达二阶归纳公理。<sup>[12](https://rocq-prover.org/doc/V8.16.1/refman/language/core/inductive.html)</sup> 该原理还越出自然数范围：超限归纳法把它推广到所有序数。<sup>[4](https://mathem.at/Materials/induction_en.html?lang=en)</sup>

## 历史

这一原理的确切起源是学术争论的话题，其发展不能归功于某一个人或某一种文化。贡献来自阿拉伯人阿尔·卡拉吉（al-Karaji）、法国犹太人列维·格尔绍姆（Levi Gershon）、意大利人弗朗西斯库斯·毛罗利库斯（Franciscus Maurolycus）、法国人布莱兹·帕斯卡和皮埃尔·德·费马（Pierre de Fermat），以及瑞士人雅各布·伯努利（Jakob Bernoulli）；与此同时，这一方法在各大洲被长期使用，却没有专门名称。<sup>[14](https://doi.org/10.1155/2022/3618642)</sup>

欧洲最早严格使用该原理的，被认为是意大利数学家弗朗切斯科·毛罗利科，见于 1575 年在威尼斯（Venice）出版的《算术二书》；这一原理又以足够严格的形式出现在布莱兹·帕斯卡 1655 年的《算术三角形论》中。<sup>[5](https://proofwiki.org/wiki/Definition%3APrinciple_of_Mathematical_Induction/Historical_Note)</sup> 更早的源头还可以追溯得更远。10 至 11 世纪的波斯数学家阿尔·卡拉吉先论证 n = 1 的情形，再从 n = 1 证明 n = 2，从 n = 2 证明 n = 3，一直继续到大约 n = 5，然后指出这一过程可以无限继续下去；这并非严格意义上的归纳法，但 MacTutor 数学史将其描述为理解归纳证明的重要一步；这一方法曾应用于二项式系数和帕斯卡三角形等问题。<sup>[15](https://mathshistory.st-andrews.ac.uk/Biographies/Al-Karaji/)</sup> 他的后继者阿尔·萨马瓦尔（al-Samawʾal）在证明关于幂的命题时使用了一种相关的归纳形式。<sup>[16](https://mathshistory.st-andrews.ac.uk/DSB/Al-Karaji.pdf)</sup> 归纳法一词最早出现于 17 世纪英国人约翰·沃利斯（John Wallis）的一篇算术论著。<sup>[14](https://doi.org/10.1155/2022/3618642)</sup>

在数学基础中，这一原理在算术的公理化中取得了核心地位。理查德·戴德金（Richard Dedekind）对单无限系统所提的条件包含一个版本的归纳公理，因此这些公理被恰当地称为戴德金-皮亚诺公理；皮亚诺（Peano）在 1889 年发表了他的相应工作，并承认戴德金的优先权。<sup>[17](https://plato.stanford.edu/entries/dedekind-foundations/)</sup> 戈特洛布·弗雷格（Gottlob Frege）对自然数的定义使他能够把数学归纳法原理证明为纯逻辑的结果。<sup>[18](https://plato.stanford.edu/entries/logicism/)</sup>

## 计算机科学中的应用

归纳法是对程序进行推理的标准工具。递归算法可以直接通过归纳法证明其正确性，因为递归的结构映照着证明的结构。<sup>[7](https://www.csd.uwo.ca/~abrandt5/teaching/DiscreteStructures/Chapter5/program-verification.html)</sup><sup> • </sup><sup>[19](https://www.cs.cornell.edu/courses/cs312/2002sp/handouts/induction/induction.html)</sup>

**循环不变式。** 对于迭代算法，标准方法是循环不变式，即程序的一种性质，它在循环的每次迭代之前和之后都为真。<sup>[7](https://www.csd.uwo.ca/~abrandt5/teaching/DiscreteStructures/Chapter5/program-verification.html)</sup> 这一方法由罗伯特·W·弗洛伊德和 C. A. R. 霍尔在 20 世纪 60 年代开创；循环 L 的循环不变式是一个逻辑性质 P，使得 P 在 L 首次执行之前为真，并且如果 P 在某一迭代开始时为真，那么在该迭代之后也为真。它与归纳法的对应是直接的：第一个条件是基础情形，第二个条件是归纳情形。<sup>[6](https://cs.carleton.edu/faculty/dln/book/ch05_mathematical-induction_2021_April_05.pdf)</sup> 有用的不变式通常描述算法的进展或其运行时间；例如，在计算列表最大值的程序中，不变式是变量 m 始终保存索引 0 到 i − 1（含两端）之间列表元素的最大值。<sup>[20](https://www2.cs.sfu.ca/~bbart/225/induction2-2.html)</sup><sup> • </sup><sup>[7](https://www.csd.uwo.ca/~abrandt5/teaching/DiscreteStructures/Chapter5/program-verification.html)</sup>

关于归纳法的自动推理仍然是一个活跃的研究领域。因为一阶归纳法是一个无穷公理模式，定理证明器无法把它作为有限输入接受，于是人们发展了原始语法驱动的引理推测等方法来打破归纳证明中的发散；一种 2024 年用 C++ 实现的方法证明了五十多个复杂例子，而包括 ACL2、Isabelle、PVS 和 SPIKE 在内的著名证明器在这些例子上会失败。<sup>[13](https://arxiv.org/abs/2107.07669)</sup><sup> • </sup><sup>[21](https://www.ijcai.org/proceedings/2024/361)</sup>

## References

1. [Chapter 10 Appendix A, Well ordering principle, MATH1001 Introduction to Number Theory, University of Southampton](https://www.southampton.ac.uk/~wright/1001/appendix-a---well-ordering-principle.html)
2. [5. Induction and Recursion, Discrete Structures for Computing, Western University](https://www.csd.uwo.ca/~abrandt5/teaching/DiscreteStructures/Chapter5/index.html)
3. [5.1. Induction, Discrete Structures for Computing, Western University](https://www.csd.uwo.ca/~abrandt5/teaching/DiscreteStructures/Chapter5/induction.html)
4. [On Mathematical Induction, mathem.at](https://mathem.at/Materials/induction_en.html?lang=en)
5. [Definition: Principle of Mathematical Induction, Historical Note, ProofWiki](https://proofwiki.org/wiki/Definition%3APrinciple_of_Mathematical_Induction/Historical_Note)
6. [Computer Science Connections: Loop Invariants, Connecting Discrete Mathematics and Computer Science (Carleton College draft, Cambridge University Press)](https://cs.carleton.edu/faculty/dln/book/ch05_mathematical-induction_2021_April_05.pdf)
7. [5.3. Computer Program Verification, Discrete Structures for Computing, Western University](https://www.csd.uwo.ca/~abrandt5/teaching/DiscreteStructures/Chapter5/program-verification.html)
8. [Induction and the Well-Ordering Principle, L. Shorser, University of Toronto](https://www.math.utoronto.ca/writing/Induction.pdf)
9. [2.4 Proof by Induction, MATH1001 Introduction to Number Theory, University of Southampton](https://www.southampton.ac.uk/~wright/1001/proof-by-induction.html)
10. [3.4. Mathematical Induction, Delftse Foundations of Computation, TU Delft](https://interactivetextbooks.tudelft.nl/delftse-foundations-of-computation/content/logic/induction.html)
11. [Strong Induction vs Ordinary Induction: The Mechanics of the Extended Hypothesis, IMO2014](https://imo2014.org.za/problems/induction-vs-strong-induction/)
12. [Inductive types and recursive functions, Coq 8.16.1 documentation](https://rocq-prover.org/doc/V8.16.1/refman/language/core/inductive.html)
13. [Automating Induction by Reflection, arXiv:2107.07669](https://arxiv.org/abs/2107.07669)
14. [The Principle of Mathematical Induction: Applications in Physical Optics, Journal of Applied Mathematics (2022)](https://doi.org/10.1155/2022/3618642)
15. [al-Karaji (953–1029), Biography, MacTutor History of Mathematics](https://mathshistory.st-andrews.ac.uk/Biographies/Al-Karaji/)
16. [Al-Karaji, Dictionary of Scientific Biography (MacTutor archive PDF)](https://mathshistory.st-andrews.ac.uk/DSB/Al-Karaji.pdf)
17. [Dedekind's Contributions to the Foundations of Mathematics, Stanford Encyclopedia of Philosophy](https://plato.stanford.edu/entries/dedekind-foundations/)
18. [Logicism and Neologicism, Stanford Encyclopedia of Philosophy](https://plato.stanford.edu/entries/logicism/)
19. [CS312 Mathematical Induction, Cornell University](https://www.cs.cornell.edu/courses/cs312/2002sp/handouts/induction/induction.html)
20. [What Every CMPT 225 Student Should Know About Mathematical Induction, Brad Bart, Simon Fraser University](https://www2.cs.sfu.ca/~bbart/225/induction2-2.html)
21. [Primal Grammars Driven Automated Induction, IJCAI 2024](https://www.ijcai.org/proceedings/2024/361)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: 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/mathematical-induction

English original: https://www.edgepedia.org/mathematical-induction
