Languages Ordered by the Subword Order

Dietrich Kuske, Georg Zetzsche

Abstract

This research explores the logical boundaries of the subword order, a fundamental relation in infinite-state system verification. While the first-order theory of the subword order over all words is known to be undecidable, this paper identifies several language classes and logical fragments where decidability is preserved. By restricting the domain to bounded or regular languages, the authors demonstrate that powerful features such as counting quantifiers and the cover relation can be incorporated into decidable logical frameworks.

Introduction

The subword relation ($u \le v$), where $u$ is obtained by deleting symbols from $v$, is a cornerstone of formal language theory and system verification. Its status as a well-quasi ordering (Higman's Lemma) ensures the termination of various algorithms. However, reasoning about this relation using formal logic is fraught with computational difficulty. For the set of all words $\Sigma^*$, even simple extensions of existential logic lead to undecidability. This paper, presented at FOSSACS 2019, seeks to bridge the gap between expressivity and decidability by restricting the "universe" of words to specific language classes.

The Decidability Gap

In the standard structure $(\Sigma^*, \le)$, the first-order theory is undecidable for alphabets with at least two letters. Previous research has shown that while the existential fragment ($\Sigma_1$) is decidable, adding universal quantifiers or specific constants quickly renders the logic intractable. Furthermore, standard decidable fragments often lack the power to express the cover relation (where $v$ is an immediate successor of $u$ in the subword order) or counting quantifiers (e.g., "there exist at least $k$ subwords with property $X$").

Decidability over Bounded Languages

A significant contribution of the paper is the analysis of bounded languages. A language $L$ is bounded if $L \subseteq w_1^* w_2^* \dots w_k^*$ for some fixed words $w_i$.

  • Theorem 3.4: For any bounded context-free language $L$, the full first-order logic extended with counting and modulo quantifiers is decidable.

The authors achieve this by interpreting the structure $(L, \le)$ into Presburger arithmetic—the decidable logic of natural numbers with addition. This transformation allows researchers to leverage powerful numerical solvers for string-based problems.

Regular Languages and Two-Variable Logic

For general regular languages, the authors focus on the two-variable logic with counting ($C+MOD^2$).

  • Corollary 4.8: The $C+MOD^2$ theory of $(L, \le, \text{cover})$ is decidable for any regular language $L$.

A key technical hurdle was proving that the cover relation and incomparability are unambiguous rational relations. This property ensures that these relations are well-behaved under counting operations, allowing for a systematic quantifier elimination procedure.

Existential Logic and Frequent Letters

The paper also refines our understanding of the existential ($\Sigma_1$) theory, showing that decidability can be maintained even when adding constants if the language meets certain criteria.

  • Theorem 5.1: The $\Sigma_1$-theory of $(L, \le)$ is decidable for any regular language $L$.
  • Theorem 6.2: If $L$ is a regular language where every letter is frequent (appearing in every cycle of the language's automaton), the $\Sigma_1$-theory with constants is decidable.

This latter result is particularly striking because adding constants to the logic over $\Sigma^*$ usually leads to undecidability. The "frequent letter" condition acts as a stabilizer, preventing the construction of the complex configurations required for undecidability proofs.

Conclusion

By shifting the focus from the set of all words to specific language classes, Kuske and Zetzsche have significantly expanded the known landscape of decidable logics over subword orderings. Their work demonstrates that features like counting and the cover relation are not inherently computationally prohibitive, provided the underlying language is sufficiently structured. Future research directions include determining the exact complexity of these decidable fragments and identifying the necessary conditions for decidability with constants in general regular languages.

Summary updated

BibTeX
@inproceedings{kuske2019languages,
  author = {Dietrich Kuske and Georg Zetzsche},
  title = {{Languages Ordered by the Subword Order}},
  booktitle = {FoSSaCS},
  year = {2019},
  doi = {10.1007/978-3-030-17127-8\_20},
}
Figure