Skip to main content
Log in

Semantics of sub-probabilistic programs

  • Research Article
  • Published:
Frontiers of Computer Science in China Aims and scope Submit manuscript

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.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

  1. 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

    Google Scholar 

  2. Paz A. Introduction to Probabilistic Automata. New York: Academic Press, 1971

    MATH  Google Scholar 

  3. 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

    Google Scholar 

  4. Rabin M O. Probabilistic algorithm. In: Traub J F, eds. Proceedings of Alorithm and Complexity. New York: Academic Press, 1976, 21–40

    Google Scholar 

  5. Kozen D. Semantics of probabilistic programs. Journal of Computer and System Science, 1981, 22: 328–350

    Article  MATH  MathSciNet  Google Scholar 

  6. Kozen D. A probabilistic PDL. Journal of Computer and System Science, 1985, 30: 162–178

    Article  MATH  MathSciNet  Google Scholar 

  7. Chen Y X. Stable semantics of weakest prepredicates. Journal of Software, 2003, 24(Suppl.): 161–167

    Google Scholar 

  8. 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

    Google Scholar 

  9. 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

    Google Scholar 

  10. 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

    Google Scholar 

  11. He J F, Seidel K, McIver A K. Probabilistic models for the guarded command language. Science of Computer Programming, 1997, 28: 171–192

    Article  MATH  MathSciNet  Google Scholar 

  12. 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

  13. 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

  14. Morgan C, McIver A, Seidel K. Probabilistic predicate transformers. ACM Trans. Programming Languages and Systems, 1996, 18: 325–353

    Article  Google Scholar 

  15. McIver A K, Morgan C. Partial correctness for probabilistic demonic programs. Theoretical Computer Science, 2001, 266: 513–541

    Article  MATH  MathSciNet  Google Scholar 

  16. McIver A K, Morgan C. Demonic, angelic and unbounded probabilistic choices in sequential programs. Acto Informatica, 2001, 37: 329–354

    Article  MATH  MathSciNet  Google Scholar 

  17. Tix R, Keimel K, Plotkin G. Semantics domains for combining probability and non-determinism. Electronic Notes in Theoretical Computer Science, 2005, 129: 1–104

    Article  MathSciNet  Google Scholar 

  18. Ying M S. Reasoning about probabilistic sequential programs in a probabilistic logic. Acta Informatica, 2003, 39: 315–389

    Article  MATH  MathSciNet  Google Scholar 

  19. Jones C. Probabilistic non-determinism. PhD thesis. Edinburgh: University of Edinburgh, 1990. Also published as Techniccal report No. CST-63-90.

    Google Scholar 

  20. Dijkstra E W. A Discipline of Programming. Prentice Hall International, Englewood Cliffs, 1976

  21. Ying M S. Additive models of probabilistic processes. Theoretical Computer Science, 2002, 275: 481–519

    Article  MATH  MathSciNet  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Yixiang Chen.

Rights and permissions

Reprints 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

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11704-008-0004-0

Keywords

Navigation