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 toposets, it becomes a relatively familiar type of question onconstrained optimization.
and comes in two varieties: the "left" Kan extension and the "right" Kan extension of along.
Abstractly, the functor gives a pullback map. When they exist, the left and right adjoints to applied to gives the left and right Kan extensions. Spelling the definition of adjoints out, we get the following definitions;
The right Kan extension amounts to finding the dashed arrow and thenatural transformation in the following diagram:
Formally, theright Kan extension of along consists of a functor and a natural transformation that isterminal with respect to this specification, in the sense that for any functor and natural transformation, a unique natural transformation is defined and fits into a commutative diagram:
where is the natural transformation with for anyobject of
The effect of this on the description above is merely to reverse the direction of the natural transformations.
(Recall that anatural transformation between the functors consists of having anarrow for every object of, satisfying a "naturality" property. When we pass to the opposite categories, the source and target of are swapped, causing to act in the opposite direction).
This gives rise to the alternate description: theleft Kan extension of along consists of a functor and a natural transformation that isinitial with respect to this specification, in the sense that for any other functor and natural transformation, a unique natural transformation exists and fits into a commutative diagram:
where is the natural transformation with for any object of.
The functorL is often written.
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 uniqueup to uniqueisomorphism. In this case, that means that (for left Kan extensions) if are two left Kan extensions of along, and are the corresponding transformations, then there exists a uniqueisomorphism of functors such that the second diagram above commutes. Likewise for right Kan extensions.
Suppose and are two functors. IfA issmall andC is cocomplete, then there exists a left Kan extension of along, defined at each objectb ofB by
where the colimit is taken over thecomma category, where is the constant functor. Dually, ifA is small andC is complete, then right Kan extensions along exist, and can be computed as the limit
Suppose and are two functors such that for all objectsa anda′ ofA and all objectsb ofB, thecopowers exist inC. Then the functorX has a left Kan extension alongF, which is such that, for every objectb ofB,
A functor possesses aleft adjointif and only if the right Kan extension of along exists and is preserved by. In this case, a left adjoint is given by and this Kan extension is even preserved by any functor whatsoever, i.e. is anabsolute Kan extension.
Dually, a right adjoint exists if and only if the left Kan extension of the identity along exists and is preserved by.