# Kan扩张

Kan扩张是范畴论中的一种构造，它沿着另一个函子 \( K : \mathcal{C} \to \mathcal{D} \) 以泛性质的方式扩张一个函子 \( F : \mathcal{C} \to \mathcal{E} \)，产生一个在所有此类扩张中最优的函子 \( \mathcal{D} \to \mathcal{E} \)。这一概念有左、右两种变体，由丹尼尔·M·坎（Daniel M. Kan）在其1958年的论文《伴随函子》（载于《美国数学会会刊》第87卷，第294–329页）中引入<sup>[1](https://www.mathnet.ru/php/archive.phtml?jrnid=mat&option_lang=eng&paperid=86&wshow=paper)</sup>。桑德斯·麦克莱恩（Saunders Mac Lane）的口号“所有概念都是Kan扩张”反映了一个事实：极限、余极限、伴随以及米田机器都可以作为它的实例来呈现<sup>[2](https://calwoo.github.io/notes/concepts/category-theory/foundations/05-kan-extensions/)</sup><sup> • </sup><sup>[3](https://ncatlab.org/nlab/show/Kan%2Bextension)</sup>。

| 关键事实 | 详情 |
|---|---|
| 起源 | 丹尼尔·M·坎，《伴随函子》，《美国数学会会刊》第87卷（1958年），第294–329页<sup>[1](https://www.mathnet.ru/php/archive.phtml?jrnid=mat&option_lang=eng&paperid=86&wshow=paper)</sup> |
| 整体定义 | \( \mathrm{Lan}_K \) 与 \( \mathrm{Ran}_K \)（当它们存在时）分别是前复合函子 \( K^* : [\mathcal{D}, \mathcal{E}] \to [\mathcal{C}, \mathcal{E}] \) 的左伴随与右伴随<sup>[3](https://ncatlab.org/nlab/show/Kan%2Bextension)</sup> |
| 逐点左公式 | \( (\mathrm{Lan}_K F)(d) = \mathrm{colim}_{(K \downarrow d)} F \circ \Pi_d \)；只要 \( \mathcal{C} \) 是小范畴且 \( \mathcal{E} \) 具有所需的余极限即存在<sup>[2](https://calwoo.github.io/notes/concepts/category-theory/foundations/05-kan-extensions/)</sup> |
| 逐点右公式 | \( (\mathrm{Ran}_K F)(d) = \lim_{(d \downarrow K)} F \circ \Pi_d^{\mathrm{op}} \)；只要 \( \mathcal{E} \) 是完备的即存在<sup>[2](https://calwoo.github.io/notes/concepts/category-theory/foundations/05-kan-extensions/)</sup> |
| 余端形式 | \( (\mathrm{Lan}_K F)(d) = \int^{c \in \mathcal{C}} \mathcal{D}(Kc, d) \otimes Fc \)，右扩张有对偶的端公式<sup>[2](https://calwoo.github.io/notes/concepts/category-theory/foundations/05-kan-extensions/)</sup> |
| 特殊情形 | 余极限与极限是沿唯一函子到终范畴的Kan扩张；自由余完备化与稠密性定理是沿米田嵌入的Kan扩张<sup>[2](https://calwoo.github.io/notes/concepts/category-theory/foundations/05-kan-extensions/)</sup><sup> • </sup><sup>[4](https://jakobscholbach.github.io/categories.pdf)</sup> |
| 应用 | 几何中的层拉回，以及函子式数据库理论中的Σ与Π数据迁移函子<sup>[4](https://jakobscholbach.github.io/categories.pdf)</sup><sup> • </sup><sup>[5](https://www.sciencedirect.com/science/article/pii/S0890540112001010)</sup> |

## 定义

整体定义通过伴随来展开。对于函子 \( p : \mathcal{C} \to \mathcal{C}' \) 和任意范畴 \( \mathcal{D} \)，与 \( p \) 的前复合诱导出一个函子 \( p^* : [\mathcal{C}', \mathcal{D}] \to [\mathcal{C}, \mathcal{D}] \)。若 \( p^* \) 有左伴随，该伴随即为沿 \( p \) 的左Kan扩张运算，记作 \( p_! \) 或 \( \mathrm{Lan}_p \)；若 \( p^* \) 有右伴随，则为右Kan扩张运算，记作 \( p_* \) 或 \( \mathrm{Ran}_p \)<sup>[3](https://ncatlab.org/nlab/show/Kan%2Bextension)</sup>。

等价地，可以通过泛性质来定义单个函子的扩张。函子 \( F : \mathcal{C} \to \mathcal{D} \) 沿 \( p \) 的左Kan扩张是一个函子 \( \mathrm{Lan}_p F : \mathcal{C}' \to \mathcal{D} \)，配备一个自然变换 \( \eta : F \Rightarrow p^* \mathrm{Lan}_p F \)，使得任何其他自然变换 \( F \Rightarrow p^* G \) 都通过它唯一地分解。右Kan扩张是对偶的，自然变换的方向相反<sup>[3](https://ncatlab.org/nlab/show/Kan%2Bextension)</sup>。nLab区分整体Kan扩张与局部Kan扩张：前者扩张给定定义域和余定义域的每个函子，后者只扩张单个函子，且即使其他函子的扩张不存在，它也可能存在<sup>[3](https://ncatlab.org/nlab/show/Kan%2Bextension)</sup>。

## 逐点公式

当目标范畴具有足够的极限或余极限时，Kan扩张可以逐对象地计算。若 \( K : \mathcal{C} \to \mathcal{D} \) 和 \( F : \mathcal{C} \to \mathcal{E} \)，其中 \( \mathcal{C} \) 是小范畴，且 \( \mathcal{E} \) 对每个 \( d \in \mathcal{D} \) 都具有形状为 \( (K \downarrow d) \) 的所有余极限，则左Kan扩张存在，并由下式给出

\[ (\mathrm{Lan}_K F)(d) \;=\; \mathrm{colim}\bigl(F \circ \Pi_d : (K \downarrow d) \to \mathcal{E}\bigr), \]

其中逗号范畴 \( (K \downarrow d) \) 的对象是配对 \( (c, f : Kc \to d) \)<sup>[2](https://calwoo.github.io/notes/concepts/category-theory/foundations/05-kan-extensions/)</sup>。对偶地，若 \( \mathcal{E} \) 具有形状为 \( (d \downarrow K) \) 的所有极限，

\[ (\mathrm{Ran}_K F)(d) \;=\; \lim\bigl(F \circ \Pi_d^{\mathrm{op}} : (d \downarrow K) \to \mathcal{E}\bigr), \]

极限取遍所有配对 \( (c, f : d \to Kc) \)，值为 \( Fc \)<sup>[2](https://calwoo.github.io/notes/concepts/category-theory/foundations/05-kan-extensions/)</sup>。存在性并非自动成立：若 \( \mathcal{E} \) 缺少所需的余极限或极限，则公式和扩张都不一定存在。当 \( \mathcal{C} \) 是小范畴且 \( \mathcal{E} \) 余完备时，逐点左Kan扩张总是存在；当 \( \mathcal{E} \) 完备时，右Kan扩张总是存在<sup>[2](https://calwoo.github.io/notes/concepts/category-theory/foundations/05-kan-extensions/)</sup>。

在张量于集合上的范畴中，左公式取余端形式 \( (\mathrm{Lan}_K F)(d) = \int^{c \in \mathcal{C}} \mathcal{D}(Kc, d) \otimes Fc \)，而在 \( \mathbf{Set} \) 值的情形下这变为稠密性公式 \( \int^{c} \mathcal{D}(Kc, d) \times Fc \)；余张量范畴中的右扩张使用端 \( \int_{c} Fc^{\mathcal{D}(d, Kc)} \)<sup>[2](https://calwoo.github.io/notes/concepts/category-theory/foundations/05-kan-extensions/)</sup>。

**逐点与普通。** 一个Kan扩张若由这些公式计算得出，或等价地，若被所有可表示函子保持，则称为逐点的——这一刻画记载于麦克莱恩的《工作数学家的范畴》（定理X.5.3）<sup>[3](https://ncatlab.org/nlab/show/Kan%2Bextension)</sup><sup> • </sup><sup>[2](https://calwoo.github.io/notes/concepts/category-theory/foundations/05-kan-extensions/)</sup>。非逐点扩张确实存在：它们满足抽象的泛性质，但不能由局部公式计算，且性质较差。在实践中，数学中出现的几乎每个Kan扩张都是逐点的，一些作者（如马克斯·凯利（Max Kelly））将“Kan扩张”之名保留给逐点概念，而用“弱Kan扩张”指仅仅满足泛性质的那种<sup>[3](https://ncatlab.org/nlab/show/Kan%2Bextension)</sup>。绝对Kan扩张——即被所有从余定义域出发的函子保持的Kan扩张——总是逐点的；伴随函子提供了最突出的例子<sup>[3](https://ncatlab.org/nlab/show/Kan%2Bextension)</sup>。

## 所有概念都是Kan扩张

一旦所涉及的函子选择正确，麦克莱恩的口号就成为一个定理<sup>[2](https://calwoo.github.io/notes/concepts/category-theory/foundations/05-kan-extensions/)</sup>：

1. **余极限。** 对于 \( F : \mathcal{I} \to \mathcal{E} \) 和 \( ! : \mathcal{I} \to \mathbf{1} \)（到终范畴的唯一函子），\( \mathrm{colim}\, F = (\mathrm{Lan}_! F)(*) \)；逗号范畴 \( (! \downarrow *) \) 就是 \( \mathcal{I} \)，因此逐点公式退化为余极限<sup>[2](https://calwoo.github.io/notes/concepts/category-theory/foundations/05-kan-extensions/)</sup>。
2. **极限。** 对偶地，\( \mathrm{lim}\, F = (\mathrm{Ran}_! F)(*) \)<sup>[2](https://calwoo.github.io/notes/concepts/category-theory/foundations/05-kan-extensions/)</sup>。
3. **自由余完备化。** 对于小范畴 \( \mathcal{C} \) 及其米田嵌入 \( y : \mathcal{C} \to \hat{\mathcal{C}} = \mathrm{PSh}(\mathcal{C}) \)，任何到余完备范畴 \( \mathcal{D} \) 的函子 \( F : \mathcal{C} \to \mathcal{D} \) 都在唯一同构的意义下唯一地扩张为保持余极限的函子 \( \mathrm{Lan}_y F : \hat{\mathcal{C}} \to \mathcal{D} \)；这说明预层范畴是 \( \mathcal{C} \) 的自由余完备化<sup>[4](https://jakobscholbach.github.io/categories.pdf)</sup>。
4. **稠密性。** 由于米田嵌入是全忠实的，\( \mathrm{Lan}_y\, y \cong \mathrm{Id} \)，这就是通常所谓的稠密性定理或余米田定理：每个预层都是可表示函子的典范余极限<sup>[6](https://www.math.harvard.edu/media/lehner.pdf)</sup>。

最近的一种重新表述精确地刻画了如下直觉：逐点左Kan扩张是一种“部分余极限”，其中图表的部分被其余极限所替代；该工作的主要结果将逐点左Kan扩张等同于图表单子与小预层单子的棒构造中余极限的部分求值<sup>[7](https://arxiv.org/abs/2101.04531)</sup>。

## 例子与应用

**层拉回。** 对于拓扑空间的连续映射 \( f : X \to Y \)，前复合给出预层范畴上的前推函子 \( f_* : \mathrm{PSh}(X) \to \mathrm{PSh}(Y) \)。拉回函子 \( f^* \) 是 \( X \) 的米田嵌入沿 \( f^{-1} : \mathrm{Open}(Y) \to \mathrm{Open}(X) \) 的左Kan扩张；它是将可表示函子 \( \mathrm{Hom}(-, U) \) 送到 \( \mathrm{Hom}(-, f^{-1}U) \) 的唯一保持余极限的函子，并且是 \( f_* \) 的左伴随，这使其成为几何与拓扑中的核心函子<sup>[4](https://jakobscholbach.github.io/categories.pdf)</sup>。nLab将此列为由逐点公式计算的左Kan扩张的基本例子<sup>[3](https://ncatlab.org/nlab/show/Kan%2Bextension)</sup>。

**数据迁移。** 在数据库的函子式方法中，模式是一个小范畴，实例是其上的集合值函子。模式的态射在实例范畴之间诱导出三个数据迁移函子 \( \Delta \)、\( \Sigma \) 和 \( \Pi \)，它们同时参数化所有表上的投影、并和连接；\( \Sigma \) 和 \( \Pi \) 由沿模式态射的左Kan扩张和右Kan扩张给出<sup>[5](https://www.sciencedirect.com/science/article/pii/S0890540112001010)</sup>。

**同伦论。** 同伦Kan扩张用同伦范畴论和富化范畴论来模拟 \( (\infty, 1) \)-范畴中的Kan扩张；作为特殊情形，它们退化为同伦极限与同伦余极限，后者又模拟 \( (\infty, 1) \)-范畴的极限与余极限<sup>[8](https://ncatlab.org/nlab/show/homotopy%2BKan%2Bextension)</sup>。在此设定下，左导出函子可以刻画为沿局部化函子的Kan扩张，而逐点Kan扩张的条件——尽管是用极限和余极限陈述的——对于取值于同伦范畴的函子来说也是恰当的，尽管这类范畴中极限和余极限都很少<sup>[9](https://library.slmath.org/books/Book69/files/wholebook.pdf)</sup>。

**与Kan提升的对比。** 作为对偶概念的Kan提升表现较差：提升一般不能作为余极限或极限来计算，因为函子的对偶一般不再是函子。相比之下，扩张理论通过可表示函子的保持性，对逐点扩张给出了简洁的刻画<sup>[10](https://people.math.rochester.edu/faculty/doug/otherpapers/loregian3.pdf)</sup>。

## References

1. [D. M. Kan, "Adjoint functors", Trans. Amer. Math. Soc. 87 (1958), 294–329, Math-Net.Ru](https://www.mathnet.ru/php/archive.phtml?jrnid=mat&option_lang=eng&paperid=86&wshow=paper)
2. [Category Theory V: Kan Extensions, Calvin Woo's blog](https://calwoo.github.io/notes/concepts/category-theory/foundations/05-kan-extensions/)
3. [Kan extension, nLab](https://ncatlab.org/nlab/show/Kan%2Bextension)
4. [Jakob Scholbach, lecture notes on category theory, §8.3 The free cocompletion](https://jakobscholbach.github.io/categories.pdf)
5. [Functorial data migration, Information and Computation 217 (2012), 31–51](https://www.sciencedirect.com/science/article/pii/S0890540112001010)
6. ["All Concepts are Kan Extensions", Harvard lecture notes](https://www.math.harvard.edu/media/lehner.pdf)
7. [Kan extensions are partial colimits, arXiv:2101.04531](https://arxiv.org/abs/2101.04531)
8. [Homotopy Kan extension, nLab](https://ncatlab.org/nlab/show/homotopy%2BKan%2Bextension)
9. [Higher Algebra, Section 2.4 Derived functors between model categories, MSRI](https://library.slmath.org/books/Book69/files/wholebook.pdf)
10. [Coend calculus, Fosco Loregian](https://people.math.rochester.edu/faculty/doug/otherpapers/loregian3.pdf)

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

Topic: 物质世界与数学 › 数学与统计学 › 数与代数 › Algebraic structures › Universal algebra and category theory › Limits, colimits, and completions

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/kan-extension

English original: https://www.edgepedia.org/kan-extension
