Scope-Bounded Reachability in Valence Systems

Aneesh K. Shetty, S. Krishna, Georg Zetzsche

Scope-Bounded Reachability in Valence Systems

Abstract

Verifying concurrent, recursive programs is a fundamental challenge in computer science due to the undecidability of reachability in multi-pushdown systems. This paper introduces a generalization of "scope-boundedness" to valence systems over graph monoids, providing a unified framework for analyzing various infinite-state storage mechanisms. We establish that reachability under scope-boundedness is PSPACE-complete in general. Furthermore, we present a complexity trichotomy (NL, P, or PSPACE) based on the structural properties of the storage graph, offering a comprehensive landscape of the verification complexity for these systems.

Introduction

The verification of safety properties in concurrent, recursive programs is notoriously difficult. The standard model for such programs, the Multi-Pushdown System (MPDS), is undecidable because multiple stacks can interact to simulate a Turing machine. To address this, researchers often employ underapproximations—analyzing only a subset of possible program executions.

One highly effective underapproximation is "scope-boundedness." In a scope-bounded execution, every "push" operation to a stack must be matched by a "pop" within a fixed number of visits to that stack. While well-understood for pushdown stacks, extending this concept to other storage types, such as the counters in Vector Addition Systems (VASS), has remained an open problem. This work bridges that gap by formalizing scope-boundedness for valence systems.

Valence Systems and Generalized Scope-Boundedness

The authors utilize valence systems over graph monoids to represent diverse storage mechanisms. In this framework, storage is defined by a finite undirected graph $\Gamma$. The vertices of $\Gamma$ represent basic operations (e.g., incrementing a counter, pushing to a stack), and edges represent independence: if two vertices are connected, their corresponding operations commute.

Examples of storage graphs $\Gamma_i$ and their complements $\overline{\Gamma_i}$, used to define weak dependence and scope-boundedness.

A key innovation is the definition of "weak dependence" based on paths in the complement graph $\overline{\Gamma}$. A run is $k$-scoped if, between a "push-like" operation and its matching "pop-like" operation, the system enters at most $k$ distinct "interfering" contexts. This allows for a unified treatment of stacks, counters, and hybrid storage types.

Complexity Results: A Trichotomy

The paper's primary contribution is a comprehensive complexity analysis of the reachability problem for scope-bounded valence systems. The authors prove that the problem is PSPACE-complete in the general case. More importantly, they identify a "complexity trichotomy" based on the structure of the storage graph $\Gamma$:

  1. NL-complete: When the storage graph consists of a single vertex (representing a single counter).
  2. P-complete: When the storage graph is an anti-clique (representing multiple independent operations).
  3. PSPACE-complete: For most other configurations, including multi-stacks and VASS.

Notably, for Vector Addition Systems (VASS), which typically exhibit non-elementary complexity, scope-bounding reduces the verification task to PSPACE. This significant reduction highlights the power of the scope-bounded constraint in making complex verification tasks more tractable.

Conclusion and Future Work

This work provides a robust theoretical foundation for scope-bounded reachability across a wide array of infinite-state models. By reducing the problem to path-finding in a finite state graph through block abstractions, the authors establish decidability and tight complexity bounds.

Future research directions include addressing the "Neighbor Antichain Boundedness" hurdle to refine complexity bounds for specific graph classes. Additionally, the transition from these theoretical PSPACE algorithms to practical, efficient verification tools for real-world concurrent software remains a vital area for development.

Summary updated

BibTeX
@inproceedings{shetty2021scope,
  author = {Aneesh K. Shetty and S. Krishna and Georg Zetzsche},
  title = {{Scope-Bounded Reachability in Valence Systems}},
  booktitle = {CONCUR},
  year = {2021},
  doi = {10.4230/lipics.concur.2021.29},
}
Figure