Idea
A Kan extension provides a method for extending a functor along another functor. It generalizes the concept of extending a function from a subspace to a larger space by finding the best possible approximation that factors through a given morphism.
Definition
Let and be functors.
Left Kan Extension
The left Kan extension of along is a functor equipped with a natural transformation such that for any functor and natural transformation , there exists a unique natural transformation such that .
\usepackage{tikz-cd}
\begin{document}
\begin{tikzcd}
\mathcal{C} \arrow[rr, "K"] \arrow[rd, "F"'] & & \mathcal{D} \arrow[ld, "Lan_K F"] \\
& \mathcal{E}
\end{tikzcd}
\end{document}Right Kan Extension
The right Kan extension of along is a functor equipped with a natural transformation such that for any functor and natural transformation , there exists a unique natural transformation such that .
\usepackage{tikz-cd}
\begin{document}
\begin{tikzcd}
\mathcal{C} \arrow[rr, "K"] \arrow[rd, "F"'] & & \mathcal{D} \arrow[ld, "Ran_K F"] \\
& \mathcal{E}
\end{tikzcd}
\end{document}Adjunction Perspective
Kan extensions are characterized as adjoints to the precomposition functor defined by . When they exist for all , we have a sequence of adjoints: This yields the natural isomorphisms:
Formulae via (Co)ends
If is small and is cocomplete, the left Kan extension exists and can be computed pointwise using an end:
Dually, if is complete, the right Kan extension exists and is computed using a coend: