Rely-Guarantee Reasoning for Causally Consistent Shared Memory

Ori Lahav, Brijesh Dongol*, Heike Wehrheim

*Corresponding author for this work

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

Rely-guarantee (RG) is a highly influential compositional proof technique for concurrent programs, which was originally developed assuming a sequentially consistent shared memory. In this paper, we first generalize RG to make it parametric with respect to the underlying memory model by introducing an RG framework that is applicable to any model axiomatically characterized by Hoare triples. Second, we instantiate this framework for reasoning about concurrent programs under causally consistent memory, which is formulated using a recently proposed potential-based operational semantics, thereby providing the first reasoning technique for such semantics. The proposed program logic, which we call Piccolo, employs a novel assertion language allowing one to specify ordered sequences of states that each thread may reach. We employ Piccolo for multiple litmus tests, as well as for an adaptation of Peterson’s algorithm for mutual exclusion to causally consistent memory.

Original languageEnglish
Title of host publicationComputer Aided Verification - 35th International Conference, CAV 2023, Proceedings
EditorsConstantin Enea, Akash Lal
PublisherSpringer Science and Business Media Deutschland GmbH
Pages206-229
Number of pages24
ISBN (Print)9783031377051
DOIs
StatePublished - 2023
Event35th International Conference on Computer Aided Verification, CAV 2023 - Paris, France
Duration: 17 Jul 202322 Jul 2023

Publication series

NameLecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
Volume13964 LNCS
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Conference

Conference35th International Conference on Computer Aided Verification, CAV 2023
Country/TerritoryFrance
CityParis
Period17/07/2322/07/23

Funding

FundersFunder number
German Research Council DFG467386514
Horizon 2020 Framework Programme851811
Engineering and Physical Sciences Research CouncilEP/X015149/1, EP/R025134/2, EP/V038915/1
European Research Council
Australian Research CouncilDP190102142
Israel Science Foundation1566/18, 814/22

    Fingerprint

    Dive into the research topics of 'Rely-Guarantee Reasoning for Causally Consistent Shared Memory'. Together they form a unique fingerprint.

    Cite this