Skip to main content

Proving termination of Prolog programs

  • Conference paper
  • First Online:
Logics of Programs (Logic of Programs 1985)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 193))

Included in the following conference series:

Abstract

The paper presented two kinds of proof rules to prove B-termination, the kind of termination obtained by the combination of backtracking and recursion as displayed by Prolog. The first kind of rule takes into account the context of the whole program and is based on a tree oriented operational semantics. The second kind is more compositional, dealing with separate procedures in a context independent way. It is based on a stream oriented semantics.

We would like to stress that such proof rules may be successfully used for defining other search strategies than the actual one used by prolog. An interesting question is to define in this way a probabilistic backtracking search strategy.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. K.R. Apt, M.H. Van Emden: "Contributions to the theory of logic programming", JACM 29, 3 (July 1982).

    Google Scholar 

  2. W.F. Clockskin, C.S.Mellish: "Programming in Prolog", Springer (1981).

    Google Scholar 

  3. M.H. Van Emden, R.A. Kowalski: "The semantics of predicate logic as a programming language", JACM 23,4 (1976).

    Google Scholar 

  4. R.M.Floyd: "Assigning meanings to programs", proc AMS symp. in app. math. 19 Providence, R.I (1967)

    Google Scholar 

  5. N.Francez, B.Klebanski, A.Pnueli: "Backtracking in recursive computations", Acta Informatica 8 (1977).

    Google Scholar 

  6. O.Grumberg, N.Francez, J.A.Makovsky, W.P.de Roever: "A proof rule for fair termination of guarded commands", proc. int. symp. on Algorithmic Languages, Amsterdam (1981).

    Google Scholar 

  7. N.D. Jones, A.Mycroft: "Stepwise developement of operational and denotational semantics of Prolog", TR. Univ. of Copenhagen, 1983.

    Google Scholar 

  8. R.A.Kowalski: "Predicate logic as a programming language", in: Info. Proc. 74 (J.Rosenfeld,ed.), North-Holland (1974).

    Google Scholar 

  9. D.Lehmann, A.Pnueli, J.Stavi: "Impartiality, justice and fairness: the ethics of concurrent termination", proc. 8th ICALP, ACRE, (1981); LNCS 115 (S.Even, O.Kariv-eds.), Springer 1981.

    Google Scholar 

  10. New Generation Computing, Springer; (the existence of a journal devoted to the subject is taken as evidence for interest in that subject).

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Rohit Parikh

Rights and permissions

Reprints and permissions

Copyright information

© 1985 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Francez, N., Grumberg, O., Katz, S., Pnueli, A. (1985). Proving termination of Prolog programs. In: Parikh, R. (eds) Logics of Programs. Logic of Programs 1985. Lecture Notes in Computer Science, vol 193. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-15648-8_8

Download citation

  • DOI: https://doi.org/10.1007/3-540-15648-8_8

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-15648-2

  • Online ISBN: 978-3-540-39527-0

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics