Reference. On Quantifiers for Quantitative Reasoning
We explore a kind of first-order predicate logic with intended semantics in the reals. Compared to other approaches in the literature, we work predominantly in the multiplicative reals , showing they support three generations of connectives, that we call non-linear, linear additive, and linear multiplicative. Means and harmonic means emerge as natural candidates for bounded existential and universal quantifiers, and in fact we see they behave as expected in relation to the other logical connectives. We explain this fact through the well-known fact that min/max and arithmetic mean/harmonic mean sit at opposite ends of a spectrum, that of p-means. We give syntax and semantics for this quantitative predicate logic, and as example applications, we show how softmax is the quantitative semantics of argmax, and Rényi entropy/Hill numbers are additive/multiplicative semantics of the same formula. Indeed, the additive reals also fit into the story by exploiting the Napierian duality , which highlights a formal distinction between ‘additive’ and ‘multiplicative’ quantities. Finally, we describe two attempts at a categorical semantics via enriched hyperdoctrines. We discuss why hyperdoctrines are in fact probably inadequate for this kind of logic.
Cite
Cited by (3)
Adequate Losses via Quantitative Linear Logic capucci-2026-adequate
As neural components are increasingly embedded in existing symbolic software – including safety-critical systems – the question arises of how to specify and enforce the safety of the newly introduced neural parts. Unlike traditional logical specifications, these must be amenable not only to the standard Boolean interpretation, but also to training and optimisation. The latter calls for a quantitative interpretation of the logical syntax, subject to further requirements such as smoothness and differentiability. Moreover, the qualitative and quantitative sides of the logic must share a unifying proof-theoretic and categorical semantics. Finally, the new logic should link cleanly to the substructural and program logics that underpin the verification of existing symbolic programs. In this paper, we present a logic that ticks all of these boxes. We introduce a family of calculi, pQLL, indexed by a hardness degree , prove a cut-elimination theorem for them, and establish completeness with respect to enriched residuated ‘soft’ lattices. At , pQLL reduces to multiplicative additive linear logic (MALL), and provability in pQLL converges to provability in MALL as . We express optimisation objectives in the syntax of this logic and prove the quantitative adequacy of neuro-symbolic loss functions – a result that has eluded the neuro-symbolic machine learning community for nearly a decade.
Quantitative Linear Logic for Neuro-Symbolic Learning and Verification flinkow-2026-quantitative
Differentiable Logics are deployed in neuro-symbolic learning tasks as a way of embedding logical constraints in the training objective of neural networks. A differentiable logic consists of a syntax to write logical properties and a semantics to interpret them as real-valued functions to be folded in the loss function. A defining trade-off of the field is that between logical properties of the connectives, and analytic concerns for the semantics, with both aspects being relevant in applications. At one extreme we find fuzzy logics, that have well-established algebraic and proof-theoretic foundations, and at the other ad-hoc differentiable logics like Fischer’s DL2, conceived for deep learning applications. However, no satisfactory foundation has emerged yet. We propose a resolution to this long-standing tension via a novel logic, Quantitative Linear Logic (QLL), with foundational ambitions. Our design is driven by naturality – the idea that, since logical constraints are translated to losses, the semantics of the connectives should be pertinent operations used in ML practice (that is, sum and log-sum-exp) on additive quantities (like logits). We then judge the result on two aspects: logical adequacy – that they satisfy most of the standard logical laws of Linear Logic; and empirical effectiveness – test-time performance (as measured by adversarial attacks) is well-correlated to the actual verification of the logical constraints (as measured by off-the-shelf neural network verifiers), which makes QLL stand out among SoTA techniques.
Quantifiers for Differentiable Logics in Rocq (Extended Abstract) marulandagiraldo-2025-quantifiers
Cites 31 works (2 here)
With notes (2)
Bifibrations of Polycategories and Classical Linear Logic blanco-2020-bifibrations
Adjointness in Foundations lawvere_1969
External (29)
- Provably Safe Neural Network Controllers via Differential Dynamic Logic (2024)
- Polynomial Lawvere Logic (2024)
- Logic of Differentiable Logics: Towards a Uniform Semantics of DL (2023)
- Propositional Logics for the Lawvere Quantale (2023)
- Evidential Decision Theory via Partial Markov Categories (2023)
- Logical Foundations of Quantitative Equality (2022)
- Quantitative Equality in Substructural Logic via Lipschitz Doctrines (2022)
- Affine logic for constructive mathematics (2022)
- A topos for continuous logic (2021)
- Entropy and Diversity: The Axiomatic Approach (2021)
- Kan extensions are partial colimits (2021)
- A synthetic approach to Markov kernels, conditional independence, and theorems on sufficient statistics (2019)
- The Mathematics of Changing One's Mind, via Jeffrey's or via Pearl's Update Rule (2018)
- Guaranteed bounds on the Kullback-Leibler divergence of univariate mixtures using piecewise log-sum-exp inequalities (2016)
- Enriched indexed categories (2012)
- Deep sparse rectifier neural networks (2011)
- Multiplicative calculus and its applications (2008)
- Categories, Norms and Weights (2007)
- Weakly distributive categories (1997)
- Fuzzy logic (1988)
- Variable set theory (1985)
- A probabilistic PDL (1983)
- *-Autonomous Categories (1979)
- Metric spaces, generalized logic, and closed categories (1973)
- A proof of the independence of the continuum hypothesis (1967)
- Fuzzy sets (1965)
- Probability, Frequency and Reasonable Expectation (1946)
- “O logice trójwartościowej” (1920)
- The Mathematical Analysis of Logic (1847)