Restricted demonic choice for modular probabilistic programs

نویسنده

  • Daniel Robinson
چکیده

It is argued that one approach to modularity in programs containing both demonic and probabilistic choice is to allow variations on the former: `restricted demonic choice', written u L , is not allowed to use the value of variables named in the set L as it resolves its nondeterminism; ordinary demonic choice u is then just the special case u fg in which the set of hidden variables is empty. The intention is that when variables L are declared inside a module, demonic choices outside the module are decorated u L and then cannot `see' the values of L. Our contribution is to explain why such an operator might be necessary in the presence of probability (recalling that ordinary sequential semantics does perfectly well without it), and then to expose | unfortunately! | some of its more unruly properties. We hope by doing so to make progress towards a proper theory of modularity in the presence of both demonic and probabilistic choices.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

The Probabilistic Steam Boiler: a Case Study in Probabilistic Data Refinement

Probabilistic choice and demonic nondeterminism have been combined in a model for sequential programs [11, 8] in which program refinement is defined by removing demonic nondeterminism. Here we study the more general topic of data refinement in the probabilistic setting, extending standard techniques to probabilistic programs. We use the method to obtain a quantitative assessment of the safety o...

متن کامل

The Probabilistic Steam Boiler: a Case Study in Probabilistic Data Reenement

Probabilistic choice and demonic nondeterminism have been combined in a model for sequential programs [11, 8] in which program re nement is de ned by removing demonic nondeterminism. Here we study the more general topic of data re nement in the probabilistic setting, extending standard techniques to probabilistic programs. We use the method to obtain a quantitative assessment of safety of a (pr...

متن کامل

A new rule for almost-certain termination of probabilistic and demonic programs

Extending our own and others’ earlier approaches to reasoning about termination of probabilistic programs, we propose and prove a new rule for termination with probability one, also known as “almostcertain termination”. The rule uses both (non-strict) super martingales and guarantees of progress, together, and it seems to cover significant cases that earlier methods do not. In particular, it su...

متن کامل

Partial correctness for probabilistic demonic programs

Recent work in sequential program semantics has produced both an operational (He et al., Sci. Comput. Programming 28(2, 3) (1997) 171–192) and an axiomatic (Morgan et al., ACM Trans. Programming Languages Systems 18(3) (1996) 325–353; Seidel et al., Tech Report PRG-TR-6-96, Programming Research group, February 1996) treatment of total correctness for probabilistic demonic programs, extending Ko...

متن کامل

Probabilistic Imperative Programming: a Rigorous Approach

Recent work has extended Kozen's probabilistic semantics 8, 9] to include demonic nondeterminism both at the operational 5] and the logical level 12]. That makes it now possible in principle to treat probabilistic program development with the same standards of rigour that apply, when appropriate, to imperative programming 3]. In this report we treat several practical aspects of the new models, ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1998