paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Quadratic Word Equations with Length Constraints, Counter Systems, and Presburger Arithmetic with Divisibility

带长度约束的二次词方程、计数器系统与带整除的 Presburger 算术
LMCS vol.Volume 17, Issue 42021匹配度 2/10 · 该论文属于词方程、Presburger算术与自动机理论的可判定性研究,虽与形式验证/约束求解基础相关,但未涉及用户核心关注的 LLM/Agent 与静态分析结合、浮点程序分析、贝叶斯程序分析或工业落地工具。引用 40 inbox
Anthony W. Lin, Rupak Majumdar
crossref: 2026-09-10

AI 速览

一句话:通过计数器系统与带整除 Presburger 算术,给出 flat 二次词方程长度约束的可判定性与复杂度上界。

词方程求解是可判定的,但加入长度约束后的可判定性长期未决。本文聚焦每个变量至多出现两次的二次词方程。作者先证明二次词方程解的长度抽象一般不是 Presburger 可定义的;随后定义一类带 Presburger 迁移关系的计数器系统,用以刻画带正则约束的二次词方程的长度抽象。关键步骤是把计数器系统中简单循环的效果编码进带整除的 Presburger 算术(PAD)的存在理论。由于 PAD 可判定(NP-hard 且属于 NEXP),得到当关联计数器系统为 flat(每个节点至多属于一个循环)时带长度约束二次词方程的可判定性。对最近提出的 NP-完全片段 regular-oriented word equations,加入长度约束后也可判定,并给出带 PAD oracle 的 NP 算法;在正则约束下进一步把复杂度上界扩展到 PSPACE(带 PAD oracle)。

问题
词方程本身可判定,但带长度约束的词方程可判定性长期未决;本文研究每个变量至多出现两次的二次词方程。
方法
先证其长度抽象一般非 Presburger 可定义,再用带 Presburger 迁移关系的计数器系统刻画长度抽象,并把简单循环的效果编码到带整除的 Presburger 算术 PAD 中。
评估
在关联计数器系统为 flat 时给出可判定性;对 regular-oriented 片段给出带 PAD oracle 的 NP 算法,并在正则约束下得到 PSPACE(带 PAD oracle)上界。
原文摘要(Abstract)

Word equations are a crucial element in the theoretical foundation of constraint solving over strings. A word equation relates two words over string variables and constants. Its solution amounts to a function mapping variables to constant strings that equate the left and right hand sides of the equation. While the problem of solving word equations is decidable, the decidability of the problem of solving a word equation with a length constraint (i.e., a constraint relating the lengths of words in the word equation) has remained a long-standing open problem. We focus on the subclass of quadratic word equations, i.e., in which each variable occurs at most twice. We first show that the length abstractions of solutions to quadratic word equations are in general not Presburger-definable. We then describe a class of counter systems with Presburger transition relations which capture the length abstraction of a quadratic word equation with regular constraints. We provide an encoding of the effect of a simple loop of the counter systems in the existential theory of Presburger Arithmetic with divisibility (PAD). Since PAD is decidable (NP-hard and is in NEXP), we obtain a decision procedure for quadratic words equations with length constraints for which the associated counter system is flat (i.e., all nodes belong to at most one cycle). In particular, we show a decidability result (in fact, also an NP algorithm with a PAD oracle) for a recently proposed NP-complete fragment of word equations called regular-oriented word equations, when augmented with length constraints. We extend this decidability result (in fact, with a complexity upper bound of PSPACE with a PAD oracle) in the presence of regular constraints.

链接与引用

DOI 原文 · arXiv · PDF(开放获取) · DBLP

BibTeX
@article{LinM18,
  title = {Quadratic Word Equations with Length Constraints, Counter Systems, and Presburger Arithmetic with Divisibility},
  author = {Anthony W. Lin and Rupak Majumdar},
  journal = {Logical Methods in Computer Science},
  volume = {Volume 17, Issue 4},
  year = {2021},
  doi = {10.46298/lmcs-17(4:4)2021}
}