advanced34 min studyLesson 537 in Mathematics

Adjoint functors and the unit–counit equations

Calculate a natural Hom bijection and verify the triangle identities in a finite currying example.

On this page

What you’ll understand

  • State a Hom-set adjunction with both variances correct.
  • Recover the unit, counit, and transpose formulas from an adjunction.
  • Check currying and a poset adjunction on explicit finite data.

An adjunction organizes a family of universal mapping problems into two interacting functors. It provides a natural bijection between maps of two different types; it need not identify the objects involved. Currying gives a concrete example in finite sets, while direct image and inverse image give another in ordered sets. The unit and counit record how the two translations interact, and their triangle identities prevent those translations from introducing an unintended extra operation.

The Hom bijection must be natural in both variables

Let F:C→DF:\mathcal C\to\mathcal D and G:D→CG:\mathcal D\to\mathcal C. Saying that FF is left adjoint to GG means there is a bijection from D(Fc,d)\mathcal D(Fc,d) to C(c,Gd)\mathcal C(c,Gd), natural in both cc and dd. Precomposing in cc and postcomposing in dd must commute with the bijection. Equal cardinalities for particular finite objects are insufficient: the same correspondence must respect every allowed map in both categories.

For a fixed set AA, the functor F(X)=A×XF(X)=A\times X is left adjoint to G(Y)=YAG(Y)=Y^A. A function on a pair is converted into a function that assigns to each second coordinate a function of the first coordinate. This is currying. Its inverse evaluates the assigned function on the first coordinate. The two formulas undo each other pointwise, and their compatibility with source and target maps follows by substitution.

D(Fc,d)≅C(c,Gd),h:A×X→Y ⟷ h^:X→YA.\mathcal D(Fc,d)\cong\mathcal C(c,Gd),\qquad h:A\times X\to Y\ \longleftrightarrow\ \widehat h:X\to Y^A.
For currying, the transposed value is the function a↦h(a,x).↔ Scroll wide equations horizontally.

The unit and counit describe both round trips

The unit η:IdC⇒GF\eta:\mathrm{Id}_{\mathcal C}\Rightarrow GF is the transpose of the identity on FcFc. The counit ε:FG⇒IdD\varepsilon:FG\Rightarrow\mathrm{Id}_{\mathcal D} transposes back from the identity on GdGd. In the currying adjunction, the unit sends xx to the function a↦(a,x)a\mapsto(a,x), and the counit evaluates (a,k)(a,k) to k(a)k(a). These are generally not isomorphisms, so an adjunction need not be an equivalence.

The two triangle identities say that the appropriate round trips act as identities on FF and GG. Their components have different types and should not be interchanged. Conversely, natural unit and counit maps satisfying these identities define the Hom bijection by sending ff to G(f)ηcG(f)\eta_c and sending gg back to εdF(g)\varepsilon_dF(g). Expanding a round trip and using naturality plus a triangle identity proves that these formulas are inverse.

G(εd)∘ηGd=idGd,εFc∘F(ηc)=idFc.G(\varepsilon_d)\circ\eta_{Gd}=\mathrm{id}_{Gd},\qquad \varepsilon_{Fc}\circ F(\eta_c)=\mathrm{id}_{Fc}.
The first identity acts on G(d), and the second acts on F(c).↔ Scroll wide equations horizontally.

An order-theoretic adjunction is an inequality equivalence

Regard posets as categories with at most one arrow between two objects. A Hom bijection then states that an inequality on one side holds exactly when its partner inequality holds on the other. For a function f:X→Yf:X\to Y, direct image sends subsets of XX to subsets of YY, and inverse image goes back. They are monotone, and direct image is left adjoint to inverse image because every element of a subset lands in a target subset exactly when it belongs to that subset's inverse image.

The unit becomes S⊆f−1(f(S))S\subseteq f^{-1}(f(S)), and the counit becomes f(f−1(B))⊆Bf(f^{-1}(B))\subseteq B. These inclusions can be strict: the first adds points sharing an image, while the second excludes target points not hit by the function. They therefore illustrate why adjoint does not mean inverse. Here inverse image is a functor between two powerset posets for one fixed function, not the direct-image powerset endofunctor used later to construct a monad.

f(S)⊆B⟺S⊆f−1(B).f(S)\subseteq B\quad\Longleftrightarrow\quad S\subseteq f^{-1}(B).
The equivalence of inequalities is the Hom-set adjunction in powerset posets.↔ Scroll wide equations horizontally.

