论文标题

通过Varmonads学习口点的条款

Towards Clause Learning à la Carte through VarMonads

论文作者

Friedemann, Arved, Keszocze, Oliver

论文摘要

越来越多的语言需要为错误检测或自动代码生成等功能的约束解决功能。想象一下,有一个典型的类型语言,可以在给出类型后立即实施。在SAT解决中,已经有几种技术来加快搜索过程,以满足可以用于程序合成的变量的分配。这些技术之一是从句学习,如果搜索分支陷入冲突,则分析冲突的原因,并用于创建一个新的子句,如果冲突再次出现,该条款使分支更早地失败。我们提供了一个框架,不仅对于布尔求解器,而且对于在递归代数数据类型上运行的任何约束求解器,该技术都可以免费提供。我们通过跟踪在分配变量之前发生的读取操作并使用此信息来创建冲突分析所需的依赖图图来实现这一目标。 我们的结果在AGDA中实现,以获得最佳可读性,但它们也转移到其他功能语言。对于简洁起见,我们没有使用子句学习提供整个搜索系统,但是从形式主义中可以清楚地表明,我们的技术确实可以构建子句学习搜索系统。

More and more languages have a need for constraint solving capabilities for features like error detection or automatic code generation. Imagine a dependently typed language that can immediately implement a program as soon as its type is given. In SAT-solving, there have been several techniques to speed up a search process for satisfying assignments to variables that could be used for program synthesis. One of these techniques is clause learning where, if a search branch runs into a conflict, the cause of the conflict is analysed and used to create a new clause that lets a branch fail earlier if the conflict arises again. We provide a framework with which this technique can come for free not just for Boolean solvers, but for any constraint solver running on recursive algebraic data types. We achieve this by tracking the read operations that happen before a variable is assigned and use this information to create the dependency graph needed for conflict analysis. Our results are implemented in Agda for best readability, but they transfer to other functional languages as well. For brevity, we do not provide an entire search system utilizing the clause learning, but it will become clear from the formalisms that our technique indeed enables a clause learning search system to be built.

扫码加入交流群

加入微信交流群

微信交流群二维码

扫码加入学术交流群,获取更多资源