category theory

# Contents

## Idea

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. In category theory one also speaks of idempotent completeness.

The basic idea is that the Cauchy completion of a category is the closure of a category under what are called “absolute limits”, i.e., those limits that are preserved by any functor whatsoever. Equivalently, the Cauchy completion is the closure with respect to absolute colimits. If $C$ is small, the Cauchy completion $\overline{C}$ of $C$ lies between $C$ and its “free cocompletion”, aka presheaf category

$C↪\overline{C}↪{\mathrm{Set}}^{{C}^{\mathrm{op}}}$C \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

${\mathrm{hom}}_{{\mathrm{Set}}^{{C}^{\mathrm{op}}}}\left(F,-\right):{\mathrm{Set}}^{{C}^{\mathrm{op}}}\to \mathrm{Set}$hom_{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:1\to C$ (in other words, a $V$-functor $1\to {V}^{{C}^{\mathrm{op}}}$) for which there is a bimodule $q:C\to 1$ 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}^{\mathrm{op}}\to V$, and together form a $V$-category called the Cauchy completion whose homs are the presheaf homs. It is denoted $\overline{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:C\to \overline{C}$i: C \to \bar{C}

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

## In ordinary category theory

### In terms of splitting of idempotents

###### Definition

For $C$ a small category write

$\overline{C}↪\left[{C}^{\mathrm{op}},\mathrm{Set}\right]$\overline{C} \hookrightarrow [C^{op}, Set]

for the full subcategory of the category of presheaves on $C$ on the retracts of representable functor.

This $\overline{C}$ is called the Cauchy completion of $C$.

For instance (BorceuxDejean, below theorem 1).

###### Theorem

The Cauchy completion $\overline{C}$ satisfies the following properties

1. $\overline{C}$ is a small category;

2. $C$ is a full subcategory $C↪\overline{C}$;

3. every idempotent in $\overline{C}$ splits;

4. the inclusion $C↪\overline{C}$ is an equivalence of categories precisely if already every idempotent in $C$ splits;

5. there is an equivalence of categories

$\left[{C}^{\mathrm{op}},\mathrm{Set}\right]\simeq \left[{\overline{C}}^{\mathrm{op}},\mathrm{Set}\right]\phantom{\rule{thinmathspace}{0ex}}.$[C^{op}, Set] \simeq [\overline{C}^{op}, Set] \,.

This appears for instance as (BorceuxDejean, theorem 1).

###### Proof

$\overline{C}$ is small because $\left[{C}^{\mathrm{op}},\mathrm{Set}\right]$ is a well-powered category. It contains $C$ as a full subcategory because the Yoneda embedding is a full and faithful functor. Every idempotent splits in $\overline{C}$ because it does so in $\left[{C}^{\mathrm{op}},\mathrm{Set}\right]$ and because the composite of two retractions is a retraction.

A retract of a representale $y\left(c\right)\in \left[{C}^{\mathrm{op}},\mathrm{Set}\right]$ induces an idempotent on $y\left(c\right)$ and hence by the Yoneda lemma an idempotent on $c\in C$. If $C$ is already idempotent complete, this splits and produces a retraction of $c$ in $C$ and hence of $y\left(C\right)$ in $\left[{C}^{\mathrm{op}},\mathrm{Set}\right]$. Since this is necessarily isomorphic to the original retraction, we find that every retract of the representable $y\left(c\right)$ is itself representable, therefore $C\simeq \overline{C}$ in this case.

### In terms of tiny objects

###### Proposition

The Cauchy completion $\overline{C}$ is equivalently the full subcategory of $\left[{C}^{\mathrm{op}},\mathrm{Set}\right]$ on the tiny objects (“small projective objects”).

This appears for instance as (BorceuxDejean, prop. 2).

### In terms of absolute colimits

###### Proposition

The following conditions are equivalent for a small category $C$.

1. $C$ is Cauchy complete;

2. $C$ has all small absolute colimits.

### In terms of profunctors

We discuss Cauchy completion of small categories in terms of profunctors.

Write $*$ for the terminal category (single object, single morphism). Let $C$ be a small category

###### Remark

The category $C$ is equivalent to the functor category out of the point

$C\simeq \mathrm{Func}\left(*,C\right)\phantom{\rule{thinmathspace}{0ex}}.$C \simeq Func(*,C) \,.

Its category of presheaves is equivalent to the profunctor category

$\left[{C}^{\mathrm{op}},\mathrm{Set}\right]\simeq \mathrm{Profunc}\left(*,C\right)\phantom{\rule{thinmathspace}{0ex}}.$[C^{op}, Set] \simeq Profunc(*, C) \,.

In these terms the Yoneda embedding $C↪\left[{C}^{\mathrm{op}},\mathrm{Set}\right]$ is the canonical inclusion

$\mathrm{Func}\left(*,C\right)↪\mathrm{Profunc}\left(*,C\right)\phantom{\rule{thinmathspace}{0ex}}.$Func(*,C) \hookrightarrow Profunc(*,C) \,.

Accordingly the Cauchy completion, def. 1 is a full subcategory of the profunctor category

$\overline{C}↪\mathrm{Profunc}\left(*,C\right)\phantom{\rule{thinmathspace}{0ex}}.$\overline{C} \hookrightarrow Profunc(*,C) \,.
###### Proposition

A profunctor $F:*⇸C$ belongs to $\overline{C}$ precisely if it has a right adjoint in Prof.

This appears for instance as (BorceuxDejean, prop. 4).

###### Theorem

For a small category $C$, the following are equivalent

1. $C$ is Cauchy complete;

2. a profunctor $*⇸C$ has a right adjoint precisely if it is a functor;

3. for every small category $A$ a profunctor $A⇸C$ has a right adjoint precisely if it is a functor;

This appears for instance as (BorceuxDejean, theorem 2).

### In terms of essential geometric morphisms

In the context of topos theory we say, for $C$ small category, that an adjoint triple of functors

$\mathrm{Set}\stackrel{\stackrel{{f}_{!}}{\to }}{\stackrel{\stackrel{{f}^{*}}{←}}{\underset{{f}_{*}}{\to }}}\left[C,\mathrm{Set}\right]$Set \stackrel{\overset{f_!}{\to}}{\stackrel{\overset{f^*}{\leftarrow}}{\underset{f_*}{\to}}} [C,Set]

is an essential geometric morphism of toposes $f:\mathrm{Set}\to \left[C,\mathrm{Set}\right]$; or an essential point of $\left[C,\mathrm{Set}\right]$.

By the adjoint functor theorem this is equivalently simply a single functor ${f}^{*}:\left[C,\mathrm{Set}\right]\to \mathrm{Set}$ that preserves all small limits and colimits. Write

${\mathrm{Topos}}_{\mathrm{ess}}\left(\mathrm{Set},\left[C,\mathrm{Set}\right]\right)\simeq \mathrm{LRFunc}\left(\left[C,\mathrm{Set}\right],\mathrm{Set}\right)\subset \mathrm{Func}\left(\left[C,\mathrm{Set}\right],\mathrm{Set}\right)$Topos_{ess}(Set,[C,Set]) \simeq LRFunc([C,Set], Set) \subset Func([C,Set], Set)

for the full subcategory of the functor category on functors that have a left adjoint and a right adjoint.

###### Proposition

For $C$ a small category there is an equivalence of categories

$\overline{C}\simeq {\mathrm{Topos}}_{\mathrm{ess}}\left(\mathrm{Set},\left[C,\mathrm{Set}\right]{\right)}^{\mathrm{op}}$\overline{C} \simeq Topos_{ess}(Set, [C,Set])^{op}

of its Cauchy completion, def. 1, with the category of essential points of $\left[C,\mathrm{Set}\right]$.

###### Proof

We first exhibit a full inclusion ${\mathrm{Topos}}_{\mathrm{ess}}\left(\mathrm{Set},\left[C,\mathrm{Set}\right]{\right)}^{\mathrm{op}}↪\overline{C}$.

So let $\mathrm{Set}\stackrel{\stackrel{{f}_{!}}{\to }}{\stackrel{\stackrel{{f}^{*}}{←}}{\underset{{f}_{*}}{\to }}}\left[C,\mathrm{Set}\right]$ be an essential geometric morphism. Then because ${f}_{!}$ is left adjoint and thus preserves all small colimits and because every set $S\in \mathrm{Set}$ is the colimit over itself of the singleton set we have that

${f}_{!}S\simeq \coprod _{s\in S}{f}_{!}\left(*\right)$f_! S \simeq \coprod_{s \in S} f_!(*)

is fixed by a choice of copresheaf

$F:={f}_{!}\left(*\right)\in \left[C,\mathrm{Set}\right]\phantom{\rule{thinmathspace}{0ex}}.$F := f_!(*) \in [C, Set] \,.

The $\left({f}_{!}⊣{f}^{*}\right)$-adjunction isomorphism then implies that for all $H\in \left[C,\mathrm{Set}\right]$ we have

${f}^{*}H\simeq \mathrm{Set}\left(*,{f}^{*}H\right)\simeq \left[C,\mathrm{Set}\right]\left({f}_{!}*,H\right)\simeq \left[C,\mathrm{Set}\right]\left(F,H\right)\phantom{\rule{thinmathspace}{0ex}}.$f^* H \simeq Set(*, f^* H) \simeq [C,Set](f_! *, H) \simeq [C,Set](F,H) \,.

naturally in $H$, and hence that

${f}^{*}\left(-\right)\simeq \left[C,\mathrm{Set}\right]\left(F,-\right):\mathrm{Set}\to \left[C,\mathrm{Set}\right]\phantom{\rule{thinmathspace}{0ex}}.$f^*(-) \simeq [C,Set](F,-) : Set \to [C,Set] \,.

By assumption this has a further right adjoint ${f}_{!}$ and hence preserves all colimits. By the discussion at tiny object it follows that $F\in \left[C,\mathrm{Set}\right]$ is a tiny object. By prop. 1 this means that $F$ belongs to $\overline{C}\subset \left[C,\mathrm{Set}\right]$.

A morphism $f⇒g$ between geometric morphisms $f,g:\mathrm{Set}\to \left[C,\mathrm{Set}\right]$ is a geometric transformation, which is a natural transformation ${f}^{*}⇒{g}^{*}$, hence by the above a natural transformation $\left[C,\mathrm{Set}\right]\left(F,-\right)⇒\left[C,\mathrm{Set}\right]\left(G,-\right)$. By the Yoneda lemma these are in bijection with morphisms $G\to H$ in $\left[C,\mathrm{Set}\right]$. This gives the full inclusion ${\mathrm{Topos}}_{\mathrm{ess}}\left(\mathrm{Set},\left[C,\mathrm{Set}\right]{\right)}^{\mathrm{op}}\subset \overline{C}$.

The converse inclusion is now immediate by the same arguments: since the objects in $\overline{C}$ are precisely the tiny objects $F\in \left[C,\mathrm{Set}\right]$ each of them corresponds to a functor $\left[C,\mathrm{Set}\right]\left(F,-\right):\left[C,\mathrm{Set}\right]\to \mathrm{Set}$ that has a right adjoint. Since this generally also has a left adjoint, it is the inverse image of an essential geometric morphism $f:\mathrm{Set}\to \left[C,\mathrm{Set}\right]$.

Write ${\mathrm{Cat}}_{\mathrm{Cauchy}}↪$ Cat for the full sub-2-category of Cat on the Cauchy-complete categories.

###### Proposition

The 2-category of Cauchy complete categories is a coreflective full sub-2-category of Topos with essential geometric morphisms

${\mathrm{Cat}}_{\mathrm{Cauchy}}↪{\mathrm{Topos}}_{\mathrm{ess}}$Cat_{Cauchy} \hookrightarrow Topos_{ess}

$\left(\left[-,\mathrm{Set}\right]⊣{\mathrm{Topos}}_{\mathrm{ess}}\left(\mathrm{Set},-\right)\right):{\mathrm{Topos}}_{\mathrm{ess}}\stackrel{\stackrel{{\mathrm{Cat}}_{\mathrm{Cauchy}}\left(-,\mathrm{Set}\right)}{↩}}{\underset{{\mathrm{Topos}}_{\mathrm{ess}}\left(\mathrm{Set},-\right)}{\to }}{\mathrm{Cat}}_{\mathrm{Cauchy}}\phantom{\rule{thinmathspace}{0ex}}.$([-,Set] \dashv Topos_{ess}(Set,-) ) : Topos_{ess} \stackrel{\overset{Cat_{Cauchy}(-,Set)}{\hookleftarrow}}{\underset{Topos_{ess}(Set,-)}{\to}} Cat_{Cauchy} \,.
###### Proof

We first claim that when working with all categories instead of just the Cauchy-complete categories there is a 2-adjunction

$\left(\left[-,\mathrm{Set}\right]⊣{\mathrm{Topos}}_{\mathrm{ess}}\left(\mathrm{Set},-\right)\right):{\mathrm{Topos}}_{\mathrm{ess}}\stackrel{\stackrel{\left[-,\mathrm{Set}\right]}{←}}{\underset{{\mathrm{Topos}}_{\mathrm{ess}}\left(\mathrm{Set},-\right)}{\to }}\mathrm{Cat}\phantom{\rule{thinmathspace}{0ex}}.$([-,Set] \dashv Topos_{ess}(Set,-) ) : Topos_{ess} \stackrel{\overset{[-,Set]}{\leftarrow}}{\underset{Topos_{ess}(Set,-)}{\to}} Cat \,.

This is exhibited by the following equivalence of hom-categories

$\begin{array}{rl}\mathrm{Func}\left(C,{\mathrm{Topos}}_{\mathrm{ess}}\left(\mathrm{Set},E\right)\right)& \simeq \mathrm{Func}\left(C,\mathrm{LRFunc}\left(E,\mathrm{Set}\right)\right)\\ & \simeq \mathrm{LRFunc}\left(E,\mathrm{Func}\left(C,\mathrm{Set}\right)\right)=:\mathrm{LRFunc}\left(E,\left[C,\mathrm{Set}\right]\right)\\ & \simeq {\mathrm{Topos}}_{\mathrm{ess}}\left(\left[C,\mathrm{Set}\right],E\right)\end{array}$\begin{aligned} Func(C, Topos_{ess}(Set, E)) & \simeq Func(C, LRFunc(E, Set)) \\ & \simeq LRFunc(E, Func(C,Set)) =: LRFunc(E, [C,Set]) \\ & \simeq Topos_{ess}([C,Set], E) \end{aligned}

natural in $C\in \mathrm{Cat}$ and $E\in \mathrm{Topos}$. Here

• the first equivalence is by definition of essential geometric morphism;

• the second equivalence follows by observing that limits and colimits in presheaf categories are computed objectwise;

• the third equivalence is again the definition of essential geometric morphisms.

Now by prop. 4 we have that the components of the unit of this adjunction

$C\to {\mathrm{Topos}}_{\mathrm{ess}}\left(\mathrm{Set},\left[C,\mathrm{Set}\right]\right)$C \to Topos_{ess}(Set,[C,Set])

are equivalences precisely if $C$ is Cauchy-complete. This means that restricted along ${\mathrm{Cat}}_{\mathrm{Cauchy}}↪\mathrm{Cat}$ the adjunction exhibits a coreflective embedding.

## In enriched category theory

We discuss Cauchy completion in $𝒱$-enriched category theory, for $𝒱$ a closed symmetric monoidal category with all limits and colimits. The discussion in ordinary category theory above is the special case where $𝒱:=$ Set.

The key to the enriched version is the reformulation of ordinary Cauchy completion in terms of profunctors as discussed above. These have an immediate generalization to enriched category theory, and so one takes this formulation as the definition.

As before, we have

###### Remark

Every small $𝒱$-category $C$ is equivalence to the $𝒱$-enriched functor category

$C\simeq 𝒱\mathrm{Func}\left(I,C\right)\phantom{\rule{thinmathspace}{0ex}},$C \simeq \mathcal{V}Func(I,C) \,,

where $I$ is the $𝒱$-category with a single object $*$ and $I\left(*,*\right)={I}_{𝒱}$, the tensor unit in $𝒱$.

Also,

$\left[{C}^{\mathrm{op}},𝒱\right]\simeq 𝒱\mathrm{Profunc}\left(I,C\right)$[C^{op}, \mathcal{V}] \simeq \mathcal{V}Profunc(I, C)

and the canonical $𝒱$-enriched functor

$𝒱\mathrm{Func}\left(I,C\right)↪𝒱\mathrm{Profuc}\left(I,C\right)$\mathcal{V}Func(I,C) \hookrightarrow \mathcal{V}Profuc(I,C)

is the enriched Yoneda embedding.

###### Definition

For $C$ a small $𝒱$-enriched category, the Cauchy completion of $C$ is the full $𝒱$-subcategory

$\overline{C}↪𝒱\mathrm{Profunc}\left(I,C\right)$\overline{C} \hookrightarrow \mathcal{V}Profunc(I,C)

on those profunctors with a right adjoint in $𝒱$Prof.

## 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=\left(\left[0,\infty \right],\ge \right)$, 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}={\mathrm{hom}}_{X}:X×X\to \left[0,\infty \right]$d_X = hom_X: X \times X \to [0, \infty]

such that

$d\left(x,y\right)+d\left(y,z\right)\ge d\left(x,z\right),\phantom{\rule{2em}{0ex}}0\ge d\left(x,x\right)$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:X\to Y$ here just means a function from $X$ to $Y$ such that

${d}_{X}\left(x,y\right)\ge {d}_{Y}\left(f\left(x\right),f\left(y\right)\right)$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 $f\to g:X\to Y$ in this case boils down to an instance of a property: that

$0\ge {d}_{Y}\left(f\left(x\right),g\left(x\right)\right)$0 \geq d_Y(f(x), g(x))

for all $x$ in $X$. If $f,g$ are valued in $\left[0,\infty \right]$, this just means $f\left(x\right)\ge g\left(x\right)$ for all $x$.

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

$p:{X}^{\mathrm{op}}\to \left[0,\infty \right]$p: X^{op} \to [0, \infty]

for which there is an $X$-module $q:X\to 1$ on the other side, an enriched functor

$q:X\to \left[0,\infty \right]$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:

$\left(\mathrm{Id}:1\to 1\right)\to \left(1\stackrel{p}{\to }X\stackrel{q}{\to }1\right)$(Id: \mathbf{1} \to \mathbf{1}) \to (\mathbf{1} \overset{p}{\to} X \overset{q}{\to} \mathbf{1})

and a counit:

$\left(X\stackrel{q}{\to }1\stackrel{p}{\to }X\right)\to \left(\mathrm{Id}:X\to X\right)$(X \overset{q}{\to} \mathbf{1} \overset{p}{\to} X) \to (Id: X \to X)

Recall now that ${\mathrm{Id}}_{X}:X\to X$ in the bicategory of modules is the unit bimodule ${y}_{X}:X\to {V}^{{X}^{\mathrm{op}}}$ given by the enriched Yoneda embedding, or in different words, ${\mathrm{hom}}_{X}={d}_{X}:{X}^{\mathrm{op}}×X\to \left[0,\infty \right]$. 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 $p⊣q$ boils down to having the property

$0\ge {\int }^{x\in X}q\left(x\right)+p\left(x\right)=\underset{x\in X}{\mathrm{inf}}q\left(x\right)+p\left(x\right)$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\left(x\right)+q\left(y\right)\ge {d}_{X}\left(x,y\right)$p(x) + q(y) \geq d_X(x, y)

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

${d}_{\overline{X}}\left(p,x\right)<\epsilon ,\phantom{\rule{thinmathspace}{0ex}}{d}_{\overline{X}}\left(x,p\right)<\epsilon$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 $\overline{X}$. If $p,p\prime$ are two points of the Cauchy completion thus defined, then their distance is defined by the usual formula for enriched presheaves:

$d\left(p,p\prime \right)={\int }_{x\in X}{\mathrm{hom}}_{\left[0,\infty \right]}\left(p\left(x\right),p\prime \left(x\right)\right)=\underset{x\in X}{\mathrm{sup}}\mathrm{max}\left\{0,p\prime \left(x\right)-p\left(x\right)\right\}$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\left(x,y\right)=d\left(y,x\right)$, separation $d\left(x,y\right)>0$ for $x\ne y$, and finiteness $d\left(x,y\right)<\infty$), this provides an elegant alternative definition of Cauchy completion. In essence, all it is doing is taking the metric closure $\overline{X}$ of the embedding of $X$ into the already complete space of short maps:

