arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1407.2106cs.LO
收藏

用函数符号检验逻辑程序自自底向上的求值的终止性

Checking Termination of Bottom-Up Evaluation of Logic Programs with Function Symbols

Marco Calautti, Sergio Greco, Francesca Spezzano, Irina Trubitsyna

摘要:

近年来,人们越来越关注自自底向上的【形】的复杂术语逻辑程序的语义评估。程序中函数符号的存在可能使基础实例化无限,并且在一般情况下,不再保证模型的有限性和评估过程的终止。由于程序终止问题在一般情况下是不可判定的,最近提出了几个可判定准则(称为程序终止准则)。然而,目前的条件是不能识别甚至简单的程序,其自自底向上的【形】的执行总是终止。本文通过对程序结构的深入分析,提出了一种新的自自底向上的【形】求值下带函数符号的逻辑程序可终止性判定准则。首先,我们分析了复杂的条款之间的传播参数的扩展版本的参数图称为传播图。由此产生的标准,称为伽马-非周期性,概括了迄今为止提出的大多数可判定的标准。接下来,我们研究规则如何相互激活,并定义一个更强大的标准,称为安全性。该标准使用所谓的安全函数,能够分析规则如何相互激活以及规则中某些参数的存在如何限制其激活。我们还研究了所提出的标准绑定查询的应用程序,并表明,安全标准是非常适合识别相关类的程序和绑定查询。最后,我们提出了一个层次的类终止程序,称为k-安全,其中k-安全类严格包括(k-1)-安全类。逻辑程序设计理论与实践(Theory and Practice of Logic Programming,TPLP)

英文摘要:

Recently, there has been an increasing interest in the bottom-up evaluation of the semantics of logic programs with complex terms. The presence of function symbols in the program may render the ground instantiation infinite, and finiteness of models and termination of the evaluation procedure, in the general case, are not guaranteed anymore. Since the program termination problem is undecidable in the general case, several decidable criteria (called program termination criteria) have been recently proposed. However, current conditions are not able to identify even simple programs, whose bottom-up execution always terminates. The paper introduces new decidable criteria for checking termination of logic programs with function symbols under bottom-up evaluation, by deeply analyzing the program structure. First, we analyze the propagation of complex terms among arguments by means of the extended version of the argument graph called propagation graph. The resulting criterion, called Gamma-acyclicity, generalizes most of the decidable criteria proposed so far. Next, we study how rules may activate each other and define a more powerful criterion, called safety. This criterion uses the so-called safety function able to analyze how rules may activate each other and how the presence of some arguments in a rule limits its activation. We also study the application of the proposed criteria to bound queries and show that the safety criterion is well-suited to identify relevant classes of programs and bound queries. Finally, we propose a hierarchy of classes of terminating programs, called k-safety, where the k-safe class strictly includes the (k-1)-safe class. Note: To appear in Theory and Practice of Logic Programming (TPLP).

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

↑