A Sound and Complete Proof Technique for Linearizability of Concurrent Data Structures
Authors:
Open Access
- 1 August 2014
- journal article
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Computational Logic
- Vol. 15 (4) , 1-37
Abstract
Efficient implementations of data structures such as queues, stacks or hash-tables allow for concurrent access by many processes at the same time. To increase concurrency, these algorithms often completely dispose with locking, or only lock small parts of the structure. Linearizability is the standard correctness criterion for such a scenario—where a concurrent object is linearizable if all of its operations appear to take effect instantaneously some time between their invocation and return. The potential concurrent access to the shared data structure tremendously increases the complexity of the verification problem, and thus current proof techniques for showing linearizability are all tailored to specific types of data structures. In previous work, we have shown how simulation-based proof conditions for linearizability can be used to verify a number of subtle concurrent algorithms. In this article, we now show that conditions based on backward simulation can be used to show linearizability of every linearizable algorithm, that is, we show that our proof technique is both sound and complete. We exemplify our approach by a linearizability proof of a concurrent queue, introduced in Herlihy and Wing's landmark paper on linearizability. Except for their manual proof, none of the numerous other approaches have successfully treated this queue. Our approach is supported by a full mechanisation: both the linearizability proofs for case studies like the queue, and the proofs of soundness and completeness have been carried out with an interactive prover, which is KIV.Keywords
This publication has 36 references indexed in Scilit:
- Completeness of fair ASM refinementScience of Computer Programming, 2011
- Mechanically verified proof obligations for linearizabilityACM Transactions on Programming Languages and Systems, 2011
- Abstraction for concurrent objectsTheoretical Computer Science, 2010
- Completeness of ASM RefinementElectronic Notes in Theoretical Computer Science, 2008
- Trace-based Derivation of a Lock-Free Queue AlgorithmElectronic Notes in Theoretical Computer Science, 2008
- Derivation of a Scalable Lock-Free Stack AlgorithmElectronic Notes in Theoretical Computer Science, 2007
- Verifying Concurrent Data Structures by SimulationElectronic Notes in Theoretical Computer Science, 2005
- Atomic snapshots of shared memoryJournal of the ACM, 1993
- Linearizability: a correctness condition for concurrent objectsACM Transactions on Programming Languages and Systems, 1990
- ReductionCommunications of the ACM, 1975