English

The Equivalence Problem of E-Pattern Languages with Length Constraints is Undecidable

Formal Languages and Automata Theory 2025-03-03 v2 Computational Complexity Combinatorics

Abstract

Patterns are words with terminals and variables. The language of a pattern is the set of words obtained by uniformly substituting all variables with words that contain only terminals. Length constraints restrict valid substitutions of variables by associating the variables of a pattern with a system (or disjunction of systems) of linear diophantine inequalities. Pattern languages with length constraints contain only words in which all variables are substituted to words with lengths that fulfill such a given set of length constraints. We consider membership, inclusion, and equivalence problems for erasing and non-erasing pattern languages with length constraints. Our main result shows that the erasing equivalence problem - one of the most prominent open problems in the realm of patterns - becomes undecidable if length constraints are allowed in addition to variable equality. Additionally, it is shown that the terminal-free inclusion problem, a prominent problem which has been shown to be undecidable in the binary case for patterns without any constraints, is also generally undecidable for all larger alphabets in this setting. Finally, we also show that considering regular constraints, i.e., associating variables also with regular languages as additional restrictions together with length constraints for valid substitutions, results in undecidability of the non-erasing equivalence problem. This sets a first upper bound on constraints to obtain undecidability in this case, as this problem is trivially decidable in the case of no constraints and as it has unknown decidability if only regular- or only length-constraints are considered.

Keywords

Cite

@article{arxiv.2411.06904,
  title  = {The Equivalence Problem of E-Pattern Languages with Length Constraints is Undecidable},
  author = {Dirk Nowotka and Max Wiedenhöft},
  journal= {arXiv preprint arXiv:2411.06904},
  year   = {2025}
}

Comments

37 pages including appendix, 1 table, submitted to CPM 2025 (second round) (Version note: Updated the content and representation according to received reviews. Added, among other changes, an important reference that implies the binary case of one of the results already. Adapted the paper accordingly.)

R2 v1 2026-06-28T19:55:26.535Z