Abstract
The aim of this paper is to extend the probabilistic choice in probabilistic programs to sub-probabilistic choice, i.e., of the form (p)P ⋈(q)Q where p + q ⩽ 1. It means that program P is executed with probability p and program Q is executed with probability q. Then, starting from an initial state, the execution of a sub-probabilistic program results in a sub-probability distribution. This paper presents two equivalent semantics for a sub-probabilistic while-programming language. One of these interprets programs as sub-probabilistic distributions on state spaces via denotational semantics. The other interprets programs as bounded expectation transformers via wp-semantics. This paper proposes an axiomatic systems for total logic, and proves its soundness and completeness in a classical pattern on the structure of programs.
Similar content being viewed by others
References
Gill J. Computational complexity of probabilistic Turing machines. In: Proceedings of 6th ACM Annual Symposium on Theory of Computing. New York: ACM Press, 1974, 91–95
Paz A. Introduction to Probabilistic Automata. New York: Academic Press, 1971
Yao A. Probabilistic computations: toward a unified measure of complexity. In: Proceeding of 18th IEEE Symposium on Foundations of Computer Science. Providence: IEEE Computer Society Press, 1977, 222–227
Rabin M O. Probabilistic algorithm. In: Traub J F, eds. Proceedings of Alorithm and Complexity. New York: Academic Press, 1976, 21–40
Kozen D. Semantics of probabilistic programs. Journal of Computer and System Science, 1981, 22: 328–350
Kozen D. A probabilistic PDL. Journal of Computer and System Science, 1985, 30: 162–178
Chen Y X. Stable semantics of weakest prepredicates. Journal of Software, 2003, 24(Suppl.): 161–167
Chen Y X, Jung A. An introduction to fuzzy predicate transformers. In: Proceedings of the 3rd International Symposium on Domain Theory. Xi’an: Shaanxi Normal University, 2004
Chen Y X, Plotkin G, Wu H Y. On healthy fuzzy predicate transformers. In: Proceedings of the 4th International Symposium on Domain Theory. changsha, Hunan University, 2006
Gierz G, Hofmann K H, Keimel K, et al. Continuous Lattices and Domains, Encyclopedia of Mathemmatics and its Applications (volume 93). Cambridge: Cambridge University Press, 2003
He J F, Seidel K, McIver A K. Probabilistic models for the guarded command language. Science of Computer Programming, 1997, 28: 171–192
Jones C, Plotkin G. A probabilistic powerdomain of evaluations. In: Proceedings of the 4th Annual Symposium on Logic in Computer Science. IEEE Computer Society Press, 1989, 186–195
Plotkin G D. Dijkstra’s predicate transformers and Smyth’s powerdomains. In: Bjørner D, ed. Abstract Software Specifications. Lecture Notes in Computer Science, 1980, 86: 527–553
Morgan C, McIver A, Seidel K. Probabilistic predicate transformers. ACM Trans. Programming Languages and Systems, 1996, 18: 325–353
McIver A K, Morgan C. Partial correctness for probabilistic demonic programs. Theoretical Computer Science, 2001, 266: 513–541
McIver A K, Morgan C. Demonic, angelic and unbounded probabilistic choices in sequential programs. Acto Informatica, 2001, 37: 329–354
Tix R, Keimel K, Plotkin G. Semantics domains for combining probability and non-determinism. Electronic Notes in Theoretical Computer Science, 2005, 129: 1–104
Ying M S. Reasoning about probabilistic sequential programs in a probabilistic logic. Acta Informatica, 2003, 39: 315–389
Jones C. Probabilistic non-determinism. PhD thesis. Edinburgh: University of Edinburgh, 1990. Also published as Techniccal report No. CST-63-90.
Dijkstra E W. A Discipline of Programming. Prentice Hall International, Englewood Cliffs, 1976
Ying M S. Additive models of probabilistic processes. Theoretical Computer Science, 2002, 275: 481–519
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
About this article
Cite this article
Chen, Y., Wu, H. Semantics of sub-probabilistic programs. Front. Comput. Sci. China 2, 29–38 (2008). https://doi.org/10.1007/s11704-008-0004-0
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s11704-008-0004-0