A UTP semantics of pGCL as a homogeneous relation

  • Authors:
  • Riccardo Bresciani;Andrew Butterfield

  • Affiliations:
  • Foundations and Methods Group, Trinity College Dublin, Dublin, Ireland;Foundations and Methods Group, Trinity College Dublin, Dublin, Ireland

  • Venue:
  • IFM'12 Proceedings of the 9th international conference on Integrated Formal Methods
  • Year:
  • 2012

Quantified Score

Hi-index 0.00

Visualization

Abstract

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 before- and after-states: these predicates capture the same information as the models traditionally used to give semantics to pGCL; in addition our formulation allows us to define a generic choice construct, that covers conditional, probabilistic and non-deterministic choice. As an example we study the Monty Hall game in this framework.