Designing a semantic model for a wide-spectrum language with concurrency
Authors:
Open Access
- 1 September 2017
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in Formal Aspects of Computing
- Vol. 29 (5) , 853-875
Abstract
A wide-spectrum language integrates specification constructs into a programming language in a manner that treats a specification command just like any other command. The primary contribution of this paper is a semantic model for a wide-spectrum language that supports concurrency and a refinement calculus. A distinguishing feature of the language is that steps of the environment are modelled explicitly, alongside steps of the program. From these two types of steps a rich set of specification commands can be constructed, based on operators for nondeterministic choice, and sequential and parallel composition. We also introduce a novel operator, weak conjunction , which is used extensively to conjoin separate aspects of specifications, allowing us to take a separation-of-concerns approach to subsequent reasoning. We provide a denotational semantics for the language based on traces, which may be terminating, aborting, infeasible, or infinite. To demonstrate the generality and unifying strength of the language, we use it to express a range of concepts from the concurrency literature, including: a refinement theory for rely/guarantee reasoning; an abstract specification of local variables in a concurrent context; specification of an abstract, linearisable data structure; a partial encoding of temporal logic; and defining the relationships between notions of nonblocking programs. The novelty of the paper is that these diverse concepts build on the same theory. In particular, the rely concept from Jones’ rely/guarantee framework, and a stronger demand concept that restricts the environment, are reused across the different domains to express assumptions about the environment. The language and model form an instance of an abstract concurrent program algebra, and this facilitates reasoning about properties of the model at a high level of abstraction.Keywords
All Related Versions
Funding Information
- Australian Research Council (DP130102901)
This publication has 23 references indexed in Scilit:
- Concurrent Kleene Algebra and its FoundationsThe Journal of Logic and Algebraic Programming, 2011
- A Structural Proof of the Soundness of Rely/guarantee RulesJournal of Logic and Computation, 2007
- A semantics for concurrent separation logicTheoretical Computer Science, 2007
- A structural approach to operational semanticsThe Journal of Logic and Algebraic Programming, 2004
- Towards a refinement algebraScience of Computer Programming, 2004
- Full Abstraction for a Shared-Variable Parallel LanguageInformation and Computation, 1996
- Linearizability: a correctness condition for concurrent objectsACM Transactions on Programming Languages and Systems, 1990
- The specification statementACM Transactions on Programming Languages and Systems, 1988
- An axiomatic basis for computer programmingCommunications of the ACM, 1969
- Assigning meanings to programs1967