Computer Science > Logic in Computer Science
[Submitted on 4 Oct 2016]
Title:Reducing Opacity to Linearizability: A Sound and Complete Method
View PDFAbstract:Transactional memory is a mechanism that manages thread synchronisation on behalf of a programmer so that blocks of code execute with an illusion of atomicity. The main safety criterion for transactional memory is opacity, which defines conditions for serialising concurrent transactions.
Proving opacity is complicated because it allows concurrent transactions to observe distinct memory states, while TM implementations are typically based on one single shared store. This paper presents a sound and complete method, based on coarse-grained abstraction, for reducing proofs of opacity to the relatively simpler correctness condition: linearizability. We use our methods to verify TML and NORec from the literature and show our techniques extend to relaxed memory models by showing that both are opaque under TSO without requiring additional fences. Our methods also elucidate TM designs at higher level of abstraction; as an application, we develop a variation of NORec with fast-path reads transactions. All our proofs have been mechanised, either in the Isabelle theorem prover or the PAT model checker.
Ancillary-file links:
Ancillary files (details):
- Isabelle/NORec-var/CGA.thy
- Isabelle/NORec-var/CGACorrect.thy
- Isabelle/NORec-var/CGACorrect2.thy
- Isabelle/NORec-var/Interface.thy
- Isabelle/NORec-var/RWMemory.thy
- Isabelle/NORec-var/TMS2.thy
- Isabelle/NORec-var/TMS2Var.thy
- Isabelle/NORec-var/TMS2VarCorrect.thy
- Isabelle/NORec-var/Transitions.thy
- Isabelle/NORec-var/Utilities.thy
- Isabelle/NORec/CGA.thy
- Isabelle/NORec/CGACorrect.thy
- Isabelle/NORec/CGACorrect2.thy
- Isabelle/NORec/Interface.thy
- Isabelle/NORec/RWMemory.thy
- Isabelle/NORec/TMS2.thy
- Isabelle/NORec/TMS2Var.thy
- Isabelle/NORec/TMS2VarCorrect.thy
- Isabelle/NORec/Transitions.thy
- Isabelle/NORec/Utilities.thy
- Isabelle/TML/CGA.thy
- Isabelle/TML/CGACorrect.thy
- Isabelle/TML/Interface.thy
- Isabelle/TML/RWMemory.thy
- Isabelle/TML/TMS2.thy
- Isabelle/TML/Transitions.thy
- Isabelle/TML/Utilities.thy
- NORec-C/1/norec.c
- NORec-C/2/norec.c
- PAT Files/NoRecs-WEAK.csp
- PAT Files/NoRecs.csp
- PAT Files/NoRecs3.csp
- PAT Files/TML-CGA-WEAK.csp
- PAT Files/TML-CGA.csp
- README
Current browse context:
cs
References & Citations
Bibliographic and Citation Tools
Bibliographic Explorer (What is the Explorer?)
Connected Papers (What is Connected Papers?)
Litmaps (What is Litmaps?)
scite Smart Citations (What are Smart Citations?)
Code, Data and Media Associated with this Article
alphaXiv (What is alphaXiv?)
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub (What is DagsHub?)
Gotit.pub (What is GotitPub?)
Hugging Face (What is Huggingface?)
Papers with Code (What is Papers with Code?)
ScienceCast (What is ScienceCast?)
Demos
Recommenders and Search Tools
Influence Flower (What are Influence Flowers?)
CORE Recommender (What is CORE?)
arXivLabs: experimental projects with community collaborators
arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.
Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.
Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.