nLab weighted category

Contents

Contents

Idea

A weighted category or normed category can be viewed as:

Depending on the author, the precise definitions vary slightly, see below as well as the references.

Definition

A weighted category or normed category is a category, where to each morphism f:ABf:A\to B we assign a non-negative real number (or possibly infinite) w(f)w(f) called the weight or norm, such that

The assignment fw(f)f\mapsto w(f) is sometimes called a weighting.

Variations on the definition

Sometimes one wants the triangle inequality to be multiplicative rather than additive, and the identity to have weight one. (One can imagine for example exchange rates between different currencies.) Alternatively, one can take the logarithm of the weights (but then one needs to allow negative weights).

Similarly, sometimes one wants to replace the sum by a maximum or minimum.

There are additional axioms one can assume on the norm, see the references for more.

Examples

  • If (X,d)(X,d) is a metric space (or Lawvere metric space), there is a weighted category whose objects are the points of XX, and whose morphisms are curves in XX, weighted by their length.

  • The category of metric spaces and Lipschitz functions is multiplicatively weighted by the Lipschitz constants (or one can take the logarithm, see above). If one allows infinite weights, one can extend this to all functions (or all continuous functions, etc).

  • The example above restricts to Banach spaces and bounded? (or also unbounded) linear maps.

  • Every Lawvere metric space is a weighted category with a single morphism (whose weight is the distance) between any two objects.

  • Every ordinary category can be seen as a weighted category where each morphism has weight zero.

(…)

As an enriched category

Similarly to Lawvere metric spaces, weighted categories can be considered enriched categories, where the enriching category is a “many-point version” of the interval [0,][0,\infty]:

  • Define a weighted set to be a set XX equipped with a function w:X[0,]w:X\to [0,\infty];
  • Call a function f:(X,w X)(Y,w Y)f:(X,w_X)\to (Y,w_Y) short (in analogy with short maps) if and only if for all xXx\in X,
    w Y(f(x))w X(x). w_Y\big( f(x) \big) \;\le\; w_X(x) .
  • Define the tensor product of weighted sets to be the cartesian product of the sets, with the sum of the weights: given (X,w X)(X,w_X) and (Y,w Y)(Y,w_Y), and for all (x,y)XY(x,y)\in X\otimes Y,
    w XY((x,y))=w X(x)+w Y(y). w_{X\otimes Y} \big((x,y)\big) \;=\; w_X(x) + w_Y(y) .

Weighted sets and short functions, this way, form a closed monoidal category, which we denote WSetWSet. Weighted categories are precisely WSetWSet-enriched categories in this sense.

Constructions

From weighted categories to metrics

Given a weighted category CC, we can canonically construct a Lawvere metric between the objects of CC as follows:

d(X,Y)inf f:XYw(f). d(X,Y) \;\coloneqq\; \inf_{f:X\to Y} w(f) .

This is analogous to how often, in geometry as well as in ordinary life, the distance is the length of the shortest path.

Weighted limits and colimits

(Note that “weighted” in this context may refer to the weighting of the category, or to the usual weighted limits.)

(…)

See also

References

  • William Lawvere, Metric spaces, generalized logic and closed categories, Rendiconti del seminario matematico e fisico di Milano 43, 1973.

  • Renato Betti and Massimo Galuzzi, Categorie normate, Bollettino dell’Unione Matematia Italiana 11.1, 1975.

  • Marco Grandis, Categories, norms and weights, Journal of Homotopy and Related Structures 2(2), 2007.

  • Wiesław Kubiś, Categories with norms, 2017. (arXiv)

  • Peter Bubenik, Vin de Silva and Jonathan Scott, Interleaving and Gromov-Hausdorff distance, 2017. (arXiv)

  • Daniel Luckhardt and Matt Insall, Norms on Categories and Analogs of the Schroeder-Bernstein Theorem, 2021. (arXiv)

  • Paolo Perrone, Lifting couplings in Wasserstein spaces, 2021. (arXiv)

Last revised on January 19, 2025 at 21:40:18. See the history of this page for a list of all contributions to it.