The concept of Cauchy completeness, ordinarily thought of as applying to metric spaces, was vastly generalized by Bill Lawvere in his influential paper “Metric spaces, generalized logic, and closed categories”. It is now seen by category theorists as a concept of enriched category theory, with close ties to the concept of Morita equivalence in the theory of modules.
The basic idea is that the Cauchy completion of a category is the closure of a category under what are called “absolute limit?s”, i.e., those limits that are preserved by any functor whatsoever. Equivalently, the Cauchy completion is the closure with respect to absolute colimit?s. If is small, the Cauchy completion of lies between and its “free cocompletion”, aka presheaf category
and consists of those presheaves dubbed tiny by Lawvere, meaning those presheaves which are connected and projective: the functor
preserves small coproducts and coequalizers. All of these concepts generalize straightforwardly to the context of general -enriched categories, where is a complete, cocomplete, symmetric monoidal closed category.
Lawvere defines a point of the Cauchy completion of a small -category to be a -enriched bimodule (in other words, a -functor ) for which there is a bimodule right adjoint to (in the bicategory of enriched bimodules, see profunctor), where is the unit -category. Thus points of the Cauchy completion are certain -enriched presheaves , and together form a -category called the Cauchy completion whose homs are the presheaf homs. It is denoted .
As we will explain in more detail below, representable presheaves belong to the Cauchy completion, and so the Yoneda embedding of factors through a full embedding
and we say the -category is Cauchy-complete if this emebedding is an equivalence. We work through a few examples in the following section.
We consider first the classical case of metric spaces, but as redefined by Lawvere to mean a category enriched in the poset , with tensor product given by addition. So, to say is a Lawvere metric space means that with the set there is a distance function
such that
for all in . (The associativity and identity axioms are here superfluous since is a poset.) A -enriched functor here just means a function from to such that
for all in (again, preservation of composition and of identities is superfluous here), so that -functors are short maps between vector spaces (Lipschitz maps with constant at most ). Finally, a -enriched transformation in this case boils down to an instance of a property: that
for all in . If are valued in , this just means for all .
A point of the Cauchy completion is an -module , i.e., an enriched functor or short map
for which there is an -module on the other side, an enriched functor
that is right adjoint to in the sense of modules. This means there is a unit of the adjunction in the bicategory of modules:
and a counit:
Recall now that in the bicategory of modules is the unit bimodule given by the enriched Yoneda embedding, or in different words, . Recall also that module composition is defined by a coend formula for a tensor product. If one now tracks through the definitions, keeping in mind that we are in the very simple case of enrichment in a poset, the unit of the adjunction boils down to having the property
and the counit boils down to having the property
To better appreciate what these conditions mean, we point out that should be thought of as the distance between and the “ideal point” in the Cauchy completion , and should be thought of as the companion distance . Thus the unit condition above would come down to saying that for every there exists such that
and the counit condition imposes a necessary triangle inequality constraint on the distance functions and , in order that we get an actual Lawvere metric space . If are two points of the Cauchy completion thus defined, then their distance is defined by the usual formula for enriched presheaves:
It should be noted that even under the classical definition (where we impose symmetry , separation for , and finiteness ), this provides an elegant alternative definition of Cauchy completion. In essence, all it is doing is taking the metric closure of the embedding of into the already complete space of short maps:
The presheaf-hom definition of the distance formula for , being manifestly non-symmetric, is not the usual definition of distance in the classical symmetric case. However, if we first symmetrize the distance in :
or equivalently
then we do retrieve the classical formula
In other words, the completion of a symmetric metric space as a general (Lawvere) metric space is not necessarily the same as its completion as a symmetric metric space, but is the symmetrisation of .
The analysis of Cauchy complete Lawvere metric spaces contains some of the seeds of what happens in other enriched category contexts; the case of ordinary small categories, where the enrichment is no longer in a mere poset but in Set, reflects still more of the phenomena generally associated with Cauchy completions.
Let be a small category and let the module be a point of , with module as its right adjoint in the bicategory of modules. As functors,
and the structure of the adjunction is given by unit and counit maps:
As we said in the case of metric spaces, and measure “distances” = homs:
The first isomorphism is an instance of the Yoneda lemma, and the second can be seen as follows. The set is the bimodule composite
where is shorthand for the module ; this is just an instance of the Yoneda lemma:
Now using the adjunction , there are, for any set , natural bijections
and maps in the bottom line are in bijection with maps . Therefore we have a natural bijection
and this proves .
With these identifications of and , the unit of the adjunction takes the form
The coend above is a quotient of
and hence the unit element is represented by a pair of transformations
for some .
Given that, it is now not hard – in fact it is fairly tautological – to verify that on the basis of the triangular equation of the adjunction which says
that
and so a point in the Cauchy completion must be a retract of a representable . Spelling this out a little more: the composite
is an idempotent represented by a morphism in (by the Yoneda lemma), and this factorization through splits the idempotent in .
Indeed, the claim is that modules in the Cauchy completion are precisely those presheaves on which arise as retracts of representables in , or in other words may be identified with objects of the idempotent-splitting completion of (aka the Karoubi envelope of ). Therefore, in the -enriched case, the Cauchy completion is the idempotent-splitting completion. In particular, representables themselves are points of the Cauchy completion.
Notice that in a finitely complete category (such as or a presheaf category), idempotents split automatically: just take the equalizer of the pair
For that matter, in any finitely cocomplete category, taking the coequalizer of the above pair would also split the idempotent. Indeed, we can say that idempotents split in a category iff all equalizers of such pairs exist, iff all coequalizers of such pairs exist.
Notice that if and are categories, then any functor preserves retracts and therefore splittings of idempotents. Thus, the equalizers above are the sort of limits which are preserved by any functor whatsoever. They are called absolute limits for that reason. For the same reason, the coequalizers above are absolute colimits: they are precisely the colimits preserved by any functor whatsoever.
Pursuing this a bit further: if is any functor, then (because idempotents split in ) there is a unique extension of . Therefore we have an equivalence
and we say that and are Morita equivalent.
David: Concerning the result that on Set the terminal F-coalgebra is the Cauchy completion of the initial F-algebra, for certain F, I wonder if we have to factor completions through the metric space completion, as Barr does in Terminal coalgebras for endofunctors on sets. Perhaps Adamek’s work on Final Algebras are Ideal Completions of Initial Algebras is more natural.
Does this all tie in with the ideal completion as discussed by Awodey where you sum types/sets in a topos into a universal object?
How many kinds of completion are there for an enriched category? I see some may coincide in certain cases.
If two categories can be Morita equivalent, should this be reflected in the page Morita equivalence?