Atomic actions, and their refinements to isolated protocols

Richard Banach, Gerhard Schellhorn

    Research output: Contribution to journalArticlepeer-review

    Abstract

    Inspired by the properties of the refinement development of the Mondex Electronic Purse, we view an isolated atomic action as a family of transitions with a common before-state, and different after-states corresponding to different possible outcomes when the action is attempted. We view a protocol for an atomic action as a computation DAG, each path of which achieves in several steps one of the outcomes of the atomic action. We show that in this picture, the protocol can be viewed as a relational refinement of the atomic action in a number of ways. Firstly, it yields a 'big diagram' simulation à la ASM. Secondly, it yields a 'small diagram' simulation, in which the atomic action is synchronised with an individual step along each path through the protocol, and all the other steps of the path simulate skip. We show that provided each path through the protocol contains one step synchronised with the atomic action, the choice of synchronisation point can be made freely. We describe the relationship between such synchronisations and forward and backward simulations. We relate this theory to serialisations of system runs containing multiple interleaved transactions, showing how the clean picture of the refinement of an isolated atomic action to an isolated protocol becomes obscured by the details of the interleaving. In effect, the fact that protocols are typically executed by a number of co-operating agents, not all of which embark on executing the protocol at the same moment, results in 'ragged starts' and 'ragged ends' to protocol instantiations, leading to potential overlaps between unrelated protocol instances that the theory must handle. We show how existing Mondex refinements embody the ideas developed, and describe a mechanical verification of the results presented. © 2009 British Computer Society.
    Original languageEnglish
    Pages (from-to)33-61
    Number of pages28
    JournalFormal Aspects of Computing
    Volume22
    Issue number1
    DOIs
    Publication statusPublished - Jan 2010

    Keywords

    • 2-Phase protocols
    • Atomic actions
    • Forward and backward simulation
    • Mondex
    • Protocols
    • Refinement
    • Serialisation
    • Synchronisation

    Fingerprint

    Dive into the research topics of 'Atomic actions, and their refinements to isolated protocols'. Together they form a unique fingerprint.

    Cite this