Reachability in Bidirected Pushdown VASS

Moses Ganardi, Rupak Majumdar, Andreas Pavlogiannis, Lia Schütze, Georg Zetzsche

Abstract

The reachability problem for Pushdown Vector Addition Systems with States (PVASS)—a model combining a stack and multiple counters—has been a major open problem in computer science for decades. This paper proves that if the system is bidirected (meaning every action has a reversible counterpart), the problem becomes decidable. The authors establish an Ackermann-time upper bound for the general case and PSPACE-completeness for the one-dimensional case, bridging the gap between automata theory and commutative algebra.

Introduction

In formal verification and program analysis, researchers rely on infinite-state systems to model complex software behavior. Two of the most prominent models are Pushdown Systems (PDS), which utilize a stack to model recursion, and Vector Addition Systems with States (VASS), which use counters to model resource consumption or parallel processes.

The combination of these two—Pushdown VASS (PVASS)—represents a "holy grail" for the verification community. However, determining if one configuration can reach another in a PVASS is notoriously difficult. Even for a single counter, the decidability of reachability has remained an open problem for years. This paper tackles a specific, practically relevant version of the problem: bidirected PVASS.

The Bidirected Constraint

In a bidirected system, every transition (such as pushing a symbol onto the stack or incrementing a counter) has an accompanying opposite transition. This property is not merely a theoretical simplification; it arises naturally in several contexts:

  1. Program Analysis: When overapproximating reachability to check for safety properties.
  2. Algorithmic Group Theory: Where operations are inherently reversible.

The central question addressed by this research is whether this bidirectedness provides enough structural regularity to make the reachability problem solvable.

Methodological Framework

The authors prove decidability by bridging the gap between automata theory and commutative algebra using four primary techniques:

1. Saturation Algorithms

A standard technique for pushdown systems is "saturation," which involves iteratively adding transitions to a finite automaton until all reachable states are discovered. The authors adapt this to handle counters by maintaining "saturation invariants" that track counter behavior alongside stack operations.

2. Congruences and Slices

In the bidirected setting, the reachability relation behaves like a congruence—an equivalence relation that respects addition. The authors demonstrate that every congruence on $\mathbb{N}^d$ is a "slice." Slices are specific structured sets that are always semilinear, meaning they can be expressed in Presburger arithmetic. This ensures that the set of reachable configurations is not just any infinite set, but one that can be described by simple linear formulas.

3. Gröbner Bases

To compute these semilinear representations efficiently, the authors utilize Gröbner bases, a powerful tool from algebraic geometry used for solving systems of polynomial equations. This allows the algorithm to handle the complex algebraic structure of counter updates within the saturation framework.

4. Well-Quasi-Orderings

To guarantee that the algorithm eventually terminates, the authors employ Dickson’s Lemma and the properties of upward-closed sets. These tools from the theory of well-quasi-orderings allow them to bound the length of the "chains" of congruences generated during the saturation process.

Complexity and Key Results

The research provides a comprehensive map of the complexity landscape for bidirected PVASS reachability:

  • Decidability: The problem is formally proven to be decidable for any number of dimensions.
  • General Case Upper Bound: The problem is solvable in ACKERMANN time.
  • Fixed Dimension $d$: When the number of counters is fixed, the complexity drops to Primitive Recursive time (specifically within the $F_{4d+11}$ class).
  • One-Dimensional Case: For systems with a single counter, the problem is PSPACE-complete.
  • Lower Bounds: The authors prove the general problem is TOWER-hard, indicating that it is inherently complex and requires at least a "tower of exponentials" in terms of computational resources.

Conclusion and Future Work

This work provides a definitive answer to the reachability problem for bidirected PVASS, showing that reversibility transforms a chaotic reachability set into a highly structured algebraic object. While this solves a significant piece of the puzzle, two major challenges remain:

  1. The Complexity Gap: There is still a significant distance between the TOWER-hard lower bound and the ACKERMANN upper bound. Closing this gap remains a priority for future research.
  2. The General Case: The directed (non-reversible) PVASS reachability problem remains one of the most significant open challenges in the field.

The saturation techniques developed here may provide a roadmap for attacking other infinite-state models, potentially leading to a broader hierarchy of decidable reversible systems.

Summary updated

BibTeX
@inproceedings{ganardi2022reachability,
  author = {Moses Ganardi and Rupak Majumdar and Andreas Pavlogiannis and Lia Schütze and Georg Zetzsche},
  title = {{Reachability in Bidirected Pushdown VASS}},
  booktitle = {ICALP},
  year = {2022},
  doi = {10.4230/lipics.icalp.2022.124},
}
Figure