Sound and Complete Certificates for Quantitative Termination Analysis of Probabilistic Programs

被引:15
|
作者
Chatterjee, Krishnendu [1 ]
Goharshady, Amir Kafshdar [2 ]
Meggendorfer, Tobias [1 ]
Zikelic, Dorde [1 ]
机构
[1] Inst Sci & Technol Austria ISTA, Klosterneuburg, Austria
[2] Hong Kong Univ Sci & Technol HKUST, Hong Kong, Peoples R China
来源
COMPUTER AIDED VERIFICATION (CAV 2022), PT I | 2022年 / 13371卷
关键词
LINEAR-INVARIANT GENERATION;
D O I
10.1007/978-3-031-13185-1_4
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
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 is an element of [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.
引用
收藏
页码:55 / 78
页数:24
相关论文
共 50 条
  • [1] Algorithmic Analysis of Qualitative and Quantitative Termination Problems for Affine Probabilistic Programs
    Chatterjee, Krishnendu
    Fu, Hongfei
    Novotny, Petr
    Hasheminezhad, Rouzbeh
    ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS, 2018, 40 (02):
  • [2] Algorithmic Analysis of Qualitative and Quantitative Termination Problems for Affine Probabilistic Programs
    Chatterjee, Krishnendu
    Fu, Hongfei
    Novotny, Petr
    Hasheminezhad, Rouzbeh
    ACM SIGPLAN NOTICES, 2016, 51 (01) : 327 - 342
  • [3] An abstract analysis of the probabilistic termination of programs
    Monniaux, D
    STATIC ANALYSIS, PROCEEDINGS, 2001, 2126 : 111 - 126
  • [4] Automated Termination Analysis of Polynomial Probabilistic Programs
    Moosbrugger, Marcel
    Bartocci, Ezio
    Katoen, Joost-Pieter
    Kovacs, Laura
    PROGRAMMING LANGUAGES AND SYSTEMS, ESOP 2021, 2021, 12648 : 491 - 518
  • [5] Termination Analysis of Probabilistic Programs Through Positivstellensatz's
    Chatterjee, Krishnendu
    Fu, Hongfei
    Goharshady, Amir Kafshdar
    COMPUTER AIDED VERIFICATION, (CAV 2016), PT I, 2016, 9779 : 3 - 22
  • [6] Termination of Nondeterministic Probabilistic Programs
    Fu, Hongfei
    Chatterjee, Krishnendu
    VERIFICATION, MODEL CHECKING, AND ABSTRACT INTERPRETATION, VMCAI 2019, 2019, 11388 : 468 - 490
  • [7] TERMINATION OF PROBABILISTIC CONCURRENT PROGRAMS
    HART, S
    SHARIR, M
    PNUELI, A
    ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS, 1983, 5 (03): : 356 - 380
  • [8] On Certificates, Expected Runtimes, and Termination in Probabilistic Pushdown Automata
    Winkler, Tobias
    Katoen, Joost-Pieter
    2023 38TH ANNUAL ACM/IEEE SYMPOSIUM ON LOGIC IN COMPUTER SCIENCE, LICS, 2023,
  • [9] Time-bounded termination analysis for probabilistic programs with delays
    Xu, Ming
    Deng, Yuxin
    INFORMATION AND COMPUTATION, 2020, 275 (275)
  • [10] Quantitative Analysis of Assertion Violations in Probabilistic Programs
    Wang, Jinyi
    Sun, Yican
    Fu, Hongfei
    Chatterjee, Krishnendu
    Goharshady, Amir Kafshdar
    PROCEEDINGS OF THE 42ND ACM SIGPLAN INTERNATIONAL CONFERENCE ON PROGRAMMING LANGUAGE DESIGN AND IMPLEMENTATION (PLDI '21), 2021, : 1171 - 1186