nLab
Cauchy complete category

Contents

Idea and definition

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 C is small, the Cauchy completion C¯ of C lies between C and its “free cocompletion”, aka presheaf category

CC¯Set C opC \hookrightarrow \bar{C} \hookrightarrow Set^{C^{op}}

and consists of those presheaves F dubbed tiny by Lawvere, meaning those presheaves which are connected and projective: the functor

hom Set C op(F,):Set C opSethom_{Set^{C^{op}}}(F, -): Set^{C^{op}} \to Set

preserves small coproducts and coequalizers. All of these concepts generalize straightforwardly to the context of general V-enriched categories, where V is a complete, cocomplete, symmetric monoidal closed category.

Lawvere defines a point of the Cauchy completion of a small V-category C to be a V-enriched bimodule p:1C (in other words, a V-functor 1V C op) for which there is a bimodule q:C1 right adjoint to p (in the bicategory of enriched bimodules, see profunctor), where 1 is the unit V-category. Thus points of the Cauchy completion are certain V-enriched presheaves p:C opV, and together form a V-category called the Cauchy completion whose homs are the presheaf homs. It is denoted C¯.

As we will explain in more detail below, representable presheaves belong to the Cauchy completion, and so the Yoneda embedding of C factors through a full embedding

i:CC¯i: C \to \bar{C}

and we say the V-category C is Cauchy-complete if this emebedding is an equivalence. We work through a few examples in the following section.

Examples

metric spaces

We consider first the classical case of metric spaces, but as redefined by Lawvere to mean a category enriched in the poset V=([0,],), with tensor product given by addition. So, to say X is a Lawvere metric space means that with the set X there is a distance function

d X=hom X:X×X[0,]d_X = hom_X: X \times X \to [0, \infty]

such that

d(x,y)+d(y,z)d(x,z),0d(x,x)d(x, y) + d(y, z) \geq d(x, z), \qquad 0 \geq d(x, x)

for all x,y,z in X. (The associativity and identity axioms are here superfluous since V is a poset.) A V-enriched functor f:XY here just means a function from X to Y such that

d X(x,y)d Y(f(x),f(y))d_X(x, y) \geq d_Y(f(x), f(y))

for all x,y in X (again, preservation of composition and of identities is superfluous here), so that V-functors are short maps between vector spaces (Lipschitz maps with constant at most 1). Finally, a V-enriched transformation fg:XY in this case boils down to an instance of a property: that

0d Y(f(x),g(x))0 \geq d_Y(f(x), g(x))

for all x in X. If f,g are valued in [0,], this just means f(x)g(x) for all x.

A point of the Cauchy completion is an X-module p:1X, i.e., an enriched functor or short map

p:X op[0,]p: X^{op} \to [0, \infty]

for which there is an X-module q:X1 on the other side, an enriched functor

q:X[0,]q: X \to [0, \infty]

that is right adjoint to p in the sense of modules. This means there is a unit of the adjunction in the bicategory of modules:

(Id:11)(1pXq1)(Id: \mathbf{1} \to \mathbf{1}) \to (\mathbf{1} \overset{p}{\to} X \overset{q}{\to} \mathbf{1})

and a counit:

(Xq1pX)(Id:XX)(X \overset{q}{\to} \mathbf{1} \overset{p}{\to} X) \to (Id: X \to X)

Recall now that Id X:XX in the bicategory of modules is the unit bimodule y X:XV X op given by the enriched Yoneda embedding, or in different words, hom X=d X:X op×X[0,]. 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 pq boils down to having the property

0 xXq(x)+p(x)=inf xXq(x)+p(x)0 \geq \int^{x \in X} q(x) + p(x) = \inf_{x \in X} q(x) + p(x)

and the counit boils down to having the property

p(x)+q(y)d X(x,y)p(x) + q(y) \geq d_X(x, y)

To better appreciate what these conditions mean, we point out that p(x) should be thought of as the distance d X¯(x,p) between x and the “ideal point” p in the Cauchy completion X¯, and q(x) should be thought of as the companion distance d X¯(p,x). Thus the unit condition above would come down to saying that for every ε>0 there exists xX such that

d X¯(p,x)<ε,d X¯(x,p)<εd_{\bar{X}}(p, x) \lt \varepsilon, \, d_{\bar{X}}(x, p) \lt \varepsilon

and the counit condition imposes a necessary triangle inequality constraint on the distance functions p and q, in order that we get an actual Lawvere metric space X¯. If p,p are two points of the Cauchy completion thus defined, then their distance is defined by the usual formula for enriched presheaves:

