On the Hardness of Almost-Sure Termination

This paper considers the computational hardness of computing expected outcomes and deciding (universal) (positive) almost–sure termination of probabilistic programs. It is shown that computing lower and upper bounds of expected outcomes is \(\varSigma _1^0\)– and \(\varSigma _2^0\)–complete, respectively. Deciding (universal) almost–sure termination as well as deciding whether the expected outcome of a program equals a given rational value is shown to be \(\varPi ^0_2\)–complete. Finally, it is shown that deciding (universal) positive almost–sure termination is \(\varSigma _2^0\)–complete (\(\varPi _3^0\)–complete).

[1]  Michael L. Tiomkin Probabilistic Termination Versus Fair Termination , 1989, Theor. Comput. Sci..

[2]  Dexter Kozen,et al.  Semantics of probabilistic programs , 1979, 20th Annual Symposium on Foundations of Computer Science (sfcs 1979).

[3]  Annabelle McIver,et al.  Operational versus weakest pre-expectation semantics for the probabilistic guarded command language , 2014, Perform. Evaluation.

[4]  Carroll Morgan,et al.  Proof rules for probabilistic loops , 1996 .

[5]  Andrew D. Gordon,et al.  Measure Transformer Semantics for Bayesian Machine Learning , 2011, ESOP.

[6]  Elaine J. Weyuker,et al.  Computability, complexity, and languages - fundamentals of theoretical computer science , 2014, Computer science and applied mathematics.

[7]  Holger Hermanns,et al.  Probabilistic Termination , 2015, POPL.

[8]  Gilles Barthe,et al.  Probabilistic Relational Reasoning for Differential Privacy , 2012, TOPL.

[9]  P. Odifreddi Classical recursion theory , 1989 .

[10]  P. Odifreddi The theory of functions and sets of natural numbers , 1989 .

[11]  Annabelle McIver,et al.  Abstraction, Refinement and Proof for Probabilistic Systems , 2004, Monographs in Computer Science.

[12]  Annabelle McIver,et al.  Abstraction, Refinement And Proof For Probabilistic Systems (Monographs in Computer Science) , 2004 .

[13]  S. Kleene Recursive predicates and quantifiers , 1943 .

[14]  Jon Sneyers,et al.  Probabilistic Termination of CHRiSM Programs , 2011, LOPSTR.

[15]  Emil L. Post Recursively enumerable sets of positive integers and their decision problems , 1944 .

[16]  Javier Esparza,et al.  Proving Termination of Probabilistic Programs Using Patterns , 2012, CAV.

[17]  Amir Pnueli,et al.  Parameterized Verification by Probabilistic Abstraction , 2003, FoSSaCS.

[18]  Guillem Godoy,et al.  Decidable classes of tree automata mixing local and global constraints modulo flat theories , 2013 .