arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2311.03901cs.FLcs.LO
收藏

Parikh定理的符号化

Parikh's Theorem Made Symbolic

Matthew Hague, Artur Jeż, Anthony W. Lin

AI总结:

针对符号自动机应用Parikh定理产生指数级公式膨胀的问题,提出一种多项式时间的新型构造算法,避免指数膨胀,并扩展至参数化符号文法,有效求解复杂字符串约束。

摘要:

Parikh定理是自动机理论中的一个基本结果,在计算机科学中有众多应用:软件验证(例如无限状态验证、字符串约束和数组理论)、密码学协议验证(例如在等式理论下使用Horn子句)和数据库查询(例如在图数据库中评估路径查询)。Parikh定理指出,由有限自动机或上下文无关文法识别的语言的字母计数抽象可在Presburger算术中定义。遗憾的是,现实世界的应用通常需要大型字母表——众所周知,这些字母表不适合对字母表进行显式处理。在过去十年中,符号自动机已被证明是处理大型有限甚至无限字母表的有效算法框架。符号自动机采用有效的布尔代数,提供了字符集的符号表示,并且通常能以指数级更简洁的方式表示语言。对于符号自动机,Parikh定理不再是字母计数,而是相当于计算不同谓词被输入序列满足的次数。遗憾的是,将经典自动机理论中的Parikh定理天真地应用于符号自动机会产生指数大小的存在性Presburger公式。我们为符号自动机和文法提供了一种新的Parikh定理构造方法,避免了这种指数级膨胀:我们的算法在(无量词的)Presburger算术和基础理论上以多项式时间计算出一个存在性公式。事实上,我们的算法扩展到了参数化符号文法模型,这是无限字母表上最具表达能力的语言模型之一。我们实现了该算法,并表明它可用于求解现有求解器难以求解的字符串约束。

英文摘要:

Parikh's Theorem is a fundamental result in automata theory with numerous applications in computer science: software verification (e.g. infinite-state verification, string constraints, and theory of arrays), verification of cryptographic protocols (e.g. using Horn clauses modulo equational theories) and database querying (e.g. evaluating path-queries in graph databases). Parikh's Theorem states that the letter-counting abstraction of a language recognized by finite automata or context-free grammars is definable in Presburger Arithmetic. Unfortunately, real-world applications typically require large alphabets - which are well-known to be not amenable to explicit treatment of the alphabets. Symbolic automata have proven in the last decade to be an effective algorithmic framework for handling large finite or even infinite alphabets. A symbolic automaton employs an effective boolean algebra, which offers a symbolic representation of character sets and often lends itself to an exponentially more succinct representation of a language. Instead of letter-counting, Parikh's Theorem for symbolic automata amounts to counting the number of times different predicates are satisfied by an input sequence. Unfortunately, naively applying Parikh's Theorem from classical automata theory to symbolic automata yields existential Presburger formulas of exponential size. We provide a new construction for Parikh's Theorem for symbolic automata and grammars, which avoids this exponential blowup: our algorithm computes an existential formula in polynomial-time over (quantifier-free) Presburger and the base theory. In fact, our algorithm extends to the model of parametric symbolic grammars, which are one of the most expressive models of languages over infinite alphabets. We have implemented our algorithm and show it can be used to solve string constraints that are difficult to solve by existing solvers.

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

↑