English

On Solving Word Equations Using SAT

Formal Languages and Automata Theory 2019-06-28 v1

Abstract

We present Woorpje, a string solver for bounded word equations (i.e., equations where the length of each variable is upper bounded by a given integer). Our algorithm works by reformulating the satisfiability of bounded word equations as a reachability problem for nondeterministic finite automata, and then carefully encoding this as a propositional satisfiability problem, which we then solve using the well-known Glucose SAT-solver. This approach has the advantage of allowing for the natural inclusion of additional linear length constraints. Our solver obtains reliable and competitive results and, remarkably, discovered several cases where state-of-the-art solvers exhibit a faulty behaviour.

Keywords

Cite

@article{arxiv.1906.11718,
  title  = {On Solving Word Equations Using SAT},
  author = {Joel D. Day and Thorsten Ehlers and Mitja Kulczynski and Florin Manea and Dirk Nowotka and Danny Bøgsted Poulsen},
  journal= {arXiv preprint arXiv:1906.11718},
  year   = {2019}
}
R2 v1 2026-06-23T10:05:34.461Z