Papers
Topics
Authors
Recent
Search
2000 character limit reached

Metric Equational Theories

Updated 12 July 2026
  • Metric Equational Theories are formal systems that replace strict equalities with approximate equations (s =ε t), enabling quantitative comparisons in metric spaces.
  • They integrate methods from continuous model theory, enriched category theory, and universal algebra to capture non-expansive operations and quantitative reasoning.
  • METs underpin advanced program semantics by generalizing binary equality to metrics and quantales, facilitating analysis of probabilistic, timed, and higher-order computations.

Searching arXiv for recent and foundational papers on Metric Equational Theories and related categorical, algebraic, and program-semantic frameworks. Metric Equational Theories (METs) are formal systems for reasoning about equality up to distance. In the quantitative-algebraic setting, they replace ordinary equations by approximate equations such as s=ϵts =_\epsilon t, interpreted as the assertion that d(s,t)ϵd(\overline{s},\overline{t}) \leq \epsilon in a metric model; in continuous model theory, a metric theory equips each sort with a pseudo-metric and requires function and relation symbols to be uniformly continuous; and in enriched higher-order settings, equations may be labeled by elements of a quantale V\mathcal V, as in Γv=qw:A\Gamma \vdash v =_q w : A (Hino, 2016, Albert et al., 2016, Dahlqvist et al., 2021). Across these formulations, METs generalize binary equality to quantitative comparison, and they connect proof theory, universal algebra, category theory, and semantics of probabilistic, timed, and higher-order computation.

1. Basic formal forms

A central first-order formulation treats a quantitative algebra of signature Σ\Sigma as a metric space (A,d)(A,d) with non-expansive operations fA:Aar(f)Af^A : A^{\operatorname{ar}(f)} \to A, where the product is equipped with the sup-metric (Mio et al., 2020). In this setting, a quantitative equational theory, or MET, is a set of quantitative inferences of the form

{ti=ϵisi}iIs=ϵt,\big\{ t_i =_{\epsilon_i} s_i \big\}_{i\in I} \vdash s =_\epsilon t,

meaning that whenever d(ι(ti),ι(si))ϵid(\iota(t_i),\iota(s_i)) \leq \epsilon_i for all premises, one must have d(ι(s),ι(t))ϵd(\iota(s),\iota(t)) \leq \epsilon under any interpretation (Mio et al., 2020). The deductive apparatus extends ordinary equational logic with congruence, substitution, triangle inequality, reflexivity, the Archimedean property, and non-expansiveness. For an d(s,t)ϵd(\overline{s},\overline{t}) \leq \epsilon0-ary operation d(s,t)ϵd(\overline{s},\overline{t}) \leq \epsilon1, the non-expansiveness rule takes the form

d(s,t)ϵd(\overline{s},\overline{t}) \leq \epsilon2

A second formulation arises in continuous model theory. There, a metric theory assigns to each sort a pseudo-metric d(s,t)ϵd(\overline{s},\overline{t}) \leq \epsilon3, and all function and relation symbols are uniformly continuous with respect to those metrics (Albert et al., 2016). The associated categorical structure is a metric logical category d(s,t)ϵd(\overline{s},\overline{t}) \leq \epsilon4, where each object carries a pseudo-metric and morphisms are uniformly continuous. This yields a categorical counterpart of metric theories and interpretations, and it places METs inside the broader framework of continuous syntactic categories and metric logical functors (Albert et al., 2016).

A third formulation generalizes further from metrics to quantales. In the d(s,t)ϵd(\overline{s},\overline{t}) \leq \epsilon5-equational setting, an equation d(s,t)ϵd(\overline{s},\overline{t}) \leq \epsilon6 is labeled by an element d(s,t)ϵd(\overline{s},\overline{t}) \leq \epsilon7 of a quantale d(s,t)ϵd(\overline{s},\overline{t}) \leq \epsilon8, so that ordinary equations, inequations, metric equations, and ultrametric equations all appear as instances (Dahlqvist et al., 2021). In the metric case, d(s,t)ϵd(\overline{s},\overline{t}) \leq \epsilon9 is a non-negative rational or real bounding distance; in the Boolean case, the same format recovers ordinary equations or inequations.

2. Algebraic semantics and variety theory

