Kan extension

From HandWiki
Short description: Category theory constructs

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.

Definition

A Kan extension proceeds from the data of three categories

[math]\displaystyle{ \mathbf{A}, \mathbf{B}, \mathbf{C} }[/math]

and two functors

[math]\displaystyle{ X : \mathbf{A} \to \mathbf{C}, F : \mathbf{A} \to \mathbf{B} }[/math],

and comes in two varieties: the "left" Kan extension and the "right" Kan extension of [math]\displaystyle{ X }[/math] along [math]\displaystyle{ F }[/math].

The right Kan extension amounts to finding the dashed arrow and the natural transformation [math]\displaystyle{ \epsilon }[/math] in the following diagram:

Right Kan Extension

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

RightKanExtension universal property.svg

where [math]\displaystyle{ \delta_F }[/math] is the natural transformation with [math]\displaystyle{ \delta_F(a) = \delta(Fa): MF(a) \to RF(a) }[/math] for any object [math]\displaystyle{ a }[/math] of [math]\displaystyle{ \mathbf{A}. }[/math]

The functor R is often written [math]\displaystyle{ \operatorname{Ran}_FX }[/math].

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 [math]\displaystyle{ \tau }[/math] between the functors [math]\displaystyle{ F,G: \mathbf{C} \to \mathbf{D} }[/math] consists of having an arrow [math]\displaystyle{ \tau(a): F(a) \to G(a) }[/math] for every object [math]\displaystyle{ a }[/math] of [math]\displaystyle{ \mathbf{C} }[/math], satisfying a "naturality" property. When we pass to the opposite categories, the source and target of [math]\displaystyle{ \tau(a) }[/math] are swapped, causing [math]\displaystyle{ \tau }[/math] to act in the opposite direction).

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

Left Kan Extension LeftKanExtension universal property.svg

where [math]\displaystyle{ \sigma_F }[/math] is the natural transformation with [math]\displaystyle{ \sigma_F(a) = \sigma(Fa): LF(a) \to MF(a) }[/math] for any object [math]\displaystyle{ a }[/math] of [math]\displaystyle{ \mathbf{A} }[/math].

The functor L is often written [math]\displaystyle{ \operatorname{Lan}_FX }[/math].

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 [math]\displaystyle{ L, M }[/math] are two left Kan extensions of [math]\displaystyle{ X }[/math] along [math]\displaystyle{ F }[/math], and [math]\displaystyle{ \eta, \alpha }[/math] are the corresponding transformations, then there exists a unique isomorphism of functors [math]\displaystyle{ \sigma: L \to M }[/math] such that the second diagram above commutes. Likewise for right Kan extensions.

Properties

Kan extensions as (co)limits

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

[math]\displaystyle{ (\operatorname{Lan}_F X)(b) = \varinjlim_{f:Fa \to b} X(a) }[/math]

where the colimit is taken over the comma category [math]\displaystyle{ (F \downarrow \operatorname{const}_b) }[/math], where [math]\displaystyle{ \operatorname{const}_b\colon \ast\to \mathbf{B}, \ast\mapsto b }[/math] is the constant functor. Dually, if A is small and C is complete, then right Kan extensions along [math]\displaystyle{ F }[/math] exist, and can be computed as the limit

[math]\displaystyle{ (\operatorname{Ran}_F X)(b) = \varprojlim_{Fa \leftarrow b} X(a) }[/math]

over the comma category [math]\displaystyle{ (\operatorname{const}_b \downarrow F) }[/math].

Kan extensions as (co)ends

Suppose [math]\displaystyle{ X:\mathbf{A}\to\mathbf{C} }[/math] and [math]\displaystyle{ F:\mathbf{A}\to\mathbf{B} }[/math] are two functors such that for all objects a and a of A and all objects b of B, the copowers [math]\displaystyle{ \mathbf{B}(Fa',b)\cdot Xa }[/math] exist in C. Then the functor X has a left Kan extension [math]\displaystyle{ \operatorname{Lan}_FX }[/math] along F, which is such that, for every object b of B,

[math]\displaystyle{ (\operatorname{Lan}_FX)b=\int^a \mathbf{B}(Fa,b)\cdot Xa }[/math]

when the above coend exists for every object b of B.

Dually, right Kan extensions can be computed by the end formula

[math]\displaystyle{ (\operatorname{Ran}_FX)b=\int_a Xa^{\mathbf{B}(b,Fa)}. }[/math]

Limits as Kan extensions

The limit of a functor [math]\displaystyle{ F: \mathbf{C} \to \mathbf{D} }[/math] can be expressed as a Kan extension by

[math]\displaystyle{ \lim F = \operatorname{Ran}_E F }[/math]

where [math]\displaystyle{ E }[/math] is the unique functor from [math]\displaystyle{ \mathbf{C} }[/math] to [math]\displaystyle{ \mathbf{1} }[/math] (the category with one object and one arrow, a terminal object in [math]\displaystyle{ \mathbf{Cat} }[/math]). The colimit of [math]\displaystyle{ F }[/math] can be expressed similarly by

[math]\displaystyle{ \operatorname{colim} F = \operatorname{Lan}_E F. }[/math]

Adjoints as Kan extensions

A functor [math]\displaystyle{ F : \mathbf{C} \to \mathbf{D} }[/math] possesses a left adjoint if and only if the right Kan extension of [math]\displaystyle{ \operatorname{Id} : \mathbf{C} \to \mathbf{C} }[/math] along [math]\displaystyle{ F }[/math] exists and is preserved by [math]\displaystyle{ F }[/math]. In this case, a left adjoint is given by [math]\displaystyle{ \operatorname{Ran}_F \operatorname{Id} }[/math] and this Kan extension is even preserved by any functor [math]\displaystyle{ \mathbf{C} \to \mathbf{E} }[/math] whatsoever, i.e. is an absolute Kan extension.

Dually, a right adjoint exists if and only if the left Kan extension of the identity along [math]\displaystyle{ F }[/math] exists and is preserved by [math]\displaystyle{ F }[/math].

Applications

The codensity monad of a functor [math]\displaystyle{ G: \mathbf{D} \to \mathbf{C} }[/math] is a right Kan extension of G along itself.

References

External links