Skip to main content

On the equivalence of deferred substitution and immediate substitution semantics for Logic Programs

  • Selected Papers
  • Conference paper
  • First Online:
  • 128 Accesses

Part of the book series: Lecture Notes in Computer Science ((LNAI,volume 478))

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.

Unable to display preview. Download preview PDF.

References

  1. 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.

    Google Scholar 

  2. M. Carlton and P. van Roy. A distributed prolog system with and parallelism. IEEE Software, January 1988.

    Google Scholar 

  3. J.W. Lloyd. Foundations of logic programming. Springer-Verlag, 1987.

    Google Scholar 

  4. David Maier and David S. Warren. Computing with logic (Logic programming with Prolog). Benjamin/Cummings, 1988.

    Google Scholar 

  5. 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.

    Google Scholar 

  6. Vijay A. Saraswat. The concurrent logic programming language cp: definition and operational semantics. In 14th ACM-POPL, January 1987.

    Google Scholar 

  7. Ehud Shapiro. The family of concurrent logic programming languages. ACM Computing Surveys, 21(3):412–510, September 1990.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

J. van Eijck

Rights and permissions

Reprints 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

Publish with us

Policies and ethics