Adjoint Functors via Hom-Set Bijections
An adjunction is a natural bijection between two hom-sets: maps out of in one category correspond to maps into in the other. We give the definition, spell out the naturality axioms that make the correspondence compatible with composition, and work the flagship examples — free vector spaces, free groups, discrete and indiscrete topologies, and currying.
╌╌╌╌
Two categories are rarely equivalent, but they are constantly related. A group
has an underlying set; a set generates a free group. A space has a set of points;
a set carries a discrete topology. Each pair moves objects one way and, in some
weaker sense, back the other. Adjunction is the exact form of that weaker sense.
Adjunction is one of the central notions of the subject, alongside the
Yoneda lemma: wherever a
construction is characterized by a
universal property,
an adjunction usually underlies it.1
An adjunction makes precise the sense in which is the freest solution to a problem posed by . Formally it is a bijection between two sets of arrows.
The definition
Fix two categories and a pair of functors running in opposite directions,
Following Simmons, read as the source and as the target; the adjunction points in the direction of .2 The two objects and live in different categories and cannot be compared directly. To compare them, move one across: either turn into and look at maps , or turn into and look at maps . An adjunction is the assertion that these two sets of maps are the same.
The left adjoint occupies the left slot of a hom-set, and the right adjoint the right slot.2 The roles are not symmetric: does not entail .
Transposes
The bijection is written as a bar in both directions. Given in , its image is in ; given , its image is . The bar is self-inverse, so and . Either of and is called the transpose (or adjunct, or mate) of the other.3 The rule reads like an inference rule: a map upstairs and its transpose downstairs determine each other.
Naturality
Naturality makes the bijection compatible with composition in both categories, so that transposing commutes with pre- and post-composition. There are two axioms, one for each variable.3
Given and in , we may either compose then transpose, or transpose then apply and compose. The two agree:
Dually, given and in ,
Because the bar is self-inverse, putting the long bar over either side of these equations gives an equivalent statement; the two axioms can even be fused into one equation covering pre- and post-composition simultaneously.4 The first axiom is drawn below: it says the two ways of building a map out of and coincide.
Naturality promotes the pointwise family of bijections into a single natural isomorphism between the functors and from to .5 Here we use it only as compatibility with composition.
Free and forgetful
The archetype is a free construction sitting left-adjoint to a forgetful functor. Forgetful functors between categories of algebraic structures almost always have left adjoints, and the adjunction is the precise statement of freeness.6
The bijection says a linear map out of the free space is the same data as a function on the basis. Both directions are explicit:
- Restrict to the basis. Given a linear map , define by . A linear map is determined by its values on a basis, so nothing is lost.
- Extend linearly. Given a function , define by , the unique linear extension.
Extending a restriction recovers , and restricting an extension recovers ,
so the two assignments are mutually inverse.6 The correspondence is the ordinary fact
that a linear map is determined by, and can be freely prescribed on, a basis
—
now recorded as an adjunction.
The same pattern recurs across algebra. The forgetful functor has the free-group functor as its left adjoint. The free group on a set is awkward to build by hand, yet the adjunction characterizes it, since a left adjoint is unique up to isomorphism.7 The relation therefore determines without an explicit construction.8
Adjunctions beyond algebra
Free-over-forgetful is one family; adjoints appear far more widely. Whenever two functors run between the same pair of categories, there is a good chance one is adjoint to the other.9
Discrete and indiscrete topologies
Let send a space to its set of points. It has adjoints on both sides:
where equips a set with the discrete topology (every subset open) and with the indiscrete topology (only and the whole set open).10 The left adjoint is free: a continuous map is any function , because every function out of a discrete space is continuous. The right adjoint is dual: a continuous map is any function , because every function into an indiscrete space is continuous.
Currying
In , fix a set . Taking the product with is a functor , and forming the function set is another. They are adjoint:
The transpose only reassociates the arguments. A map transposes to by , and back by .11 A function of two arguments is the same as a function of the first argument returning a function of the second, the currying of functional programming. Requiring for every is the defining condition of a cartesian closed category.
The diagonal functor and its adjoints
Let be the diagonal functor, . A right adjoint to assigns to a pair an object with
Unwinding the left side, a map is a pair of maps and . So a right adjoint to is a choice of product for every pair, and the counit is the pair of projections. Dually, a left adjoint to is a choice of coproduct.12 The universal properties of product and coproduct are the two adjoints of : coproduct on the left, product on the right.
A catalogue
The examples share one shape and differ only in which categories and functors fill the slots.
| Left adjoint | Right adjoint | Bijection | Reading |
|---|---|---|---|
| free vector space | underlying set | prescribe a map on a basis | |
| free group | underlying set | prescribe generators' images | |
| abelianization | inclusion | maps to abelian groups factor | |
| discrete space | underlying set | any function is continuous | |
| currying | |||
| coproduct | diagonal | pair of maps out | |
| diagonal | product | pair of maps in |
Composition of adjunctions
Adjunctions compose: if between and and between and , then , because the hom-set bijections chain:13
Adjunctions between posets
View posets as categories with at most one arrow between objects. Then order-preserving maps and form an adjunction exactly when
Both hom-sets are empty or singletons, so a bijection between them is just the biconditional; naturality is automatic. Such a pair is a Galois connection.1415 Topological closure is one instance: for closed exhibits closure as left adjoint to the inclusion of closed sets into all sets.16
The hom-set bijection is one of three equivalent descriptions of . The other two rebuild it from two natural transformations, the unit and counit, and from a family of universal arrows. Each is convenient for a different purpose.
Footnotes
- Leinster, Basic Category Theory, Ch. 2 opening —
adjoint functors arise everywhere,
Mac Lane's slogan; the three equivalent viewpoints on adjunction and the plan to prove them equivalent. ↩ - Simmons, An Introduction to Category Theory, §5.1 — source and target categories, the naming convention with left and right, and the left/right slot mnemonic for the hom-sets. ↩ ↩2
- Leinster, §2.1, Definition 2.1.1 and the naturality axioms (2.2), (2.3) — the transpose bar, its self-inverse property, and compatibility of transposition with composition on each side. ↩ ↩2
- Leinster, §2.1, Exercise 2.1.14 — the two naturality equations combine into a single equation covering pre- and post-composition together. ↩
- Barr & Wells, Category Theory for Computing Science, §13.3.1, Theorem 13.3.2 — iff and are naturally isomorphic as functors . ↩
- Leinster, §2.1, Examples 2.1.3(a) — the free vector space adjunction between and , with the restriction/linear-extension bijection worked out in full. ↩ ↩2
- Leinster, §2.1, Examples 2.1.3(b) — free group left adjoint to the forgetful functor ; the free group is hard to build explicitly but characterized by the adjunction. ↩
- Leinster, §2.1, Remark 2.1.2(d) — a functor has at most one left adjoint up to isomorphism, so
the left adjoint of
is well defined and the adjunction characterizes . ↩ - Leinster, §2.1, Remark 2.1.2(c) — whenever a pair of functors runs between two categories, there is an excellent chance one is adjoint to the other. ↩
- Leinster, §2.1, Example 2.1.5 — the double adjunction between and , discrete and indiscrete topologies as adjoints to the points functor. ↩
- Leinster, §2.1, Example 2.1.6 — the currying adjunction in , with the transpose given by reassociating arguments. ↩
- Barr & Wells, §13.2.4 and Exercise 13.2.9(2) — the right adjoint to the diagonal is the binary product functor and the left adjoint is the coproduct; counit = projections. ↩
- Leinster, §2.1, Remark 2.1.11 — adjunctions compose, with the composite hom-set bijection obtained by chaining the two. ↩
- Leinster, §2.1, Example 2.2.7 — adjunctions between ordered sets are exactly Galois connections ; naturality and the triangle identities are automatic. ↩
- Barr & Wells, §13.2.8 — adjoints between preordered sets, the equivalence of the two order conditions with the biconditional, and Galois connections from contravariant pairs. ↩
- Leinster, §2.2, after Example 2.2.7 — topological closure as left adjoint to the inclusion of closed subsets, witnessed by . ↩
╌╌ END ╌╌