Step-Indexed Logical Relations for Countable Nondeterminism and Probabilistic Choice
Alejandro Aguirre, Lars Birkedal
Abstract
Developing denotational models for higher-order languages that combine probabilistic and nondeterministic choice is known to be very challenging. In this paper, we propose an alternative approach based on operational techniques. We study a higher-order language combining parametric polymorphism, recursive types, discrete probabilistic choice and countable nondeterminism. We define probabilistic generalizations of may- and must-termination as the optimal and pessimal probabilities of termination. Then we define step-indexed logical relations and show that they are sound and complete with respect to the induced contextual preorders. For may-equivalence we use step-indexing over the natural numbers whereas for must-equivalence we index over the countable ordinals. We then show than the probabilities of may- and must-termination coincide with the maximal and minimal probabilities of termination under all schedulers. Finally we derive the equational theory induced by contextual equivalence and show that it validates the distributive combination of the algebraic theories for probabilistic and nondeterministic choice.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 092d951c-90de-4bb9-a11c-76a919f2ed3aCited by top-tier papers8
- Approximate Relational Reasoning for Higher-Order Probabilistic ProgramsPhilipp G. Haselwarter, Kwing Hei Li, Alejandro Aguirre, Simon Oddershede Gregersen et al.POPL 2025 · 8 citations
- A Demonic Outcome Logic for Randomized NondeterminismNoam Zilberstein, Dexter Kozen, Alexandra Silva, Joseph TassarottiPOPL 2025 · 5 citations
- Bialgebraic Reasoning on Higher-order Program EquivalenceSergey Goncharov, Stefan Milius, Stelios Tsampas, Henning UrbatLICS 2024 · 4 citations
- A Modal Type Theory of Expected Cost in Higher-Order Probabilistic ProgramsVineet Rajani, Gilles Barthe, Deepak GargOOPSLA 2024 · 3 citations
- A Unifying Approach to Product Constructions for Quantitative Temporal InferenceKazuki Watanabe, Sebastian Junges, Jurriaan Rot, Ichiro HasuoOOPSLA 2025 · 1 citation
Builds on4
- Combining probabilistic and non-deterministic choice via weak distributive lawsAlexandre Goy, Daniela PetrisanLICS 2020 · 30 citations
- From Multisets over Distributions to Distributions over MultisetsBart JacobsLICS 2021 · 23 citations
- Reasoning about "reasoning about reasoning": semantics and contextual equivalence for probabilistic programs with nested queries and recursionYizhou Zhang, Nada AminPOPL 2022 · 20 citations
- Combining Nondeterminism, Probability, and Termination: Equational and Metric ReasoningMatteo Mio, Ralph Sarkis, Valeria VignudelliLICS 2021 · 14 citations
Related papers
- Positive Almost-Sure Termination: Complexity and Proof RulesRupak Majumdar, V. R. SathiyanarayanaPOPL 2024 · 12 citations
- Transfinite step-indexing for terminationSimon Spies, Neel Krishnaswami, Derek DreyerPOPL 2021 · 7 citations
- On probabilistic termination of functional programs with continuous distributionsRaven Beutner, Luke OngPLDI 2021 · 12 citations
- On Higher-Order Probabilistic Verification via the Weighted Relational Model of Linear LogicUgo Dal Lago, Guido Fiorillo, Paolo PistoneLICS 2026
- Intersection types and (positive) almost-sure terminationUgo Dal Lago, Claudia Faggian, Simona Ronchi Della RoccaPOPL 2021 · 21 citations
