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

终止逻辑程序的类

Classes of Terminating Logic Programs

Dino Pedreschi, Salvatore Ruggieri, Jan-Georg Smaus

摘要:

逻辑程序的终止关键取决于选择规则,即确定在每个解析步骤中选择哪个原子的规则。在本文中,我们根据程序(和查询)终止的选择规则对它们进行分类。这是一个综述和统一的看法,在不同的方法在文献中。对于每个类,我们提出了一个足够的,对于大多数类,甚至是必要的,标准来确定一个程序是在该类。我们学习六个类:如果程序对于所有选择规则都终止,则程序强终止;如果程序输入对于仅选择在其输入位置被充分实例化的原子的选择规则终止,则程序输入终止,使得这些变元不会被统一进一步实例化;如果程序局部延迟对于仅选择相对于R.T.适当的水平映射;一个程序左终止,如果它终止于通常的从左到右的选择规则;一个程序存在-终止,如果存在一个选择规则,它终止;最后,一个程序有界非确定性,如果它只有1000个反驳。我们提出了一个语义保持从有界不确定性程序到强终止程序的转换。此外,通过统一不同的形式主义和适当的假设,我们能够建立一个正式的层次结构之间的不同类。

英文摘要:

Termination of logic programs depends critically on the selection rule, i.e. the rule that determines which atom is selected in each resolution step. In this article, we classify programs (and queries) according to the selection rules for which they terminate. This is a survey and unified view on different approaches in the literature. For each class, we present a sufficient, for most classes even necessary, criterion for determining that a program is in that class. We study six classes: a program strongly terminates if it terminates for all selection rules; a program input terminates if it terminates for selection rules which only select atoms that are sufficiently instantiated in their input positions, so that these arguments do not get instantiated any further by the unification; a program local delay terminates if it terminates for local selection rules which only select atoms that are bounded w.r.t. an appropriate level mapping; a program left-terminates if it terminates for the usual left-to-right selection rule; a program exists-terminates if there exists a selection rule for which it terminates; finally, a program has bounded nondeterminism if it only has finitely many refutations. We propose a semantics-preserving transformation from programs with bounded nondeterminism into strongly terminating programs. Moreover, by unifying different formalisms and making appropriate assumptions, we are able to establish a formal hierarchy between the different classes.

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

↑