A
Lawvere's metric spaces as enriched categories
Enriching over
makes a generalised metric space. The hom-object is a distance, composition is the triangle inequality , and the unit is . Enriching over truth values instead gives a preorder.
Potentials via the
-enrichment Set
and for a potential . Composition is addition and the identity is , and the hom depends only on the endpoints, so it is a state function. A functor into such a assigns potentials, and a natural transformation between two of them is a family of differences whose naturality square is an equation in .
References
- G. Max Kelly, “Basic Concepts of Enriched Category Theory” (1982)
- F. William Lawvere, “Metric spaces, generalized logic, and closed categories” (1973)