Kan extensions are
universal constructs in
category theory
Category theory is a general theory of mathematical structures and their relations. It was introduced by Samuel Eilenberg and Saunders Mac Lane in the middle of the 20th century in their foundational work on algebraic topology. Category theory ...
, a branch of
mathematics
Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. There are many ar ...
. 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
Homological algebra is the branch of mathematics that studies homology (mathematics), homology in a general algebraic setting. It is a relatively young discipline, whose origins can be traced to investigations in combinatorial topology (a precurs ...
to compute
derived functor
In mathematics, certain functors may be ''derived'' to obtain other functors closely related to the original ones. This operation, while fairly abstract, unifies a number of constructions throughout mathematics.
Motivation
It was noted in vari ...
s.
In ''
Categories for the Working Mathematician
''Categories for the Working Mathematician'' (''CWM'') is a textbook in category theory written by American mathematician Saunders Mac Lane, who cofounded the subject together with Samuel Eilenberg. It was first published in 1971, and is based ...
''
Saunders Mac Lane
Saunders Mac Lane (August 4, 1909 – April 14, 2005), born Leslie Saunders MacLane, was an American mathematician who co-founded category theory with Samuel Eilenberg.
Early life and education
Mac Lane was born in Norwich, Connecticut, near w ...
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
poset
In mathematics, especially order theory, a partial order on a Set (mathematics), set is an arrangement such that, for certain pairs of elements, one precedes the other. The word ''partial'' is used to indicate that not every pair of elements need ...
s, it becomes a relatively familiar type of question on
constrained optimization
In mathematical optimization, constrained optimization (in some contexts called constraint optimization) is the process of optimizing an objective function with respect to some variables in the presence of constraints on those variables. The obj ...
.
Definition
A Kan extension proceeds from the data of three categories
:
and two
functor
In mathematics, specifically category theory, a functor is a Map (mathematics), mapping between Category (mathematics), categories. Functors were first considered in algebraic topology, where algebraic objects (such as the fundamental group) ar ...
s
:
,
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 the
natural transformation
In category theory, a branch of mathematics, a natural transformation provides a way of transforming one functor into another while respecting the internal structure (i.e., the composition of morphisms) of the categories involved. Hence, a natur ...
in the following diagram:
:
Formally, the right Kan extension of
along
consists of a functor
and a natural transformation
that is
terminal 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 any
object of
The functor ''R'' is often written
.
As with the other
universal constructs in
category theory
Category theory is a general theory of mathematical structures and their relations. It was introduced by Samuel Eilenberg and Saunders Mac Lane in the middle of the 20th century in their foundational work on algebraic topology. 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
In category theory, a branch of mathematics, a natural transformation provides a way of transforming one functor into another while respecting the internal structure (i.e., the composition of morphisms) of the categories involved. Hence, a natur ...
between the functors
consists of having an
arrow
An arrow is a fin-stabilized projectile launched by a bow. A typical arrow usually consists of a long, stiff, straight shaft with a weighty (and usually sharp and pointed) arrowhead attached to the front end, multiple fin-like stabilizers c ...
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: the left Kan extension of
along
consists of a functor
and a natural transformation
that is
initial
In a written or published work, an initial is a letter at the beginning of a word, a chapter (books), chapter, or a paragraph that is larger than the rest of the text. The word is ultimately derived from the Latin ''initiālis'', which means '' ...
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 functor ''L'' 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 unique
up to Two Mathematical object, mathematical objects and are called "equal up to an equivalence relation "
* if and are related by , that is,
* if holds, that is,
* if the equivalence classes of and with respect to are equal.
This figure of speech ...
unique
isomorphism
In mathematics, an isomorphism is a structure-preserving mapping or morphism between two structures of the same type that can be reversed by an inverse mapping. Two mathematical structures are isomorphic if an isomorphism exists between the ...
. 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 unique ''isomorphism'' of functors
such that the second diagram above commutes. Likewise for right Kan extensions.
Properties
Kan extensions as (co)limits
Suppose
and
are two functors. If A is
small
Small means of insignificant size
Size in general is the Magnitude (mathematics), magnitude or dimensions of a thing. More specifically, ''geometrical size'' (or ''spatial size'') can refer to three geometrical measures: length, area, or ...
and C is cocomplete, then there exists a left Kan extension
of
along
, defined at each object ''b'' of B by
:
where the colimit is taken over the
comma category
In mathematics, a comma category (a special case being a slice category) is a construction in category theory. It provides another way of looking at morphisms: instead of simply relating objects of a Category (mathematics), category to one another ...
, where
is the constant functor. Dually, if A is small and C is complete, then right Kan extensions along
exist, and can be computed as the limit
:
over the comma category
.
Kan extensions as (co)ends
Suppose
and
are two functors such that for all objects ''a'' and ''a'' of A and all objects ''b'' of B, the
copowers exist in C. Then the functor ''X'' has a left Kan extension
along ''F'', which is such that, for every object ''b'' of B,
:
when the above
coend exists for every object ''b'' of B.
Dually, right Kan extensions can be computed by the
end formula
:
Limits as Kan extensions
The
limit of a functor
can be expressed as a Kan extension by
:
where
is the unique functor from
to
(the
category
Category, plural categories, may refer to:
General uses
*Classification, the general act of allocating things to classes/categories Philosophy
* Category of being
* ''Categories'' (Aristotle)
* Category (Kant)
* Categories (Peirce)
* Category ( ...
with one object and one arrow, a
terminal object
In category theory, a branch of mathematics, an initial object of a category is an object in such that for every object in , there exists precisely one morphism .
The dual notion is that of a terminal object (also called terminal element): ...
in
). The colimit of
can be expressed similarly by
:
Adjoints as Kan extensions
A functor
possesses a
left adjoint
In mathematics, specifically category theory, adjunction is a relationship that two functors may exhibit, intuitively corresponding to a weak form of equivalence between two related categories. Two functors that stand in this relationship are k ...
if and only if
In logic and related fields such as mathematics and philosophy, "if and only if" (often shortened as "iff") is paraphrased by the biconditional, a logical connective between statements. The biconditional is true in two cases, where either bo ...
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 an ''absolute'' Kan extension.
Dually, a right adjoint exists if and only if the left Kan extension of the identity along
exists and is preserved by
.
Applications
The
codensity monad of a functor
is a right Kan extension of ''G'' along itself.
References
*
*
External links
Model independent proof of colimit formula for left Kan extensions*
Kan extension as a limit: an example{{Category theory
Adjoint functors
Category theory