arXivDaily arXiv每日学术速递 周一至周五更新
arXiv cs/0012008cs.PL
收藏

逻辑程序自动终止性分析的通用框架

A General Framework for Automatic Termination Analysis of Logic Programs

Nachum Dershowitz, Naomi Lindenstrauss, Yehoshua Sagiv, Alexander Serebrenik

摘要:

本文描述了一个逻辑程序自动终止分析的一般框架,其中我们用“终止”来理解为程序和给定查询构造的LD树的有限性。证明了无限LD-树的分支的某个子集到有限集的映射的一个一般性质。从这一结果导出几个终止定理,通过使用不同的有限集。前两个是制定谓词依赖和原子依赖图。然后证明了与程序相关的查询-映射对的一般结果(参见图1)。\cite{Sagiv,Lindenstrauss:Sagiv})。在\cite{Lindenstrauss:Sagiv:Serebrenik}中描述的{ \em TermiLog}系统的正确性由此而来。在这个系统中,不可能证明涉及算术谓词的程序的终止性,因为整数的通常顺序不是有根据的。本文提出了一种新的方法,它可以很容易地结合在{ \em TermiLog}或类似的系统中,这使得它有可能证明终止程序涉及算术谓词。它是基于一个有限的整数抽象与查询映射对的技术相结合,基本上是能够划分为几种情况下,这样一个简单的终止功能足以为每种情况下的终止证明。最后概述了几种可能的扩展。

英文摘要:

This paper describes a general framework for automatic termination analysis of logic programs, where we understand by ``termination'' the finitenes s of the LD-tree constructed for the program and a given query. A general property of mappings from a certain subset of the branches of an infinite LD-tree into a finite set is proved. From this result several termination theorems are derived, by using different finite sets. The first two are formulated for the predicate dependency and atom dependency graphs. Then a general result for the case of the query-mapping pairs relevant to a program is proved (cf. \cite{Sagiv,Lindenstrauss:Sagiv}). The correctness of the {\em TermiLog} system described in \cite{Lindenstrauss:Sagiv:Serebrenik} follows from it. In this system it is not possible to prove termination for programs involving arithmetic predicates, since the usual order for the integers is not well-founded. A new method, which can be easily incorporated in {\em TermiLog} or similar systems, is presented, which makes it possible to prove termination for programs involving arithmetic predicates. It is based on combining a finite abstraction of the integers with the technique of the query-mapping pairs, and is essentially capable of dividing a termination proof into several cases, such that a simple termination function suffices for each case. Finally several possible extensions are outlined.

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

↑