[Paper Review] Verifying Concurrent Stacks by Divergence-Sensitive Bisimulation
This paper proposes using divergence-sensitive branching bisimulation to verify both linearizability and progress properties (like lock-freedom) in concurrent data structures, such as lock-free stacks. By modeling the abstract specification with atomic method blocks and the concrete implementation with fine-grained operations, the authors show that branching bisimulation preserves linearizability and enables polynomial-time verification—offering a more efficient alternative to trace refinement, which is PSPACE-complete.
The verification of linearizability -- a key correctness criterion for concurrent objects -- is based on trace refinement whose checking is PSPACE-complete. This paper suggests to use \emph{branching} bisimulation instead. Our approach is based on comparing an abstract specification in which object methods are executed atomically to a real object program. Exploiting divergence sensitivity, this also applies to progress properties such as lock-freedom. These results enable the use of \emph{polynomial-time} divergence-sensitive branching bisimulation checking techniques for verifying linearizability and progress. We conducted the experiment on concurrent lock-free stacks to validate the efficiency and effectiveness of our methods.
Motivation & Objective
- To address the limitations of trace refinement in verifying progress properties like lock-freedom in concurrent objects.
- To explore whether branching bisimulation can serve as a precise equivalence relation between abstract and concrete concurrent object implementations.
- To enable efficient verification of both linearizability and progress by leveraging divergence-sensitive bisimulation.
- To provide a unified framework that avoids defining separate refinement relations for different progress properties.
- To validate the method on lock-free stacks, including detecting a previously unknown bug in lock-freedom.
Proposed method
- Model the abstract specification as a concurrent object with atomic method blocks, representing idealized, sequential execution of methods.
- Model the concrete implementation as a fine-grained concurrent program with low-level synchronization and shared variables.
- Define a divergence-sensitive branching bisimulation relation between the abstract and concrete systems to capture externally observable behavioral equivalence.
- Prove that if the concrete and abstract systems are branching bisimilar, then the implementation is linearizable and satisfies progress properties.
- Use polynomial-time algorithms for finite-state systems to check branching bisimulation, replacing PSPACE-complete trace refinement.
- Leverage existing model checking techniques such as parameterized boolean equation systems for infinite-state systems.
Experimental results
Research questions
- RQ1Can branching bisimulation be used to verify linearizability of concurrent objects more efficiently than trace refinement?
- RQ2Does divergence-sensitive branching bisimulation preserve progress properties such as lock-freedom in non-blocking data structures?
- RQ3Is there a natural equivalence relation between abstract atomic specifications and concrete fine-grained implementations of concurrent objects?
- RQ4Can a single equivalence relation replace multiple refinement relations previously proposed for different progress properties?
- RQ5Can this method detect subtle bugs in concurrent implementations, such as violations of lock-freedom?
Key findings
- Divergence-sensitive branching bisimulation implies linearizability, providing a sufficient condition for correctness.
- The method enables polynomial-time verification of linearizability, in contrast to the PSPACE-completeness of trace refinement.
- Branching bisimulation preserves all progress properties expressible in LTL_○, eliminating the need for separate refinement relations per property.
- The approach successfully verified Treiber’s lock-free stack and a revised version with hazard pointers, confirming their correctness.
- A previously undetected bug violating lock-freedom was discovered in the revised stack implementation through bisimulation analysis.
- The method is generalizable and has been extended to verify more complex concurrent objects beyond stacks.
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.