Lune

LICS2021Top-tier venue

Supermartingales, Ranking Functions and Probabilistic Lambda Calculus

Andrew Kenyon-Roberts, C.-H. Luke Ong

Abstract

We introduce a method for proving almost sure termination in the context of lambda calculus with continuous random sampling and explicit recursion, based on ranking supermartingales. This result is extended in three ways. Antitone ranking functions have weaker restrictions on how fast they must decrease, and are applicable to a wider range of programs. Sparse ranking functions take values only at a subset of the program's reachable states, so they are simpler to define and more flexible. Ranking functions with respect to alternative reduction strategies give yet more flexibility, and significantly increase the applicability of the ranking supermartingale approach to proving almost sure termination, thanks to a novel (restricted) confluence result which is of independent interest. The notion of antitone ranking function was inspired by similar work by McIver, Morgan, Kaminski and Katoen in the setting of a first-order imperative language, but adapted to a higher-order functional language. The sparse ranking function and confluent semantics extensions are unique to the higher-order setting. Our methods can be used to prove almost sure termination of programs that are beyond the reach of methods in the literature, including higher-order and non-affine recursion.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

5 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Supermartingales for Unique Fixed Points: A Unified Approach to Lower Bound Verification cites Quantitative Bounds on Resource Usage of Probabilistic Programs
  • Supermartingales for Unique Fixed Points: A Unified Approach to Lower Bound Verification cites On probabilistic termination of functional programs with continuous distributions
  • Quantitative Bounds on Resource Usage of Probabilistic Programs cites Proving almost-sure termination by omega-regular decomposition
  • Quantitative Bounds on Resource Usage of Probabilistic Programs cites Guaranteed bounds for posterior inference in universal probabilistic programming
  • Quantitative Bounds on Resource Usage of Probabilistic Programs cites On probabilistic termination of functional programs with continuous distributions
  • Guaranteed bounds for posterior inference in universal probabilistic programming cites On probabilistic termination of functional programs with continuous distributions
  • On probabilistic termination of functional programs with continuous distributions cites Proving almost-sure termination by omega-regular decomposition
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers5

  1. Guaranteed bounds for posterior inference in universal probabilistic programmingRaven Beutner, C.-H. Luke Ong, Fabian ZaiserPLDI 2022 · 18 citations
  2. Quantitative Bounds on Resource Usage of Probabilistic ProgramsKrishnendu Chatterjee, Amir Kafshdar Goharshady, Tobias Meggendorfer, Dorde ZikelicOOPSLA 2024 · 16 citations
  3. On probabilistic termination of functional programs with continuous distributionsRaven Beutner, Luke OngPLDI 2021 · 12 citations
  4. A Hierarchy of Supermartingales for ω-Regular VerificationSatoshi Kura, Hiroshi UnnoPLDI 2026 · 1 citation
  5. Supermartingales for Unique Fixed Points: A Unified Approach to Lower Bound VerificationSatoshi Kura, Hiroshi Unno, Takeshi TsukadaPLDI 2026

Builds on2

  1. Proving almost-sure termination by omega-regular decompositionJianhui Chen, Fei HePLDI 2020 · 19 citations
  2. On probabilistic termination of functional programs with continuous distributionsRaven Beutner, Luke OngPLDI 2021 · 12 citations

Related papers

  1. On Lexicographic Proof Rules for Probabilistic TerminationKrishnendu Chatterjee, Ehsan Kafshdar Goharshady, Petr Novotný, Jiri Zárevúcky et al.FM 2021 · 11 citations
  2. Lexicographic Ranking Supermartingales with Lazy Lower BoundsToru Takisaka, Libo Zhang, Changjiang Wang, Jiamou LiuCAV 2024 · 7 citations
  3. Learning Probabilistic Termination ProofsAlessandro Abate, Mirco Giacobbe, Diptarko RoyCAV 2021 · 26 citations
  4. Sound and Complete Proof Rules for Probabilistic TerminationRupak Majumdar, V. R. SathiyanarayanaPOPL 2025 · 16 citations
  5. On Higher-Order Probabilistic Verification via the Weighted Relational Model of Linear LogicUgo Dal Lago, Guido Fiorillo, Paolo PistoneLICS 2026
Dusk over the sea between two cliffs drawn in fine vertical lines