Word Equations with Length Constraints and Cyclic Variable Order
A regular word equation uses each variable at most once on each side. Lin and Majumdar proved decidability with length constraints when the shared variables occur in the same order. We prove decidability when their orders agree up to one cyclic shift. The length constraint is an arbitrary Presburger formula on the original variable lengths. Constants and variables confined to one side may occur anywhere, and every variable may be empty. For fixed lengths, occurrences of a shared variable match positions on a circle. After the unmatched positions are skipped, all matches follow one rotation. A solution exists precisely when the paths of this matching join compatible letters. A single path can wind arbitrarily many times as the lengths vary. We cut the circle along a periodic orbit and express its physical lengths as prefix counts of one marked rotation. The Euclidean algorithm then acts on all requested prefixes together. Its common scalar factor allows induction on the number of independent length comparisons. A separate reduction handles unmatched intervals of unbounded size and retains the original length constraints throughout.
Authors
- Qiaoshu Li
Institutions
- Chinese Academy of Sciences (CN)
- Computer Network Information Center (CN)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-28
- DOI
- https://doi.org/10.5281/zenodo.24598426
- Primary Topic
- semigroups and automata theory
- Type
- article
- Field-Weighted Citation Impact
- 0.00