A Computable Semantics for General Logic Programs

D Semantics for positive programs have been thoroughly explored in the context of Herbrand models through the immediate consequence function T. For general logic programs, i.e. programs whose clauses may contain negative literals in their body, parallel semantics have been developed using three-valued logic and a new immediate consequence function a. However, over Herbrand models this semantics is not in general computable. A computable subclass is introduced in this paper, termed the canonical general programs. Our main result is to show, constructively, that this latter class is in some sense representative of all general logic programs, thus extending to general logic programs a result proven recently by Jaffar and Stuckey for positive logic programs. The new result is obtained by providing a transformation which, given any general logic program GP, produces a canonical general logic program CGP “semantically equivalent” to GP in the sense that it has the same success set and finite failure set. It intuitively means that the declarative semantics of CGP captures exactly the set of answers computable from GP. a

[1]  J. Lloyd Foundations of Logic Programming , 1984, Symbolic Computation.

[2]  John C. Shepherdson,et al.  Negation in Logic Programming , 1988, Foundations of Deductive Databases and Logic Programming..

[3]  Mark Wallace,et al.  Negation by Constraints: A Sound and Efficient Implementation of Negation in Deductive Databases , 1987, SLP.

[4]  Keith L. Clark,et al.  Negation as Failure , 1987, Logic and Data Bases.

[5]  John C. Shepherdson,et al.  Negation as Failure: A Comparison of Clark's Completed Data Base and Reiter's Closed World Assumption , 1984, J. Log. Program..

[6]  Krzysztof R. Apt,et al.  Contributions to the Theory of Logic Programming , 1982, JACM.

[7]  S. C. Kleene,et al.  Introduction to Metamathematics , 1952 .

[8]  Michael J. Maher Eqivalences of Logic Programs , 1986, ICLP.

[9]  Adrian Walker,et al.  Towards a Theory of Declarative Knowledge , 1988, Foundations of Deductive Databases and Logic Programming..

[10]  Melvin Fitting,et al.  A Kripke-Kleene Semantics for Logic Programs , 1985, J. Log. Program..

[11]  Kenneth Kunen,et al.  Negation in Logic Programming , 1987, J. Log. Program..

[12]  Michael J. Maher,et al.  Closures and Fairness in the Semantics of Programming Logic , 1984, Theor. Comput. Sci..

[13]  Peter J. Stuckey,et al.  Canonical Logic Programs , 1986, J. Log. Program..