[Paper Review] Verifying linearizability: A comparative survey
This paper presents a comprehensive comparative survey of formal methods for verifying linearizability in concurrent data structures, evaluating techniques like refinement, shape analysis, and simulation. It identifies key challenges such as proof compositionality and scalability, and highlights that modular, compositional frameworks with abstraction support are essential for verifying complex, future-proof concurrent algorithms with dynamic or external linearization points.
Linearizability has become the key correctness criterion for concurrent data structures, ensuring that histories of the concurrent object under consideration are consistent, where consistency is judged with respect to a sequential history of a corresponding abstract data structure. Linearizability allows any order of concurrent (i.e., overlapping) calls to operations to be picked, but requires the real-time order of non-overlapping to be preserved. Over the years numerous techniques for verifying linearizability have been developed, using a variety of formal foundations such as refinement, shape analysis, reduction, etc. However, as the underlying framework, nomenclature and terminology for each method differs, it has become difficult for practitioners to judge the differences between each approach, and hence, judge the methodology most appropriate for the data structure at hand. We compare the major of methods used to verify linearizability, describe the main contribution of each method, and compare their advantages and limitations.
Motivation & Objective
- To address the growing difficulty in comparing diverse formal methods for verifying linearizability due to differing formal foundations and terminologies.
- To evaluate the scalability and compositional capabilities of existing verification techniques for complex concurrent algorithms.
- To identify open challenges in linearizability verification, particularly regarding proof locality, automation, and completeness.
- To guide practitioners in selecting appropriate verification methods based on algorithm complexity and desired proof modularity.
- To explore future directions, including modular proof techniques and integration of separation logic and temporal logic frameworks.
Proposed method
- The paper compares major verification techniques including simulation, data refinement, auxiliary variables, shape analysis, and reduction-based methods.
- It evaluates each method through three case studies: an optimistic set with fixed linearization points, a lazy set with external linearization points, and Herlihy/Wing’s array-based queue with future-dependent linearization points.
- The analysis focuses on proof decomposition, compositionality, framework contributions, mechanisation levels, and completeness of each method.
- The authors use a structured comparison framework to assess trade-offs in proof complexity, automation, and applicability to real-world algorithms.
- The study incorporates insights from recent frameworks combining interval temporal logic, rely/guarantee reasoning, and simulation to enhance proof modularity.
- It advocates for modular proof techniques that allow lifting correctness proofs from low-level data structures to optimized, high-level concurrent objects.
Experimental results
Research questions
- RQ1How do different formal frameworks for linearizability verification compare in terms of proof locality and compositionality?
- RQ2To what extent do verification methods support automation and mechanisation, and how does this affect scalability?
- RQ3What are the limitations of current methods in handling algorithms with external or future-dependent linearization points?
- RQ4Can modular proof techniques be developed to lift linearizability proofs from basic data structures to complex, optimised implementations?
- RQ5How complete are existing verification methods, and what are the gaps in their ability to prove linearizability for all correct implementations?
Key findings
- Verification methods vary significantly in their ability to decompose global linearizability proofs into local, process-level reasoning, with some frameworks offering better modularity than others.
- Methods based on simulation and refinement often require manual intervention and lack automation, while shape analysis and reduction techniques show promise for scalable verification.
- The presence of external or future-dependent linearization points—common in sophisticated algorithms—poses a major challenge, requiring proof techniques that reason about potential future behaviors.
- Mechanisation of verification methods remains limited, with only a few frameworks achieving significant automation, highlighting a key bottleneck in practical adoption.
- Completeness of verification methods has not been proven for most approaches, indicating that some correct implementations may remain unproven under existing techniques.
- Future progress depends on integrating modular, compositional frameworks that abstract interference and support proof lifting across data structure abstractions.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.