Non-Deterministic Expressions and Predicate Transformers

نویسنده

  • Joseph M. Morris
چکیده

Non-determinacy is important in the formal specification and formal derivation of programs, but non-determinacy within expressions is theoretically problematical. The refinement calculus side-steps the problem by admitting non-determinacy only at the level of statements, leading to a style of programming that favours statements and procedures over expressions and functions. But expressions are easier to manipulate than statements, and the poverty of the expression notation has made the formal derivation of imperative programs tedious. Here we introduce non-deterministic expressions into the refinement calculus by constructing a weakest precondition semantics for imperative specifications and programs that holds good even when expressions may be non-deterministic.

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

ثبت نام

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

منابع مشابه

Relational Model for Non-deterministic Programs and Predicate Transfop~iers*

A relational model for non-deterministic programs is presented. Several predicate transformers are introduced and it is shown that one of them satisfies all the healthiness criteria indicated by Dijkstra for a useful total correctness predicate transformer. An axiomatic relational definition of the language of guarded commands is proposed. From it the predicate transformers associated to each c...

متن کامل

Programming Research Group Probabilistic Predicate Transformers: Part 2 Probabilistic Predicate Transformers: Part 2

Probabilistic predicate transformers guarantee standard (ordinary) predicate transformers to incorporate a notion of prob-abilistic choice in imperative programs. The basic theory of that, for nite state spaces, is set out in 5], together with a statements of their`healthiness conditions'. Here the earlier results are extended to innnite state spaces, and several more specialised topics are exp...

متن کامل

Reasoning about efficiency within a probabilistic µ-calculus

Expectation-based probabilistic predicate transformers 15] provide a logic for probabilistic sequential programs, giving access to expressions such as`the probability that predicate A is achieved nally'. Using expectations more generally however, we can express-calculus formulae for the expected path-length of a computation tree. Moreover within an expectation-based-calculus such eeciency measu...

متن کامل

A UTP Semantics of pGCL as a Homogeneous Relation

We present an encoding of the semantics of the probabilistic guarded command language (pGCL) in the Unifying Theories of Programming (UTP) framework. Our contribution is a UTP encoding that captures pGCL programs as predicate-transformers, on predicates over probability distributions on beforeand after-states: these predicates capture the same information as the models traditionally used to giv...

متن کامل

A Unified Approach for Studying the Properties of Transition Systems

In this paper a systematic method for generating, comparing and proving the properties of transition systems is presented. It is assumed that any property of a system can be defined by giving a set of ‘target’ states and a type of reachability. Ten differcqt types of reachability are proposed; by appropriately choosing the set of target states, a family of ten potentially different properties i...

متن کامل

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


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

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

ثبت نام

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

عنوان ژورنال:
  • Inf. Process. Lett.

دوره 61  شماره 

صفحات  -

تاریخ انتشار 1997