On the hardness of analyzing probabilistic programs

被引:25
作者
Kaminski, Benjamin Lucien [1 ]
Katoen, Joost-Pieter [1 ]
Matheja, Christoph [1 ]
机构
[1] Rhein Westfal TH Aachen, Software Modeling & Verificat Grp, D-52056 Aachen, Germany
关键词
TERMINATION; VERIFICATION; SEMANTICS;
D O I
10.1007/s00236-018-0321-1
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
We study the hardness of deciding probabilistic termination as well as the hardness of approximating expected values (e.g. of program variables) and (co)variances for probabilistic programs.Termination We distinguish two notions of probabilistic termination: Given a program P and an input sigma... 1 ...does P terminate with probability 1 on input sigma? (almost-sure termination)...is the expected time until P terminates on input sigma finite? (positive almost-sure termination) For both of these notions, we also consider their universal variant, i.e. given a program P, does P terminate on all inputs? We show that deciding almost-sure termination as well as deciding its universal variant is 20-complete in the arithmetical hierarchy. Deciding positive almost-sure termination is shown to be sigma 20-complete, whereas its universal variant is 30-complete.Expected values Given a probabilistic program P and a random variable f mapping program states to rationals, we show that computing lower and upper bounds on the expected value of f after executing P is sigma 10- and sigma 20-complete, respectively. Deciding whether the expected value equals a given rational value is shown to be 20-complete.Covariances We show that computing upper and lower bounds on the covariance of two random variables is both sigma 20-complete. Deciding whether the covariance equals a given rational value is shown to be in 30. In addition, this problem is shown to be sigma 20-hard as well as 20-hard and thus a proper 30-problem. All hardness results on covariances apply to variances as well.
引用
收藏
页码:255 / 285
页数:31
相关论文
共 44 条
[31]   SEMANTICS OF PROBABILISTIC PROGRAMS [J].
KOZEN, D .
JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 1981, 22 (03) :328-350
[32]  
McIver Annabelle, 2018, POPL
[33]  
Morgan C, 1996, P BCS FACS 7 REF WOR, P7
[34]  
Murawski AS, 2005, LECT NOTES COMPUT SC, V3653, P156, DOI 10.1007/11539452_15
[35]  
Odifreddi P., 1992, Classical recursion theory: The theory of functions and sets of natural numbers
[36]  
Odifreddi P.G., 1999, CLASSICAL RECURSION, VII.
[37]  
Papadimitriou Christos H., 1994, Computational complexity
[38]  
Post Emil L., 1944, bulletin of the American Mathematical Society, V50, P284, DOI [10.1090/S0002-9904-1944-08111-1, DOI 10.1090/S0002-9904-1944-08111-1]
[39]  
Puterman M.L., 2005, MARKOV DECISION PROC
[40]  
Rogers Hartley, 1987, Theory of Recursive Functions and Effective Computability