Lune

POPL2025Top-tier venue

Approximate Relational Reasoning for Higher-Order Probabilistic Programs

Philipp G. Haselwarter, Kwing Hei Li, Alejandro Aguirre, Simon Oddershede Gregersen, Joseph Tassarotti, Lars Birkedal

Abstract

Properties such as provable security and correctness for randomized programs are naturally expressed relationally as approximate equivalences. As a result, a number of relational program logics have been developed to reason about such approximate equivalences of probabilistic programs. However, existing approximate relational logics are mostly restricted to first-order programs without general state. In this paper we develop Approxis, a higher-order approximate relational separation logic for reasoning about approximate equivalence of programs written in an expressive ML-like language with discrete probabilistic sampling, higher-order functions, and higher-order state. The Approxis logic recasts the concept of error credits in the relational setting to reason about relational approximation, which allows for expressive notions of modularity and composition, a range of new approximate relational rules, and an internalization of a standard limiting argument for showing exact probabilistic equivalences by approximation. We also use Approxis to develop a logical relation model that quantifies over error credits, which can be used to prove exact contextual equivalence . We demonstrate the flexibility of our approach on a range of examples, including the PRP/PRF switching lemma, IND$-CPA security of an encryption scheme, and a collection of rejection samplers. All of the results have been mechanized in the Coq proof assistant and the Iris separation logic framework.

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.

6 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

  • Contextual Refinement of Higher-Order Concurrent Probabilistic Programs cites Probabilistic Concurrent Reasoning in Outcome Logic: Independence, Conditioning, and Invariants
  • Contextual Refinement of Higher-Order Concurrent Probabilistic Programs cites Asynchronous Probabilistic Couplings in Higher-Order Separation Logic
  • Probabilistic Concurrent Reasoning in Outcome Logic: Independence, Conditioning, and Invariants cites A probabilistic separation logic
  • Probabilistic Concurrent Reasoning in Outcome Logic: Independence, Conditioning, and Invariants cites Asynchronous Probabilistic Couplings in Higher-Order Separation Logic
  • Asynchronous Probabilistic Couplings in Higher-Order Separation Logic cites A probabilistic separation logic
  • Asynchronous Probabilistic Couplings in Higher-Order Separation Logic cites Advanced Probabilistic Couplings for Differential Privacy
  • GradInf: Gradient Estimation as Probabilistic Inference cites Asynchronous Probabilistic Couplings in Higher-Order Separation Logic
  • Complete Relational Logic for Infinite-Dimensional Quantum Programs with Unbounded Assertions cites Asynchronous Probabilistic Couplings in Higher-Order Separation Logic
  • Verifying Exact Samplers for Continuous Distributions with a Discrete Program Logic cites Asynchronous Probabilistic Couplings in Higher-Order Separation Logic
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers6

  1. Probabilistic Concurrent Reasoning in Outcome Logic: Independence, Conditioning, and InvariantsNoam Zilberstein, Alexandra Silva, Joseph TassarottiPOPL 2026 · 4 citations
  2. Complete Relational Logic for Infinite-Dimensional Quantum Programs with Unbounded AssertionsGilles Barthe, Minbo Gao, Jam Kabeer Ali Khan, Matthijs Muis et al.LICS 2026 · 2 citations
  3. Contextual Refinement of Higher-Order Concurrent Probabilistic ProgramsKwing Hei Li, Alejandro Aguirre, Joseph Tassarotti, Lars BirkedalPLDI 2026
  4. GradInf: Gradient Estimation as Probabilistic InferenceGaurav Arya, Mathieu Huot, Moritz Schauer, Alexander K. Lew et al.PLDI 2026
  5. Verifying Exact Samplers for Continuous Distributions with a Discrete Program LogicMarkus de Medeiros, Puming Liu, Kwing Hei Li, Alejandro Aguirre et al.LICS 2026

Builds on15

  1. Advanced Probabilistic Couplings for Differential PrivacyGilles Barthe, Noémie Fong, Marco Gaboardi, Benjamin Grégoire et al.CCS 2016 · 67 citations
  2. Thunks and Debits in Separation Logic with Time CreditsFrançois Pottier, Armaël Guéneau, Jacques-Henri Jourdan, Glen MévelPOPL 2024 · 44 citations
  3. The next 700 relational program logicsKenji Maillard, Catalin Hritcu, Exequiel Rivas, Antoine Van MuylderPOPL 2020 · 41 citations
  4. A probabilistic separation logicGilles Barthe, Justin Hsu, Kevin LiaoPOPL 2020 · 35 citations
  5. Asynchronous Probabilistic Couplings in Higher-Order Separation LogicSimon Oddershede Gregersen, Alejandro Aguirre, Philipp G. Haselwarter, Joseph Tassarotti et al.POPL 2024 · 23 citations

Related papers

  1. Tachis: Higher-Order Separation Logic with Credits for Expected CostsPhilipp G. Haselwarter, Kwing Hei Li, Markus de Medeiros, Simon Oddershede Gregersen et al.OOPSLA 2024 · 5 citations
  2. A Quantitative Probabilistic Relational Hoare LogicMartin Avanzini, Gilles Barthe, Davide Davoli, Benjamin GrégoirePOPL 2025 · 9 citations
  3. Combining Classical and Probabilistic Independence Reasoning to Verify the Security of Oblivious AlgorithmsPengbo Yan, Toby Murray, Olga Ohrimenko, Van-Thuan Pham et al.FM 2024 · 2 citations
  4. Lilac: A Modal Separation Logic for Conditional ProbabilityJohn M. Li, Amal Ahmed, Steven HoltzenPLDI 2023 · 22 citations
  5. Hopping Proofs of Expectation-Based Properties: Applications to Skiplists and Security ProofsMartin Avanzini, Gilles Barthe, Benjamin Grégoire, Georg Moser et al.OOPSLA 2024 · 5 citations
Dusk over the sea between two cliffs drawn in fine vertical lines