On the Power of Subsumption and Context Checks

Loop checking is a mechanism used to prune infinite SLD-derivations. Here we study two classes of loop checking mechanisms — subsumption checks and context checks. We analyze their soundness, completeness relative strength and related concepts. We prove their soundness (no computed answer substitution to a goal is missed) and demonstrate their completeness (all resulting derivations are finite) for some classes of logic programs. The completeness theorems for the subsumption checks make use of a simple version of Kruskal's Tree Theorem [K], called Higman's Lemma [H].

[1]  Graham Higman,et al.  Ordering by Divisibility in Abstract Algebras , 1952 .

[2]  John Wylie Lloyd,et al.  Foundations of Logic Programming , 1987, Symbolic Computation.

[3]  Philippe Besnard,et al.  On infinite loops in logic programming , 1989 .

[4]  David E. Smith,et al.  Controlling Recursive Inference , 1986, Artif. Intell..

[5]  Hidenori Itoh,et al.  A Query Evaluation Method for Stratified Programs Under the Extended CWA , 1988, ICLP/SLP.

[6]  Krzysztof R. Apt,et al.  On the Safe Termination of PROLOG Programs , 1989, ICLP.

[7]  Allen Van Gelder Efficient Loop Detection in Prolog using the Tortoise-and-Hare Technique , 1987, J. Log. Program..

[8]  Laurent Vieille,et al.  Recursive Query Processing: The Power of Logic , 1989, Theor. Comput. Sci..

[9]  Richard C. T. Lee,et al.  Symbolic logic and mechanical theorem proving , 1973, Computer science classics.

[10]  Michael A. Covington Eliminating unwanted loops in Prolog , 1985, SIGP.

[11]  Adrian Walker,et al.  Some Practical Properties of Logic Programming Interpreters , 1984, FGCS.

[12]  Randy Goebel,et al.  On eliminating loops in Prolog , 1985, SIGP.

[13]  J. Kruskal Well-quasi-ordering, the Tree Theorem, and Vazsonyi’s conjecture , 1960 .

[14]  Nachum Dershowitz,et al.  A Note on Simplification Orderings , 1979, Inf. Process. Lett..

[15]  Nils J. Nilsson,et al.  Artificial Intelligence , 1974, IFIP Congress.

[16]  L. Vielle,et al.  Recursive query processing: the power of logic , 1989 .

[17]  John W. Lloyd,et al.  Partial Evaluation in Logic Programming , 1991, J. Log. Program..