Generalized metric space

From HandWiki

In mathematics, specifically in category theory, a generalized metric space is a metric space but without the symmetry property and some other properties.[1] Precisely, it is a category enriched over [0,∞], the one-point compactification of ℝ. The notion was introduced in 1973 by Lawvere who noticed that a metric space can be viewed as a particular kind of a category.

The categorical point of view is useful since by Yoneda's lemma, a generalized metric space can be embedded into a much larger category in which, for instance, one can construct the Cauchy completion of the space.

Discussion

We can view ℝ+‾=[0,∞] as a symmetric monoidal category as follows.[2] An object there is a point in ℝ+‾, the hom set between objects a,b

Hom⁡(a,b)={{b−a},if b≥a∅,else.

and the composition given by sum

∘:Hom⁡(b,c)×Hom⁡(a,b)→Hom⁡(c,a),({c−b},{b−a})↦{c−b+b−a}

The tensor operation is a⊗b=a+b. This category structure is equivalent to one obtained by viewing the poset (ℝ+‾,≥) as a category in the usual way. The above definition is analogous to the following example: let M be the Boolean algebra generated by some subsets of a finite set and with a→b to mean b⊃a and with a⊗b=a∪b, M is a symmetric monoidal category.

Now, let (X,d) be a metric space. Then it can be viewed as a category enriched over ℝ+‾ as follows. The objects are the points of X and we let Hom⁡(x,y)=d(x,y). The composition for x,y,z is a morphism in ℝ+‾

∘:Hom⁡(y,z)⊗Hom⁡(x,y)→Hom⁡(x,z)

and that that is well-defined is exactly the triangular inequality.

Notes

  1. ↑ namely, the property that distinct elements have nonzero distance between them and the property that the distance between two elements is always finite.
  2. ↑ Lawvere 2002, § 1, p. 145.

References

Further reading