talkThe reasonable effectiveness of linear logic in quantitative methods
- July 18, 2026
- Matteo Capucci
- TLLA26
- Slides
You can read the extended abstract here.
preprintQuantitative Linear Logic for Neuro-Symbolic Learning and Verification
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, 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 verifier), which makes QLL stand out among SoTA techniques.
preprintAdequate Losses via Quantitative Linear Logic
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, \(p\)QLL, indexed by a hardness degree \(p\), prove a cut-elimination theorem for them, and establish completeness with respect
to enriched residuated `soft' lattices. At \(p = \infty \), \(p\)QLL reduces to multiplicative additive linear logic (MALL), and provability in \(p\)QLL converges to provability in MALL as \(p \to +\infty \).
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.
preprintCompositionality of Lyapunov functions via assume-guarantee reasoning
- April 3, 2026
- Matteo Capucci, David Jaz Myers
- 10.48550/arXiv.2604.03017
Assume-guarantee reasoning is a technique for compositional model checking in which
system specifications are checked under certain assumptions on system parameters or
inputs, and provide guarantees on observations of system state. We present a categorical
framework for assume-guarantee reasoning for safety problems by viewing systems as
lenses, following our earlier work on the compositionality of generalized Moore machines.
Generalized Moore machines include ordinary Moore machines, partially observable Markov
(decision) processes, and systems of parameterized ODEs (control systems); our framework
gives assume-guarantee reasoning specially adapted to each of these cases. In particular,
we give a novel formulation of assume-guarantee reasoning for (local) input-to-state
stability ((L)ISS) Lyapunov functions on systems of parameterized ODEs.
Our framework is categorically natural and straightforwardly compositional. A flavor
of generalized Moore machine is determined by a tangency: a fibration with a section.
We show that symmetric monoidal loose right modules of assume-guarantee certified
generalized Moore machines over symmetric monoidal double categories of certified
wiring diagrams can be constructed 2-functorially from fibrations internal to the
2-category of tangencies.
talkWhat if additives were actually addition?
- February 17, 2026
- Matteo Capucci
- SGAI TA1 seminar
- Slides
Talk at the internal seminar for the ARIA 'Safeguarded AI' programme on propositional quantitative linear logic.