English

Negated String Containment is Decidable (Technical Report)

Logic in Computer Science 2025-07-02 v2 Formal Languages and Automata Theory

Abstract

We provide a positive answer to a long-standing open question of the decidability of the not-contains string predicate. Not-contains is practically relevant, for instance in symbolic execution of string manipulating programs. Particularly, we show that the predicate ¬Contains(x1xn,y1ym)\neg\mathit{Contains}(x_1 \ldots x_n, y_1 \ldots y_m), where x1xnx_1 \ldots x_n and y1ymy_1 \ldots y_m are sequences of string variables constrained by regular languages, is decidable. Decidability of a not-contains predicate combined with chain-free word equations and regular membership constraints follows.

Cite

@article{arxiv.2506.22061,
  title  = {Negated String Containment is Decidable (Technical Report)},
  author = {Vojtěch Havlena and Michal Hečko and Lukáš Holík and Ondřej Lengál},
  journal= {arXiv preprint arXiv:2506.22061},
  year   = {2025}
}
R2 v1 2026-07-01T03:36:07.353Z