# 范畴（数学）

在数学中，**范畴**是由一族对象以及对象之间的态射构成的结构，并为每个对象配备一个恒等态射，以及满足结合律的态射复合。该概念由哥伦比亚大学出身、当时任职于密歇根大学的代数拓扑学家塞缪尔·艾伦伯格（Samuel Eilenberg）与哈佛大学的桑德斯·麦克莱恩（Saunders Mac Lane）在1945年的论文《自然等价的一般理论》中引入，该文同时定义了函子与自然变换，从而创立了范畴论<sup>[1](https://zenodo.org/records/3928610)</sup>。

| 关键事实 | 详情 |
|---|---|
| 定义 | 对象、每对对象之间的一类态射、恒等态射，以及满足结合律的复合<sup>[2](https://math.ucla.edu/~sharifi/notes/homalg-ch01.html)</sup> |
| 引入者 | 艾伦伯格与麦克莱恩，《自然等价的一般理论》，《美国数学会会刊》58(2)，231–294，1945年<sup>[1](https://zenodo.org/records/3928610)</sup> |
| 最初目的 | 艾伦伯格与麦克莱恩称范畴概念“本质上是一个辅助性的概念”，其必要性在于使每个函子都有确定的定义域与值域<sup>[3](https://people.math.osu.edu/cogdell.1/6112-Eilenberg%26MacLane-www.pdf)</sup> |
| 标准例子 | **Set**（集合与函数）、**Gp**（群与同态）、**Ring**、**R-mod**（环上的模）、**Top**（拓扑空间与连续映射）<sup>[2](https://math.ucla.edu/~sharifi/notes/homalg-ch01.html)</sup> |
| 大小区分 | 若一个范畴的对象构成一个集合，则称其为小范畴；若任意两个对象之间的态射类都构成一个集合，则称其为局部小范畴<sup>[2](https://math.ucla.edu/~sharifi/notes/homalg-ch01.html)</sup> |
| 基础地位 | 被许多人视为集合论之外数学基础的另一选择，其中对象仅在同构意义下被定义<sup>[4](https://plato.stanford.edu/entries/philosophy-mathematics/)</sup> |
| 应用 | 编程语言语义学、域理论和并发理论中的标准语言<sup>[5](https://mitpress.mit.edu/9780262326452/basic-category-theory-for-computer-scientists/)</sup> |

## 定义

一个范畴 \( \mathcal{C} \) 由一类对象构成，并且对每一对对象 \( A \) 和 \( B \)，有一类从 \( A \) 到 \( B \) 的态射，记作 \( f : A \to B \)。存在一个复合映射，将 \( f : A \to B \) 和 \( g : B \to C \) 映为 \( g \circ f : A \to C \)，并满足两个条件：每个对象 \( A \) 有一个恒等态射 \( \mathrm{id}_{A} \)，使得 \( f \circ \mathrm{id}_{A} = f \) 且 \( \mathrm{id}_{A} \circ g = g \)；复合满足结合律，即 \( h \circ (g \circ f) = (h \circ g) \circ f \)<sup>[2](https://math.ucla.edu/~sharifi/notes/homalg-ch01.html)</sup>。由定义可推出每个对象都有唯一的恒等态射，这使得以"态射"和"复合"为仅有的原始概念来公理化范畴成为可能<sup>[6](https://encyclopediaofmath.org/wiki/Category)</sup>。

该定义预设了区分集合与类的集合论公理；小范畴与大范畴之间的区分，正是集合与真类之区分在范畴论中的对应物<sup>[6](https://encyclopediaofmath.org/wiki/Category)</sup><sup> • </sup><sup>[4](https://plato.stanford.edu/entries/philosophy-mathematics/)</sup>。

## 例子

标准例子以某一类数学结构为对象、以保持结构的映射为态射：**Set** 以集合为对象、以集合间的映射为态射；**Gp** 以群与群同态为对象和态射；**Ring** 以含1的环与保持1的同态为对象和态射；对于环 \( R \)，**R-mod** 以左 \( R \)-模及其同态为对象和态射；**Top** 以拓扑空间与连续映射为对象和态射<sup>[2](https://math.ucla.edu/~sharifi/notes/homalg-ch01.html)</sup>。

有些范畴来自单个结构。一个幺半群对应一个单对象范畴，其元素作为态射；而群恰好对应那些每个态射都是同构的单对象范畴<sup>[2](https://math.ucla.edu/~sharifi/notes/homalg-ch01.html)</sup>。一个预序给出一个范畴，其中任意对象到任意对象之间至多有一个态射，复合由传递性强制给出<sup>[7](https://math.ucr.edu/home/baez/act_course/lecture_34.html)</sup>。同构在这些例子中呈现为熟悉的形式：**Set** 中的同构是双射，**Gp** 中的同构是群同构，**Top** 中的同构是同胚<sup>[2](https://math.ucla.edu/~sharifi/notes/homalg-ch01.html)</sup>。

## 函子与自然变换

一个函子 \( F : \mathcal{C} \to \mathcal{D} \) 将对象映为对象、态射映为态射，并保持恒等态射与复合。反变函子则反转态射的方向<sup>[2](https://math.ucla.edu/~sharifi/notes/homalg-ch01.html)</sup>。遗忘函子——例如从 **Gp**、**Ring** 或 **Top** 到 **Set**、把一个结构映为其底层集合的函子——是基本的例子<sup>[2](https://math.ucla.edu/~sharifi/notes/homalg-ch01.html)</sup>。

艾伦伯格与麦克莱恩引入范畴，是为了给函子和自然变换提供一个可以定义它们的框架；他们写道，范畴概念“本质上是一个辅助性的概念”，其必要性在于使每个函数都有确定的类作为定义域和值域<sup>[3](https://people.math.osu.edu/cogdell.1/6112-Eilenberg%26MacLane-www.pdf)</sup>。自然变换——函子之间的映射——成为该理论中结构间比较的核心概念<sup>[1](https://zenodo.org/records/3928610)</sup>。

## 1945年之后的发展

20世纪60年代，威廉·劳维尔（William Lawvere）勾勒出一种范畴论进路的逻辑与基础研究：他于1964年公理化了集合范畴，1966年公理化了范畴的范畴，刻画了笛卡尔闭范畴并将其与逻辑系统联系起来，还表明量词与概括模式可以刻画为伴随函子<sup>[8](https://plato.stanford.edu/archives/spr2026/entries/category-theory/)</sup>。很大程度上得益于彼得·弗雷德（Peter Freyd）和劳维尔，伴随函子在20世纪70年代初被视为范畴论的核心，该领域也成为一门自主的学科，在代数拓扑、同调代数、代数几何和泛代数中均有应用<sup>[9](https://plato.stanford.edu/archives/fall2025/entries/category-theory/)</sup>。

20世纪70年代，拓扑斯概念被应用于集合论和构造性数学，麦克莱恩提出某些拓扑斯可被视为数学的真正基础<sup>[8](https://plato.stanford.edu/archives/spr2026/entries/category-theory/)</sup><sup> • </sup><sup>[9](https://plato.stanford.edu/archives/fall2025/entries/category-theory/)</sup>。

## 作为基础的范畴论

范畴论被许多人视为集合论之外数学基础的另一种选择。与集合论不同，范畴论中的数学对象仅在同构意义下被定义，这意味着贝纳塞拉夫的识别问题无法对范畴论概念提出；粗略地说，集合论中能做的一切在范畴论中也能做，反之亦然，尽管并非总能在任一方向上自然地做到<sup>[4](https://plato.stanford.edu/entries/philosophy-mathematics/)</sup>。以范畴论语言表述的基础框架包括集合范畴的初等理论（ETCS）、范畴的范畴，以及马凯（Makkai）为抽象数学建立的结构主义基础；在《斯坦福哲学百科全书》综述看来，剩下的问题是能否为其中某一框架给出哲学上令人满意的辩护<sup>[9](https://plato.stanford.edu/archives/fall2025/entries/category-theory/)</sup>。

## 应用

范畴论以态射为语言，对性质和构造给出统一的处理，并为比较数学的不同分支——各自组织为范畴——提供了精确的框架<sup>[10](https://www.cl.cam.ac.uk/teaching/1819/L108/)</sup>。在理论计算机科学中，它是编程语言语义学、域理论和并发理论中的标准话语语言<sup>[5](https://mitpress.mit.edu/9780262326452/basic-category-theory-for-computer-scientists/)</sup>，并有助于新逻辑系统与编程语义学的发展<sup>[8](https://plato.stanford.edu/archives/spr2026/entries/category-theory/)</sup>。笛卡尔闭范畴是λ演算与函数式编程语言语义学的关键<sup>[11](https://www.cl.cam.ac.uk/teaching/2324/CAT/CATLectureNotes.pdf)</sup>，而单子概念则从范畴论被引入现代函数式编程语言的设计之中<sup>[12](https://www.cs.ox.ac.uk/teaching/courses/2026-2027/catsproofsprocs/)</sup>。

如今应用已超出数学与计算。高维范畴论——它之于范畴论，犹如高维几何之于平面几何——被用于理论物理学中研究量子群与量子场论<sup>[8](https://plato.stanford.edu/archives/spr2026/entries/category-theory/)</sup>。自2015年起每年举办应用范畴论国际会议；2025年会议于6月2日至6日在佛罗里达大学举行，报告涵盖计算机科学、概率论、化学、弦图、博弈语义学和量子计算<sup>[13](https://gataslab.org/act2025/)</sup><sup> • </sup><sup>[14](https://arxiv.org/abs/2603.07595)</sup>。

## References

1. [Eilenberg, Samuel and MacLane, Saunders (1945). General Theory of Natural Equivalences. Transactions of the American Mathematical Society 58(2), 231–294; Zenodo record.](https://zenodo.org/records/3928610)
2. [Sharifi, Romyar. Homological Algebra, Chapter 1: Category Theory, lecture notes, UCLA.](https://math.ucla.edu/~sharifi/notes/homalg-ch01.html)
3. [Eilenberg and Mac Lane (1945), General Theory of Natural Equivalences, full text, Ohio State University.](https://people.math.osu.edu/cogdell.1/6112-Eilenberg%26MacLane-www.pdf)
4. [Philosophy of Mathematics, Stanford Encyclopedia of Philosophy.](https://plato.stanford.edu/entries/philosophy-mathematics/)
5. [Pierce, Benjamin C. (1991). Basic Category Theory for Computer Scientists. MIT Press.](https://mitpress.mit.edu/9780262326452/basic-category-theory-for-computer-scientists/)
6. [Category, Encyclopedia of Mathematics.](https://encyclopediaofmath.org/wiki/Category)
7. [Baez, John. Applied Category Theory course, Lecture 34: Categories, UC Riverside.](https://math.ucr.edu/home/baez/act_course/lecture_34.html)
8. [Category Theory, Stanford Encyclopedia of Philosophy, Spring 2026 edition.](https://plato.stanford.edu/archives/spr2026/entries/category-theory/)
9. [Category Theory, Stanford Encyclopedia of Philosophy, Fall 2025 edition.](https://plato.stanford.edu/archives/fall2025/entries/category-theory/)
10. [Category Theory course L108, University of Cambridge Computer Laboratory, 2018–19.](https://www.cl.cam.ac.uk/teaching/1819/L108/)
11. [Category Theory lecture notes, University of Cambridge, 2023–24.](https://www.cl.cam.ac.uk/teaching/2324/CAT/CATLectureNotes.pdf)
12. [Categories, Proofs and Processes, University of Oxford Department of Computer Science.](https://www.cs.ox.ac.uk/teaching/courses/2026-2027/catsproofsprocs/)
13. [8th International Conference on Applied Category Theory, GATAS Lab, University of Florida.](https://gataslab.org/act2025/)
14. [Hadzihasanovic, Amar and Pacaud Lemay, Jean-Simon. Proceedings Eighth International Conference on Applied Category Theory, arXiv.](https://arxiv.org/abs/2603.07595)

---
*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: 物质世界与数学 › 数学与统计学 › 数与代数 › Algebraic structures › Universal algebra and category theory › Category theory foundations

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/category-mathematics

English original: https://www.edgepedia.org/category-mathematics
