Abstract
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).
This research is funded by the Excellence Initiative of the German federal and state governments and by the EU FP7 MEALS project.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
Fully probabilistic programs may contain probabilistic but no non–deterministic choices.
- 2.
The program P cheers as it was able to prove the termantion of Q on input \(g_Q(i)\).
References
Kozen, D.: Semantics of Probabilistic Programs. J. Comput. Syst. Sci. 22(3), 328–350 (1981)
Barthe, G., Köpf, B., Olmedo, F., Béguelin, S.Z.: Probabilistic relational reasoning for differential privacy. ACM Trans. Program. Lang. Syst. 35(3), 9 (2013)
Borgström, J., Gordon, A., Greenberg, M., Margetson, J., van Gael, J.: Measure transformer semantics for Bayesian machine learning. LMCS 9(3), 1–39 (2013). Paper Number 11
McIver, A., Morgan, C.: Abstraction, Refinement and Proof for Probabilistic Systems. Springer, New York (2004)
Gretz, F., Katoen, J.P., McIver, A.: Operational versus weakest pre-expectation semantics for the probabilistic guarded command language. Perform. Eval. 73, 110–132 (2014)
Fioriti, L.M.F., Hermanns, H.: Probabilistic termination: Soundness, completeness, and compositionality. In: POPL 2015, pp. 489–501. ACM (2015)
Sneyers, J., De Schreye, D.: Probabilistic termination of CHRiSM programs. In: Vidal, G. (ed.) LOPSTR 2011. LNCS, vol. 7225, pp. 221–236. Springer, Heidelberg (2012)
Arons, T., Pnueli, A., Zuck, L.D.: Parameterized verification by probabilistic abstraction. In: Gordon, A.D. (ed.) FOSSACS 2003. LNCS, vol. 2620, pp. 87–102. Springer, Heidelberg (2003)
Esparza, J., Gaiser, A., Kiefer, S.: Proving termination of probabilistic programs using patterns. In: Madhusudan, P., Seshia, S.A. (eds.) CAV 2012. LNCS, vol. 7358, pp. 123–138. Springer, Heidelberg (2012)
Morgan, C.: Proof rules for probabilistic loops. In: Proceedings of the BCS-FACS 7th Refinement Workshop, Workshops in Computing. Springer (1996)
Tiomkin, M.L.: Probabilistic termination versus fair termination. TCS 66(3), 333–340 (1989)
Kleene, S.C.: Recursive predicates and quantifiers. Trans. AMS 53(1), 41–73 (1943)
Odifreddi, P.: Classical Recursion Theory: The Theory of Functions and Sets of Natural Numbers. Elsevier, Amsterdam (1992)
Post, E.L.: Recursively enumerable sets of positive integers and their decision problems. Bull. AMS 50(5), 284–316 (1944)
Davis, M.D.: Computability, Complexity, and Languages: Fundamentals of Theoretical Computer Science. Academic Press, Cambridge (1994)
Odifreddi, P.: Classical Recursion Theory, vol. II. Elsevier, Amsterdam (1999)
Kaminski, B.L., Katoen, J.P.: On the Hardness of Almost-Sure Termination. ArXiv e-prints, June 2015
Acknowledgements
We would like to thank Luis María Ferrer Fioriti (Saarland University) and Federico Olmedo (RWTH Aachen) for the fruitful discussions on the topics of this paper. Furthermore, we are very grateful for the valuable and constructive comments we received from the anonymous referees on an earlier version of this paper.
Author information
Authors and Affiliations
Corresponding authors
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2015 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Kaminski, B.L., Katoen, JP. (2015). On the Hardness of Almost–Sure Termination. In: Italiano, G., Pighizzini, G., Sannella, D. (eds) Mathematical Foundations of Computer Science 2015. MFCS 2015. Lecture Notes in Computer Science(), vol 9234. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-662-48057-1_24
Download citation
DOI: https://doi.org/10.1007/978-3-662-48057-1_24
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-662-48056-4
Online ISBN: 978-3-662-48057-1
eBook Packages: Computer ScienceComputer Science (R0)