Sound and Complete Certificates for Quantitative Termination Analysis of Probabilistic Programs
Krishnendu Chatterjee, Amir Kafshdar Goharshady, Tobias Meggendorfer, Dorde Zikelic
摘要
Abstract We consider the quantitative problem of obtaining lower-bounds on the probability of termination of a given non-deterministic probabilistic program. Specifically, given a non-termination threshold p ∈ [ 0 , 1 ] , we aim for certificates proving that the program terminates with probability at least 1 - p . The basic idea of our approach is to find a terminating stochastic invariant, i.e. a subset SI of program states such that (i) the probability of the program ever leaving SI is no more than p, and (ii) almost-surely, the program either leaves SI or terminates. While stochastic invariants are already well-known, we provide the first proof that the idea above is not only sound, but also complete for quantitative termination analysis. We then introduce a novel sound and complete characterization of stochastic invariants that enables template-based approaches for easy synthesis of quantitative termination certificates, especially in affine or polynomial forms. Finally, by combining this idea with the existing martingale-based methods that are relatively complete for qualitative termination analysis, we obtain the first automated, sound, and relatively complete algorithm for quantitative termination analysis. Notably, our completeness guarantees for quantitative termination analysis are as strong as the best-known methods for the qualitative variant. Our prototype implementation demonstrates the effectiveness of our approach on various probabilistic programs. We also demonstrate that our algorithm certifies lower bounds on termination probability for probabilistic programs that are beyond the reach of previous methods.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 21 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Quantitative analysis of assertion violations in probabilistic programs 引用了 Aiming low is harder: induction for lower bounds in probabilistic program verification
- Quantitative analysis of assertion violations in probabilistic programs 引用了 Polynomial invariant generation for non-deterministic recursive programs
- Quantitative Bounds on Resource Usage of Probabilistic Programs 引用了 Proving expected sensitivity of probabilistic programs with randomized variable-dependent termination time
- Quantitative Bounds on Resource Usage of Probabilistic Programs 引用了 Polynomial invariant generation for non-deterministic recursive programs
- Quantitative Bounds on Resource Usage of Probabilistic Programs 引用了 Polynomial reachability witnesses via Stellensätze
- Compositional Policy Learning in Stochastic Control Systems with Formal Guarantees 引用了 Learning Control Policies for Stochastic Systems with Reach-Avoid Guarantees
- Asparagus: Automated Synthesis of Parametric Gas Upper-Bounds for Smart Contracts 引用了 Quantitative analysis of assertion violations in probabilistic programs
- Asparagus: Automated Synthesis of Parametric Gas Upper-Bounds for Smart Contracts 引用了 Polynomial invariant generation for non-deterministic recursive programs
- Asparagus: Automated Synthesis of Parametric Gas Upper-Bounds for Smart Contracts 引用了 Polynomial reachability witnesses via Stellensätze
- Polynomial reachability witnesses via Stellensätze 引用了 Polynomial invariant generation for non-deterministic recursive programs
引用它的顶会 Paper21
- Learning Control Policies for Stochastic Systems with Reach-Avoid GuaranteesDorde Zikelic, Mathias Lechner, Thomas A. Henzinger, Krishnendu ChatterjeeAAAI 2023 · 50 次引用
- Compositional Policy Learning in Stochastic Control Systems with Formal GuaranteesDorde Zikelic, Mathias Lechner, Abhinav Verma, Krishnendu Chatterjee 等NeurIPS 2023 · 31 次引用
- Quantitative Bounds on Resource Usage of Probabilistic ProgramsKrishnendu Chatterjee, Amir Kafshdar Goharshady, Tobias Meggendorfer, Dorde ZikelicOOPSLA 2024 · 16 次引用
- Asparagus: Automated Synthesis of Parametric Gas Upper-Bounds for Smart ContractsZhuo Cai, Soroush Farokhnia, Amir Kafshdar Goharshady, S. HitarthOOPSLA 2023 · 16 次引用
- Sound and Complete Proof Rules for Probabilistic TerminationRupak Majumdar, V. R. SathiyanarayanaPOPL 2025 · 16 次引用
它引用的 Paper7
- Aiming low is harder: induction for lower bounds in probabilistic program verificationMarcel Hark, Benjamin Lucien Kaminski, Jürgen Giesl, Joost-Pieter KatoenPOPL 2020 · 47 次引用
- Polynomial invariant generation for non-deterministic recursive programsKrishnendu Chatterjee, Hongfei Fu, Amir Kafshdar Goharshady, Ehsan Kafshdar GoharshadyPLDI 2020 · 46 次引用
- Polynomial reachability witnesses via StellensätzeAli Asadi, Krishnendu Chatterjee, Hongfei Fu, Amir Kafshdar Goharshady 等PLDI 2021 · 28 次引用
- Quantitative analysis of assertion violations in probabilistic programsJinyi Wang, Yican Sun, Hongfei Fu, Krishnendu Chatterjee 等PLDI 2021 · 18 次引用
- Proving expected sensitivity of probabilistic programs with randomized variable-dependent termination timePeixin Wang, Hongfei Fu, Krishnendu Chatterjee, Yuxin Deng 等POPL 2020 · 14 次引用
相关 Paper
- Supermartingales for Unique Fixed Points: A Unified Approach to Lower Bound VerificationSatoshi Kura, Hiroshi Unno, Takeshi TsukadaPLDI 2026
- Proving almost-sure termination by omega-regular decompositionJianhui Chen, Fei HePLDI 2020 · 19 次引用
- On Lexicographic Proof Rules for Probabilistic TerminationKrishnendu Chatterjee, Ehsan Kafshdar Goharshady, Petr Novotný, Jiri Zárevúcky 等FM 2021 · 11 次引用
- Lexicographic Ranking Supermartingales with Lazy Lower BoundsToru Takisaka, Libo Zhang, Changjiang Wang, Jiamou LiuCAV 2024 · 7 次引用
- Equivalence and Similarity Refutation for Probabilistic ProgramsKrishnendu Chatterjee, Ehsan Kafshdar Goharshady, Petr Novotný, Dorde ZikelicPLDI 2024 · 6 次引用
