# 类型理论史

**类型理论**是一族形式系统，其中每个实体都被赋予一个类型——一种防止自我指涉悖论的分类，在现代形式中，它还兼作计算的记号。它的历史从伯特兰·罗素（Bertrand Russell）1908年对集合论悖论的回应开始，历经阿隆佐·丘奇（Alonzo Church）1940年的简单类型λ演算，一直发展到如今构成Coq、Agda和Lean等证明助手基础的依赖类型理论。

| 关键事实 | 详情 |
|---|---|
| 起源 | 罗素在其1908年论文《基于类型论的数理逻辑》中引入了分支类型论，将对象分层为不同类型和阶，以排除诸如x ∉ x这样的荒谬表达式<sup>[1](https://cs.lmu.edu/~ray/notes/typetheory/)</sup><sup> • </sup><sup>[2](https://www.college-de-france.fr/en/agenda/lecture/program-demonstrate-curry-howard-correspondence-today/paths-to-discovery-the-curry-howard-correspondence-1930-1970)</sup> |
| 简化 | 简单类型论作为对罗素分支类型论的修改，由莱昂·赫维斯特克（Leon Chwistek）于1921年和1922年、F. P. 拉姆齐（F. P. Ramsey）于1926年分别提出<sup>[3](https://www.classes.cs.uchicago.edu/archive/2007/spring/32001-1/papers/church-1940.pdf)</sup> |
| 丘奇的表述 | 《简单类型论的一种表述》，《符号逻辑杂志》5(2): 56–68（1940），纳入λ记号并将函数作为原始对象<sup>[3](https://www.classes.cs.uchicago.edu/archive/2007/spring/32001-1/papers/church-1940.pdf)</sup><sup> • </sup><sup>[4](https://plato.stanford.edu/entries/type-theory-church/)</sup> |
| 柯里-霍华德对应 | 柯里于1958年观察到函数类型可读作蕴涵、函数应用可读作肯定前件式；霍华德于1969年构造了与直觉主义逻辑的完整对应<sup>[2](https://www.college-de-france.fr/en/agenda/lecture/program-demonstrate-curry-howard-correspondence-today/paths-to-discovery-the-curry-howard-correspondence-1930-1970)</sup> |
| 首个证明检查器 | Automath由N. G. 德布鲁因（N. G. de Bruijn）于1967–1968年在埃因霍温理工大学开发，是第一个实际工作的定理证明器<sup>[5](https://pure.tue.nl/ws/portalfiles/portal/2039924/256169.pdf)</sup><sup> • </sup><sup>[6](https://arxiv.org/abs/2203.01173)</sup> |
| 依赖类型论 | 马丁-洛夫（Martin-Löf）的《一种直觉主义类型论》（1972）是一个用于形式化直觉主义数学的完整系统，基于命题即类型原则<sup>[7](https://archive-pml.github.io/martin-lof/pdfs/An-Intuitionistic-Theory-of-Types-1972.pdf)</sup><sup> • </sup><sup>[8](https://plato.stanford.edu/entries/type-theory-intuitionistic/)</sup> |
| 非直谓系统 | 科康（Coquand）和于埃（Huet）的构造演算（《信息与计算》76: 95–120，1988）是一个强大的非直谓但一致的类型理论，具有强规范化定理<sup>[9](https://rocq-prover.org/papers/the-calculus-of-constructions)</sup><sup> • </sup><sup>[8](https://plato.stanford.edu/entries/type-theory-intuitionistic/)</sup> |
| 晚近发展 | 沃埃沃茨基（Voevodsky）的单值基础与单值公理将类型论与同伦论联系起来；HoTT一书于2013年问世<sup>[10](https://plato.stanford.edu/entries/type-theory/)</sup><sup> • </sup><sup>[11](https://homotopytypetheory.org/book/)</sup> |

## 罗素与悖论

罗素发展类型理论，是对他在朴素集合论中发现的一个悖论的回应<sup>[8](https://plato.stanford.edu/entries/type-theory-intuitionistic/)</sup>。分支类型论按类型对数学对象进行分类，区分命题、对象、对象的性质以及更进一步的层级<sup>[8](https://plato.stanford.edu/entries/type-theory-intuitionistic/)</sup>。1908年的论文提出了一种“分支”理论，其中类型按照所讨论的对象是个体、性质还是性质的性质而排列成层，并进一步划分为阶<sup>[1](https://cs.lmu.edu/~ray/notes/typetheory/)</sup>。罗素将类型定义为命题函项的意义范围<sup>[10](https://plato.stanford.edu/entries/type-theory/)</sup>。

**分支及其代价。** 庞加莱（Poincaré）曾推荐“恶性循环原则”，罗素在其最终的分支类型论中接受了它<sup>[12](https://academic.oup.com/book/11331/chapter-abstract/159946300)</sup>。分支结构需要可化归公理才能恢复普通数学，而人们对分支类型和该公理存在大量不满<sup>[13](https://www.macs.hw.ac.uk/~fairouz/forest/papers/journals-publications/bsl02/bsl02.pdf)</sup>。1925年，弗兰克·拉姆齐主张，虽然简单类型论足以阻止集合论中出现的悖论，但它无法处理涉及真等语义概念的悖论，也无法处理罗素所发现的信念的认识论悖论<sup>[14](https://seop.lovelace.illc.uva.nl/entries/principia-mathematica/index.html)</sup>。取消阶的简单类型论，作为对罗素分支类型论的修改，由莱昂·赫维斯特克于1921年和1922年、F. P. 拉姆齐于1926年分别提出<sup>[3](https://www.classes.cs.uchicago.edu/archive/2007/spring/32001-1/papers/church-1940.pdf)</sup>。

## 丘奇的简单类型论

丘奇于1940年给出了简单类型论的一种优雅表述，通过引入函数作为原始对象对其加以扩展，并使用λ演算记号<sup>[10](https://plato.stanford.edu/entries/type-theory/)</sup>。在这一表述中，谓词被视为一种特殊的函数——命题函项，这一思想可追溯至弗雷格（Frege），而函数不再被定义为一种特殊的关系<sup>[10](https://plato.stanford.edu/entries/type-theory/)</sup>。

丘奇系统的类型是归纳定义的：有两个基本类型，\( i \)（个体类型）和\( o \)（命题类型），若\( A \)和\( B \)是类型，则\( A \rightarrow B \)——从\( A \)到\( B \)的函数类型——也是类型<sup>[10](https://plato.stanford.edu/entries/type-theory/)</sup>。由此可构造\( i \rightarrow o \)，即谓词的类型，以及\( (i \rightarrow o) \rightarrow o \)，即谓词的谓词的类型<sup>[10](https://plato.stanford.edu/entries/type-theory/)</sup>。丘奇1940年的论文指出，其目的是给出简单类型论的一种表述，纳入λ转换的某些特征，文中还陈述了函数外延性公理，即逐点相等的两个函数相等<sup>[3](https://www.classes.cs.uchicago.edu/archive/2007/spring/32001-1/papers/church-1940.pdf)</sup><sup> • </sup><sup>[10](https://plato.stanford.edu/entries/type-theory/)</sup>。

通往这一系统的路径经过了丘奇早期的逻辑。约1930年，丘奇引入了λ记号\( \lambda x.e \)来指称将\( e \)与\( x \)相关联的函数；他的第一个λ演算发表于1932年和1933年，是一种用λ记号表示集合的数理逻辑，但很快因不一致而被放弃。然而到1936年，一旦去除其逻辑连接词，纯λ演算便被视为可计算性的基础形式系统，其能力等价于图灵机<sup>[2](https://www.college-de-france.fr/en/agenda/lecture/program-demonstrate-curry-howard-correspondence-today/paths-to-discovery-the-curry-howard-correspondence-1930-1970)</sup>。从罗素的类型论出发，经过若干简化，导向了丘奇1940年发表的简单类型λ演算<sup>[2](https://www.college-de-france.fr/en/agenda/lecture/program-demonstrate-curry-howard-correspondence-today/paths-to-discovery-the-curry-howard-correspondence-1930-1970)</sup>。

## 柯里-霍华德对应

柯里于1958年作出的第一个观察是：如果我们把函数类型\( \tau \rightarrow \sigma \)读作命题的蕴涵\( P \Rightarrow Q \)，那么函数应用的类型规则就是演绎中的肯定前件式规则，而λ演算的组合子S、K、I的类型就是希尔伯特式逻辑中定义蕴涵的公理<sup>[2](https://www.college-de-france.fr/en/agenda/lecture/program-demonstrate-curry-howard-correspondence-today/paths-to-discovery-the-curry-howard-correspondence-1930-1970)</sup>。

直到1969年，霍华德才构造了带类型λ演算与直觉主义逻辑之间的完整对应：类型对应命题，项对应布劳威尔-海廷-柯尔莫哥洛夫意义上的构造，项的β-归约求值对应证明中割的消去——至少对蕴涵片段如此<sup>[2](https://www.college-de-france.fr/en/agenda/lecture/program-demonstrate-curry-howard-correspondence-today/paths-to-discovery-the-curry-howard-correspondence-1930-1970)</sup>。这一对应常被称为柯里-霍华德同构或公式即类型同构<sup>[15](https://www.cambridge.org/core/books/abs/basic-simple-type-theory/correspondence-with-implication/C9E188305D87FD94B73A764A80144EE6)</sup>。在柯里于1958年、随后霍华德和德布鲁因于1960年代末作出观察之后，人们清楚地认识到证明与程序具有完全相同的结构，证明论由此在计算机科学中获得了重要地位<sup>[16](https://radar.inria.fr/report/2011/pi.r2/uid5.html)</sup>。

## Automath与计算机上的证明检查

Automath是一种数学语言，由N. G. 德布鲁因于1967–1968年在埃因霍温理工大学开发<sup>[5](https://pure.tue.nl/ws/portalfiles/portal/2039924/256169.pdf)</sup>。德布鲁因声称，该语言适合表达数学中极大的部分，只要遵守语法规则，数学内容的正确性就能得到保证，因此计算机可以逐行检查翻译文本，作为对数学作品的最终完整检查<sup>[17](https://www.cs.cornell.edu/courses/cs4860/2018fa/lectures/The-mathematical-language-Automath_de-Bruijn.pdf)</sup>。它是第一个实际工作的定理证明器，被用于检查大量数学内容样本<sup>[6](https://arxiv.org/abs/2203.01173)</sup>。

## 马丁-洛夫的直觉主义类型论

佩尔·马丁-洛夫1972年的论文《一种直觉主义类型论》提出了一个旨在形式化直觉主义数学的完整系统，例如毕晓普（Bishop）1967年著作中所发展的那种数学<sup>[7](https://archive-pml.github.io/martin-lof/pdfs/An-Intuitionistic-Theory-of-Types-1972.pdf)</sup>。直觉主义类型论又称构造类型论或马丁-洛夫类型论，是一种形式逻辑系统，为构造性数学提供哲学基础，力图在这一事业中占据类似于策梅洛-弗兰克尔集合论在经典数学中所占据的地位<sup>[8](https://plato.stanford.edu/entries/type-theory-intuitionistic/)</sup>。

其源头是布劳威尔的直觉主义和罗素的类型论。与丘奇的经典简单类型论一样，它基于带类型的λ演算，但不同之处在于使用了命题即类型原则——该原则由柯里于1958年为命题逻辑发现，并由霍华德于1969年、德布鲁因于1970年推广到谓词逻辑<sup>[8](https://plato.stanford.edu/entries/type-theory-intuitionistic/)</sup>。它进一步用依赖类型——即类型的索引族——扩展了简单类型λ演算<sup>[8](https://plato.stanford.edu/entries/type-theory-intuitionistic/)</sup>。

**所有类型的类型与吉拉尔悖论。** 马丁-洛夫引入所有类型的类型，源于柯里和霍华德的工作所提示的命题与类型的等同。吉拉尔（Girard）悖论表明，人们不能同时拥有罗素关于类型即意义范围的定义、对所有命题的量化以及命题与类型的等同。马丁-洛夫的选择是放弃非直谓量化，将类型论限制为直谓的；宇宙这一概念最初在类型论中出现，正是作为所有类型的类型的直谓版本<sup>[10](https://plato.stanford.edu/entries/type-theory/)</sup>。他早期1971年的不一致版本基于一个强非直谓公理，即存在一个所有类型的类型<sup>[8](https://plato.stanford.edu/entries/type-theory-intuitionistic/)</sup>。

在其1979年论文《构造性数学与计算机编程》中，马丁-洛夫将直觉主义类型论同时呈现为一种编程语言和构造性数学得以依托的形式基础；此后不久，该理论的交互式证明系统便出现了<sup>[8](https://plato.stanford.edu/entries/type-theory-intuitionistic/)</sup>。

## 构造演算与证明助手

蒂埃里·科康和热拉尔·于埃的构造演算发表于《信息与计算》76: 95–120（1988），是一种自然演绎风格构造性证明的高阶形式系统，其中每个证明都是一个λ表达式，用底层逻辑的命题赋予类型<sup>[9](https://rocq-prover.org/papers/the-calculus-of-constructions)</sup>。作者们发展了基本理论并证明了强规范化定理，表明所有计算都会终止<sup>[9](https://rocq-prover.org/papers/the-calculus-of-constructions)</sup>。科康和于埃由此表明，存在一个强大、非直谓但一致的类型理论版本，与不一致的所有类型的类型形成对照<sup>[8](https://plato.stanford.edu/entries/type-theory-intuitionistic/)</sup>。

这一路线产生了实际工作的系统。非直谓构造演算的类型检查器由科康和于埃于1984年左右编写，并导向了Coq系统，后者基于归纳构造演算（Paulin-Mohring 1993），用原始归纳类型和族扩展了构造演算。Agda是另一个证明助手，基于马丁-洛夫直谓直觉主义类型论的逻辑框架表述。其他系统要么基于构造演算（Lego、Matita、Lean），要么基于直觉主义类型论（Epigram、Idris）<sup>[8](https://plato.stanford.edu/entries/type-theory-intuitionistic/)</sup>。

**Lean。** Lean项目始于2013年，是一个基于归纳构造演算的交互式定理证明器；2017年，一个用户社区启动了Lean数学库项目mathlib，在Lean 4系统描述发表时，该库已有约五十万行代码<sup>[18](https://lean-lang.org/papers/lean4.pdf)</sup>。Lean建立在依赖类型论之上，是一个交互式定理证明器，旨在同时服务于最前沿的数学研究和软件验证<sup>[19](https://lean-lang.org/doc/reference/latest/)</sup>。

## 同伦类型论与单值基础

类型论、集合论和范畴论之间的联系，通过单值基础（沃埃沃茨基 2015）和单值公理的工作而出现了新的转折，其中涉及依赖类型、命题即类型的观点以及类型宇宙的概念<sup>[10](https://plato.stanford.edu/entries/type-theory/)</sup>。

这条路径经过了同一类型的模型。马丁-洛夫于1975年引入了一个基本类型\( \mathbf{Id}_A(a,b) \)，即类型\( A \)的元素\( a \)与\( b \)之间相等证明的类型<sup>[10](https://plato.stanford.edu/entries/type-theory/)</sup>。霍夫曼（Hofmann）和施特赖歇尔（Streicher）设计了一个依赖类型论的模型，将类型解释为群胚，其中两个元素可以是两个元素相等的不同证明，因此在类型论中一般无法证明相等类型至多有一个元素<sup>[10](https://plato.stanford.edu/entries/type-theory/)</sup>。这一群胚解释被推广为将类型解释为同伦意义下的拓扑空间，同一类型被解释为连接两点的路径类型<sup>[10](https://plato.stanford.edu/entries/type-theory/)</sup>。

沃埃沃茨基引入了类型到命题、集合和群胚的分层，并推广到2-群胚、3-群胚等等，在这一视角下，类型论显得是集合论的一个巨大推广<sup>[10](https://plato.stanford.edu/entries/type-theory/)</sup>。单值公理断言映射\( \mathbf{Id}_U(A,B) \rightarrow \mathrm{Equiv}(A,B) \)是一个等价，从而等价的小类型相等；它推广了丘奇1940年所陈述的外延性原理，并蕴涵函数外延性<sup>[10](https://plato.stanford.edu/entries/type-theory/)</sup>。同伦类型论——即用单值性和高阶归纳类型扩展的内涵类型论——于2013年出版的《同伦类型论：数学的单值基础》一书中首次获得系统阐述<sup>[11](https://homotopytypetheory.org/book/)</sup><sup> • </sup><sup>[20](https://arxiv.org/abs/1308.0729)</sup>。蒂埃里·科康自1996年起任哥德堡大学计算机科学教授，他在其2026年法兰西学院就职演讲《类型论：从罗素到证明助手》中追溯了这段晚近历史——从计算机上的证明验证到依赖类型论与同伦论之间正在建立的协同<sup>[21](https://www.college-de-france.fr/en/news/publication-of-the-inaugural-lecture-by-professor-thierry-coquand)</sup>。

## References

1. [Notes on type theory, Raymond Smullyan-style course notes, LMU](https://cs.lmu.edu/~ray/notes/typetheory/)
2. [Xavier Leroy, "Paths to discovery: the Curry–Howard correspondence, 1930–1970", Collège de France](https://www.college-de-france.fr/en/agenda/lecture/program-demonstrate-curry-howard-correspondence-today/paths-to-discovery-the-curry-howard-correspondence-1930-1970)
3. [Alonzo Church, "A Formulation of the Simple Theory of Types", Journal of Symbolic Logic 5(2): 56–68 (1940)](https://www.classes.cs.uchicago.edu/archive/2007/spring/32001-1/papers/church-1940.pdf)
4. [Church's Type Theory, Stanford Encyclopedia of Philosophy](https://plato.stanford.edu/entries/type-theory-church/)
5. [N. G. de Bruijn, "Automath, a language for mathematics", Eindhoven, November 1968](https://pure.tue.nl/ws/portalfiles/portal/2039924/256169.pdf)
6. [Characteristics of de Bruijn's early proof checker Automath, arXiv:2203.01173](https://arxiv.org/abs/2203.01173)
7. [Per Martin-Löf, "An Intuitionistic Theory of Types", 1972](https://archive-pml.github.io/martin-lof/pdfs/An-Intuitionistic-Theory-of-Types-1972.pdf)
8. [Intuitionistic Type Theory, Stanford Encyclopedia of Philosophy](https://plato.stanford.edu/entries/type-theory-intuitionistic/)
9. [Thierry Coquand and Gérard Huet, "The Calculus of Constructions", Information and Computation 76: 95–120 (1988), Rocq papers page](https://rocq-prover.org/papers/the-calculus-of-constructions)
10. [Type Theory, Stanford Encyclopedia of Philosophy](https://plato.stanford.edu/entries/type-theory/)
11. [The HoTT Book, Homotopy Type Theory](https://homotopytypetheory.org/book/)
12. [The Contradiction (iii): A Ramified Solution, Russell's Logical Atomism, Oxford Academic](https://academic.oup.com/book/11331/chapter-abstract/159946300)
13. [The Bulletin of Symbolic Logic, Fairouz Kamareddine et al.](https://www.macs.hw.ac.uk/~fairouz/forest/papers/journals-publications/bsl02/bsl02.pdf)
14. [Principia Mathematica, Stanford Encyclopedia of Philosophy](https://seop.lovelace.illc.uva.nl/entries/principia-mathematica/index.html)
15. [The correspondence with implication, Basic Simple Type Theory, Cambridge Core](https://www.cambridge.org/core/books/abs/basic-simple-type-theory/correspondence-with-implication/C9E188305D87FD94B73A764A80144EE6)
16. [PI.R2 2011 annual report, Inria](https://radar.inria.fr/report/2011/pi.r2/uid5.html)
17. [N. G. de Bruijn, "The Mathematical Language Automath, its Usage, and Some of its Extensions"](https://www.cs.cornell.edu/courses/cs4860/2018fa/lectures/The-mathematical-language-Automath_de-Bruijn.pdf)
18. [Leonardo de Moura and Sebastian Ullrich, "The Lean 4 Theorem Prover and Programming Language", CADE-28 (2021)](https://lean-lang.org/papers/lean4.pdf)
19. [The Lean Language Reference](https://lean-lang.org/doc/reference/latest/)
20. [Homotopy Type Theory: Univalent Foundations of Mathematics, arXiv:1308.0729](https://arxiv.org/abs/1308.0729)
21. [Publication of the inaugural lecture by Professor Thierry Coquand, Collège de France](https://www.college-de-france.fr/en/news/publication-of-the-inaugural-lecture-by-professor-thierry-coquand)

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

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

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/history-of-type-theory

English original: https://www.edgepedia.org/history-of-type-theory