The algebraic semantics of METs extends classical universal algebra from sets to metric spaces. A metric V\mathcal V0-algebra is a V\mathcal V1-algebra equipped with a metric, while a quantitative algebra is the special case in which all operations are non-expansive (Hino, 2016). Satisfaction of an M-equation

V\mathcal V2

means that for every valuation V\mathcal V3, the induced interpretations satisfy

V\mathcal V4

(Hino, 2016).

A central result is the metric analogue of Birkhoff’s HSP theorem. Varieties of metric algebras, that is, classes defined by metric equations, are exactly the classes closed under metric subalgebras, products, and quotients (Hino, 2016). The 2017 refinement distinguishes strict varieties, defined by metric equations, from continuous varieties, defined by continuous families of basic quantitative inferences. For strict varieties, closure under subalgebras, products, and quotients is again exact; for continuous varieties, the corresponding closure properties are subalgebras, products, reflexive quotients, and ultraproducts (Hino, 2017).

The technical replacement for congruence is the congruential pseudometric. A congruential pseudometric V\mathcal V5 on a metric algebra is a pseudometric bounded above by the ambient metric such that its zero-set is a classical congruence (Hino, 2017). Quotients correspond to congruential pseudometrics via the metric identification V\mathcal V6, and the collection of congruential pseudometrics forms a complete lattice (Hino, 2017). This supplies a metric version of the isomorphism-theoretic machinery of universal algebra.

The limitations of strict metric equations are also explicit. The class of normed vector spaces cannot be defined by metric equations, because it is not closed under all metric quotients (Hino, 2016). The same phenomenon is emphasized in the 2017 treatment: normed vector spaces are not a strict variety for the usual signature (Hino, 2017). The literature therefore identifies the need for broader formula classes, notably basic quantitative inferences and continuous families of such inferences (Hino, 2016, Hino, 2017).

3. Enriched categorical and internal-language semantics

Quantale-enriched formulations recast METs as internal languages for enriched categories. A V\mathcal V7-equation-in-context is a judgment

V\mathcal V8

where V\mathcal V9 lies in a basis of Γv=qw:A\Gamma \vdash v =_q w : A0 and Γv=qw:A\Gamma \vdash v =_q w : A1 are typed terms in linear Γv=qw:A\Gamma \vdash v =_q w : A2-calculus (Dahlqvist et al., 2021). The deductive system contains rules such as reflexivity, transitivity, weakening, an Archimedean rule based on the way-below relation, joins, and compatibility with operations and substitutions (Dahlqvist et al., 2021). In the metric specialization, the rule set becomes the familiar reflexivity, symmetry, triangle, weakening, Archimedean, and join principles for bounds Γv=qw:A\Gamma \vdash v =_q w : A3 (Dahlqvist et al., 2022).

The semantic structures are Γv=qw:A\Gamma \vdash v =_q w : A4-enriched autonomous categories. A Γv=qw:A\Gamma \vdash v =_q w : A5-category Γv=qw:A\Gamma \vdash v =_q w : A6 consists of a set Γv=qw:A\Gamma \vdash v =_q w : A7 and a function Γv=qw:A\Gamma \vdash v =_q w : A8 satisfying

Γv=qw:A\Gamma \vdash v =_q w : A9

For Σ\Sigma0, this recovers generalized metric spaces (Dahlqvist et al., 2021). A Σ\Sigma1-enriched autonomous category is a symmetric monoidal closed category whose hom-sets are Σ\Sigma2-categories, whose composition and tensor are Σ\Sigma3-functors, and whose adjunction Σ\Sigma4 is Σ\Sigma5-enriched (Dahlqvist et al., 2021).

The principal theorems are soundness, completeness, and internal-language results. If Σ\Sigma6 is provable, then every interpretation in a Σ\Sigma7-enriched autonomous category satisfies the corresponding enrichment bound between Σ\Sigma8 and Σ\Sigma9; conversely, if every model satisfies the judgment, then it is derivable (Dahlqvist et al., 2021). The syntactic category of a suitable (A,d)(A,d)0-equational linear (A,d)(A,d)1-theory is (A,d)(A,d)2-equivalent to the original enriched autonomous category, so the calculus functions as an internal language (Dahlqvist et al., 2021). The syntactic-semantic equivalence extends to the affine setting, and concrete systems are developed for real-time, probabilistic, and quantum higher-order programs (Dahlqvist et al., 2022).

4. From discrete arities to countable metric arities

