nLab metric on a category

Contents

Idea

Lawvere 1973 pointed out that metric spaces are precisely categories enriched in the monoidal poset ([0,],)([0, \infty], \geq), where the tensor product is taken to be addition. The composition operation in this enriched category identifies with the triangle identity in the metric space (see at triangle inequality – Interpretation in enriched category theory).

Alternatively, taking the monoidal product to be supremum instead, enriched categories amount to Lawvere ultrametric spaces.

Thus generalized, many constructions and results on metric spaces turn out to be special cases of yet more general constructions and results of enriched category theory. This includes for example the notion of Cauchy completion, which in general enriched category theory is related to Karoubi envelopes and Morita equivalence.

The symmetry axiom is naturally interpreted as giving an enriched \dagger -category structure, if we treat the poset [0,][0, \infty] as a \dagger-monoid where the involution \dagger is the identity. Note that when one is enriching over a cartesian monoidal poset, there is no difference between a \dagger-category and a groupoid, so in that sense, ultrametric spaces could be regarded as enriched groupoids, a perhaps more familiar concept. However, note that the requisite axioms for enriched groupoids do not make sense when the base of enrichment is not cartesian, so we cannot regard an ordinary metric space as an enriched groupoid, just as an enriched \dagger-category.

In the presence of the symmetry axiom, the "separation" axiomx=yx=y if d(x,y)=0d(x,y)=0” is equivalent to skeletality of an enriched category. That is, a pseudo-metric space is a metric space precisely when it is skeletal. But in the non-symmetric case, this separation axiom is stronger than skeletality; the latter would say only “x=yx=y if d(x,y)=d(y,x)=0d(x,y)=d(y,x)=0”. That is, a quasi-pseudo-metric space can be skeletal without being a quasi-metric space, at least the way the latter term is usually used.

Note that like any kind of enriched category, Lawvere metric spaces are monads in a bicategory of “matrices”, whose objects are sets and whose morphisms from XX to YY are functions d:X×Y[0,]d:X\times Y \to [0,\infty]. This sort of perspective can be generalized to many other kinds of topological structures; an exposition is given in Hofmann, Seal & Tholen 2014.

The category of metric spaces and categories of random maps as generalised metric spaces were studied by Meng 1988.

References

The original observation:

and further discussion:

Application to triangulated categories in relation to their enhancement:

Review:

Last revised on January 27, 2026 at 13:59:53. See the history of this page for a list of all contributions to it.