Quantitative analysis of assertion violations in probabilistic programs
Jinyi Wang, Yican Sun, Hongfei Fu, Krishnendu Chatterjee, Amir Kafshdar Goharshady
摘要
We consider the fundamental problem of deriving quantitative bounds on the probability that a given assertion is violated in a probabilistic program. We provide automated algorithms that obtain both lower and upper bounds on the assertion violation probability. The main novelty of our approach is that we prove new and dedicated fixed-point theorems which serve as the theoretical basis of our algorithms and enable us to reason about assertion violation bounds in terms of pre and post fixed-point functions. To synthesize such fixed-points, we devise algorithms that utilize a wide range of mathematical tools, including repulsing ranking supermartingales, Hoeffding's lemma, Minkowski decompositions, Jensen's inequality, and convex optimization.
On the theoretical side, we provide (i) the first automated algorithm for lower-bounds on assertion violation probabilities, (ii) the first complete algorithm for upper-bounds of exponential form in affine programs, and (iii) provably and significantly tighter upper-bounds than the previous approaches. On the practical side, we show our algorithms can handle a wide variety of programs from the literature and synthesize bounds that are remarkably tighter than previous results, in some cases by thousands of orders of magnitude.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 15 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Sound and Complete Certificates for Quantitative Termination Analysis of Probabilistic Programs 引用了 Aiming low is harder: induction for lower bounds in probabilistic program verification
- Sound and Complete Certificates for Quantitative Termination Analysis of Probabilistic Programs 引用了 Polynomial invariant generation for non-deterministic recursive programs
- Does a Program Yield the Right Distribution? - Verifying Probabilistic Programs via Generating Functions 引用了 Aiming low is harder: induction for lower bounds in probabilistic program verification
- Asparagus: Automated Synthesis of Parametric Gas Upper-Bounds for Smart Contracts 引用了 Sound and Complete Certificates for Quantitative Termination Analysis of Probabilistic Programs
- Asparagus: Automated Synthesis of Parametric Gas Upper-Bounds for Smart Contracts 引用了 Polynomial invariant generation for non-deterministic recursive programs
- Lower Bounds for Possibly Divergent Probabilistic Programs 引用了 Sound and Complete Certificates for Quantitative Termination Analysis of Probabilistic Programs
- Lower Bounds for Possibly Divergent Probabilistic Programs 引用了 Aiming low is harder: induction for lower bounds in probabilistic program verification
- Lower Bounds for Possibly Divergent Probabilistic Programs 引用了 Does a Program Yield the Right Distribution? - Verifying Probabilistic Programs via Generating Functions
引用它的顶会 Paper15
- Sound and Complete Certificates for Quantitative Termination Analysis of Probabilistic ProgramsKrishnendu Chatterjee, Amir Kafshdar Goharshady, Tobias Meggendorfer, Dorde ZikelicCAV 2022 · 30 次引用
- A separation logic for negative dependenceJialu Bao, Marco Gaboardi, Justin Hsu, Joseph TassarottiPOPL 2022 · 17 次引用
- Asparagus: Automated Synthesis of Parametric Gas Upper-Bounds for Smart ContractsZhuo Cai, Soroush Farokhnia, Amir Kafshdar Goharshady, S. HitarthOOPSLA 2023 · 16 次引用
- Does a Program Yield the Right Distribution? - Verifying Probabilistic Programs via Generating FunctionsMingshuai Chen, Joost-Pieter Katoen, Lutz Klinkenberg, Tobias WinklerCAV 2022 · 14 次引用
- Lower Bounds for Possibly Divergent Probabilistic ProgramsShenghua Feng, Mingshuai Chen, Han Su, Benjamin Lucien Kaminski 等OOPSLA 2023 · 14 次引用
它引用的 Paper4
- 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 次引用
- Unbounded-Time Safety Verification of Stochastic Differential DynamicsShenghua Feng, Mingshuai Chen, Bai Xue, Sriram Sankaranarayanan 等CAV 2020 · 11 次引用
- Learning nonlinear loop invariants with gated continuous logic networksJianan Yao, Gabriel Ryan, Justin Wong, Suman Jana 等PLDI 2020 · 1 次引用
相关 Paper
- Supermartingales for Unique Fixed Points: A Unified Approach to Lower Bound VerificationSatoshi Kura, Hiroshi Unno, Takeshi TsukadaPLDI 2026
- Piecewise Analysis of Probabilistic Programs via 𝑘-InductionTengshun Yang, Shenghua Feng, Hongfei Fu, Naijun Zhan 等POPL 2026
- Lexicographic Ranking Supermartingales with Lazy Lower BoundsToru Takisaka, Libo Zhang, Changjiang Wang, Jiamou LiuCAV 2024 · 7 次引用
- Relatively complete verification of probabilistic programs: an expressive language for expectation-based reasoningKevin Batz, Benjamin Lucien Kaminski, Joost-Pieter Katoen, Christoph MathejaPOPL 2021 · 33 次引用
- On Lexicographic Proof Rules for Probabilistic TerminationKrishnendu Chatterjee, Ehsan Kafshdar Goharshady, Petr Novotný, Jiri Zárevúcky 等FM 2021 · 11 次引用