Curry a four-entry table

Take A={L,R}A=\{L,R\}, X={0,1}X=\{0,1\}, and Y={a,b,c}Y=\{a,b,c\}. Let h(L,0)=ah(L,0)=a, h(R,0)=bh(R,0)=b, h(L,1)=ch(L,1)=c, and h(R,1)=ah(R,1)=a. Find its transpose, count both Hom sets, and verify the F triangle on (R,1)(R,1).

  1. The transpose assigns to zero the function with values (a,b)(a,b) in L,R order, and to one the function with values (c,a)(c,a). Evaluating these assigned functions reconstructs all four entries of h.

  2. The set A×XA\times X has four elements, so its maps into Y number 34=813^4=81. There are nine elements of YAY^A, and maps from the two-element X into it number 92=819^2=81. The explicit formulas supply the bijection behind the matching counts.

  3. Applying F(ηX)F(\eta_X) to (R,1)(R,1) gives (R,k)(R,k) where k(a′)=(a′,1)k(a')=(a',1). The counit evaluates k at R, returning (R,1)(R,1). For the G triangle, a function k is sent to the function whose value at a is k(a), so it too returns unchanged.

h^(0)=(a,b),h^(1)=(c,a),32⋅2=(32)2=81.\widehat h(0)=(a,b),\quad\widehat h(1)=(c,a),\qquad 3^{2\cdot2}=(3^2)^2=81.
Ordered function values make the currying correspondence explicit.↔ Scroll wide equations horizontally.
The result

The two Hom sets have 81 elements, the displayed tables transpose exactly, and both triangle identities hold pointwise.

Explore the model

Interactive lab

Interactive lab · probability

Regroup four binary choices

Pause and Reset, then set success probability to 0.5 and trials to 4. Predict sixteen equally likely binary tables on A×X when both sets have two elements, with six tables in the two-ones bar. Regroup each table on paper as two binary functions on A: four choices for each, again sixteen. The bars group tables by total ones; they do not perform currying or verify naturality. Start any fresh comparison with Pause, Reset, and both controls, since editing retains elapsed time.

Regroup four binary choicesThese are exact binomial probabilities for independent trials with one fixed success probability. Playback tours the distribution; it does not resample outcomes. Current readings: Mean · np: 5; Variance · np(1−p): 2.5; Total probability: 1. All parameters are adjustable with the labeled controls below.03581000.070.150.220.3Successes kP(X = k)k = 0 · P = 9.77e-4
Exact probabilityHighlighted outcomeMean np
Mean · np
5
Variance · np(1−p)
2.5
Total probability
1
t = 0 s

These are exact binomial probabilities for independent trials with one fixed success probability. Playback tours the distribution; it does not resample outcomes. Parameter changes pause playback and recompute the model at the current elapsed time. Reset restores both parameters and returns time to zero. Playback starts paused. Adjust either parameter, then choose Play or Step.

Look forCurrying regroups the same independent choices without discarding their labels.

Check your understanding

Which statement correctly describes the unit of an adjunction F:C→D left adjoint to G:D→C?

Try it yourself

Let f:{0,1,2}→{a,b}f:\{0,1,2\}\to\{a,b\} send zero and one to a and two to b. For S={0}S=\{0\} and B={a}B=\{a\}, check the direct-image/inverse-image adjunction and determine whether the unit inclusion at S is strict.

Take a moment to make a prediction or work it out on paper. Open a hint when you need one.

Give me a hint

Compute the image of S and the complete inverse image of B, remembering points other than those already in S.

Compare with the solution

The image f(S)={a}f(S)=\{a\} is contained in B. The inverse image f−1(B)={0,1}f^{-1}(B)=\{0,1\} contains S, so both equivalent inequalities hold. The unit at S is {0}⊆f−1(f(S))={0,1}\{0\}\subseteq f^{-1}(f(S))=\{0,1\}, which is strict. Thus the adjoint functors cannot be inverse equivalences of these powerset posets.

Take it with you

  • Adjunctions require a Hom bijection natural in both variables.
  • The unit and counit satisfy two distinctly typed triangle identities.
  • A strict unit inclusion in a poset adjunction demonstrates that adjoints need not be inverses.

Read further

Original sources and deeper explanations to follow at your own pace.

Optional progress, saved in this browser when available. Revisit any lesson at any time.

Lesson not marked complete.