${y}_{X}:X\to \left[0,\infty {\right]}^{{X}^{\mathrm{op}}}:x↦{d}_{X}\left(-,x\right)$y_X: X \to [0, \infty]^{X^{op}}: x \mapsto d_X(-, x)

The presheaf-hom definition of the distance formula for $\overline{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 $\left[0,\infty \right]$:

$\sigma d\left(r,s\right)=d\left(r,s\right)+d\left(s,r\right)=\mathrm{max}\left\{0,s-r\right\}+\mathrm{max}\left\{0,r-s\right\}=\mid r-s\mid$\sigma d(r, s) = d(r, s) + d(s, r) = \max\{0, s-r\} + \max\{0, r-s\} = |r - s|

or equivalently

$\sigma d\left(r,s\right)=d\left(r,s\right)+d\left(s,r\right)=\mathrm{max}\left(\mathrm{max}\left\{0,s-r\right\},\mathrm{max}\left\{0,r-s\right\}\right)=\mid r-s\mid$\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\left(p,p\prime \right)={\int }_{x\in X}\sigma d\left(p\left(x\right),p\prime \left(x\right)\right)=\underset{x\in X}{\mathrm{sup}}\mid p\left(x\right)-p\prime \left(x\right)\mid$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 $\overline{X}$ of a symmetric metric space $X$ as a general (Lawvere) metric space is not necessarily the same as its completion $\sigma \overline{X}$ as a symmetric metric space, but $\sigma \overline{X}$ is the symmetrisation of $\overline{X}$.

### Ordinary ($\mathrm{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:1\to C$ be a point of $\overline{C}$, with module $q:C\to 1$ as its right adjoint in the bicategory of modules. As functors,

$p:{C}^{\mathrm{op}}\to \mathrm{Set},\phantom{\rule{thinmathspace}{0ex}}q:C\to \mathrm{Set}$p: C^{op} \to Set, \, q: C \to Set

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

$\eta :1\to {\int }^{c\in \mathrm{Ob}\left(C\right)}q\left(c\right)×p\left(c\right),\phantom{\rule{2em}{0ex}}{\epsilon }_{c,d}:p\left(c\right)×q\left(d\right)\to C\left(c,d\right)$\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\left(c\right)$ and $q\left(c\right)$ measure “distances” = homs:

$p\left(c\right)\cong {\mathrm{Set}}^{{C}^{\mathrm{op}}}\left(C\left(-,c\right),p\right),\phantom{\rule{2em}{0ex}}q\left(c\right)\cong {\mathrm{Set}}^{{C}^{\mathrm{op}}}\left(p,C\left(-,c\right)\right)$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\left(c\right)$ is the bimodule composite

$\left(1\stackrel{c}{\to }C\stackrel{q}{\to }1\right)$(\mathbf{1} \overset{c}{\to} C \overset{q}{\to} \mathbf{1})

where $c$ is shorthand for the module $C\left(-,c\right):{C}^{\mathrm{op}}\to \mathrm{Set}$; this is just an instance of the Yoneda lemma:

$q{\circ }_{C}C\left(-,c\right)\stackrel{\mathrm{def}}{=}{\int }^{d\in C}q\left(d\right)×C\left(d,c\right)\stackrel{\mathrm{Yoneda}}{\cong }q\left(c\right).$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 $p⊣q$, there are, for any set $S$, natural bijections

$\frac{\frac{S\to q\left(c\right)}{S\to q{\circ }_{C}C\left(-,c\right)}}{\frac{p{\circ }_{1}S\to C\left(-,c\right)}{p\left(-\right)×S\to C\left(-,c\right)}}$\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 $S\to {\mathrm{Set}}^{{C}^{\mathrm{op}}}\left(p,C\left(-,c\right)\right)$. Therefore we have a natural bijection

$\frac{S\to q\left(c\right)}{S\to {\mathrm{Set}}^{{C}^{\mathrm{op}}}}$\frac{S \to q(c)}{S \to Set^{C^{op}}}

and this proves $q\left(c\right)\cong {\mathrm{Set}}^{{C}^{\mathrm{op}}}\left(p,C\left(-,c\right)\right)$.

With these identifications of $q\left(c\right)$ and $p\left(c\right)$, the unit of the adjunction $p⊣q$ takes the form

$\eta :1\to {\int }^{c}{\mathrm{Set}}^{{C}^{\mathrm{op}}}\left(p,C\left(-,c\right)\right)×{\mathrm{Set}}^{{C}^{\mathrm{op}}}\left(C\left(-,c\right),p\right)$\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

$\sum _{c}{\mathrm{Set}}^{{C}^{\mathrm{op}}}\left(p,C\left(-,c\right)\right)×{\mathrm{Set}}^{{C}^{\mathrm{op}}}\left(C\left(-,c\right),p\right)$\sum_c Set^{C^{op}}(p, C(-, c)) \times Set^{C^{op}}(C(-, c), p)

and hence the unit element $\eta$ is represented by a pair of transformations

$i:p\to C\left(-,c\right),\phantom{\rule{2em}{0ex}}\pi :C\left(-,c\right)\to p$i: 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

$\left(p\stackrel{p\circ \eta }{\to }p\circ q\circ p\stackrel{\epsilon }{\to }p\right)={1}_{p},$(p \overset{p \circ \eta}{\to} p \circ q \circ p \overset{\varepsilon}{\to} p) = 1_p,

that

$\left(p\stackrel{i}{\to }C\left(-,c\right)\stackrel{\pi }{\to }p\right)={1}_{p}$(p \overset{i}{\to} C(-, c) \overset{\pi}{\to} p) = 1_p

and so a point $p$ in the Cauchy completion $\overline{C}$ must be a retract of a representable $C\left(-,c\right)$. Spelling this out a little more: the composite

$C\left(-,c\right)\stackrel{\pi }{\to }p\stackrel{i}{\to }C\left(-,c\right)$C(-, c) \overset{\pi}{\to} p \overset{i}{\to} C(-, c)

is an idempotent represented by a morphism $e:c\to c$ in $C$ (by the Yoneda lemma), and this factorization through $p$ splits the idempotent $C\left(-,e\right)$ in ${\mathrm{Set}}^{{C}^{\mathrm{op}}}$.

Indeed, the claim is that modules $p:{C}^{\mathrm{op}}\to \mathrm{Set}$ in the Cauchy completion are precisely those presheaves on $C$ which arise as retracts of representables in ${\mathrm{Set}}^{{C}^{\mathrm{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 $\mathrm{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 $\mathrm{Set}$ or a presheaf category), idempotents $e:c\to c$ split automatically: just take the equalizer of the pair

$c\stackrel{\stackrel{e}{\to }}{\underset{1}{\to }}c$c \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:C\to D$ 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}^{\mathrm{op}}\to \mathrm{Set}$ is any functor, then (because idempotents split in $\mathrm{Set}$) there is a unique extension $\overline{F}:{\overline{C}}^{\mathrm{op}}\to \mathrm{Set}$ of $F$. Therefore we have an equivalence

${\mathrm{Set}}^{{C}^{\mathrm{op}}}\simeq {\mathrm{Set}}^{{\overline{C}}^{\mathrm{op}}}$Set^{C^{op}} \simeq Set^{\bar{C}^{op}}

and we say that $C$ and $\overline{C}$ are Morita equivalent.

### Of prosets

Every ordinary poset clearly is Cauchy complete, since the only idempotents are the identity morphisms. The internalization of this statement requires some extra assumotions:

###### Proposition

Internal to any regular category every poset is Cauchy complete.

This appears as (Rosolini, prop. 2.1).

###### Proposition

Internal to any exact category the Cauchy completion of any preorder exists and is its poset reflection?.

This appears as (Rosolini, corollary. 2.3).

Moreover, the characterization of Cauchy completion by left adjoint profunctors requires the internal axiom of choice:

###### Proposition

In a given ambient context, the following are equivalent:

1. the axiom of choice hold;

2. every profunctor $F:A⇸C$ between posets is an ordinary functor when it has a right adjoint.

For instance (BorceuxDejean, prop. 5).

## 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?

## References

The notion of Cauchy complete categories was introduced in

• Bill Lawvere, Metric spaces, generalized logic and closed categories Rend. Sem. Mat. Fis. Milano, 43:135–166 (1973)

Reprints in Theory and Applications of Categories, No. 1 (2002) pp 1-37 (tac)

Surveys are in

• Francis Borceux and D. Dejean, Cauchy completion in category theory Cahiers Topologie Géom. Différentielle Catégoriques, 27:133–146, (1986) (numdam)
• A. Carboni and Ross Street, Order ideal in categories Pacific J. Math., 124:275–288, 1986.

Further references include for instance

• R. Walters, Sheaves and Cauchy complete categories , Cahiers Top. Geom. Diff. Cat. 22 no. 3 (1981) 283-286 (numdam)

• R. Walters, Sheaves on sites as Cauchy-complete categories, J. Pure Appl. Algebra 24 (1982) 95-102

Cauchy completion of internal prosets is discussed in

• G. Rosolini, A note on Cauchy completeness for preorders (pdf)

Revised on May 29, 2013 15:15:52 by Urs Schreiber (89.204.153.151)