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
The question for today
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 and . Saying that is left adjoint to means there is a bijection from to , natural in both and . Precomposing in and postcomposing in 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 , the functor is left adjoint to . 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.
The unit and counit describe both round trips
The unit is the transpose of the identity on . The counit transposes back from the identity on . In the currying adjunction, the unit sends to the function , and the counit evaluates to . 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 and . 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 to and sending back to . Expanding a round trip and using naturality plus a triangle identity proves that these formulas are inverse.
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 , direct image sends subsets of to subsets of , 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 , and the counit becomes . 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.
Work it through
Curry a four-entry table
Take , , and . Let , , , and . Find its transpose, count both Hom sets, and verify the F triangle on .
The transpose assigns to zero the function with values in L,R order, and to one the function with values . Evaluating these assigned functions reconstructs all four entries of h.
The set has four elements, so its maps into Y number . There are nine elements of , and maps from the two-element X into it number . The explicit formulas supply the bijection behind the matching counts.
Applying to gives where . The counit evaluates k at R, returning . For the G triangle, a function k is sent to the function whose value at a is k(a), so it too returns unchanged.
The two Hom sets have 81 elements, the displayed tables transpose exactly, and both triangle identities hold pointwise.
The living notebook
Explore the model
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.
- Mean · np
- 5
- Variance · np(1−p)
- 2.5
- Total probability
- 1
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.
Pause & reason
Check your understanding
Your turn
Try it yourself
Let send zero and one to a and two to b. For and , 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 is contained in B. The inverse image contains S, so both equivalent inequalities hold. The unit at S is , which is strict. Thus the adjoint functors cannot be inverse equivalences of these powerset posets.
Keep the idea
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.