计算机科学 > 计算机科学中的逻辑
[提交于 2025年10月30日]
标题:Finding Regular Herbrand Models for CHCs using Answer Set Programming
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:We are interested in proving satisfiability of Constrained Horn Clauses (CHCs) over Algebraic Data Types (ADTs). We propose to prove satisfiability by building a tree automaton recognizing the Herbrand model of the CHCs. If such an automaton exists then the model is said to be regular, i.e., the Herbrand model is a regular set of atoms. Kostyukov et al. have shown how to derive an automaton when CVC4 finds a finite model of the CHCs. We propose an alternative way to build the automaton using an encoding into a SAT problem using Clingo, an Answer Set Programming (ASP) tool. We implemented a translation of CHCs with ADTs into an ASP problem. Combined with Clingo, we obtain a semi-complete satisfiability checker: it finds a tree automaton if a regular Herbrand model exists or finds a counter-example if the problem is unsatisfiable.
提交历史
来自:EPTCS[v1] 2025年10月30日 星期四 12:24:23 UTC