arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1810.03598cs.PL
收藏

高阶约束Horn子句的去功能化

Defunctionalization of Higher-Order Constrained Horn Clauses

Long Pham, Steven J. Ramsay, C. -H. Luke Ong

摘要:

在可满足性模理论(SMT)成功的基础上,Bjørner等人发起了一项研究计划,提倡将Horn约束作为自动程序验证的合适基础。一阶约束Horn子句的概念最近被CathcartBurn等人扩展到高阶逻辑。为了利用SMT求解的显着效率,解决高阶Horn约束系统的一种自然方法是将它们减少到一阶Horn约束系统。本文提出了一种去功能化算法来实现约简。给定一个有序高阶约束Horn子句(HoCHC)问题实例,去功能化算法构造一个一阶有序约束Horn子句问题.除了良好的排序算法的输出,我们证明,如果一个输入HoCHC是可解的,那么它的defunctionalization的结果是可解的。反过来也成立,我们证明了使用最近的结果HoCHC的连续语义。据我们所知,这种去功能化算法是第一个健全的和完整的减少从系统的高阶霍恩约束系统的一阶霍恩约束。我们已经构建了DefMono,这是去功能化算法的原型实现。它首先将输入HoCHC问题去功能化,然后将结果馈送到后端SMT求解器。我们已经评估了DefMono经验的性能与其他两个高阶验证工具进行比较。

英文摘要:

Building on the successes of satisfiability modulo theories (SMT), Bjørner et al. initiated a research programme advocating Horn constraints as a suitable basis for automatic program verification. The notion of first-order constrained Horn clauses has recently been extended to higher-order logic by Cathcart Burn et al. To exploit the remarkable efficiency of SMT solving, a natural approach to solve systems of higher-order Horn constraints is to reduce them to systems of first-order Horn constraints. This paper presents a defunctionalization algorithm to achieve the reduction. Given a well-sorted higher-order constrained Horn clause (HoCHC) problem instance, the defunctionalization algorithm constructs a first-order well-sorted constrained Horn clause problem. In addition to well-sortedness of the algorithm's output, we prove that if an input HoCHC is solvable, then the result of its defunctionalization is solvable. The converse also holds, which we prove using a recent result on the continuous semantics of HoCHC. To our knowledge, this defunctionalization algorithm is the first sound and complete reduction from systems of higher-order Horn constraints to systems of first-order Horn constraints. We have constructed DefMono, a prototype implementation of the defunctionalization algorithm. It first defunctionalizes an input HoCHC problem and then feeds the result into a backend SMT solver. We have evaluated the performance of DefMono empirically by comparison with two other higher-order verification tools.

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

↑