Induction and Recursion Principles in a Higher-Order Quantitative Logic for Probability
Pith reviewed 2026-05-23 04:44 UTC · model grok-4.3
The pith
An affine calculus and higher-order quantitative logic equip probability measures with guarded recursion and induction principles.
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
Core claim
The authors construct an affine calculus for 1-bounded complete metric spaces and the monad of probability measures equipped with the Kantorovich distance. Guarded recursion in the calculus is interpreted via Banach's fixed point theorem. They then define an affine higher-order quantitative logic for terms of this calculus that includes novel principles for guarded recursion and induction over probability measures and natural numbers, illustrated by proofs of upper bounds on bisimilarity distances, convergence of a temporal learning algorithm, and convergence of a random walk.
What carries the argument
The affine higher-order quantitative logic containing guarded recursion principles interpreted via Banach fixed points together with induction principles over probability measures and natural numbers.
If this is right
- Upper bounds on bisimilarity distances between Markov processes become provable inside the logic.
- Convergence of a temporal learning algorithm follows from a coupling argument formalised in the logic.
- Convergence of a random walk follows from a coupling argument formalised in the logic.
- Recursive probabilistic programs and processes can be verified using the guarded recursion principle.
Where Pith is reading between the lines
- The same induction principles could be instantiated for other distances or monads that satisfy the required metric completeness conditions.
- The logic might serve as a target for embedding existing quantitative type systems or probabilistic program logics.
- Case studies could be extended to verify convergence rates rather than mere convergence in iterative probabilistic algorithms.
Load-bearing premise
The guarded recursion is soundly interpreted via Banach's fixed point theorem on the 1-bounded complete metric spaces and the probability monad with Kantorovich distance.
What would settle it
A concrete recursive probabilistic process or Markov chain for which the logic's induction or guarded recursion principle derives an incorrect bound on the Kantorovich distance between behaviors.
Figures
read the original abstract
Quantitative logic reasons about the degree to which formulas are satisfied. This paper studies the fundamental reasoning principles of higher-order quantitative logic and their application to reasoning about probabilistic programs and processes. We construct an affine calculus for $1$-bounded complete metric spaces and the monad for probability measures equipped with the Kantorovich distance. The calculus includes a form of guarded recursion interpreted via Banach's fixed point theorem, useful, e.g., for recursive programming with processes. We then define an affine higher-order quantitative logic for reasoning about terms of our calculus. The logic includes novel principles for guarded recursion, and induction over probability measures and natural numbers. We illustrate the expressivity of the logic by a sequence of case studies: Proving upper limits on bisimilarity distances of Markov processes, showing convergence of a temporal learning algorithm and of a random walk using a coupling argument.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The paper constructs an affine calculus for 1-bounded complete metric spaces and the monad of probability measures equipped with the Kantorovich distance. Guarded recursion is included and interpreted via Banach's fixed point theorem. An affine higher-order quantitative logic is then defined over this calculus, featuring novel principles for guarded recursion together with induction over probability measures and natural numbers. Expressivity is demonstrated through case studies on upper bounds for bisimilarity distances of Markov processes, convergence of a temporal learning algorithm, and convergence of a random walk via coupling.
Significance. If the soundness claims hold, the work supplies a higher-order quantitative logic with tailored induction and recursion principles for probabilistic systems. This extends metric semantics techniques (Kantorovich distance, Banach fixed point) into an affine setting with explicit induction rules, offering a potential foundation for verifying properties of recursive probabilistic programs and processes. The case studies provide concrete illustrations of applicability to bisimilarity and convergence arguments.
minor comments (2)
- [Abstract / Introduction] The abstract states that the logic includes 'novel principles for guarded recursion, and induction over probability measures and natural numbers,' but does not indicate whether these principles are derived from the calculus or introduced as axioms; a brief clarification in the introduction or §3 would help readers assess novelty.
- [Case studies section] The case-study descriptions (bisimilarity distances, temporal learning convergence, random-walk coupling) are summarized at a high level; adding one or two key equations or distance bounds from each study would strengthen the claim of expressivity without lengthening the paper substantially.
Simulated Author's Rebuttal
We thank the referee for their positive summary, assessment of significance, and recommendation for minor revision. No major comments were raised in the report.
Circularity Check
No significant circularity
full rationale
The derivation constructs an affine calculus over 1-bounded complete metric spaces with the Kantorovich probability monad, interprets guarded recursion via the external Banach fixed-point theorem, and defines a quantitative logic with induction principles. These steps rely on standard metric semantics and fixed-point theorems rather than reducing any claimed result to fitted parameters, self-definitions, or load-bearing self-citations. The case studies apply the logic to bisimilarity distances and convergence arguments without internal circular reductions. The central claims remain independent of the paper's own outputs.
Axiom & Free-Parameter Ledger
axioms (1)
- standard math Banach's fixed point theorem applies to interpret guarded recursion on the 1-bounded complete metric spaces and probability monad
Lean theorems connected to this paper
-
IndisputableMonolith/Cost/FunctionalEquation.lean (Jcost, washburn_uniqueness_aczel); Foundation/DimensionForcing.lean (8-tick, D=3)reality_from_one_distinction; J_uniquely_calibrated_via_higher_derivative unclear?
unclearRelation between the paper passage and the cited Recognition theorem.
We construct an affine calculus for 1-bounded complete metric spaces and the monad for probability measures equipped with the Kantorovich distance. The calculus includes a form of guarded recursion interpreted via Banach's fixed point theorem... induction over probability measures and natural numbers.
What do these tags mean?
- matches
- The paper's claim is directly supported by a theorem in the formal canon.
- supports
- The theorem supports part of the paper's argument, but the paper may add assumptions or extra steps.
- extends
- The paper goes beyond the formal theorem; the theorem is a base layer rather than the whole result.
- uses
- The paper appears to rely on the theorem as machinery.
- contradicts
- The paper's claim conflicts with a theorem or certificate in the canon.
- unclear
- Pith found a possible connection, but the passage is too broad, indirect, or ambiguous to say the theorem truly supports the claim.
Forward citations
Cited by 2 Pith papers
-
Quantitative Linear Logic
pQLL calculi make proof validity and sequent provability real-valued quantities, generalizing hypersequent calculi and deep inference while proving cut-elimination and completeness for soft residuated lattices.
-
Quantitative Linear Logic
pQLL calculi assign real-valued strength to proofs, generalize hypersequent and deep inference systems, prove cut elimination, and achieve completeness for soft residuated lattices, recovering MALL as p goes to infinity.
Reference graph
Works this paper leans on
-
[1]
Alejandro Aguirre, Gilles Barthe, Lars Birkedal, Ales Bizjak, Marco Gaboardi, and Deepak Garg. 2018. Relational Reasoning for Markov Chains in a Probabilistic Guarded Lambda Calculus. In Programming Languages and Systems - 27th European Symposium on Programming, ESOP 2018, Held as Part of the European Joint Conferences on Theory and Practice of Software, ...
-
[2]
Alejandro Aguirre, Gilles Barthe, Justin Hsu, Benjamin Lucien Kaminski, Joost-Pieter Katoen, and Christoph Matheja
-
[3]
A pre-expectation calculus for probabilistic sensitivity. Proc. ACM Program. Lang. 5, POPL (2021), 1–28. https://doi.org/10.1145/3434333
-
[4]
Alejandro Aguirre, Philipp G. Haselwarter, Markus de Medeiros, Kwing Hei Li, Simon Oddershede Gregersen, Joseph Tassarotti, and Lars Birkedal. 2024. Error Credits: Resourceful Reasoning about Error Bounds for Higher-Order Probabilistic Programs. Proc. ACM Program. Lang. 8, ICFP (2024), 284–316. https://doi.org/10.1145/3674635
-
[5]
José Bacelar Almeida, Manuel Barbosa, Gilles Barthe, Benjamin Grégoire, Vincent Laporte, Jean-Christophe Léchenet, Tiago Oliveira, Hugo Pacheco, Miguel Quaresma, Peter Schwabe, Antoine Séré, and Pierre-Yves Strub. 2023. Formally verifying Kyber Part I: Implementation Correctness. IACR Cryptol. ePrint Arch. (2023), 215. https://eprint.iacr.org/ 2023/215
work page 2023
-
[6]
Martin Avanzini, Gilles Barthe, Davide Davoli, and Benjamin Grégoire. 2025. A Quantitative Probabilistic Relational Hoare Logic. Proc. ACM Program. Lang. 9, POPL (2025), 1167–1195. https://doi.org/10.1145/3704876
-
[7]
Martin Avanzini, Gilles Barthe, Benjamin Grégoire, Georg Moser, and Gabriele Vanoni. 2024. Hopping Proofs of Expectation-Based Properties: Applications to Skiplists and Security Proofs. Proc. ACM Program. Lang. 8, OOPSLA1 (2024), 784–809
work page 2024
-
[8]
Giorgio Bacci, Giovanni Bacci, Kim G. Larsen, and Radu Mardare. 2018. A Complete Quantitative Deduction System for the Bisimilarity Distance on Markov Chains. Log. Methods Comput. Sci. 14, 4 (2018)
work page 2018
-
[9]
Christel Baier and Marta Z. Kwiatkowska. 2000. Domain equations for probabilistic processes. Math. Struct. Comput. Sci. 10, 6 (2000), 665–717. http://journals.cambridge.org/action/displayAbstract?aid=71051
work page 2000
-
[10]
Stefan Banach. 1922. Sur les opérations dans les ensembles abstraits et leur application aux équations intégrales. Fundamenta Mathematicae 3, 1 (1922), 133–181
work page 1922
-
[11]
Gilles Barthe, Marco Gaboardi, Benjamin Grégoire, Justin Hsu, and Pierre-Yves Strub. 2016. A Program Logic for Union Bounds. In 43rd International Colloquium on Automata, Languages, and Programming, ICALP 2016, July 11-15, 2016, Rome, Italy (LIPIcs, Vol. 55), Ioannis Chatzigiannakis, Michael Mitzenmacher, Yuval Rabani, and Davide Sangiorgi (Eds.). Schloss...
-
[12]
Gilles Barthe, Benjamin Grégoire, and Santiago Zanella-Béguelin. 2009. Formal certification of code-based cryptographic proofs. In Proceedings of the 36th ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages, POPL 2009, Savannah, GA, USA, January 21-23, 2009 , Zhong Shao and Benjamin C. Pierce (Eds.). ACM, 90–101. https: //doi.org/10.1145/1...
-
[13]
Mihir Bellare and Phillip Rogaway. 2004. Code-Based Game-Playing Proofs and the Security of Triple Encryption. IACR Cryptol. ePrint Arch. (2004), 331. http://eprint.iacr.org/2004/331
work page 2004
-
[14]
Lars Birkedal, Rasmus Ejlers Møgelberg, Jan Schwinghammer, and Kristian Støvring. 2012. First steps in synthetic guarded domain theory: step-indexing in the topos of trees. Log. Methods Comput. Sci. 8, 4 (2012). https://doi.org/10. 2168/LMCS-8(4:1)2012
work page 2012
-
[15]
Aloïs Brunel, Marco Gaboardi, Damiano Mazza, and Steve Zdancewic. 2014. A Core Quantitative Coeffect Calculus. In Programming Languages and Systems - 23rd European Symposium on Programming, ESOP 2014, Held as Part of the European Joint Conferences on Theory and Practice of Software, ETAPS 2014, Grenoble, France, April 5-13, 2014, Proceedings (Lecture Note...
-
[16]
Daggitt, Wen Kokke, Robert Atkey, Ekaterina Komendantskaya, Natalia Slusarz, and Luca Arnaboldi
Matthew L. Daggitt, Wen Kokke, Robert Atkey, Ekaterina Komendantskaya, Natalia Slusarz, and Luca Arnaboldi
-
[17]
Vehicle: Bridging the Embedding Gap in the Verification of Neuro-Symbolic Programs (Invited Talk). In10th International Conference on Formal Structures for Computation and Deduction, FSCD 2025, July 14-20, 2025, Birmingham, UK (LIPIcs, Vol. 337) , Maribel Fernández (Ed.). Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2:1–2:20. https: //doi.org/10.423...
-
[18]
Francesco Dagnino and Fabio Pasquali. 2022. Logical Foundations of Quantitative Equality. In LICS ’22: 37th Annual ACM/IEEE Symposium on Logic in Computer Science, Haifa, Israel, August 2 - 5, 2022 , Christel Baier and Dana Fisman (Eds.). ACM, 16:1–16:13. https://doi.org/10.1145/3531130.3533337
-
[19]
Arthur Azevedo de Amorim, Marco Gaboardi, Justin Hsu, Shin-ya Katsumata, and Ikram Cherigui. 2017. A semantic account of metric preservation. In Proceedings of the 44th ACM SIGPLAN Symposium on Principles of Programming Languages, POPL 2017, Paris, France, January 18-20, 2017 , Giuseppe Castagna and Andrew D. Gordon (Eds.). ACM, 545–556. https://doi.org/1...
-
[20]
Erik P. de Vink and Jan J. M. M. Rutten. 1999. Bisimulation for Probabilistic Transition Systems: A Coalgebraic Approach. Theor. Comput. Sci. 221, 1-2 (1999), 271–293. https://doi.org/10.1016/S0304-3975(99)00035-3
-
[21]
J. Desharnais, V. Gupta, R. Jagadeesan, and P. Panangaden. 2000. Approximation of Labeled Markov Processes. In Proceedings of the Fifteenth Annual IEEE Symposium On Logic In Computer Science . IEEE Computer Society Press, 95–106
work page 2000
-
[22]
Orchard, Flavien Breuvart, and Tarmo Uustalu
Marco Gaboardi, Shin-ya Katsumata, Dominic A. Orchard, Flavien Breuvart, and Tarmo Uustalu. 2016. Combining effects and coeffects via grading. In Proceedings of the 21st ACM SIGPLAN International Conference on Functional Programming, ICFP 2016, Nara, Japan, September 18-22, 2016 , Jacques Garrigue, Gabriele Keller, and Eijiro Sumii (Eds.). ACM, 476–489. h...
-
[23]
Haselwarter, Joseph Tassarotti, and Lars Birkedal
Simon Oddershede Gregersen, Alejandro Aguirre, Philipp G. Haselwarter, Joseph Tassarotti, and Lars Birkedal. 2024. Asynchronous Probabilistic Couplings in Higher-Order Separation Logic. Proc. ACM Program. Lang. 8, POPL (2024), 753–784. https://doi.org/10.1145/3632868
-
[24]
Wagner, John Kelsey, and Bruce Schneier
Chris Hall, David A. Wagner, John Kelsey, and Bruce Schneier. 1998. Building PRFs from PRPs. In Advances in Cryptology - CRYPTO ’98, 18th Annual International Cryptology Conference, Santa Barbara, California, USA, August 23-27, 1998, Proceedings (Lecture Notes in Computer Science, Vol. 1462) , Hugo Krawczyk (Ed.). Springer, 370–389. https://doi.org/10.100...
-
[25]
Alessandro Giacalone Chi-Chang Jou and Scott A. Smolka. 1994. Algebraic Reasoning for Probabilistic Concurrent Systems. In PROCOMET. North Holland, 443–458
work page 1994
-
[26]
Dexter Kozen. 1985. A Probabilistic PDL. J. Comput. Syst. Sci. 30, 2 (1985), 162–178. https://doi.org/10.1016/0022- 0000(85)90012-1
-
[27]
Magnus Baunsgaard Kristensen, Rasmus Ejlers Møgelberg, and Andrea Vezzosi. 2022. Greatest HITs: Higher inductive types in coinductive definitions via induction under clocks. In LICS ’22: 37th Annual ACM/IEEE Symposium on Logic in Computer Science, Haifa, Israel, August 2 - 5, 2022 , Christel Baier and Dana Fisman (Eds.). ACM, 42:1–42:13. https: //doi.org/...
-
[28]
Kim Guldstrand Larsen and Arne Skou. 1991. Bisimulation through Probabilistic Testing. Information and Computation 94, 1 (1991), 1–28
work page 1991
-
[29]
William F. Lawvere. 1973. Metric spaces, generalized logic, and closed categories. In Seminario Mat. e. Fis. di Milano , Vol. 43. Springer, 135–166
work page 1973
-
[30]
Radu Mardare, Prakash Panangaden, and Gordon D. Plotkin. 2016. Quantitative Algebraic Reasoning. In Proceedings of the 31st Annual ACM/IEEE Symposium on Logic in Computer Science, LICS ’16, New York, NY, USA, July 5-8, 2016 , Martin Grohe, Eric Koskinen, and Natarajan Shankar (Eds.). ACM, 700–709. https://doi.org/10.1145/2933575.2934518 , Vol. 1, No. 1, A...
-
[31]
Radu Mardare, Prakash Panangaden, and Gordon D. Plotkin. 2018. Free complete Wasserstein algebras. Log. Methods Comput. Sci. 14, 3 (2018). https://doi.org/10.23638/LMCS-14(3:19)2018
-
[32]
Radu Mardare, Prakash Panangaden, and Gordon D. Plotkin. 2021. Fixed-Points for Quantitative Equational Logics. In LICS. IEEE, 1–13
work page 2021
-
[33]
Annabelle McIver and Carroll Morgan. 2005. Abstraction, Refinement and Proof for Probabilistic Systems . Springer. https://doi.org/10.1007/B138392
-
[34]
Carroll Morgan, Annabelle McIver, and Karen Seidel. 1996. Probabilistic Predicate Transformers. ACM Trans. Program. Lang. Syst. 18, 3 (1996), 325–353. https://doi.org/10.1145/229542.229547
-
[35]
Federico Olmedo, Benjamin Lucien Kaminski, Joost-Pieter Katoen, and Christoph Matheja. 2016. Reasoning about Recursive Probabilistic Programs. In Proceedings of the 31st Annual ACM/IEEE Symposium on Logic in Computer Science, LICS ’16, New York, NY, USA, July 5-8, 2016, Martin Grohe, Eric Koskinen, and Natarajan Shankar (Eds.). ACM, 672–681. https://doi.o...
-
[36]
Jason Reed and Benjamin C. Pierce. 2010. Distance makes the types grow stronger: a calculus for differential privacy. In Proceeding of the 15th ACM SIGPLAN international conference on Functional programming, ICFP 2010, Baltimore, Maryland, USA, September 27-29, 2010 , Paul Hudak and Stephanie Weirich (Eds.). ACM, 157–168. https: //doi.org/10.1145/1863543.1863568
-
[37]
The Univalent Foundations Program. 2013. Homotopy Type Theory: Univalent Foundations of Mathematics . https: //homotopytypetheory.org/book, Institute for Advanced Study
work page 2013
-
[38]
Franck van Breugel. 2005. A Behavioural Pseudometric for Metric Labelled Transition Systems. In CONCUR (Lecture Notes in Computer Science, Vol. 3653) . Springer, 141–155
work page 2005
-
[39]
Franck van Breugel, Claudio Hermida, Michael Makkai, and James Worrell. 2005. An Accessible Approach to Behavioural Pseudometrics. In ICALP (Lecture Notes in Computer Science, Vol. 3580) . Springer, 1018–1030
work page 2005
-
[40]
Franck van Breugel and James Worrell. 2005. A behavioural pseudometric for probabilistic transition systems. Theor. Comput. Sci. 331, 1 (2005), 115–142. , Vol. 1, No. 1, Article . Publication date: July 2025. Induction and Recursion Principles in a Higher-Order Quantitative Logic for Probability 29 A OMITTED PROOFS OF SECTION 2 We start by reviewing some ...
work page 2005
-
[41]
Observe that any Δ can always be described as the sum Δ = Δ1 + 𝑟 Δ2, for appropriate Δ1, Δ2. By inductive hypothesis, then the following is derivable: Γ1, Δ1, Γ′ 1 ⊢ 𝑡 : 𝐵 ⊸𝑝 𝐴 Γ2, Δ2, Γ′ 2 ⊢ 𝑢 : 𝐵 (Γ1, Δ1, Γ′ 1 ) + 𝑟 (Γ′ 2, Δ2, Γ′ 2 ) ⊢ 𝑡 𝑢 : 𝐵 (app) and Γ, Δ, Γ′ = (Γ1, Δ1, Γ′ 1 ) + 𝑟 (Γ′ 2, Δ2, Γ′ 2 ). Case (⊗): Assume Γ, Γ′ ⊢ ( 𝑡, 𝑢) : 𝐴 𝑟 ⊗𝑠𝐵 was deri...
-
[42]
By inductive hypothesis, then the following is derivable: Γ1, Δ, Γ′ 1 ⊢ 𝑡 : D𝐴 Γ2, Δ, Γ′ 2 ⊢ 𝑢 : D𝐴 𝑝 ∈ ( 0, 1) 𝑝 (Γ1, Δ, Γ′ 1 ) + ( 1 − 𝑝) (Γ2, Δ, Γ′ 2 ) ⊢ 𝑡 ⊕𝑝 𝑢 : D𝐴 (⊕𝑝 ) and Γ, Δ, Γ′ = 𝑝 (Γ1, Δ, Γ′ 1 ) + ( 1 − 𝑝) (Γ2, Δ, Γ′ 2 ). Case (fix): Assume Γ, Γ′ ⊢ fix 𝑥 .𝑡 : 𝐴 was derived with an application of (fix) and that 𝑥 ∉ Δ (otherwise apply 𝛼-renaming...
work page 2025
-
[43]
Let Γ∞ be the version of Γ where all sensitivities are set to ∞. Then from the sub-derivations of Γ1 ⊢ 𝑡 : 𝐴 ⊸𝑟 𝐵 and Γ′ 1 ⊢ 𝑡 : 𝐴 ⊸𝑟 𝐵 occurring above, by Lemma 5.7, we , Vol. 1, No. 1, Article . Publication date: July 2025. Induction and Recursion Principles in a Higher-Order Quantitative Logic for Probability 41 obtain new derivations such that the fol...
work page 2025
discussion (0)
Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.