SMODELS系统内弱等效性的自动验证
Automated verification of weak equivalence within the SMODELS system
摘要:
在答案集编程(ASP)中,通过(i)编写其答案集对应于问题的解的逻辑程序,以及通过(ii)使用答案集求解器作为搜索引擎来计算程序的答案集,来解决手头的问题。通常,程序员在优化程序长度和特定求解器上的执行时间时,为特定问题创建一系列逐渐改进的逻辑程序。这将程序员引向确保程序是等效的元级问题,即,它们产生相同的答案集。为了在方法层面简化答案集编程,我们提出了一种基于翻译的方法来验证逻辑程序的等效性。其基本思想是将所考虑的逻辑程序P和Q转换为单个逻辑程序EQT(P,Q),其答案集(如果存在的话)产生P和Q等价的反例。该方法是在这里开发的一个稍微更一般的设置时,考虑到原子的可见性比较答案集。本文提出的基于推理的方法已被实现为一个翻译器,称为lpeq,使验证弱等价的模型系统内使用相同的搜索引擎的搜索模型。我们用lpeq和smodels进行的实验表明,在某些情况下,用这种方式建立逻辑程序的等价性比简单的交叉检查答案集要快得多。
英文摘要:
In answer set programming (ASP), a problem at hand is solved by (i) writing a logic program whose answer sets correspond to the solutions of the problem, and by (ii) computing the answer sets of the program using an answer set solver as a search engine. Typically, a programmer creates a series of gradually improving logic programs for a particular problem when optimizing program length and execution time on a particular solver. This leads the programmer to a meta-level problem of ensuring that the programs are equivalent, i.e., they give rise to the same answer sets. To ease answer set programming at methodological level, we propose a translation-based method for verifying the equivalence of logic programs. The basic idea is to translate logic programs P and Q under consideration into a single logic program EQT(P,Q) whose answer sets (if such exist) yield counter-examples to the equivalence of P and Q. The method is developed here in a slightly more general setting by taking the visibility of atoms properly into account when comparing answer sets. The translation-based approach presented in the paper has been implemented as a translator called lpeq that enables the verification of weak equivalence within the smodels system using the same search engine as for the search of models. Our experiments with lpeq and smodels suggest that establishing the equivalence of logic programs in this way is in certain cases much faster than naive cross-checking of answer sets.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。