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

用于受限 Horn 子句可满足性的 Catamorphic 抽象

Catamorphic Abstractions for Constrained Horn Clause Satisfiability

Emanuele De Angelis, Fabio Fioravanti, Alberto Pettorossi, Maurizio Proietti

AI总结:

本文提出将含 catamorphism 的受限 Horn 子句转换为等可满足且不含 catamorphism 的子句集,从而无需扩展现有求解器即可验证 ADT 程序性质,并实验证明其显著提升 CHC 求解性能。

摘要:

Catamorphism(变形函数)是在列表和树上、通常也在代数数据类型(ADT)上递归定义的函数,常用于计算操作 ADT 的程序的适当抽象。Catamorphism 的例子包括计算列表大小、列表有序性以及树高度的函数。众所周知,通过 catamorphism 指定的程序性质可以通过证明适当的受限 Horn 子句(CHC)集合的可满足性来证明。我们解决检查这些 CHC 集合可满足性的问题,并提出一种将 CHC 集合转换为等可满足集合的方法,在转换后的集合中不再存在 catamorphism。因此,无需扩展现有 CHC 求解器所使用的可满足性算法,即可处理带有 catamorphism 的子句。通过在一个非平凡基准测试集上的实验评估——该基准由许多表示为 CHC 集合的列表和树处理算法组成——我们表明,我们的技术确实有效,并显著提升了最先进 CHC 求解器的性能。

英文摘要:

Catamorphisms are functions that are recursively defined on list and trees and, in general, on Algebraic Data Types (ADTs), and are often used to compute suitable abstractions of programs that manipulate ADTs. Examples of catamorphisms include functions that compute size of lists, orderedness of lists, and height of trees. It is well known that program properties specified through catamorphisms can be proved by showing the satisfiability of suitable sets of Constrained Horn Clauses (CHCs). We address the problem of checking the satisfiability of those sets of CHCs, and we propose a method for transforming sets of CHCs into equisatisfiable sets where catamorphisms are no longer present. As a consequence, clauses with catamorphisms can be handled without extending the satisfiability algorithms used by existing CHC solvers. Through an experimental evaluation on a non-trivial benchmark consisting of many list and tree processing algorithms expressed as sets of CHCs, we show that our technique is indeed effective and significantly enhances the performance of state-of-the-art CHC solvers.

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

↑