# 笛卡尔闭范畴

**笛卡尔闭范畴**（cartesian closed category）是具有有限积的范畴，并且对每一对对象 A 和 B，都有一个指数对象 B^A，其行为如同从 A 到 B 的函数空间，连同满足泛性质的求值映射 ε : B^A × A → B。在集合范畴中，B^A 是从 A 到 B 的所有函数构成的集合，ε 将 (f, a) 映为 f(a)；定义正是对这一情形的抽象。<sup>[1](https://ncatlab.org/nlab/files/Streicher-CategoryTheory.pdf)</sup>

| 关键事实 | 细节 |
|---|---|
| 定义 | 一个范畴是笛卡尔闭的，当且仅当它具有有限积和指数：对所有 A、B，存在对象 B^A 及 ε : B^A × A → B，使得每个 f : C × A → B 都有唯一的映射 λ(f) : C → B^A 满足 f = ε ∘ (λ(f) × A)<sup>[1](https://ncatlab.org/nlab/files/Streicher-CategoryTheory.pdf)</sup> |
| 等价形式 | C 是笛卡尔闭的，当且仅当它具有有限积，且对每个 A、B，预层 C((−) × A, B) 是可表示的<sup>[1](https://ncatlab.org/nlab/files/Streicher-CategoryTheory.pdf)</sup> |
| 基本例子 | Set、Pos（偏序集与单调映射）、Cpo（链完备偏序集与 Scott 连续映射），以及对小范畴 C 的每个预层范畴 Set^(C^op)<sup>[1](https://ncatlab.org/nlab/files/Streicher-CategoryTheory.pdf)</sup> |
| 非例子 | （阿贝尔）群、向量空间和拓扑空间的范畴不是笛卡尔闭的<sup>[1](https://ncatlab.org/nlab/files/Streicher-CategoryTheory.pdf)</sup> |
| 逻辑意义 | 笛卡尔闭范畴、简单类型 lambda 演算和命题直觉主义逻辑通过兰贝克–柯里–霍华德对应相互关联<sup>[2](https://www.sciencedirect.com/science/article/abs/pii/S0022404916301013)</sup> |
| 分配律 | 具有有限余积的（弱）笛卡尔闭范畴是分配的，即积对余积分配<sup>[3](https://arxiv.org/abs/1406.0961)</sup> |
| 唯一性 | 指数对象若存在，则在唯一同构的意义下唯一<sup>[4](https://ncatlab.org/nlab/show/exponential%20object)</sup> |

## 定义

设 C 是具有有限积的范畴。指数对象 B^A 是一个对象，配备求值态射 ε : B^A × A → B，且具有泛性：对每个对象 C 和态射 f : C × A → B，存在唯一的态射 λ(f) : C → B^A 使得 f = ε ∘ (λ(f) × A)。<sup>[1](https://ncatlab.org/nlab/files/Streicher-CategoryTheory.pdf)</sup> 当对每一对 A、B 都存在这样的对象时，范畴 C 称为笛卡尔闭的。<sup>[1](https://ncatlab.org/nlab/files/Streicher-CategoryTheory.pdf)</sup>

泛性质可以不用逐个选取映射来重新表述：C 是笛卡尔闭的，当且仅当对每个 A 和 B，函子 C((−) × A, B) 是可表示的，由 B^A 表示，而 ε 是 B^A 上恒等映射的像。<sup>[1](https://ncatlab.org/nlab/files/Streicher-CategoryTheory.pdf)</sup> 等价地，存在自然双射

\[ \mathscr{C}(C \times A, B) \cong \mathscr{C}(C, B^{A}) \]

对 C 自然，这说明函子 (−) × A 有右伴随。<sup>[5](https://math-cs-compass.com/Mathematics/Discrete/cartesian_closed_categories.html)</sup> 由于泛构造将对象确定到唯一同构，B^A 的任意两种选择都是典范同构的。<sup>[4](https://ncatlab.org/nlab/show/exponential%20object)</sup>

映射 λ(f) 称为指数转置，或 f 的柯里化，有时写作 λ(e) 以向 lambda 演算致敬，因为在笛卡尔闭范畴的内部逻辑中，它恰好就是 lambda 抽象。<sup>[4](https://ncatlab.org/nlab/show/exponential%20object)</sup> 一个经常使用的基本引理是：对适当的 f 和 g，有 λ(f) ∘ g = λ(f ∘ (g × A))。<sup>[1](https://ncatlab.org/nlab/files/Streicher-CategoryTheory.pdf)</sup>

## 例子

**集合与序论范畴。** 集合与函数的范畴 Set 是笛卡尔闭的：B^A 是从 A 到 B 的函数构成的集合，求值将 (f, a) 映为 f(a)；给定 f : C × A → B，唯一的转置满足 g(c)(a) = f(c, a)。<sup>[1](https://ncatlab.org/nlab/files/Streicher-CategoryTheory.pdf)</sup> 偏序集与单调函数的范畴 Pos 以及链完备偏序集与 Scott 连续函数的范畴 Cpo 也是笛卡尔闭的。<sup>[1](https://ncatlab.org/nlab/files/Streicher-CategoryTheory.pdf)</sup>

**预层范畴。** 对任意小范畴 C，预层的范畴 Set^(C^op) 是笛卡尔闭的。米田引理决定了指数的形状，事实上对 C 的每个对象 I，有 B^A(I) = Set^(C^op)(Y(I) × A, B)，求值由 ε_I(φ, a) = φ_I(id_I, a) 给出。<sup>[1](https://ncatlab.org/nlab/files/Streicher-CategoryTheory.pdf)</sup>

**范畴本身。** 小范畴的范畴 Cat 是笛卡尔闭的，指数 C^B 由函子范畴 [B, C] 给出。<sup>[5](https://math-cs-compass.com/Mathematics/Discrete/cartesian_closed_categories.html)</sup>

**便利的空间范畴。** 所有拓扑空间的范畴 Top 不是笛卡尔闭的，但紧生成空间的范畴 kTop 是：其积是通常积拓扑的 k 化，指数的拓扑是紧开拓扑的 k 化。<sup>[6](https://math.jhu.edu/~eriehl/cathtpy.pdf)</sup> 这就是为什么代数拓扑学家经常在 kTop 中工作，在那里积在两个变量中都保持余极限，且从单纯集到空间的几何实现保持积。<sup>[6](https://math.jhu.edu/~eriehl/cathtpy.pdf)</sup>

## 非例子

（阿贝尔）群、向量空间和拓扑空间的范畴不是笛卡尔闭的。<sup>[1](https://ncatlab.org/nlab/files/Streicher-CategoryTheory.pdf)</sup> 在阿贝尔群和向量空间中，零对象也是终对象，因此如果指数 B^A 存在，hom 集双射 C(B, B^A) ≅ C(B × A, B) 将对所有 A 和 B 恰好给出一个从 A 到 B 的态射，而这是错误的。<sup>[1](https://ncatlab.org/nlab/files/Streicher-CategoryTheory.pdf)</sup>

可测空间的范畴 Meas 也不是笛卡尔闭的，这一事实被记录为 Heunen、Kammar、Staton 和 Yang 的《高阶概率论的便利范畴》中的命题 6，引用了 Aumann 的一个更早的结果。<sup>[7](https://mathoverflow.net/questions/336067/exponential-objects-in-the-category-of-measurable-spaces)</sup> 一个范畴论论证说明了原因：如果 Meas 是笛卡尔闭的，函子 (−) × Y 将是左伴随并保持余积，但对于元素多于 2^(ℵ₀) 个的集合 Y，对角线 Δ = {(y, y) | y ∈ Y} 属于 Y × Y 上的幂集 σ-代数，却不属于由矩形生成的积 σ-代数，因此 Y 的各个单点分支的余积不被保持。<sup>[7](https://mathoverflow.net/questions/336067/exponential-objects-in-the-category-of-measurable-spaces)</sup>

对于拓扑空间，情况更为微妙：空间 X 在 Top 中可指数化，当且仅当 X 是核心紧的，但核心紧空间的全子范畴仍然不是笛卡尔闭的，因为两个核心紧空间的指数 Y^X 本身不必是核心紧的。<sup>[8](https://mathoverflow.net/questions/82704/why-the-category-of-core-compact-spaces-with-continuous-maps-is-not-cartesian-cl)</sup>

## 与 lambda 演算和逻辑的联系

笛卡尔闭范畴最深刻的用途是作为类型化计算的语义。兰贝克–柯里–霍华德对应，以其最简单的形式，将笛卡尔闭范畴、简单类型 lambda 演算和命题直觉主义逻辑联系起来：积建模合取，指数建模蕴含，lambda 抽象对应于指数转置。<sup>[2](https://www.sciencedirect.com/science/article/abs/pii/S0022404916301013)</sup> Lambek 和 Scott 证明了类型化 lambda 演算、高阶逻辑的一种表述和笛卡尔闭范畴本质上是同一种结构。<sup>[9](https://books.google.com/books?id=6PY_emBeGjUC)</sup> 麦吉尔大学数学教授 Joachim Lambek 在一系列论文中发展了这一路线，包括《演绎系统与范畴 III》（1972）和《从 λ-演算到笛卡尔闭范畴》（1980）。<sup>[10](https://plato.stanford.edu/archives/spr2021/entries/category-theory/index.html)</sup>

这种对应不仅仅是装饰性的。为类型化 lambda 演算提供语义的适当数学宇宙是笛卡尔闭范畴，带有终对象 1、二元积 × 和指数 ⇒。<sup>[11](https://www.cambridge.org/core/journals/mathematical-structures-in-computer-science/article/semantic-analysis-of-normalisation-by-evaluation-for-typed-lambda-calculus/E3727362B3E059149680CC3482FFDCFC)</sup> 自由笛卡尔闭范畴作为语法模型：函数式机器演算——一种携带状态和非确定性等效应的 lambda 演算推广——的范畴语义，在模一个等式理论的意义下，由自由笛卡尔闭范畴给出。<sup>[12](https://arxiv.org/abs/2305.16073)</sup> 这种联系甚至影响了实现：范畴抽象机器，一种函数式语言的实用实现技术，就是基于笛卡尔闭范畴与类型化 lambda 演算之间的对应。<sup>[13](https://people.csail.mit.edu/jgross/personal-website/papers/academic-papers-local/repository.cmu.edu__cgi__viewcontent.cgi_article%3D2846_context%3Dcompsci.pdf)</sup>

**变体。** 局部笛卡尔闭范畴是具有终对象且每个切片范畴都是笛卡尔闭的范畴；它们建模带有外延恒等类型以及 Σ 和 Π 类型的直觉主义类型论，拉回函子的伴随表示这两个类型构造子。<sup>[14](https://plato.stanford.edu/entries/type-theory-intuitionistic/)</sup> 在 Lawvere 的超教义中——类型化谓词逻辑的范畴模型——每个纤维范畴 P(A) 是笛卡尔闭的，合取和蕴含由积和指数建模。<sup>[14](https://plato.stanford.edu/entries/type-theory-intuitionistic/)</sup> 这种对应也被提升到笛卡尔闭双范畴，即带有弱积和弱指数的（在同构意义下的）2-范畴，它们出现在逻辑、范畴代数和博弈语义中。<sup>[15](https://arxiv.org/abs/2007.00624)</sup>

## 代数推论

笛卡尔闭性除了提供函数对象之外还有结构性的推论。一个学界熟知的结果——在 2011 年的一篇笔记中用显式构造证明——是：具有有限余积的（弱）笛卡尔闭范畴是分配的，即积对余积分配，如 A × (B + C) ≅ A × B + A × C。<sup>[3](https://arxiv.org/abs/1406.0961)</sup> 证明利用了指数函子是积函子的右伴随这一事实。<sup>[3](https://arxiv.org/abs/1406.0961)</sup> 笛卡尔闭范畴在附加假设下还支持进一步的构造，如可定义自函子的最小不动点；Lambek 证明了弱多项式积存在于任何具有有限多个对象的笛卡尔闭范畴中，以及二阶多态 lambda 演算的任何模型中，尽管这样的范畴不必具有等化子。<sup>[16](https://www.cambridge.org/core/journals/mathematical-structures-in-computer-science/article/abs/least-fixpoints-of-endofunctors-of-cartesian-closed-categories/E41F632A8172C5DD63959F4A6ACE9BF0)</sup>

## 历史

范畴语义学诞生于 F. William Lawvere 1963 年关于代数理论的学位论文，其中理论是具有有限积的范畴，模型是保持有限积的函子；Lawvere 后来在其 1969 年的工作《对角论证与笛卡尔闭范畴》中明确引入了笛卡尔闭范畴。<sup>[17](https://math.ucr.edu/home/baez/qg-fall2006/ccc.html)</sup><sup> • </sup><sup>[10](https://plato.stanford.edu/archives/spr2021/entries/category-theory/index.html)</sup> 与 lambda 演算和逻辑的综合，由 Lambek 和 Scott 1986 年的著作《高阶范畴逻辑导论》所巩固，至今仍是类型化函数式编程语言语义的标准参考框架。<sup>[9](https://books.google.com/books?id=6PY_emBeGjUC)</sup>

## References

1. [Streicher, T. Category Theory lecture notes, Chapter 11: Cartesian Closed Categories and λ-Calculus](https://ncatlab.org/nlab/files/Streicher-CategoryTheory.pdf)
2. [Logical systems I: Internal calculi, Journal of Algebra](https://www.sciencedirect.com/science/article/abs/pii/S0022404916301013)
3. [Cartesian closed categories are distributive, arXiv:1406.0961](https://arxiv.org/abs/1406.0961)
4. [Exponential object, nLab](https://ncatlab.org/nlab/show/exponential%20object)
5. [Cartesian Closed Categories, MATH-CS COMPASS](https://math-cs-compass.com/Mathematics/Discrete/cartesian_closed_categories.html)
6. [Riehl, E. Categorical Homotopy Theory, Chapter 6](https://math.jhu.edu/~eriehl/cathtpy.pdf)
7. [Exponential objects in the category of measurable spaces, MathOverflow](https://mathoverflow.net/questions/336067/exponential-objects-in-the-category-of-measurable-spaces)
8. [Why the category of core-compact spaces is not cartesian closed, MathOverflow](https://mathoverflow.net/questions/82704/why-the-category-of-core-compact-spaces-with-continuous-maps-is-not-cartesian-cl)
9. [Lambek, J. and Scott, P. J. Introduction to Higher-Order Categorical Logic, Cambridge University Press (1988)](https://books.google.com/books?id=6PY_emBeGjUC)
10. [Category Theory, Stanford Encyclopedia of Philosophy](https://plato.stanford.edu/archives/spr2021/entries/category-theory/index.html)
11. [Semantic analysis of normalisation by evaluation for typed lambda calculus, Mathematical Structures in Computer Science](https://www.cambridge.org/core/journals/mathematical-structures-in-computer-science/article/semantic-analysis-of-normalisation-by-evaluation-for-typed-lambda-calculus/E3727362B3E059149680CC3482FFDCFC)
12. [Barrett, C. On the Simply-Typed Functional Machine Calculus, arXiv:2305.16073](https://arxiv.org/abs/2305.16073)
13. [A taste of category theory for computer scientists](https://people.csail.mit.edu/jgross/personal-website/papers/academic-papers-local/repository.cmu.edu__cgi__viewcontent.cgi_article%3D2846_context%3Dcompsci.pdf)
14. [Intuitionistic Type Theory, Stanford Encyclopedia of Philosophy](https://plato.stanford.edu/entries/type-theory-intuitionistic/)
15. [Cartesian closed bicategories: type theory and coherence, arXiv:2007.00624](https://arxiv.org/abs/2007.00624)
16. [Lambek, J. Least fixpoints of endofunctors of cartesian closed categories, Mathematical Structures in Computer Science](https://www.cambridge.org/core/journals/mathematical-structures-in-computer-science/article/abs/least-fixpoints-of-endofunctors-of-cartesian-closed-categories/E41F632A8172C5DD63959F4A6ACE9BF0)
17. [Cartesian closed categories and the λ-calculus, John Baez course notes](https://math.ucr.edu/home/baez/qg-fall2006/ccc.html)

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

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

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/cartesian-closed-category

English original: https://www.edgepedia.org/cartesian-closed-category
