arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1805.06701cs.LO
收藏

带长度约束的二次字方程、计数器系统和带整除性的Presburger算术

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

Anthony W. Lin, Rupak Majumdar

摘要:

词方程是弦上约束求解理论基础中的一个重要组成部分,近年来受到了广泛的关注。一个词等式将两个词与字符串变量和常量联系起来。它的解决方案相当于一个函数,将变量映射到常量字符串,使等式的左侧和右侧相等。虽然求解词方程的问题是可判定的,但是求解具有长度约束的词方程的问题的可判定性(即,与词等式中的词的长度相关的约束)仍然是一个长期存在的公开问题。在本文中,我们专注于二次字方程的子类,即,其中每个变量最多出现两次。我们首先表明,二次字方程的解决方案的长度抽象一般不Presburger定义。然后,我们描述了一类计数器系统的Presburger转换关系,捕获的长度抽象的二次词方程与定期约束。我们提供了存在性普雷斯伯格整除算术(PAD)理论中计数器系统简单循环效果的编码。由于PAD是可判定的,我们得到了具有长度约束的二次字方程的判定过程,其中相关的计数器系统是\emph{flat}(即,所有节点属于至多一个循环)。我们展示了一个可判定性的结果(事实上,也是一个NP算法与PAD甲骨文)最近提出的NP-完整片段的字方程称为定期面向字方程,连同长度限制。当约束被额外扩展为具有1-弱控制结构的常规约束时,判定性成立。

英文摘要:

Word equations are a crucial element in the theoretical foundation of constraint solving over strings, which have received a lot of attention in recent years. 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. In this paper, 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 theory of existential Presburger Arithmetic with divisibility (PAD). Since PAD is decidable, we get a decision procedure for quadratic words equations with length constraints for which the associated counter system is \emph{flat} (i.e., all nodes belong to at most one cycle). 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, together with length constraints. Decidability holds when the constraints are additionally extended with regular constraints with a 1-weak control structure.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