Distributive Laws for Parallel Composition in Rely-Guarantee Concurrency
Abstract
The rely/guarantee approach supports the stepwise development of concurrent programs. Our goal is to develop a theory for reasoning algebraically about concurrent programs in a rely/guarantee style, where rely and guarantee conditions are encoding as commands within our theory. As for mathematics, distributive laws are essential for algebraic manipulation of concurrent programs. In this paper we investigate distributive laws for parallel composition and show how these can be applied to rely/guarantee concurrency. The most general distributive laws are only refinements in a single direction, however, by restricting the form of the command being distributed, one can devise stronger equality laws, which are applicable to guarantee commands as well as to suitable combinations of rely and guarantee commands. Our approach is to develop the distributive laws in a more abstract synchronous atomic algebra, and then apply them to an instance of that algebra supporting rely and guarantee commands. The theory has been formalised in Isabelle/HOL along with proofs of the lemmas presented here.
Create a lesson
Metadata
- Categories
- cs.PL, cs.LO
- Comments
- 26 pages
Related papers
Mover Logic: A Concurrent Program Logic for Reduction and Rely-Guarantee Reasoning (Extended Version)
Shared title terminologycs.PLCormac Flanagan, Stephen N. Freund
Compositional Symbolic Execution à la Carte (Extended Version)
Shared title terminologycs.PLSacha-Élie Ayoun, Andreas Lööw, Seung Hoon Park et al.
An End-to-End Theory for Compositional Symbolic Execution: From Expressive Specifications to SMT (Extended Version)
Shared title terminologycs.PLShivanandan Tamil Kumaran, Andreas Lööw, Philippa Gardner
Compositional Temporal Specifications for Interaction Trees
Shared title terminologycs.PLLinyu Yang, Jianwei Yin, Mingshuai Chen
A Principled Approach to Concurrency, Nondeterminism, and Asynchrony in Choreographies
Shared title terminologycs.PLXueying Qin, Marco Peressotti, Fabrizio Montesi
Validating Concurrent Correctness Witnesses with Ghosts by Thread-Modular Abstract Interpretation (Extended Version)
Shared title terminologycs.PLMichael Schwarz, Zhendong Ang, Umang Mathur