Abstract
The paper considers a deferred substitution semantics for Logic Programs, in which both the composition of computed substitutions and their application to atoms in the current goal are deferred. This kind of semantics occurs in several interpreter optimization contexts:
-
Prolog implementation optimization.
-
Concurrent Logic Programs with committed choice.
-
Distributed Logic Programs.
However, in none of the specific applications of this kind of optimization, was any theoretical justification given, by formally relating this optimization to the standard operational semantics, based on SLD-resolution.
In this paper we prove the equivalence of these two kinds of semantics for a natural class of selection rules, including the standard leftmost selection rule applied by Prolog interpreters. Thus, we provide the missing justification of this known optimization.
The paper considers also in more detail the implications of this semantics to Distributed Logic Programs, which seems to be a new application. For the sequential case, an abstract implementation via meta-interpretation is described.
This is a preview of subscription content, log in via an institution.
Preview
Unable to display preview. Download preview PDF.
References
Krzysztof R. Apt. Introduction to logic programming. Technical Report TR-87-35 (Revised and extended version), Computer science dept., U. of Texas, Austin, July 1988.
M. Carlton and P. van Roy. A distributed prolog system with and parallelism. IEEE Software, January 1988.
J.W. Lloyd. Foundations of logic programming. Springer-Verlag, 1987.
David Maier and David S. Warren. Computing with logic (Logic programming with Prolog). Benjamin/Cummings, 1988.
Amir Rahat, Nissim Francez, and Oded Shmueli. Sdp: sequential, distributed logic programming. In Proc IFIP W.G. 10.1 working group on concepts and characterisitcs of declarative systems, North-Holland, October, 1988.
Vijay A. Saraswat. The concurrent logic programming language cp: definition and operational semantics. In 14th ACM-POPL, January 1987.
Ehud Shapiro. The family of concurrent logic programming languages. ACM Computing Surveys, 21(3):412–510, September 1990.
Author information
Authors and Affiliations
Editor information
Rights and permissions
Copyright information
© 1991 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Rahat, A., Francez, N., Shmueli, O. (1991). On the equivalence of deferred substitution and immediate substitution semantics for Logic Programs. In: van Eijck, J. (eds) Logics in AI. JELIA 1990. Lecture Notes in Computer Science, vol 478. Springer, Berlin, Heidelberg. https://doi.org/10.1007/BFb0018459
Download citation
DOI: https://doi.org/10.1007/BFb0018459
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-53686-4
Online ISBN: 978-3-540-46982-7
eBook Packages: Springer Book Archive