The Complexity of Bidirected Reachability in Valence Systems

Moses Ganardi, Rupak Majumdar, Georg Zetzsche · OpenReview

TL;DR

This paper investigates the computational complexity of "bidirected reachability" in a powerful class of infinite-state systems called valence systems. The authors provide a comprehensive complexity landscape, showing that bidirected reachability often dramatically reduces complexity compared to standard reachability, frequently dropping to polynomial time for many common storage mechanisms.

What Problem Does This Paper Address?

Verifying properties of infinite-state systems, like whether a program can reach a certain state, is notoriously difficult. Reachability problems in systems with unbounded memory (like counters or stacks) can be computationally intractable, often being Ackermann-complete or even undecidable. One promising approach to tackle this is "bidirected reachability," which assumes that for every transition in the system, there's a corresponding "reverse" transition. This symmetry can simplify the problem. However, the complexity of bidirected reachability across various infinite-state models was not well understood. This paper aims to systematically map out this complexity landscape for a broad class of systems (valence systems) where reachability is known to be decidable.

Methods

The core of this work lies in a deep connection established between bidirected reachability in valence systems and the subgroup membership problem in group theory, specifically for graph groups. The authors leverage this connection to prove both lower bounds (hardness results) and upper bounds (decidability results) on the complexity.

Key techniques include:

  • Valence Systems: A general framework for modeling infinite-state systems with finite control states and storage mechanisms defined by graph monoids. This allows them to uniformly model various systems like counters, pushdowns, and their combinations.
  • Graph Monoids: Using algebraic structures derived from graphs to represent storage mechanisms.
  • Logspace Reductions: Demonstrating that problems are computationally equivalent by showing efficient transformations between them. This is crucial for proving hardness results.
  • Grammar-based Approach: Translating valence systems into a novel type of "bidirected grammar" and then analyzing the emptiness problem for these grammars. This is a key technique for establishing upper bounds.
  • Coset Circuits: A novel representation for sets of solutions to linear equations, which helps in efficiently checking emptiness conditions.

Datasets

Not discussed in the paper.

Key Insights and Ideas

  • Bidirectedness as a Complexity Reducer: The most striking insight is how significantly bidirectedness simplifies reachability problems. For many common storage mechanisms (like counters and stacks), bidirected reachability is polynomial-time decidable, whereas general reachability can be much harder.
  • The Power of Group Theory: The paper beautifully illustrates how abstract algebraic concepts (subgroup membership in graph groups) can directly inform and solve problems in theoretical computer science (reachability in infinite-state systems).
  • A Dichotomy for Valence Systems: For a large class of valence systems (those with decidable general reachability), the paper establishes a clear dichotomy: bidirected reachability is either L-complete (very easy) or P-complete (polynomial time), depending on the structure of the underlying graph.
  • Undecidability from Simple Structures: Surprisingly, undecidability of bidirected reachability can arise from relatively simple graph structures like a 4-cycle (C4).

Key Results

The paper provides a comprehensive complexity classification for bidirected reachability in valence systems over graphs in the class SC (which are PVASS-free and transitive forests). The results are summarized by the following complexity classes:

  • L-complete: For valence systems over cliques of bounded size.
  • ILD-complete: For valence systems over cliques that are UC-bounded but LC-unbounded. (ILD is a class between L and P).
  • P-complete: For valence systems over graphs that are not cliques but are UC-bounded and height-bounded.
  • In EXP: For valence systems that are UC-bounded but height-unbounded.
  • EXPSPACE-complete: For other cases.

Furthermore, the paper shows:

  • Bidirected reachability in Z-VASS (systems with Z-counters) drops from NP-complete to ILD-complete (or L-complete for fixed counters).
  • Bidirected reachability for pushdown Z-VASS drops from NP-complete to P-complete (for bounded alternations) or EXP (for unbounded alternations).
  • Bidirected reachability is undecidable if the underlying graph contains a C4 as an induced subgraph.

Limitations and Future Work

  • Undecidability: The paper identifies cases where bidirected reachability is undecidable (e.g., when the graph contains C4). This highlights the boundaries of decidability.
  • Complexity of ILD: The exact complexity of the ILD class itself remains open, which impacts the precision of some results.
  • Generalizations: The authors focus on valence systems over SC graphs. Extending these results to broader classes of graphs or more complex storage mechanisms could be a future direction.
  • Practical Implications: While the theoretical complexity is clarified, translating these results into practical verification algorithms for real-world systems remains an area for further research.

Summary updated

BibTeX
@inproceedings{ganardi2022complexity,
  author = {Moses Ganardi and Rupak Majumdar and Georg Zetzsche},
  title = {{The Complexity of Bidirected Reachability in Valence Systems}},
  booktitle = {LICS},
  year = {2022},
  doi = {10.1145/3531130.3533345},
}
Figure