Abstract
The problem of computational completeness of Horn clause logic programs is revisited. The standard results on representability of all computable predicates by Horn clause logic programs are not related to the real universe on which logic programs operate. SLD-resolution, which is the main mechanism to execute logic programs, may give answer substitutions with variables. As the main result we prove that computability by Horn clause logic programs is equivalent to standard computability over the Herbrand universe with variables. The semantics we use is S-semantics introduced by Falaschi et al. [3]. As an application of the main result we prove the existence of a metainterpreter for a sublanguage of real Prolog, written in the language of Horn clauses with the S-semantics. We also show that the traditional semantics of Prolog do not reflect its computational behavior from the viewpoint of recursion theory. © 1995 J.C. Baltzer AG, Science Publishers.
Original language | English |
---|---|
Pages (from-to) | 437-456 |
Number of pages | 19 |
Journal | Annals of Mathematics and Artificial Intelligence |
Volume | 15 |
Issue number | 3-4 |
DOIs | |
Publication status | Published - Sept 1995 |