A major recent development generalizes earlier Quantitative Equational Theories (QETs) by changing the admissible arities of operations. In QETs, operations have finite discrete arity. In the MET framework of 2025, operations no longer have finite sets as arities; instead, arities are drawn from countable metric spaces, following the enriched Lawvere-theoretic principle that arities should be the (A,d)(A,d)3-presentable objects of the underlying (A,d)(A,d)4-accessible category (Mardare et al., 17 Sep 2025). This extension is designed to present algebraic structure over (A,d)(A,d)5 that cannot be captured with finite discrete arities.

The shift in arities has a proof-theoretic consequence: the validity of terms can no longer be guaranteed independently of the validity of equations (Mardare et al., 17 Sep 2025). The resulting calculus therefore uses both formational judgments (A,d)(A,d)6 and structural judgments (A,d)(A,d)7. The application rule is

(A,d)(A,d)8

and this is paired with quantitative rules such as non-expansiveness, substitution, symmetry, triangle, continuity, and maximum (Mardare et al., 17 Sep 2025). The system is sound and complete, and every countable-arity (A,d)(A,d)9-Lawvere theory arises from an MET; conversely, every MET yields a countable-arity Lawvere theory (Mardare et al., 17 Sep 2025).

The canonical example is Cauchy completion. Let fA:Aar(f)Af^A : A^{\operatorname{ar}(f)} \to A0 be the natural numbers with metric fA:Aar(f)Af^A : A^{\operatorname{ar}(f)} \to A1. The limit operation is governed by the axiom

fA:Aar(f)Af^A : A^{\operatorname{ar}(f)} \to A2

which expresses that a Cauchy sequence has a limit within fA:Aar(f)Af^A : A^{\operatorname{ar}(f)} \to A3 of its fA:Aar(f)Af^A : A^{\operatorname{ar}(f)} \to A4-th term (Mardare et al., 17 Sep 2025). This example is explicitly identified as impossible in QETs (Mardare et al., 17 Sep 2025).

At the categorical level, these developments align with two parallel results. First, discrete equational theories in a general symmetric monoidal closed category correspond to monads preserving surjections; for fA:Aar(f)Af^A : A^{\operatorname{ar}(f)} \to A5, this recovers the characterization of metric theories with discrete arities (Rosický, 2022). Second, fA:Aar(f)Af^A : A^{\operatorname{ar}(f)} \to A6-enriched multi-sorted equational theories have an underlying classical theory fA:Aar(f)Af^A : A^{\operatorname{ar}(f)} \to A7, and free fA:Aar(f)Af^A : A^{\operatorname{ar}(f)} \to A8-algebras are obtained as suitable liftings of free fA:Aar(f)Af^A : A^{\operatorname{ar}(f)} \to A9-algebras; when {ti=ϵisi}iIs=ϵt,\big\{ t_i =_{\epsilon_i} s_i \big\}_{i\in I} \vdash s =_\epsilon t,0 is the category of pseudo-metric spaces, this supplies explicit free constructions for metric-enriched theories (Parker, 2023).

5. Program semantics, effects, and quantitative reasoning

METs have become a standard proof-theoretic language for quantitative program semantics. One line of work lifts the convex set monad from sets to metric spaces by means of the Hausdorff and Kantorovich liftings, obtaining a monad

{ti=ϵisi}iIs=ϵt,\big\{ t_i =_{\epsilon_i} s_i \big\}_{i\in I} \vdash s =_\epsilon t,1

where {ti=ϵisi}iIs=ϵt,\big\{ t_i =_{\epsilon_i} s_i \big\}_{i\in I} \vdash s =_\epsilon t,2 is the Hausdorff lifting and {ti=ϵisi}iIs=ϵt,\big\{ t_i =_{\epsilon_i} s_i \big\}_{i\in I} \vdash s =_\epsilon t,3 is the Kantorovich lifting (Mio et al., 2020). The main theorem states that this monad is presented by the quantitative equational theory of convex semilattices, so that

{ti=ϵisi}iIs=ϵt,\big\{ t_i =_{\epsilon_i} s_i \big\}_{i\in I} \vdash s =_\epsilon t,4

(Mio et al., 2020). This provides an algebraic account of nondeterministic and probabilistic choice at the level of distances.

