Lune

PLDI2024Top-tier venue

Equivalence and Similarity Refutation for Probabilistic Programs

Krishnendu Chatterjee, Ehsan Kafshdar Goharshady, Petr Novotný, Dorde Zikelic

Abstract

We consider the problems of statically refuting equivalence and similarity of output distributions defined by a pair of probabilistic programs. Equivalence and similarity are two fundamental relational properties of probabilistic programs that are essential for their correctness both in implementation and in compilation. In this work, we present a new method for static equivalence and similarity refutation. Our method refutes equivalence and similarity by computing a function over program outputs whose expected value with respect to the output distributions of two programs is different. The function is computed simultaneously with an upper expectation supermartingale and a lower expectation submartingale for the two programs, which we show to together provide a formal certificate for refuting equivalence and similarity. To the best of our knowledge, our method is the first approach to relational program analysis to offer the combination of the following desirable features: (1) it is fully automated, (2) it is applicable to infinite-state probabilistic programs, and (3) it provides formal guarantees on the correctness of its results. We implement a prototype of our method and our experiments demonstrate the effectiveness of our method to refute equivalence and similarity for a number of examples collected from the literature.

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

  • Sound and Complete Certificates for Quantitative Termination Analysis of Probabilistic Programs cites Aiming low is harder: induction for lower bounds in probabilistic program verification
  • Sound and Complete Certificates for Quantitative Termination Analysis of Probabilistic Programs cites Polynomial invariant generation for non-deterministic recursive programs
  • Sound and Complete Certificates for Quantitative Termination Analysis of Probabilistic Programs cites Polynomial reachability witnesses via Stellensätze
  • Complete ω-Regular Supermartingale Certificates cites Sound and Complete Certificates for Quantitative Termination Analysis of Probabilistic Programs
  • Complete ω-Regular Supermartingale Certificates cites Quantitative Supermartingale Certificates
  • Complete ω-Regular Supermartingale Certificates cites Polynomial reachability witnesses via Stellensätze
  • A Quantitative Probabilistic Relational Hoare Logic cites Aiming low is harder: induction for lower bounds in probabilistic program verification
  • Quantitative Supermartingale Certificates cites Sound and Complete Certificates for Quantitative Termination Analysis of Probabilistic Programs
  • Quantitative Supermartingale Certificates cites Aiming low is harder: induction for lower bounds in probabilistic program verification
  • Quantitative Supermartingale Certificates cites Polynomial reachability witnesses via Stellensätze
  • Foundations for Deductive Verification of Continuous Probabilistic Programs: From Lebesgue to Riemann and Back cites Sound and Complete Certificates for Quantitative Termination Analysis of Probabilistic Programs
  • Foundations for Deductive Verification of Continuous Probabilistic Programs: From Lebesgue to Riemann and Back cites Aiming low is harder: induction for lower bounds in probabilistic program verification
  • Polynomial reachability witnesses via Stellensätze cites Polynomial invariant generation for non-deterministic recursive programs
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers6

  1. A Quantitative Probabilistic Relational Hoare LogicMartin Avanzini, Gilles Barthe, Davide Davoli, Benjamin GrégoirePOPL 2025 · 9 citations
  2. Quantitative Supermartingale CertificatesAlessandro Abate, Mirco Giacobbe, Diptarko RoyCAV 2025 · 7 citations
  3. Foundations for Deductive Verification of Continuous Probabilistic Programs: From Lebesgue to Riemann and BackKevin Batz, Joost-Pieter Katoen, Francesca Randone, Tobias WinklerOOPSLA 2025 · 2 citations
  4. Verifying Sampling Algorithms via Distributional InvariantsDaniel Zilken, Kevin Batz, Joost-Pieter Katoen, Tobias WinklerFM 2026 · 1 citation
  5. Complete ω-Regular Supermartingale CertificatesAlessandro Abate, Mirco Giacobbe, Sergey Ichtchenko, Diptarko RoyLICS 2026

Builds on14

  1. Aiming low is harder: induction for lower bounds in probabilistic program verificationMarcel Hark, Benjamin Lucien Kaminski, Jürgen Giesl, Joost-Pieter KatoenPOPL 2020 · 47 citations
  2. Polynomial invariant generation for non-deterministic recursive programsKrishnendu Chatterjee, Hongfei Fu, Amir Kafshdar Goharshady, Ehsan Kafshdar GoharshadyPLDI 2020 · 46 citations
  3. A modular cost analysis for probabilistic programsMartin Avanzini, Georg Moser, Michael SchaperOOPSLA 2020 · 41 citations
  4. Sound and Complete Certificates for Quantitative Termination Analysis of Probabilistic ProgramsKrishnendu Chatterjee, Amir Kafshdar Goharshady, Tobias Meggendorfer, Dorde ZikelicCAV 2022 · 30 citations
  5. Polynomial reachability witnesses via StellensätzeAli Asadi, Krishnendu Chatterjee, Hongfei Fu, Amir Kafshdar Goharshady et al.PLDI 2021 · 28 citations

Related papers

  1. Supermartingales for Unique Fixed Points: A Unified Approach to Lower Bound VerificationSatoshi Kura, Hiroshi Unno, Takeshi TsukadaPLDI 2026
  2. SuperDP: Differential Privacy Refutation via SupermartingalesKrishnendu Chatterjee, Ehsan Kafshdar Goharshady, Dorde ZikelicPLDI 2026
  3. Learning Probabilistic Termination ProofsAlessandro Abate, Mirco Giacobbe, Diptarko RoyCAV 2021 · 26 citations
  4. Proving almost-sure termination by omega-regular decompositionJianhui Chen, Fei HePLDI 2020 · 19 citations
  5. On Lexicographic Proof Rules for Probabilistic TerminationKrishnendu Chatterjee, Ehsan Kafshdar Goharshady, Petr Novotný, Jiri Zárevúcky et al.FM 2021 · 11 citations
Dusk over the sea between two cliffs drawn in fine vertical lines