Free Constructions and Free–Forgetful Adjunctions
Free monoids, free groups, and free vector spaces are left adjoints to forgetful functors, and the universal mapping property is all one needs to prove it. Some forgetful functors also have right adjoints (co-free constructions like the indiscrete topology), producing three-functor chains.
╌╌╌╌
Free monoids, free groups, free vector spaces, and free categories on graphs are all instances of one notion, a left adjoint to a functor that forgets structure. Forgetful functors sometimes have right adjoints as well (co-free constructions), so chains of three functors are common. Contravariant adjunctions, where both functors reverse arrows, make the definition symmetric.
The free monoid
The cleanest free construction is the free monoid, because it can be built with bare hands. Let be a set. Define
to be the set of finite strings (words) over , with concatenation as multiplication and the empty string as identity. This is the Kleene closure of , and is the free monoid on . The insertion of generators sends to the one-letter string .1
By the universal-arrow theorem, this family of universal properties (one per set ) amounts to the statement for the forgetful , and it forces everything else:
- is a functor. For , the composite is a function into the underlying set of a monoid, so it extends uniquely to — the homomorphism applying letterwise. Uniqueness gives and , because both sides of each equation solve the same factorization problem.3
- is natural. The defining square of is the naturality square of at .
- is unique up to unique isomorphism. If also has the universal property, the two universal arrows factor through each other, and uniqueness makes the composites identities — the standard argument for universal objects, here an instance of the uniqueness of representations of the functor .4
Nothing used strings. The identical argument handles any category of
sets-with-operations
: whenever the underlying-set functor
has a left adjoint , the object
is the free -structure on — free groups, free abelian
groups, free rings, free vector spaces, the free category on a graph.5
| Category | Free object on | Unit inserts | Counit evaluates |
|---|---|---|---|
| words over | one-letter words | multiply the word out | |
| reduced words in and inverses | generators | multiply out | |
| formal -linear combinations | basis vectors | compute the sum | |
| (from ) | abelianization | quotient map | — (counit is iso: a reflection) |
| (from graphs) | path category | length-one paths | compose the path |
Not every forgetful functor has a left adjoint: the underlying-set functor from fields has none, essentially because is not defined everywhere and fields do not form an algebraic theory.6
The involution-algebra double adjunction
Free objects classify maps out of a set; co-free objects classify maps into one. Simmons's involution algebras show both sides in miniature, with every transpose computable.7
An involution algebra is a set with a unary operation satisfying ; morphisms are functions with . Write for the category and for the forgetful functor. Then has adjoints on both sides,
both built from one copy of on each side of a mirror:
- Free: , the disjoint union of tagged pairs
with , involution flipping the tag. A function
extends uniquely to a morphism
by and
— the tag records
how many times to apply the involution,
and equivariance forces the second clause. - Co-free: , ordered pairs with involution swapping coordinates. A function lifts uniquely to a morphism by — the pair records the values of on an element and its mirror image, the only data a morphism into can carry.
The unit of the first adjunction tags each element with ; its counit sends to (apply the involution times). The unit of the second, , is ; its counit projects a pair onto its first coordinate. Checking the triangle identities on these formulas is a two-line computation each.
Discrete and indiscrete: co-freeness in topology
The same shape appears for spaces. Let send a space to its set of points. Then
where is with the discrete topology and is with the indiscrete topology.8 Both adjunctions are freeness statements with the quantifiers pointing opposite ways:
- : every function out of a discrete space is continuous, so the discrete topology is the free (finest) way to topologize — maps out are unconstrained.
- : every function into an indiscrete space is continuous, so the indiscrete topology is the co-free (coarsest) way — maps in are unconstrained.
The preorder analogue swaps topologies for comparisons: discrete (equality) and indiscrete (everything comparable) presets are the left and right adjoints of the forgetful .9 Algebra supplies a chain of the same shape with more content: the inclusion has left adjoint (adjoin inverses formally; of the additive monoid is ) and right adjoint (the submonoid of invertible elements), so is both a reflective and a coreflective subcategory of .10
A functor may have a left adjoint and no right adjoint (free monoid), a right and no left (rare for forgetful functors of algebras, routine elsewhere), or both. Longer strings occur; posets already supply arbitrarily long ones, and the constant-presheaf functor on a space sits inside a five-term chain.11
Contravariant adjunctions
Every adjunction so far pairs two covariant functors, and the notion is asymmetric. There is a contravariant variant, and it is symmetric.12
Both hom-sets now have the plain object in the left slot and a functor image
in the right slot, so the two functors play interchangeable roles — each is
adjoint on the right
to the other. Rewriting one category as its opposite
turns this into an ordinary adjunction, but the symmetric form is how the
examples actually arrive. Transposing identities now produces two units and
no counits,
each pointing from an object toward its double dual.12
The standard source of contravariant adjunctions is a dualizing object: a single structure that lives compatibly in both categories (Simmons calls it schizophrenic). Homming into it gives two contravariant functors
each hom-set enriched with the other category's structure, and the adjunction bijection is currying: a map and a map are both functions with the variables read in different orders.13 The units are evaluation maps, and asking when they are isomorphisms is asking for a duality theorem. Vector-space double duality (), Stone duality ( = the two-element set as both Boolean algebra and space), and Pontryagin duality (the circle) all fit this frame; many representation theorems contain a contravariant adjunction whose units are isomorphisms.12
| Ingredient | Covariant adjunction | Contravariant adjunction |
|---|---|---|
| functors | one left, one right — asymmetric | both contravariant — symmetric |
| bijection | ||
| transposed identities | one unit, one counit | two units |
| triangle identities | , | and its twin |
| canonical example | free forgetful | hom into a dualizing object |
The adjoint functor theorem gives conditions for the initial objects that build free constructions to exist. The composite , the underlying set of the free structure, carries a monad whose algebras recover the original category.
Footnotes
- Barr & Wells, Category Theory for Computing Science, §13.1.1 — the free monoid on a set , the Kleene closure, and the insertion of one-letter strings. ↩
- Barr & Wells, §13.1, Proposition 13.1.2 — the universal mapping property of the free monoid, with the extension constructed explicitly. ↩
- Barr & Wells, §13.1.3–13.1.4 — the free monoid assignment extends to a functor using only the universal property, with natural; the uniqueness clause supplies both functor laws. ↩
- Barr & Wells, §13.1 after Proposition 13.1.2 — is a universal element of , so the free monoid is determined up to unique isomorphism. ↩
- Barr & Wells, §13.2.3 — for any category of structured sets whose underlying-set functor has a left adjoint , the value is the free structure on : free groups, free abelian groups, free rings. ↩
- Leinster, Basic Category Theory, §2.1, Examples 2.1.3(e) and Remark 2.1.4 — the forgetful functor from fields has no left adjoint; fields are not an algebraic theory because inversion is not everywhere defined. ↩
- Simmons, An Introduction to Category Theory, §5.2.1 with Exercises 5.4.4–5.4.5 and 5.5.3–5.5.4 — involution algebras; (tag-flip) free and (coordinate-swap) co-free over the forgetful functor, with explicit transposes, units, and counits. ↩
- Simmons, §5.1, Exercise 5.1.3 — the forgetful functor has distinct left and right adjoints (discrete and indiscrete topologies). Also Leinster, Example 2.1.5. ↩
- Simmons, §5.1, Exercise 5.1.2 — discrete and indiscrete presets as the left and right adjoints of the forgetful functor . ↩
- Leinster, §2.1, Examples 2.1.3(d) — the inclusion has a left adjoint (formally adjoin inverses; ) and a right adjoint (submonoid of invertible elements), making reflective and coreflective in . ↩
- Simmons, §1.3 and Ch. 6 (long strings of adjunctions) — arbitrarily long adjoint strings exist already for posets; see also Leinster, Exercise 2.1.17 for the five-term chain around the constant-presheaf functor. ↩
- Simmons, §5.6, Definition 5.6.1 — contravariant adjunctions, the symmetric bijection, the two units and , and the remark that many representation theorems contain one. ↩ ↩2 ↩3
- Simmons, §5.6, Exercise 5.6.2 — contravariant adjunctions induced by a schizophrenic (dualizing) object living in both categories, with the bijection given by currying through and the units given by evaluation. ↩
╌╌ END ╌╌