nLab premetric space (Gilbert)

This article is about premetric spaces as defined by Gilbert 2017. For other notions of premetric spaces, see premetric space.


Contents

Idea

A notion of space that is more general than metric space, but not so general as to be the notion of premetric space defined by Auke Booij as just a set equipped with a bare ternery relation.

Definition

A premetric space is a set SS with a ternary relation a∼ ϵba \sim_\epsilon b for a∈Sa \in S, b∈Sb \in S, and ϵ∈ℚ +\epsilon \in \mathbb{Q}_+, where ℚ +\mathbb{Q}_+ represent the positive rational numbers in ℚ\mathbb{Q}, satisfying the five conditions:

  • reflexivity: for all elements a∈Sa \in S and positive rational numbers ϵ\epsilon, a∼ ϵaa \sim_\epsilon a

  • symmetry: for all elements a,b∈Sa, b \in S and positive rational numbers ϵ\epsilon, a∼ ϵba \sim_\epsilon b implies b∼ ϵab \sim_\epsilon a

  • triangularity: for all elements a,b,c∈Sa, b, c \in S and positive rational numbers ϵ\epsilon, δ\delta, a∼ ϵba \sim_\epsilon b and b∼ δcb \sim_\delta c implies a∼ ϵ+δca \sim_{\epsilon + \delta} c

  • roundedness: for all elements a,b∈Sa, b \in S and positive rational numbers ϵ\epsilon, a∼ ϵba \sim_\epsilon b implies that there exists a positive rational number δ\delta such that a∼ δba \sim_\delta b

  • separateness: for all elements a,b∈Sa, b \in S, if a∼ ϵba \sim_\epsilon b for all positive rational numbers ϵ\epsilon, then a=ba = b

The ternary relation itself is called a premetric or a closeness relation.

Examples

The category of premetric spaces and Lipschitz functions

Given a positive rational number δ\delta and two premetric spaces SS and TT, a function f:S→Tf:S \to T is a Lipschitz function if for all elements a,b∈Sa, b \in S and positive rational numbers ϵ\epsilon, a∼ ϵba \sim_\epsilon b implies f(a)∼ δ⋅ϵf(b)f(a) \sim_{\delta \cdot \epsilon} f(b).

Premetric spaces and Lipschitz functions between premetric spaces form a category PrSpace\mathrm{PrSpace}.

Lipschitz functions are particularly notable because any Lipschitz function f:S→Tf:S \to T can be lifted up to a function f′:𝒞(S)→Tf':\mathcal{C}(S) \to T, where 𝒞(S)\mathcal{C}(S) is the sequential Cauchy completion of the premetric space SS. This allows the sequential Cauchy completion S↦𝒞(S)S \mapsto \mathcal{C}(S) to be extended to an idempotent monadic endofunctor on PrSpace\mathrm{PrSpace}.

Generalizations

The usual notion of a metric space uses the real numbers rather than the rational numbers in the metric inequalities. This means that to generalize from metric spaces, one can use the positive real numbers instead of the positive rational numbers as the indexing set of the ternary relation (i.e. a∼ ϵba \sim_\epsilon b for a∈Sa \in S, b∈Sb \in S, and ϵ∈ℝ +\epsilon \in \mathbb{R}_+), yielding a notion of a real premetric space. The original notion of a premetric space by Gilbert can then be called a rational premetric space.

More generally, the notion of a premetric space can be generalized from the positive rationals to the positive cone R +R_+ of any densely ordered Archimedean ordered integral domain RR. Examples of such RR include the real numbers, the dyadic rational numbers and the decimal numbers, as well as any other extension ℤ[1/b]\mathbb{Z}[1/b] of the integers, for positive integer b≥2b \geq 2. The mutliplicative structure of the integral domain is still needed to define Lipschitz functions between these generalized premetric spaces.

Thus, a generalized premetric space is a set SS with a ternary relation a∼ ϵba \sim_\epsilon b for a∈Sa \in S, b∈Sb \in S, and ϵ∈R +\epsilon \in R_+, satisfying the five conditions:

  • reflexivity: for all elements a∈Sa \in S and positive elements ϵ∈R +\epsilon \in R_+, a∼ ϵaa \sim_\epsilon a

  • symmetry: for all elements a,b∈Sa, b \in S and positive elements ϵ∈R +\epsilon \in R_+, a∼ ϵba \sim_\epsilon b implies b∼ ϵab \sim_\epsilon a

  • triangularity: for all elements a,b,c∈Sa, b, c \in S and positive elements ϵ,δ∈R +\epsilon, \delta \in R_+, a∼ ϵba \sim_\epsilon b and b∼ δcb \sim_\delta c implies a∼ ϵ+δca \sim_{\epsilon + \delta} c

  • roundedness: for all elements a,b∈Sa, b \in S and positive elements ϵ∈R +\epsilon \in R_+, a∼ ϵba \sim_\epsilon b implies that there exists a positive element δ∈R +\delta \in R_+ such that a∼ δba \sim_\delta b

  • separateness: for all elements a,b∈Sa, b \in S, if a∼ ϵba \sim_\epsilon b for all positive elements ϵ∈R +\epsilon \in R_+, then a=ba = b

References

  • Gaëtan Gilbert: Formalising real numbers in homotopy type theory, In: CPP’17, Proceedings of the 6th ACM SIGPLAN Conference on Certified Programs and Proofs (2017) 112–124 [doi:10.1145/3018610.3018614]

  • Lorenzo Molena: A Cubical Path from Algebra to Analysis, talk at TYPES 2026, 8 May 2026 [abstract, slides]

Last revised on October 5, 2026 at 05:21:25. See the history of this page for a list of all contributions to it.