A closely related development adds termination. Monads combining nondeterminism, probability, and termination are presented equationally by pointed convex semilattices, with bottom and black-hole axioms such as {ti=ϵisi}iIs=ϵt,\big\{ t_i =_{\epsilon_i} s_i \big\}_{i\in I} \vdash s =_\epsilon t,5 and {ti=ϵisi}iIs=ϵt,\big\{ t_i =_{\epsilon_i} s_i \big\}_{i\in I} \vdash s =_\epsilon t,6, together with their metric counterparts (Mio et al., 2020). The resulting presentation theorems connect the Eilenberg–Moore categories of the monads with the corresponding equational or quantitative theories, while also exhibiting negative results: some monad combinations with the black-hole axiom do not admit nontrivial metric presentations (Mio et al., 2020).

For higher-order calculi, METs also organize the comparison between operational and semantic program distances. In a linear lambda-calculus, the observational metric and logical metric coincide, every admissible metric {ti=ϵisi}iIs=ϵt,\big\{ t_i =_{\epsilon_i} s_i \big\}_{i\in I} \vdash s =_\epsilon t,7 satisfies

{ti=ϵisi}iIs=ϵt,\big\{ t_i =_{\epsilon_i} s_i \big\}_{i\in I} \vdash s =_\epsilon t,8

and the denotational and interactive metrics lie in between observational and equational metrics, with strict inclusions in some cases (Lago et al., 2023). The interactive metric is strictly more discriminating than the denotational one (Lago et al., 2023). This places the equational metric induced by MET-style proof systems at the top of a refinement lattice of program metrics.

Resource-sensitive higher-order systems extend this picture. A sound and complete {ti=ϵisi}iIs=ϵt,\big\{ t_i =_{\epsilon_i} s_i \big\}_{i\in I} \vdash s =_\epsilon t,9-equational system for graded lambda-calculus uses graded modal types and a Lipschitz exponential comonad satisfying

d(ι(ti),ι(si))ϵid(\iota(t_i),\iota(s_i)) \leq \epsilon_i0

capturing the quantitative effect of using a resource d(ι(ti),ι(si))ϵid(\iota(t_i),\iota(s_i)) \leq \epsilon_i1 times (Dahlqvist et al., 2023). Timed and probabilistic examples show how quantitative bounds propagate compositionally through higher-order programs (Dahlqvist et al., 2023).

6. Logical completions, higher-order quantitative relations, and limitations

Within categorical logic for continuous model theory, metric logical categories and metric logical functors provide a categorical equivalent of metric theories and interpretations (Albert et al., 2016). The model-functor correspondence is expressed by

d(ι(ti),ι(si))ϵid(\iota(t_i),\iota(s_i)) \leq \epsilon_i2

and the expansion by imaginaries d(ι(ti),ι(si))ϵid(\iota(t_i),\iota(s_i)) \leq \epsilon_i3 is the maximal conservative expansion of a metric theory (Albert et al., 2016). The associated notion of metric pre-topos packages the closure properties needed for elimination of imaginaries and conceptual completeness (Albert et al., 2016). This is a distinct but closely connected line of development: it treats METs as objects of categorical logic rather than primarily as algebraic presentations.

Recent work on differential logical relations pushes the higher-order quantitative setting beyond ordinary metrics. The notion of quasi-quasi-metric is introduced as a ternary quantale-valued relation satisfying quasi-reflexivity and transitivity, and the resulting cartesian closed category reflects the construction of differential logical relations (Lago et al., 1 Mar 2026). Differential prelogical relations are then defined as quasi-quasi-metrics on collections of programs. The poset of such relations has a finest differential prelogical relation presented as a formal quantitative equational theory, but it lacks a coarsest differential prelogical relation (Lago et al., 1 Mar 2026). This contrasts with typed lambda calculi, where contextual equivalence serves as the coarsest program equivalence (Lago et al., 1 Mar 2026).

Two recurring limitations frame the present state of METs. First, strict metric equations do not capture all natural analytic classes, as illustrated by normed vector spaces (Hino, 2016). Second, not all combinations of algebraic effects remain well behaved at the metric level, as shown by monads with black-hole behavior (Mio et al., 2020). A plausible implication is that METs are best understood not as a single fixed formalism, but as a family of related quantitative proof systems whose exact shape depends on the target semantics: metric algebras, continuous first-order structures, enriched Lawvere theories, or higher-order program models.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Metric Equational Theories (METs).