New lace and arsenic: adventures in weak memory with a program logic (v2)

Bornat, Richard ORCID: https://orcid.org/0000-0002-7261-0233, Alglave, Jade and Parkinson, Matthew (2016) New lace and arsenic: adventures in weak memory with a program logic (v2). Arxiv . (Published online first)

[img] PDF (Arxiv version of Lace Logic, version 2) - Other
Restricted to Repository staff and depositor only

Download (1MB)

Abstract

We describe a program logic for weak memory (also known as relaxed memory). The logic is based on Hoare logic within a thread, and rely/guarantee between threads. It is presented via examples, giving proofs of many weak-memory litmus tests. It extends to coherence but not yet to synchronised assignment (compare-and-swap, load-logical/store-conditional). It deals with conditionals and loops but not yet arrays or heap.

The logic uses a version of Hoare logic within threads, and a version of rely/guarantee between threads, with five stability rules to handle various kinds of parallelism (external, internal, propagation-free and two kinds of in-flight parallelism). There are B and U modalities to handle propagation, and temporal modalities since, Sofar and Ouat to deal with global coherence (SC per location).

The logic is presented by example. Proofs and unproofs of about thirty weak-memory examples, including many litmus tests in various guises, are dealt with in detail. There is a proof of a version of the token ring.

Item Type: Article
Additional Information: Cite as: arXiv:1512.01416v2 [cs.LO]
Research Areas: A. > School of Science and Technology > Computer Science > Foundations of Computing group
Item ID: 28635
Useful Links:
Depositing User: Professor Richard Bornat
Date Deposited: 19 Dec 2019 16:08
Last Modified: 19 Dec 2019 16:08
URI: https://eprints.mdx.ac.uk/id/eprint/28635

Actions (login required)

Edit Item Edit Item

Full text downloads (NB count will be zero if no full text documents are attached to the record)

Downloads per month over the past year