Algorithmic Analysis of Qualitative and Quantitative Termination Problems for Affine Probabilistic Programs

被引:43
作者
Chatterjee, Krishnendu [1 ]
Fu, Hongfei [1 ,2 ]
Novotny, Petr [1 ]
Hasheminezhad, Rouzbeh [3 ]
机构
[1] IST Austria, Vienna, Austria
[2] Chinese Acad Sci, Inst Software, State Key Lab Comp Sci, Beijing 100864, Peoples R China
[3] Sharif Univ Technol, Tehran, Iran
基金
奥地利科学基金会;
关键词
Program Verification; Termination; Probabilistic Programs; Ranking Supermartingale; Concentration; LINEAR RANKING; INEQUALITIES;
D O I
10.1145/2914770.2837639
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
In this paper, we consider termination of probabilistic programs with real-valued variables. The questions concerned are: (a) qualitative ones that ask (i) whether the program terminates with probability 1 (almost-sure termination) and (ii) whether the expected termination time is finite (finite termination); (b) quantitative ones that ask (i) to approximate the expected termination time (expectation problem) and (ii) to compute a bound B such that the probability to terminate after B steps decreases exponentially (concentration problem). To solve these questions, we utilize the notion of ranking super martingales which is a powerful approach for proving termination of probabilistic programs. In detail, we focus on algorithmic synthesis of linear ranking-supermartingales over affine probabilistic programs (ADP's) with both angelic and demonic non-determinism. An important subclass of APP'S is LRAPP which is defined as the class of all APP'S over which a linear ranking-supermartingale exists. Our main contributions are as follows. Firstly, we show that the membership problem of LRAPP (i) can be decided in polynomial time for APP'S with at most demonic non-determinism, and (ii) is NP-hard and in PSPACE for APP'S with angelic non-determinism; moreover, the NP-hardness result holds already for APP'S without probability and demonic non-determinism. Secondly, we show that the concentration problem over LRAPP can be solved in the same complexity as for the membership problem of LRAPP. Finally, we show that the expectation problem over LRAPP can be solved in 2EXPTIME and is PSPACE-hard even for APP'S without probability and non-determinism (i.e., deterministic programs). Our experimental results demonstrate the effectiveness of our approach to answer the qualitative and quantitative questions over APP'S with at most demonic non-determinism.
引用
收藏
页码:327 / 342
页数:16
相关论文
共 50 条
[1]  
Azuma K., 1967, TOHOKU MATH J, V19, P357, DOI DOI 10.2748/TMJ/1178243286
[2]  
Baier C, 2008, PRINCIPLES OF MODEL CHECKING, P1
[4]  
BILLINGSLEY P., 1995, Probability and measure, V3rd
[5]  
Bockmayr Alexander, 2001, HDB AUTOMATED REASON, P751
[6]  
Bournez O, 2005, LECT NOTES COMPUT SC, V3467, P323
[7]  
Bradley AR, 2005, LECT NOTES COMPUT SC, V3576, P491
[8]  
Bradley AR, 2005, LECT NOTES COMPUT SC, V3580, P1349
[9]   Analyzing probabilistic pushdown automata [J].
Brazdil, Tomas ;
Esparza, Javier ;
Kiefer, Stefan ;
Kucera, Antonin .
FORMAL METHODS IN SYSTEM DESIGN, 2013, 43 (02) :124-163
[10]  
Canny J., 1988, Proceedings of the Twentieth Annual ACM Symposium on Theory of Computing, P460, DOI 10.1145/62212.62257