Kan extension

From Wikipedia, the free encyclopedia
Jump to: navigation, search

Kan extensions are universal constructs in category theory, a branch of mathematics. They are closely related to adjoints, but are also related to limits and ends. They are named after Daniel M. Kan, who constructed certain (Kan) extensions using limits in 1960.

An early use of (what is now known as) a Kan extension from 1956 was in homological algebra to compute derived functors.

In Categories for the Working Mathematician Saunders Mac Lane titled a section "All Concepts Are Kan Extensions", and went on to write that

The notion of Kan extensions subsumes all the other fundamental concepts of category theory.

Kan extensions generalize the notion of extending a function defined on a subset to a function defined on the whole set. The definition, not surprisingly, is at a high level of abstraction. When specialised to posets, it becomes a relatively familiar type of question on 'constrained optimization'.


A Kan extension proceeds from the data of three categories

\mathbf{A}, \mathbf{B}, \mathbf{C}

and two functors

X \colon \mathbf{A} \to \mathbf{C}, F \colon \mathbf{A} \to \mathbf{B},

and comes in two varieties: the "left" Kan extension and the "right" Kan extension of X along F.

It amounts to finding the dashed arrow and the 2-cell \eta in the following diagram:

Right Kan Extension

Formally, the right Kan extension of X along F consists of a functor R \colon \mathbf{B} \to \mathbf{C} and a natural transformation \eta \colon RF \to X which is couniversal with respect to the specification, in the sense that for any functor M \colon \mathbf{B} \to \mathbf{C} and natural transformation \mu \colon MF \to X, a unique natural transformation \delta \colon M \to R is defined and fits into a commutative diagram

Right Kan extension universal property diagram.PNG
(where \delta_F is the natural transformation with \delta_F(a) = \delta(Fa) \colon MF(a) \to RF(a) for any object a of \mathbf{A}).

The functor R is often written \operatorname{Ran}_FX.

As with the other universal constructs in category theory, the "left" version of the Kan extension is dual to the "right" one and is obtained by replacing all categories by their opposites. The effect of this on the description above is merely to reverse the direction of the natural transformations (recall that a natural transformation T between the functors F,G \colon \mathbf{C} \to \mathbf{D} consists of the data of an arrow T(a) \colon F(a) \to G(a) for every object a of \mathbf{C}, satisfying a "naturality" property. When we pass to the opposite categories, the source and target of T(a) are swapped, causing T to act in the opposite direction).

This gives rise to the alternate description: the left Kan extension of X along F consists of a functor L \colon \mathbf{B} \to \mathbf{C} and a natural transformation \epsilon \colon X \to L F which are universal with respect to this specification, in the sense that for any other functor M \colon \mathbf{B} \to \mathbf{C} and natural transformation \alpha \colon X \to M F, a unique natural transformation \sigma \colon L \to M exists and fits into a commutative diagram:

Kan extension universal property diagram.png
(where \sigma_F is the natural transformation with \sigma_F(a) = \sigma(Fa) \colon LF(a) \to MF(a) for any object a of \mathbf{A}).

The functor L is often written \operatorname{Lan}_FX.

The use of the word "the" (as in "the left Kan extension") is justified by the fact that, as with all universal constructions, if the object defined exists, then it is unique up to unique isomorphism. In this case, that means that (for left Kan extensions) if L, M are two left Kan extensions of X along F, and \epsilon, \alpha are the corresponding transformations, then there exists a unique isomorphism of functors \sigma \colon L \to M such that the second diagram above commutes. Likewise for right Kan extensions.


Kan extensions as (co)limits[edit]

Suppose that X:\mathbf{A}\to\mathbf{C} and F:\mathbf{A}\to\mathbf{B} are two functors. If A is small and C is cocomplete, then there exists a left Kan extension \mathrm{Lan}_FX of X along F, defined at each object b of B by

(\mathrm{Lan}_F X)(b) = \varinjlim_{f:Fa \to b} X(a)

where the colimit is taken over the comma category (F \downarrow b).

Dually, if A is small and C is complete, then right Kan extensions along F exist, and can be computed as limits.

Kan extensions as coends[edit]

Suppose that

K:\mathbf{M}\to\mathbf{C} and T:\mathbf{M}\to\mathbf{A}

are two functors such that for all objects m and m' of M and all objects c of C, the copowers \mathbf{C}(Km',c)\cdot Tm exist in A. Then the functor T has a left Kan extension L along K, which is such that, for every object c of C,

Lc=(\mathrm{Lan}_KT)c=\int^m\mathbf{C}(Km,c)\cdot Tm

when the above coend exists for every object c of C.

Dually, right Kan extensions can be computed by the formula


Limits as Kan extensions[edit]

The limit of a functor F:C\to D can be expressed as a Kan extension by

\mathrm{lim}F=\mathrm{Ran}_E F

where E is the unique functor from C to 𝟙 (the category with one object and one arrow, a terminal object in Cat). The colimit of F can be expressed similarly by

\mathrm{colim}F=\mathrm{Lan}_E F.