hemimetrics
Hemimetrics are distance-like functions that generalize metrics by relaxing the symmetry requirement. Formally, a function d: X × X → [0, ∞) on a set X is a hemimetric if it satisfies nonnegativity (d(x, y) ≥ 0 for all x, y), the identity on the diagonal (d(x, x) = 0 for all x), and the triangle inequality (d(x, z) ≤ d(x, y) + d(y, z) for all x, y, z in X). Unlike metrics, symmetry is not required; in general, d(x, y) may differ from d(y, x).
If, in addition, symmetry holds for all pairs (i.e., d(x, y) = d(y, x) for all x, y),
Examples help clarify the concept. On the real line, define d(x, y) = max(0, y − x). This
Hemimetrics induce non-symmetric topologies and can be symmetrized by standard constructions (for example, taking the maximum