Ramsey Quantifiers over Automatic Structures: Complexity and Applications to Verification

Pascal Bergsträßer, Moses Ganardi, Anthony W. Lin, Georg Zetzsche

Abstract

Automatic structures provide a finite representation for infinite systems, yet the complexity of reasoning about their infinite properties has remained fragmented. This paper establishes a unified theoretical framework by connecting Ramsey quantifiers—traditionally used to detect infinite cliques—to fundamental verification problems such as liveness and monadic decomposability. By introducing directed Ramsey quantifiers and a novel "comb of combs" proof technique, we map the complexity landscape from NL to EXP, settling several long-standing open questions in the field.

Introduction

In formal verification, automatic structures are essential for modeling infinite-state systems using finite automata. While basic properties are well-understood, two critical areas have lacked a unified perspective: liveness verification (checking recurrent reachability) and monadic decomposability (determining if multi-variable relations can be factored into independent properties). Previously, these problems were approached with disparate, complex techniques. This research addresses this gap by providing precise computational complexity bounds for these tasks across word-based and tree-based automatic structures.

Methodology: The "Comb of Combs"

The core innovation is the use of the directed Ramsey quantifier. Unlike standard Ramsey quantifiers that seek undirected cliques, the directed version identifies infinite directed cliques, which naturally correspond to infinite paths and loops in verification contexts.

Word-Automatic Structures

For word-automatic structures, the authors replace traditional, complex Ramsey-theoretic proofs with a geometric "comb of combs" argument. They demonstrate that any infinite clique contains a subset representable as a "comb"—a specific structural pattern in words. These combs can be merged into a single run of a polynomial-sized Büchi automaton, reducing the complexity of evaluating Ramsey quantifiers to NL-complete.

Illustration of the comb structure in word-automatic relations, showing how words can be aligned and decomposed.

Tree-Automatic Structures

The "merging" technique for words does not directly translate to tree-automatic structures due to branching. To address this, the authors utilize Alternating Büchi Tree Automata (ABTA) to witness the "comb of combs" structure. This approach leads to exponential-time algorithms, reflecting a fundamental complexity jump when moving from linear strings to branching trees.

The branching 'comb of combs' structure used to analyze tree-automatic relations.

Key Insights

A primary insight of this work is the "Great Unification": liveness in regular model checking is shown to be Ramsey quantification over transitive relations, while monadic decomposability corresponds to Ramsey quantification over co-transitive relations. By exploiting transitivity, the complexity for tree-automatic structures can often be reduced from EXP to P. Furthermore, the "comb of combs" insight demonstrates that reasoning about infinite cliques in words does not require the full weight of the transition monoid, simplifying the underlying algebraic requirements.

Results and Complexity Landscape

The paper provides a comprehensive complexity landscape for Ramsey quantifiers:

  • Word-Automatic Relations: Evaluating Ramsey quantifiers is NL-complete, a significant improvement over previous doubly-exponential bounds. Recurrent reachability with generalized Büchi conditions is PSPACE-complete.
  • Tree-Automatic Relations: The general problem is EXP-complete, though it drops to P for transitive or co-transitive relations.
  • Settled Questions: The decidability and precise complexity of recurrent reachability for systems like subtree/flat prefix rewriting (P) and ground tree rewrite systems (EXP-complete) are now established, resolving questions open for over 15 years.

Conclusion and Future Directions

This work provides a robust framework for reasoning about infinite properties in automatic structures. Future research will focus on $\omega$-automatic structures (over infinite words), where the complexity of Ramsey quantifiers over transitive relations remains an open problem. Additionally, exploring these quantifiers in mixed integer-real linear arithmetic could offer new tools for the verification of hybrid systems.

Summary updated

BibTeX
@inproceedings{bergstraer2022ramsey,
  author = {Pascal Bergsträßer and Moses Ganardi and Anthony W. Lin and Georg Zetzsche},
  title = {{Ramsey Quantifiers over Automatic Structures: Complexity and Applications to Verification}},
  booktitle = {LICS},
  year = {2022},
  doi = {10.1145/3531130.3533346},
}
Figure