Contracts, Games and Refinement
R. J. R. Back, Joakim von Wright · Information and Computation · 1997
We consider the notion of a contract that governs the behavior of a collection of agents. In particular, we study the question of whether a group among these agents can achieve a given goal by following the contract. We show that this can be reduced to studying the existence of winning strategies in a two-person game. We define a weakest precondition semantics for contract statements that permits us to compute the initial states from which a group of agents has a winning strategy to reach their goal. This semantics generalizes the traditional predicate transformer semantics for program statements to contracts and games. Ordinary programs and interactive programs are special kinds of contracts. A notion of correctness and refinement is introduced for contracts. Contracts are shown to form a complete lattice with respect to the refinement ordering.
Cited by 29 works. doi:10.1006/inco.1999.2820 Open-access PDF
Authors
References
- A Discipline of Programming
- Communication and Concurrency
- Refinement Calculus: A Systematic Introduction
- Realizable and unrealizable specifications of reactive systems
- A theoretical basis for stepwise refinement and the programming calculus
- Correctness preserving program refinements: Proof theory and applications
- Data refinement by miracles
- Duality in specification languages: a lattice-theoretical approach
- Changing data representation in the refinement calculus
- Games and winning strategies