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 known as adjoint functors, one being the left adjoint and the other the right adjoint. Pairs of adjoint functors are ubiquitous in mathematics and often arise from constructions of "optimal solutions" to certain problems (i.e., constructions of objects having a certain universal property), such as the construction of a free group on a set in algebra, or the construction of the Stone–Čech compactification of a topological space in topology.
By definition, an adjunction between categories
l{C}
l{D}
F:l{D} → l{C}
G:l{C} → l{D}
and, for all objects
X
l{C}
Y
l{D}
homl{C
such that this family of bijections is natural in
X
Y
l{C}(F-,X):l{D}\to
Setop |
l{D}(-,GX):l{D}\to
Setop |
X
l{C}
l{C}(FY,-):l{C}\toSet
l{D}(Y,G-):l{C}\toSet
Y
l{D}
The functor
F
G
G
F
F\dashvG
An adjunction between categories
l{C}
l{D}
l{C}
l{D}
The terms adjoint and adjunct are both used, and are cognates: one is taken directly from Latin, the other from Latin via French. In the classic text Categories for the Working Mathematician, Mac Lane makes a distinction between the two. Given a family
\varphiXY:homl{C
of hom-set bijections, we call
\varphi
F
G
f
homl{C
\varphif
f
F
G
G
F
G
F
In general, the phrases "
F
F
F
homl{C
G
homl{D
If F is left adjoint to G, we also write
F\dashvG.
The terminology comes from the Hilbert space idea of adjoint operators
T
U
\langleTy,x\rangle=\langley,Ux\rangle
Common mathematical constructions are very often adjoint functors. Consequently, general theorems about left/right adjoint functors encode the details of many useful and otherwise non-trivial results. Such general theorems include the equivalence of the various definitions of adjoint functors, the uniqueness of a right adjoint for a given left adjoint, the fact that left/right adjoint functors respectively preserve colimits/limits (which are also found in every area of mathematics), and the general adjoint functor theorems giving conditions under which a given functor is a left/right adjoint.
In a sense, an adjoint functor is a way of giving the most efficient solution to some problem via a method which is formulaic. For example, an elementary problem in ring theory is how to turn a rng (which is like a ring that might not have a multiplicative identity) into a ring. The most efficient way is to adjoin an element '1' to the rng, adjoin all (and only) the elements which are necessary for satisfying the ring axioms (e.g. r+1 for each r in the ring), and impose no relations in the newly formed ring that are not forced by axioms. Moreover, this construction is formulaic in the sense that it works in essentially the same way for any rng.
This is rather vague, though suggestive, and can be made precise in the language of category theory: a construction is most efficient if it satisfies a universal property, and is formulaic if it defines a functor. Universal properties come in two types: initial properties and terminal properties. Since these are dual notions, it is only necessary to discuss one of them.
The idea of using an initial property is to set up the problem in terms of some auxiliary category E, so that the problem at hand corresponds to finding an initial object of E. This has an advantage that the optimization—the sense that the process finds the most efficient solution—means something rigorous and recognisable, rather like the attainment of a supremum. The category E is also formulaic in this construction, since it is always the category of elements of the functor to which one is constructing an adjoint.
Back to our example: take the given rng R, and make a category E whose objects are rng homomorphisms R → S, with S a ring having a multiplicative identity. The morphisms in E between R → S1 and R → S2 are commutative triangles of the form (R → S1, R → S2, S1 → S2) where S1 → S2 is a ring map (which preserves the identity). (Note that this is precisely the definition of the comma category of R over the inclusion of unitary rings into rng.) The existence of a morphism between R → S1 and R → S2 implies that S1 is at least as efficient a solution as S2 to our problem: S2 can have more adjoined elements and/or more relations not imposed by axioms than S1.Therefore, the assertion that an object R → R* is initial in E, that is, that there is a morphism from it to any other element of E, means that the ring R* is a most efficient solution to our problem.
The two facts that this method of turning rngs into rings is most efficient and formulaic can be expressed simultaneously by saying that it defines an adjoint functor. More explicitly: Let F denote the above process of adjoining an identity to a rng, so F(R)=R*. Let G denote the process of “forgetting″ whether a ring S has an identity and considering it simply as a rng, so essentially G(S)=S. Then F is the left adjoint functor of G.
Note however that we haven't actually constructed R* yet; it is an important and not altogether trivial algebraic fact that such a left adjoint functor R → R* actually exists.
It is also possible to start with the functor F, and pose the following (vague) question: is there a problem to which F is the most efficient solution?
The notion that F is the most efficient solution to the problem posed by G is, in a certain rigorous sense, equivalent to the notion that G poses the most difficult problem that F solves.
This gives the intuition behind the fact that adjoint functors occur in pairs: if F is left adjoint to G, then G is right adjoint to F.
There are various equivalent definitions for adjoint functors:
The equivalency of these definitions is quite useful. Adjoint functors arise everywhere, in all areas of mathematics. Since the structure in any of these definitions gives rise to the structures in the others, switching between them makes implicit use of many details that would otherwise have to be repeated separately in every subject area.
The theory of adjoints has the terms left and right at its foundation, and there are many components which live in one of two categories C and D which are under consideration. Therefore it can be helpful to choose letters in alphabetical order according to whether they live in the "lefthand" category C or the "righthand" category D, and also to write them down in this order whenever possible.
In this article for example, the letters X, F, f, ε will consistently denote things which live in the category C, the letters Y, G, g, η will consistently denote things which live in the category D, and whenever possible such things will be referred to in order from left to right (a functor F : D → C can be thought of as "living" where its outputs are, in C). If the arrows for the left adjoint functor F were drawn they would be pointing to the left; if the arrows for the right adjoint functor G were drawn they would be pointing to the right.
By definition, a functor
F:D\toC
X
C
F
X
X
C
G(X)
D
\epsilonX:F(G(X))\toX
Y
D
f:F(Y)\toX
g:Y\toG(X)
\epsilonX\circF(g)=f
The latter equation is expressed by the following commutative diagram:
In this situation, one can show that
G
G:C\toD
\epsilonX\circF(G(f))=f\circ\epsilonX'
f:X'\toX
C
F
G
Similarly, we may define right-adjoint functors. A functor
G:C\toD
Y
D
Y
G
Y
D
F(Y)
C
ηY:Y\toG(F(Y))
X
C
g:Y\toG(X)
f:F(Y)\toX
G(f)\circηY=g
Again, this
F
F:D\toC
G(F(g))\circηY=ηY'\circg
g:Y\toY'
D
G
F
It is true, as the terminology implies, that
F
G
G
F
These definitions via universal morphisms are often useful for establishing that a given functor is left or right adjoint, because they are minimalistic in their requirements. They are also intuitively meaningful in that finding a universal morphism is like solving an optimization problem.
A hom-set adjunction between two categories C and D consists of two functors F : D → C and and a natural isomorphism
\Phi:homC(F-,-)\tohomD(-,G-)
\PhiY,X:homC(FY,X)\tohomD(Y,GX)
In this situation, F is left adjoint to G and G is right adjoint to F .
This definition is a logical compromise in that it is more difficult to satisfy than the universal morphism definitions, and has fewer immediate implications than the counit–unit definition. It is useful because of its obvious symmetry, and as a stepping-stone between the other definitions.
In order to interpret Φ as a natural isomorphism, one must recognize and as functors. In fact, they are both bifunctors from to Set (the category of sets). For details, see the article on hom functors. Explicitly, the naturality of Φ means that for all morphisms in C and all morphisms in D the following diagram commutes:
The vertical arrows in this diagram are those induced by composition. Formally, Hom(Fg, f) : HomC(FY, X) → HomC(FY′, X′) is given by h → f o h o Fg for each h in HomC(FY, X). Hom(g, Gf) is similar.
A counit–unit adjunction between two categories C and D consists of two functors F : D → C and G : C → D and two natural transformations
\begin{align} \varepsilon&:FG\to1lC\\ η&:1lD\toGF\end{align}
F\xrightarrow{ Fη }FGF\xrightarrow{ \varepsilonF}F
G\xrightarrow{ ηG }GFG\xrightarrow{ G\varepsilon}G
In this situation we say that F is left adjoint to G and G is right adjoint to F , and may indicate this relationship by writing
(\varepsilon,η):F\dashvG
F\dashvG
In equation form, the above conditions on (ε,η) are the counit–unit equations
\begin{align} 1F&=\varepsilonF\circFη\\ 1G&=G\varepsilon\circηG \end{align}
\begin{align} 1FY&=\varepsilonFY\circF(ηY)\\ 1GX&=G(\varepsilonX)\circηGX\end{align}
Note that
1lC
lC
1F
1FY
1=\varepsilon\circη
Note: The use of the prefix "co" in counit here is not consistent with the terminology of limits and colimits, because a colimit satisfies an initial property whereas the counit morphisms will satisfy terminal properties, and dually. The term unit here is borrowed from the theory of monads where it looks like the insertion of the identity 1 into a monoid.
The idea of adjoint functors was introduced by Daniel Kan in 1958.[2] Like many of the concepts in category theory, it was suggested by the needs of homological algebra, which was at the time devoted to computations. Those faced with giving tidy, systematic presentations of the subject would have noticed relations such as
hom(F(X), Y) = hom(X, G(Y))
in the category of abelian groups, where F was the functor
- ⊗ A
The construction of free groups is a common and illuminating example.
Let F : Set → Grp be the functor assigning to each set Y the free group generated by the elements of Y, and let G : Grp → Set be the forgetful functor, which assigns to each group X its underlying set. Then F is left adjoint to G:
Initial morphisms. For each set Y, the set GFY is just the underlying set of the free group FY generated by Y. Let
ηY:Y\toGFY
ηY:Y\toGFY
Terminal morphisms. For each group X, the group FGX is the free group generated freely by GX, the elements of X. Let
\varepsilonX:FGX\toX
(GX,\varepsilonX)
\varepsilonX:FGX\toX
Hom-set adjunction. Group homomorphisms from the free group FY to a group X correspond precisely to maps from the set Y to the set GX: each homomorphism from FY to X is fully determined by its action on generators, another restatement of the universal property of free groups. One can verify directly that this correspondence is a natural transformation, which means it is a hom-set adjunction for the pair (F,G).
counit–unit adjunction. One can also verify directly that ε and η are natural. Then, a direct verification that they form a counit–unit adjunction
(\varepsilon,η):F\dashvG
The first counit–unit equation
1F=\varepsilonF\circFη
FY\xrightarrow{ F(ηY) }FGFY\xrightarrow{ \varepsilonFY}FY
F(ηY)
\varepsilonFY
The second counit–unit equation
1G=G\varepsilon\circηG
GX\xrightarrow{ ηGX }GFGX\xrightarrow{ G(\varepsilonX)}GX
ηGX
G(\varepsilonX)
Free objects are all examples of a left adjoint to a forgetful functor which assigns to an algebraic object its underlying set. These algebraic free functors have generally the same description as in the detailed description of the free group situation above.
Products, fibred products, equalizers, and kernels are all examples of the categorical notion of a limit. Any limit functor is right adjoint to a corresponding diagonal functor (provided the category has the type of limits in question), and the counit of the adjunction provides the defining maps from the limit object (i.e. from the diagonal functor on the limit, in the functor category). Below are some specific examples.
The cartesian product of sets, the product of rings, the product of topological spaces etc. follow the same pattern; it can also be extended in a straightforward manner to more than just two factors. More generally, any type of limit is right adjoint to a diagonal functor.
A suitable variation of this example also shows that the kernel functors for vector spaces and for modules are right adjoints. Analogously, one can show that the cokernel functors for abelian groups, vector spaces and modules are left adjoints.
Coproducts, fibred coproducts, coequalizers, and cokernels are all examples of the categorical notion of a colimit. Any colimit functor is left adjoint to a corresponding diagonal functor (provided the category has the type of colimits in question), and the unit of the adjunction provides the defining maps into the colimit object. Below are some specific examples.
Analogous examples are given by the direct sum of vector spaces and modules, by the free product of groups and by the disjoint union of sets.
\sqcup
Every partially ordered set can be viewed as a category (where the elements of the poset become the category's objects and we have a single morphism from x to y if and only if x ≤ y). A pair of adjoint functors between two partially ordered sets is called a Galois connection (or, if it is contravariant, an antitone Galois connection). See that article for a number of examples: the case of Galois theory of course is a leading one. Any Galois connection gives rise to closure operators and to inverse order-preserving bijections between the corresponding closed elements.
As is the case for Galois groups, the real interest lies often in refining a correspondence to a duality (i.e. antitone order isomorphism). A treatment of Galois theory along these lines by Kaplansky was influential in the recognition of the general structure here.
The partial order case collapses the adjunction definitions quite noticeably, but can provide several themes:
\phiY
Y=\{y\mid\phiY(y)\}
T\subsetY
T
Y
\phiT(y)=\phiY(y)\land\varphi(y)
The role of quantifiers in predicate logics is in forming propositions and also in expressing sophisticated predicates by closing formulas with possibly more variables. For example, consider a predicate
\psif
X
Y
X
\{y\inY\mid\existsx.\psif(x,y)\land\phiS(x)\}
of all elements
y
Y
x
\psif
\phiS
\cap
\land
So consider an object
Y
f:X\toY
f*:Sub(Y)\longrightarrowSub(X)
on the category that is the preorder of subobjects. It maps subobjects
T
Y
T\toY
X x YT
\existsf
\forallf
Sub(X)
Sub(Y)
S\subsetX
f
X
X x YT
Y
Example: In
\operatorname{Set}
f*T=X x YT
T
Y
f
f
T
Y
f-1[T]\subseteqX
For
S\subseteqX
{\operatorname{Hom}}(\existsfS,T)\cong{\operatorname{Hom}}(S,f*T),
which here just means
\existsfS\subseteqT \leftrightarrowS\subseteqf-1[T]
Consider
f[S]\subseteqT
S\subseteqf-1[f[S]]\subseteqf-1[T]
x\inS
x\inf-1[T]
f(x)\inT
S\subseteqf-1[T]
f[S]\subseteqT
f*
S
\existsf
y
f-1[\{y\}]\capS
y\inY
f[S]
\existsfS=\{y\inY\mid\exists(x\inf-1[\{y\}]).x\inS \} =f[S].
Put this in analogy to our motivation
\{y\inY\mid\existsx.\psif(x,y)\land\phiS(x)\}
The right adjoint to the inverse image functor is given (without doing the computation here) by
\forallfS=\{y\inY\mid\forall(x\inf-1[\{y\}]).x\inS \}.
The subset
\forallfS
Y
y
\{y\}
f
S
\exists
\forall
See also powerset.
The twin fact in probability can be understood as an adjunction: that expectation commutes with affine transform, and that the expectation is in some sense the best solution to the problem of finding a real-valued approximation to a distribution on the real numbers.
Define a category based on
\R
f(x)=ax+b
r
(r,f):r\tof(r)
Define a category based on
M(\R)
\R
M(\R)
f(x)=ax+b
\mu\inM(\R)
(\mu,f):\mu\to\mu\circf-1
Then, the Dirac delta measure defines a functor:
\delta:x\mapsto\deltax
E:\mu\mapstoE[\mu]
E\dashv\delta
E
E
\delta
There are hence numerous functors and natural transformations associated with every adjunction, and only a small portion is sufficient to determine the rest.
An adjunction between categories C and D consists of
An equivalent formulation, where X denotes any object of C and Y denotes any object of D, is as follows:
For every C-morphism f : FY → X, there is a unique D-morphism ΦY, X(f) = g : Y → GX such that the diagrams below commute, and for every D-morphism g : Y → GX, there is a unique C-morphism Φ−1Y, X(g) = f : FY → X in C such that the diagrams below commute:
From this assertion, one can recover that:
\begin{align} f=
-1 | |
\Phi | |
Y,X |
(g)&=\varepsilonX\circF(g)&\in&homC(F(Y),X)\\ g=\PhiY,X(f)&=G(f)\circηY&\in&homD(Y,G(X))\\ \Phi
-1 | |
GX,X |
(1GX)&=\varepsilonX&\in&homC(FG(X),X)\\ \PhiY,FY(1FY)&=ηY&\in&homD(Y,GF(Y))\\ \end{align}
\begin{align} 1FY&=\varepsilonFY\circF(ηY)\\ 1GX&=G(\varepsilonX)\circηGX\end{align}
In particular, the equations above allow one to define Φ, ε, and η in terms of any one of the three. However, the adjoint functors F and G alone are in general not sufficient to determine the adjunction. The equivalence of these situations is demonstrated below.
Given a right adjoint functor G : C → D; in the sense of initial morphisms, one may construct the induced hom-set adjunction by doing the following steps.
A similar argument allows one to construct a hom-set adjunction from the terminal morphisms to a left adjoint functor. (The construction that starts with a right adjoint is slightly more common, since the right adjoint in many adjoint pairs is a trivially defined inclusion or forgetful functor.)
Given functors F : D → C, G : C → D, and a counit–unit adjunction (ε, η) : F
\dashv
\begin{align}\PhiY,X(f)=G(f)\circηY\\ \PsiY,X(g)=\varepsilonX\circF(g)\end{align}
The transformations Φ and Ψ are natural because η and ε are natural.
\begin{align} \Psi\Phif&=\varepsilonX\circFG(f)\circF(ηY)\\ &=f\circ\varepsilonFY\circF(ηY)\\ &=f\circ1FY=f\end{align}
hence ΨΦ is the identity transformation.
\begin{align} \Phi\Psig&=G(\varepsilonX)\circGF(g)\circηY\\ &=G(\varepsilonX)\circηGX\circg\\ &=1GX\circg=g\end{align}
hence ΦΨ is the identity transformation. Thus Φ is a natural isomorphism with inverse Φ−1 = Ψ.
Given functors F : D → C, G : C → D, and a hom-set adjunction Φ : homC(F-,-) → homD(-,G-), one can construct a counit–unit adjunction
(\varepsilon,η):F\dashvG
which defines families of initial and terminal morphisms, in the following steps:
\varepsilonX=\Phi
-1 | |
GX,X |
(1GX)\inhomC(FGX,X)
1GX\inhomD(GX,GX)
ηY=\PhiY,FY(1FY)\inhomD(Y,GFY)
1FY\inhomC(FY,FY)
\begin{align}\PhiY,X(f)=G(f)\circηY\\ \Phi
-1 | |
Y,X |
(g)=\varepsilonX\circF(g)\end{align}
for each f: FY → X and g: Y → GX (which completely determine Φ).
1FY=\varepsilonFY\circF(ηY)
and substituting GX for Y and εX = Φ−1GX, X(1GX) for f in the first formula gives the second counit–unit equation
1GX=G(\varepsilonX)\circηGX
See also: Formal criteria for adjoint functors. Not every functor G : C → D admits a left adjoint. If C is a complete category, then the functors with left adjoints can be characterized by the adjoint functor theorem of Peter J. Freyd: G has a left adjoint if and only if it is continuous and a certain smallness condition is satisfied: for every object Y of D there exists a family of morphisms
fi : Y → G(Xi)
where the indices i come from a set, not a proper class, such that every morphism
h : Y → G(X)
can be written as
h = G(t) ∘ fi
for some i in and some morphism
t : Xi → X ∈ C.
An analogous statement characterizes those functors with a right adjoint.
An important special case is that of locally presentable categories. If
F:C\toD
If the functor F : D → C has two right adjoints G and G′, then G and G′ are naturally isomorphic. The same is true for left adjoints.
Conversely, if F is left adjoint to G, and G is naturally isomorphic to G′ then F is also left adjoint to G′. More generally, if 〈F, G, ε, η〉 is an adjunction (with counit–unit (ε,η)) and
σ : F → F′
τ : G → G′are natural isomorphisms then 〈F′, G′, ε′, η′〉 is an adjunction where
\begin{align} η'&=(\tau\ast\sigma)\circη\\ \varepsilon'&=\varepsilon\circ(\sigma-1\ast\tau-1). \end{align}
\circ
\ast
Adjunctions can be composed in a natural fashion. Specifically, if 〈F, G, ε, η〉 is an adjunction between C and D and 〈F′, G′, ε′, η′〉 is an adjunction between D and E then the functor
F\circF':E → C
G'\circG:C\toE.
\begin{align} &1lE\xrightarrow{η'}G'F'\xrightarrow{G'ηF'}G'GFF'\\ &FF'G'G\xrightarrow{F\varepsilon'G}FG\xrightarrow{\varepsilon}1lC. \end{align}
Since there is also a natural way to define an identity adjunction between a category C and itself, one can then form a category whose objects are all small categories and whose morphisms are adjunctions.
The most important property of adjoints is their continuity: every functor that has a left adjoint (and therefore is a right adjoint) is continuous (i.e. commutes with limits in the category theoretical sense); every functor that has a right adjoint (and therefore is a left adjoint) is cocontinuous (i.e. commutes with colimits).
Since many common constructions in mathematics are limits or colimits, this provides a wealth of information. For example:
If C and D are preadditive categories and F : D → C is an additive functor with a right adjoint G : C → D, then G is also an additive functor and the hom-set bijections
\PhiY,X:homlC(FY,X)\conghomlD(Y,GX)
Moreover, if both C and D are additive categories (i.e. preadditive categories with all finite biproducts), then any pair of adjoint functors between them are automatically additive.
As stated earlier, an adjunction between categories C and D gives rise to a family of universal morphisms, one for each object in C and one for each object in D. Conversely, if there exists a universal morphism to a functor G : C → D from every object of D, then G has a left adjoint.
However, universal constructions are more general than adjoint functors: a universal construction is like an optimization problem; it gives rise to an adjoint pair if and only if this problem has a solution for every object of D (equivalently, every object of C).
If a functor F : D → C is one half of an equivalence of categories then it is the left adjoint in an adjoint equivalence of categories, i.e. an adjunction whose unit and counit are isomorphisms.
Every adjunction 〈F, G, ε, η〉 extends an equivalence of certain subcategories. Define C1 as the full subcategory of C consisting of those objects X of C for which εX is an isomorphism, and define D1 as the full subcategory of D consisting of those objects Y of D for which ηY is an isomorphism. Then F and G can be restricted to D1 and C1 and yield inverse equivalences of these subcategories.
In a sense, then, adjoints are "generalized" inverses. Note however that a right inverse of F (i.e. a functor G such that FG is naturally isomorphic to 1D) need not be a right (or left) adjoint of F. Adjoints generalize two-sided inverses.
Every adjunction 〈F, G, ε, η〉 gives rise to an associated monad 〈T, η, μ〉 in the category D. The functor
T:l{D}\tol{D}
η:1l{D
\mu:T2\toT
Every monad arises from some adjunction—in fact, typically from many adjunctions—in the above fashion. Two constructions, called the category of Eilenberg–Moore algebras and the Kleisli category are two extremal solutions to the problem of constructing an adjunction that gives rise to a given monad.