arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2311.04031cs.LOcs.FL
收藏

线性算术中的拉姆齐量词

Ramsey Quantifiers in Linear Arithmetics

Pascal Bergsträßer, Moses Ganardi, Anthony W. Lin, Georg Zetzsche

AI总结:

本研究提出一种可从LIA、LRA、LIRA三种线性算术SMT理论中消除拉姆齐量词的多项式时间算法,解决了相关良基性检查、一元可分解性等开放问题,并在原型测试中取得良好效果。

摘要:

我们研究了被称为拉姆齐量词的可满足性模理论(SMT,Satisfiability Modulo Theories)扩展,这类量词断言在由某些公式诱导的图中存在团(完全图)。已知该扩展框架可应用于程序终止性证明(尤其是传递二元谓词是否良基的问题),以及SMT公式的一元可分解性问题。我们的主要成果是提出了一种新算法,可从三种常见SMT理论——线性整数算术(LIA,Linear Integer Arithmetic)、线性实数算术(LRA,Linear Real Arithmetic)和线性整数实数算术(LIRA,Linear Integer Real Arithmetic)——中消除拉姆齐量词。具体而言,若仅处理存在量化公式,我们的算法可在多项式时间内运行,并生成线性规模的公式。一个直接推论是,在上述定义传递谓词的理论中,检查给定公式的良基性可直接通过高度优化的SMT求解器处理。我们还展示了该方法如何为几类知名无限状态系统(包括简洁时间系统、单计数器系统和单调计数器系统)的终止性与活性验证提供统一的半算法,且具备完备性保证(实际上还具有最优计算复杂度)。另一个直接推论是解决了LRA和LIRA的无量词片段中给定关系的一元可分解性检查这一开放问题,该问题是自动推理和约束数据库中的重要问题。我们的结果直接证明了该问题的可判定性,且具有最优复杂度(coNP完全),并可借助SMT求解器进行求解。该结果还为Veanes等人提出的通用一元分解算法在LIA、LRA和LIRA上的运行提供了终止性保证。我们在微型基准测试集上对算法的原型实现进行了测试,报告了令人鼓舞的实验结果。

英文摘要:

We study Satisfiability Modulo Theories (SMT) enriched with the so-called Ramsey quantifiers, which assert the existence of cliques (complete graphs) in the graph induced by some formulas. The extended framework is known to have applications in proving program termination (in particular, whether a transitive binary predicate is well-founded), and monadic decomposability of SMT formulas. Our main result is a new algorithm for eliminating Ramsey quantifiers from three common SMT theories: Linear Integer Arithmetic (LIA), Linear Real Arithmetic (LRA), and Linear Integer Real Arithmetic (LIRA). In particular, if we work only with existentially quantified formulas, then our algorithm runs in polynomial time and produces a formula of linear size. One immediate consequence is that checking well-foundedness of a given formula in the aforementioned theory defining a transitive predicate can be straightforwardly handled by highly optimized SMT-solvers. We show also how this provides a uniform semi-algorithm for verifying termination and liveness with completeness guarantee (in fact, with an optimal computational complexity) for several well-known classes of infinite-state systems, which include succinct timed systems, one-counter systems, and monotonic counter systems. Another immediate consequence is a solution to an open problem on checking monadic decomposability of a given relation in quantifier-free fragments of LRA and LIRA, which is an important problem in automated reasoning and constraint databases. Our result immediately implies decidability of this problem with an optimal complexity (coNP-complete) and enables exploitation of SMT-solvers. It also provides a termination guarantee for the generic monadic decomposition algorithm of Veanes et al. for LIA, LRA, and LIRA. We report encouraging experimental results on a prototype implementation of our algorithms on micro-benchmarks.

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

↑