d(p,p)= xXhom [0,](p(x),p(x))=sup xXmax{0,p(x)p(x)}d(p, p') = \int_{x \in X} \hom_{[0, \infty]}(p(x), p'(x)) = \sup_{x \in X} \max\{0, p'(x) - p(x)\}

It should be noted that even under the classical definition (where we impose symmetry d(x,y)=d(y,x), separation d(x,y)>0 for xy, and finiteness d(x,y)<), this provides an elegant alternative definition of Cauchy completion. In essence, all it is doing is taking the metric closure X¯ of the embedding of X into the already complete space of short maps:

y X:X[0,] X op:xd X(,x)y_X: X \to [0, \infty]^{X^{op}}: x \mapsto d_X(-, x)

The presheaf-hom definition of the distance formula for X¯, being manifestly non-symmetric, is not the usual definition of distance in the classical symmetric case. However, if we first symmetrize the distance in [0,]:

σd(r,s)=d(r,s)+d(s,r)=max{0,sr}+max{0,rs}=rs\sigma d(r, s) = d(r, s) + d(s, r) = \max\{0, s-r\} + \max\{0, r-s\} = |r - s|

or equivalently

σd(r,s)=d(r,s)+d(s,r)=max(max{0,sr},max{0,rs})=rs\sigma d(r, s) = d(r, s) + d(s, r) = \max(\max\{0, s-r\}, \max\{0, r-s\}) = |r - s|

then we do retrieve the classical formula

d(p,p)= xXσd(p(x),p(x))=sup xXp(x)p(x)d(p, p') = \int_{x \in X} \sigma d(p(x), p'(x)) = \sup_{x \in X} |p(x) - p'(x)|

In other words, the completion X¯ of a symmetric metric space X as a general (Lawvere) metric space is not necessarily the same as its completion σX¯ as a symmetric metric space, but σX¯ is the symmetrisation of X¯.

ordinary (Set-enriched) categories

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 C be a small category and let the module p:1C be a point of C¯, with module q:C1 as its right adjoint in the bicategory of modules. As functors,

p:C opSet,q:CSetp: C^{op} \to Set, \, q: C \to Set

and the structure of the adjunction is given by unit and counit maps:

η:1 cOb(C)q(c)×p(c),ε c,d:p(c)×q(d)C(c,d)\eta: 1 \to \int^{c \in Ob(C)} q(c) \times p(c), \qquad \varepsilon_{c, d}: p(c) \times q(d) \to C(c, d)

As we said in the case of metric spaces, p(c) and q(c) measure “distances” = homs:

p(c)Set C op(C(,c),p),q(c)Set C op(p,C(,c))p(c) \cong Set^{C^{op}}(C(-, c), p), \qquad q(c) \cong Set^{C^{op}}(p, C(-, c))

The first isomorphism is an instance of the Yoneda lemma, and the second can be seen as follows. The set q(c) is the bimodule composite

(1cCq1)(\mathbf{1} \overset{c}{\to} C \overset{q}{\to} \mathbf{1})

where c is shorthand for the module C(,c):C opSet; this is just an instance of the Yoneda lemma:

q CC(,c)=def dCq(d)×C(d,c)Yonedaq(c).q \circ_C C(-, c) \overset{def}{=} \int^{d \in C} q(d) \times C(d, c) \overset{Yoneda}{\cong} q(c).

Now using the adjunction pq, there are, for any set S, natural bijections

Sq(c)Sq CC(,c)p 1SC(,c)p()×SC(,c)\frac{\frac{S \to q(c)}{S \to q \circ_C C(-, c)}}{\frac{p \circ_{\mathbf{1}} S \to C(-, c)}{p(-) \times S \to C(-, c)}}

and maps in the bottom line are in bijection with maps SSet C op(p,C(,c)). Therefore we have a natural bijection

Sq(c)SSet C op\frac{S \to q(c)}{S \to Set^{C^{op}}}

and this proves q(c)Set C op(p,C(,c)).

With these identifications of q(c) and p(c), the unit of the adjunction pq takes the form

η:1 cSet C op(p,C(,c))×Set C op(C(,c),p)\eta: 1 \to \int^{c} Set^{C^{op}}(p, C(-, c)) \times Set^{C^{op}}(C(-, c), p)

The coend above is a quotient of

cSet C op(p,C(,c))×Set C op(C(,c),p)\sum_c Set^{C^{op}}(p, C(-, c)) \times Set^{C^{op}}(C(-, c), p)

and hence the unit element η is represented by a pair of transformations

i:pC(,c),π:C(,c)pi: p \to C(-, c), \qquad \pi: C(-, c) \to p

for some c.

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

(ppηpqpεp)=1 p,(p \overset{p \circ \eta}{\to} p \circ q \circ p \overset{\varepsilon}{\to} p) = 1_p,

that

(piC(,c)πp)=1 p(p \overset{i}{\to} C(-, c) \overset{\pi}{\to} p) = 1_p

and so a point p in the Cauchy completion C¯ must be a retract of a representable C(,c). Spelling this out a little more: the composite

C(,c)πpiC(,c)C(-, c) \overset{\pi}{\to} p \overset{i}{\to} C(-, c)

is an idempotent represented by a morphism e:cc in C (by the Yoneda lemma), and this factorization through p splits the idempotent C(,e) in Set C op.

Indeed, the claim is that modules p:C opSet in the Cauchy completion are precisely those presheaves on C which arise as retracts of representables in Set C op, or in other words may be identified with objects of the idempotent-splitting completion of C (aka the Karoubi envelope of C). Therefore, in the Set-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 Set or a presheaf category), idempotents e:cc split automatically: just take the equalizer of the pair

c1ecc \stackrel{\overset{e}{\to}}{\underset{1}{\to}} c

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 C and D are categories, then any functor F:CD preserves retracts and therefore splittings of idempotents. Thus, the equalizers above are the sort of limits which are preserved by any functor F 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 F:C opSet is any functor, then (because idempotents split in Set) there is a unique extension F¯:C¯ opSet of F. Therefore we have an equivalence

Set C opSet C¯ opSet^{C^{op}} \simeq Set^{\bar{C}^{op}}

and we say that C and C¯ are Morita equivalent.

Discussion

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?