Reasoning about termination of pure prolog programs

104Citations
Citations of this article
10Readers
Mendeley users who have this article in their library.

This article is free to access.

Abstract

We provide a theoretical basis for studying termination of (general) logic programs with the Prolog selection rule. To this end we study the class of left terminating programs. These are logic programs that terminate with the Prolog selection rule for all ground goals. We offer a characterization of left terminating positive programs by means of the notion of an acceptable program that provides us with a practical method of proving termination. The method is illustrated by giving a simple proof of termination of the quicksort program for the desired class of goals. Then we extend this approach to the class of general logic programs by modifying the concept of acceptability. We prove that acceptable general programs are left terminating. The converse implication does not hold but we show that under the assumption of non-floundering from ground goals every left terminating general program is acceptable. Finally, we prove that various ways of defining semantics coincide for acceptable general programs. We illustrate the use of this extension by giving simple proofs of termination of a "game" program and the transitive closure program for the desired class of goals. © 1993 Academic Press, Inc.

Cite

CITATION STYLE

APA

Apt, K. R., & Pedreschi, D. (1993). Reasoning about termination of pure prolog programs. Information and Computation, 106(1), 109–157. https://doi.org/10.1006/inco.1993.1051

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free