A Sound and Complete Proof Technique for Linearizability of Concurrent Data Structures

被引:21
作者
Schellhorn, Gerhard [1 ]
Derrick, John [2 ]
Wehrheim, Heike [3 ]
机构
[1] Univ Augsburg, Inst Informat, D-86135 Augsburg, Germany
[2] Univ Sheffield, Dept Comp, Sheffield, S Yorkshire, England
[3] Univ Paderborn, Inst Informat, D-33098 Paderborn, Germany
基金
英国工程与自然科学研究理事会;
关键词
Algorithms; Verification; Z; refinement; concurrent access; linearizability; nonatomic refinement; theorem proving; KIV; TRACE-BASED DERIVATION; FORMAL VERIFICATION; LOGIC; ABSTRACTION; REDUCTION; CHECKING;
D O I
10.1145/2629496
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
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.
引用
收藏
页数:37
相关论文
共 57 条
[1]   THE EXISTENCE OF REFINEMENT MAPPINGS [J].
ABADI, M ;
LAMPORT, L .
THEORETICAL COMPUTER SCIENCE, 1991, 82 (02) :253-284
[2]  
Abrial JR, 2005, J UNIVERS COMPUT SCI, V11, P744
[3]   ATOMIC SNAPSHOTS OF SHARED-MEMORY [J].
AFEK, Y ;
ATTIYA, H ;
DOLEV, D ;
GAFNI, E ;
MERRITT, M ;
SHAVIT, N .
JOURNAL OF THE ACM, 1993, 40 (04) :873-890
[4]  
Amit D, 2007, LECT NOTES COMPUT SC, V4590, P477
[5]   Atomic actions, and their refinements to isolated protocols [J].
Banach, Richard ;
Schellhorn, Gerhard .
FORMAL ASPECTS OF COMPUTING, 2010, 22 (01) :33-61
[6]   Line-Up: A Complete and Automatic Linearizability Checker [J].
Burckhardt, Sebastian ;
Dern, Chris ;
Musuvathi, Madanlal ;
Tan, Roy .
ACM SIGPLAN NOTICES, 2010, 45 (06) :330-340
[7]  
Calcagno C, 2007, LECT NOTES COMPUT SC, V4634, P233
[8]  
Cerny P, 2010, LECT NOTES COMPUT SC, V6174, P465, DOI 10.1007/978-3-642-14295-6_41
[9]  
Colvin R, 2005, IEEE INT C ENG COMP, P507
[10]   Verifying Concurrent Data Structures by Simulation [J].
Colvin, Robert ;
Doherty, Simon ;
Groves, Lindsay .
ELECTRONIC NOTES IN THEORETICAL COMPUTER SCIENCE, 2005, 137 (02) :93-110