Skip to main content
QUICK REVIEW

[Paper Review] Proving Linearizability via Branching Bisimulation

Xiaoxiao Yang, Joost-Pieter Katoen|arXiv (Cornell University)|Sep 24, 2016
Formal Methods in VerificationComputer Science7 references4 citations
TL;DR

This paper proposes using branching bisimulation to verify linearizability and progress properties of concurrent data structures by constructing a quotient state space that drastically reduces complexity. By exploiting semantic equivalence, the method enables automated, scalable verification without manual linearization point identification, achieving up to four orders of magnitude state space reduction in experiments on 13 benchmark algorithms.

ABSTRACT

Linearizability and progress properties are key correctness notions for concurrent objects. However, model checking linearizability has suffered from the PSPACE-hardness of the trace inclusion problem. This paper proposes to exploit branching bisimulation, a fundamental semantic equivalence relation developed for process algebras which can be computed efficiently, in checking these properties. A quotient construction is provided which results in huge state space reductions. We confirm the advantages of the proposed approach on more than a dozen benchmark problems.

Motivation & Objective

  • To address the scalability limitations of model checking linearizability due to PSPACE-hardness of trace inclusion.
  • To eliminate the need for manual identification of linearization points, which is error-prone and complex in concurrent algorithms.
  • To enable automated verification of both linearizability and progress properties (e.g., lock-freedom) in non-blocking data structures.
  • To achieve significant state space reduction through branching bisimulation quotient construction for efficient verification.
  • To support the verification of a broad class of properties expressible in the next-free fragment of CTL∗, including LTL.

Proposed method

  • Construct a labeled transition system (LTS) model of the concurrent object system, abstracting internal computation steps as τ-transitions.
  • Apply branching bisimulation equivalence to compute a quotient LTS that preserves trace refinement and progress properties.
  • Prove that linearizability of the concrete system is equivalent to trace refinement between the quotient of the concrete object and the specification.
  • Leverage divergence-sensitive branching bisimulation to ensure that progress properties (e.g., lock-freedom) are preserved from the abstract to the concrete system.
  • Use symmetry and partial-order reduction techniques in conjunction with quotient construction to further reduce state space.
  • Automate the verification process using model checking tools, with counterexample generation for bug detection.

Experimental results

Research questions

  • RQ1Can branching bisimulation be used to verify linearizability without requiring explicit identification of linearization points?
  • RQ2To what extent can branching bisimulation reduce the state space of concurrent data structure models?
  • RQ3Can progress properties such as lock-freedom be verified on the abstract quotient instead of the concrete system?
  • RQ4Does the quotient-based approach scale to complex non-blocking algorithms like the Herlihy-Wing queue or Treiber stack with hazard pointers?
  • RQ5Can the method detect known and previously unknown bugs in concurrent data structures automatically?

Key findings

  • The proposed method achieved up to four orders of magnitude reduction in state space size, with the largest reduction (0.01%) observed for the Treiber stack with hazard pointers.
  • For most algorithms, the state space was reduced by two to three orders of magnitude, with even higher reductions observed in larger systems.
  • The method successfully detected a known linearizability bug in the Herlihy-Wing queue and uncovered a new violation of the lock-free property in the revised stack implementation.
  • The quotient construction preserved trace refinement and progress properties, enabling correct verification of linearizability and next-free CTL∗ properties on the abstract system.
  • The approach is fully automatable and scalable, handling 13 non-blocking data structures including queues, stacks, and hash tables.
  • The method outperforms prior approaches that rely on manual linearization point annotation or are restricted to two-thread systems or simple data structures.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.