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 条
[1]  
[Anonymous], 2000, Probability and Measure Theory
[2]  
[Anonymous], 2004, ABSTRACTION REFINEME
[3]  
Arons T, 2003, LECT NOTES COMPUT SC, V2620, P87
[4]   Probabilistic Relational Reasoning for Differential Privacy [J].
Barthe, Gilles ;
Koepf, Boris ;
Olmedo, Federico ;
Zanella-Beguelin, Santiago .
ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS, 2013, 35 (03)
[5]   Conditioning in Probabilistic Programming [J].
Benjamin, Nils Jansen ;
Kaminski, Lucien ;
Katoen, Joost-Pieter ;
Olmedo, Federico ;
Gretz, Friedrich ;
McIver, Annabelle .
ELECTRONIC NOTES IN THEORETICAL COMPUTER SCIENCE, 2015, 319 :199-216
[6]   Smoothed Complexity Theory [J].
Blaeser, Markus ;
Manthey, Bodo .
ACM TRANSACTIONS ON COMPUTATION THEORY, 2015, 7 (02)
[7]  
Bournez O, 2005, LECT NOTES COMPUT SC, V3467, P323
[8]  
Bournez O, 2003, LECT NOTES COMPUT SC, V2706, P61
[9]  
Chakarov Aleksandar, 2013, Computer Aided Verification. 25th International Conference, CAV 2013. Proceedings. LNCS 8044, P511, DOI 10.1007/978-3-642-39799-8_34
[10]   Termination Analysis of Probabilistic Programs Through Positivstellensatz's [J].
Chatterjee, Krishnendu ;
Fu, Hongfei ;
Goharshady, Amir Kafshdar .
COMPUTER AIDED VERIFICATION, (CAV 2016), PT I, 2016, 9779 :3-22