Lune

CAV2022Top-tier venue

Does a Program Yield the Right Distribution? - Verifying Probabilistic Programs via Generating Functions

Mingshuai Chen, Joost-Pieter Katoen, Lutz Klinkenberg, Tobias Winkler

Abstract

Abstract We study discrete probabilistic programs with potentially unbounded looping behaviors over an infinite state space. We present, to the best of our knowledge,the first decidability result for the problem of determining whether such a program generates exactly a specified distribution over its outputs(provided the program terminates almost-surely). The class of distributions that can be specified in our formalism consists of standard distributions (geometric, uniform, etc.) and finite convolutions thereof. Our method relies on representing these (possibly infinite-support) distributions asprobability generating functionswhich admit effective arithmetic operations. We have automated our techniques in a tool called \textscProdigy\textsc {Prodigy} PRODIGY , which supports automatic invariance checking, compositional reasoning of nested loops, and efficient queries to the output distribution, as demonstrated by experiments.

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.

8 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

  • Quantitative analysis of assertion violations in probabilistic programs cites Aiming low is harder: induction for lower bounds in probabilistic program verification
  • Inference of Probabilistic Programs with Moment-Matching Gaussian Mixtures cites Scaling exact inference for discrete probabilistic programs
  • Exact Bayesian Inference on Discrete Models via Probability Generating Functions: A Probabilistic Programming Approach cites Scaling exact inference for discrete probabilistic programs
  • Exact Bayesian Inference for Loopy Probabilistic Programs using Generating Functions cites Aiming low is harder: induction for lower bounds in probabilistic program verification
  • Exact Bayesian Inference for Loopy Probabilistic Programs using Generating Functions cites Scaling exact inference for discrete probabilistic programs
  • Exact Bayesian Inference for Loopy Probabilistic Programs using Generating Functions cites Exact Bayesian Inference on Discrete Models via Probability Generating Functions: A Probabilistic Programming Approach
  • Exact Bayesian Inference for Loopy Probabilistic Programs using Generating Functions cites λPSI: exact inference for higher-order probabilistic programs
  • Exact Bayesian Inference for Loopy Probabilistic Programs using Generating Functions cites Lower Bounds for Possibly Divergent Probabilistic Programs
  • Equivalence and Similarity Refutation for Probabilistic Programs cites Aiming low is harder: induction for lower bounds in probabilistic program verification
  • Lower Bounds for Possibly Divergent Probabilistic Programs cites Aiming low is harder: induction for lower bounds in probabilistic program verification
  • Lower Bounds for Possibly Divergent Probabilistic Programs cites Quantitative analysis of assertion violations in probabilistic programs
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers8

  1. Exact Bayesian Inference on Discrete Models via Probability Generating Functions: A Probabilistic Programming ApproachFabian Zaiser, Andrzej S. Murawski, Chih-Hao Luke OngNeurIPS 2023 · 17 citations
  2. Lower Bounds for Possibly Divergent Probabilistic ProgramsShenghua Feng, Mingshuai Chen, Han Su, Benjamin Lucien Kaminski et al.OOPSLA 2023 · 14 citations
  3. Inference of Probabilistic Programs with Moment-Matching Gaussian MixturesFrancesca Randone, Luca Bortolussi, Emilio Incerto, Mirco TribastonePOPL 2024 · 12 citations
  4. Exact Bayesian Inference for Loopy Probabilistic Programs using Generating FunctionsLutz Klinkenberg, Christian Blumenthal, Mingshuai Chen, Darion Haase et al.OOPSLA 2024 · 11 citations
  5. Equivalence and Similarity Refutation for Probabilistic ProgramsKrishnendu Chatterjee, Ehsan Kafshdar Goharshady, Petr Novotný, Dorde ZikelicPLDI 2024 · 6 citations

Builds on7

  1. Scaling exact inference for discrete probabilistic programsSteven Holtzen, Guy Van den Broeck, Todd D. MillsteinOOPSLA 2020 · 85 citations
  2. 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
  3. λPSI: exact inference for higher-order probabilistic programsTimon Gehr, Samuel Steffen, Martin T. VechevPLDI 2020 · 29 citations
  4. Latticed k-Induction with an Application to Probabilistic ProgramsKevin Batz, Mingshuai Chen, Benjamin Lucien Kaminski, Joost-Pieter Katoen et al.CAV 2021 · 21 citations
  5. Quantitative analysis of assertion violations in probabilistic programsJinyi Wang, Yican Sun, Hongfei Fu, Krishnendu Chatterjee et al.PLDI 2021 · 18 citations

Related papers

  1. Guaranteed Bounds on Posterior Distributions of Discrete Probabilistic Programs with LoopsFabian Zaiser, Andrzej S. Murawski, C.-H. Luke OngPOPL 2025 · 6 citations
  2. On the Almost-Sure Termination of Probabilistic Counter ProgramsSergei Novozhilov, Mingqi Yang, Mingshuai Chen, Zhiyang Li et al.CAV 2025
  3. Formally Verified Samplers from Probabilistic Programs with Loops and ConditioningAlexander Bagnall, Gordon Stewart, Anindya BanerjeePLDI 2023 · 5 citations
  4. This is the moment for probabilistic loopsMarcel Moosbrugger, Miroslav Stankovic, Ezio Bartocci, Laura KovácsOOPSLA 2022 · 30 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