arXiv:2610.13201cs.LOOct 2026

Manuscript Offprint

arXiv:2610.13201

Compact Quantitative Equational Theories as Monad Restrictions

Matteo Mio, Colin Riba

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Proofs in quantitative algebra are, generally, infinite objects due to the presence of infinitary rules in the deductive apparatus. A quantitative equational theory is called compact if all its consequences are derivable by means of finite proofs, that is, proofs not using any instances of the infinitary rules. This definition is purely logical. In this work we give an equivalent, but categorical, characterisation based on the notion of monad restriction.

Keywords: Quantitative algebra, monads, monad restrictions, monad morphisms, compactness.

1 Introduction

Quantitative algebra, introduced in [22], is an active area of investigation (see, e.g., [8,1,2,4,5,6,7,13], [14,23,30,28,27,26,29,20,18,24,32,33,15,10,12,25]) aimed at extending the methods of universal algebra to the study of so-called quantitative algebras. In the original formulation of [22], a quantitative algebra is an algebra whose carrier is an extended metric space. More formally, it is a triple A=(A,dA,{σA}σ∈Σ)\mathbb{A} = (A, d_A, \{\sigma^A\}_{\sigma \in \Sigma}) where (A,dA)(A, d_A) is an extended metric space and (A,{σA}σ∈Σ)(A, \{\sigma^A\}_{\sigma \in \Sigma}) is a Σ\Sigma-algebra, in the ordinary sense of universal algebra, for some signature Σ\Sigma of function symbols. The key novel concept is that of quantitative equation: an expression of the form s=ϵts =_\epsilon t indexed by a real number ϵ≥0\epsilon \ge 0, whence the adjective “quantitative”, which generalises ordinary equations (s=t)(s = t) and makes it possible to axiomatize the interplay between the algebraic and the metric structure. The meaning of s=ϵts =_\epsilon t is that the distance between any interpretations of the terms ss and tt is bounded above by ϵ\epsilon, i.e., dA(sA,tA)≤ϵd_A(s^A, t^A) \le \epsilon.

1.1 Monads. Given a collection of quantitative equations TT and an extended metric space (X,dX)(X, d_X), it is possible to construct the free quantitative algebra satisfying TT generated by (X,dX)(X, d_X). This construction gives rise to a monad on the category Met\mathbf{Met} of extended metric spaces and nonexpansive maps. Monads on Met\mathbf{Met} that can be axiomatized by quantitative equations include the Kantorovich probability distribution monad [23], the Hausdorff powerset monad [23] and the Kantorovich–Hausdorff convex powerset of probability distributions monad [29]. These Met\mathbf{Met} monads have applications in semantics and formal verification for modelling computational effects in programs having quantitative behaviours (such as, e.g., probabilistic programs). The attractiveness of quantitative algebra in this context is to provide a logical/syntactic way

∗^{*} This work has been partially supported by the french ANR PRCI project ATQUA (ANR-25-CE48-1428-01).

1^{1} Email: matteo.mio@ens-lyon.fr

2^{2} Email: colin.riba@ens-lyon.fr

MFPS 2026 Proceedings will appear in Electronic Notes in Theoretical Informatics and Computer Science to handle such monads, in the same way that ordinary universal algebra and its logical/syntactic apparatus of equational logic are used to handle (finitary) Set monads (see, e.g., [3, 3.18]).

1.2 Compact Quantitative Equational Theories. A main obstacle towards the above outlined application is that the logical apparatus of quantitative algebra is based on infinitary first order logic. Concretely, this means that the binary relations appearing in quantitative equations ( =ϵ=\epsilon, for ϵ≥0\epsilon \geq 0) are subject to, among others, the following axiom:

∀x,y. (⋀n∈Nx=ϵn y)⇒x=ϵ ywhere ϵ=inf⁡{ϵn}n∈N\forall x,y.\ \left(\bigwedge_{n\in\mathbb{N}}x=\epsilon_{n}\ y\right)\Rightarrow x=\epsilon\ y\qquad\qquad\mathrm{w h e r e}\ \epsilon=\inf\{\epsilon_{n}\}_{n\in\mathbb{N}}

(Infinitary Axiom)

It states that if the distance between xx and yy is bounded above by a set {ϵn}n∈N\{\epsilon_n\}_{n\in\mathbb{N}} of upper bounds, then necessarily the distance is also bounded by the infimum of all these upper bounds. The presence of this infinitary axiom means that, in general, proofs are infinitely branching well-founded trees. Hence they are not finite objects and therefore cannot be represented, manipulated, enumerated and verified by machines.

On the one hand, it can be shown that an infinitary axiom, such as the one above, is necessary in any sound and complete proof system for quantitative algebra. On the other hand, it has been recently observed in [25] that, for some well behaved theories called compact quantitative equational theories T, it holds that a quantitative equation is derivable from T in the proof system if and only if it is derivable from T without any usage of infinitary axioms. Hence, compact quantitative equational theories are exactly those amenable to finitary syntactic manipulation and proofs, just as ordinary equational theories of universal algebra. Perhaps surprisingly, [25] has shown that rather than being an artificial or rare notion, the class of compact quantitative equational theories includes many interesting examples such as those axiomatizing the Met monads, mentioned earlier, useful in program semantics and verification.

1.3 Technical Contribution. The definition of compact quantitative equational theory from [25, Def. 3.1], as briefly outlined above, is purely syntactical: a theory T is compact whenever there are finite proofs for all derivable quantitative equations. The main achievement of the present work is to give an equivalent characterisation of compactness using the language of category theory and monads.

Rather than working with the notion of quantitative algebra of [25] or [22], it is technically convenient to work with an even more general definition inspired from both [11] and [28]. Namely, the base category Met is replaced and generalised to ModΠ(B), the category of models of B and their homomorphisms, where Π is a relational signature consisting only of relation symbols and B is a collection of (possibly infinitary) Horn formulas over Π. The special case Met is obtained by taking Π = {=ε | ε ≥ 0} and by defining the collection B to include, among others, the infinitary axiom mentioned above (see Example 3.1 and [28, §2.3] for a full list). The algebraic part, on top of the base category, is specified by a signature Σ consisting only of function symbols (this includes constants, as nullary functions) and a set Q of (possibly infinitary) Horn formulas over the extended signature Π + Σ having a special shape and playing the role of quantitative equations (see Section 3 for details). The category ModΠ+Σ(B + Q), over the extended signature and theory, plays the role of the category of quantitative algebras. The free algebra construction then gives rise to the following adjunction F ⊥ U and corresponding monad T = UF on ModΠ(B):

Base Category

Category of Quantitative Algebras

ModΠ(B)→UFModΠ+Σ(B+Q).\mathrm{Mod}_{\Pi}(\mathbb{B})\xrightarrow[U]{F}\mathrm{Mod}_{\Pi+\Sigma}(\mathbb{B}+\mathbb{Q}).

If we take the theories B\mathbb{B} and Q\mathbb{Q} and remove from them all infinitary Horn formulas, thus only leaving the finite formulas, we obtain finitary sub-theories Bf⊆B\mathbb{B}_f \subseteq \mathbb{B} and Qf⊆Q\mathbb{Q}_f \subseteq \mathbb{Q} and the following adjunction Ff⊣UfF_f \dashv U_f and monad Tf=UfFfT_f = U_f F_f on ModΠ+Σ(Bf)\text{Mod}_{\Pi + \Sigma}(\mathbb{B}_f):

ModΠ(Bf)→UfFfModΠ+Σ(Bf+Qf).\mathrm{Mod}_{\Pi}(\mathbb{B}_{f})\xrightarrow[U_{f}]{F_{f}}\mathrm{Mod}_{\Pi+\Sigma}(\mathbb{B}_{f}+\mathbb{Q}_{f}).

We denote with G ⁣:ModΠ(B)↪ModΠ(Bf)G\colon \mathrm{Mod}_{\Pi}(\mathbb{B})\hookrightarrow \mathrm{Mod}_{\Pi}(\mathbb{B}_f) and I ⁣:ModΠ+Σ(B+Q)↪ModΠ+Σ(Bf+Qf)I\colon \mathrm{Mod}_{\Pi+\Sigma}(\mathbb{B}+\mathbb{Q})\hookrightarrow \mathrm{Mod}_{\Pi+\Sigma}(\mathbb{B}_f+\mathbb{Q}_f) the obvious inclusions (every model of B\mathbb{B} (resp. B+Q\mathbb{B}+\mathbb{Q}) is also a model of Bf\mathbb{B}_f (resp. Bf+Qf\mathbb{B}_f+\mathbb{Q}_f)).

Our main result is Theorem 5.3 in Section 5. It states a correspondence between a purely logical property of the theory T and a categorical property of the corresponding monad:

Main Result: The quantitative equational theory given by B\mathbb{B} and Q\mathbb{Q} is compact (Definition 4.6)

if, and only if, T is a monad restriction 3^{3} of TfT_{f} and the restriction is compatible with I.

This paper is organised as follows. In Section 2 the required notions from category theory, including monad restrictions, and of Horn logic are given. In Section 3 we define, following [11], the generalised notion of quantitative algebra outlined above. In Section 4, the definition of compact quantitative equational theory of [25] is adapted to this more general setting. The definition coincides with that of [25] when the quantitative algebras of [25] are taken as particular case. In Section 5 we present and give a full and self contained proof of our main Theorem 5.3. Lastly, we discuss directions for future work in Section 6.

References (30)