Skip to main content

Methodology for proving the termination of logic programs

  • Logic Programming
  • Conference paper
  • First Online:
STACS 91 (STACS 1991)

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

Included in the following conference series:

Abstract

In this paper, we describe a methodology for proving termination of logic programs. First, we introduce U-graphs as an abstraction of logic programs and establish that SLDNF-derivations can be realized by instances of paths in the U-graphs. Such a relation enables us to use U-graphs for establishing the universal termination of logic programs. In our method, we associate pre- and post-assertions to the nodes of the graph and ordered assertions to selected edges of the graph. With this as the basis, we develop a simple method for establishing the termination of logic programs. The simplicity/practicality of the method is illustrated through examples.

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. Barbuti, R., M. Martelli, A Tool to Check the Non-floundering Logic Programs and Goals, First International Workshop on Programming Languages Implementation and Logic Programming, LNCS 348. pp. 58–67. 1988.

    Google Scholar 

  2. Cavedon, L., J. W. Lloyd, A Completeness Theorem for SLDNF-resolution, Tech. Report CS-87-06, University of Bristol, 1987.

    Google Scholar 

  3. Clark, K. L., Nergation as Failure, in Symposium on Logic and Data Bases, (Gallaire, H. and J. Minker Eds.), Plenum Press, 1978.

    Google Scholar 

  4. Dershowitz, N., Termination of Rewriting, J. of Symbolic Computation, (1987) 3, pp. 69–116.

    Google Scholar 

  5. Drabent, W., J. Maluszynski, Inductive Assertion Method for Logic Programs, J. Theoretical Computer Science, 59 (1988) 133–155.

    Article  Google Scholar 

  6. Francez, N., O. Grumberg, S. Katz, A. Pnueli, Proving Termination of Prolog Programs, Proc. of Logics of Programs Conference, Brooklyn NY, LNCS 193, 89–105, 1985.

    Google Scholar 

  7. Floyd, R. M., Assigning Meanings to Programs, Proc. AMS symposium on Applied Mathematics, 19, Providence R.I., 1967.

    Google Scholar 

  8. Heck, N., J. Avenhaus, On Logic Programs with Data-Driven Computations, LNCS No.225, 1986, 433–443.

    Google Scholar 

  9. Kanamori, T., H. Seki, Verification of PROLOG Programs Using an Extension of Execution, Proc. of the Third Intern. Conf. on Logic Programming 1987.

    Google Scholar 

  10. Kunen, K., Signed Data Dependencies in Logic Programs, Computer Science Technical Report 719 University of Wisconsin — Madison, 1987.

    Google Scholar 

  11. Lloyd, J. W., Foundation of Logic Programming,, Springer-Verlag, 1987.

    Google Scholar 

  12. Nilsson, N. J., Priciples of Artificial Intelligence, Springer-Verlag, Berlin, 1982.

    Google Scholar 

  13. Reddy, U. S., On the Relationship between Logic and Functional Languages, in Logic Programming: Functions, Relations, and Equations (Degroot, D. and G. Linstrom, Eds), Prentice-Hall, New Jersey, 1986.

    Google Scholar 

  14. Shepherdson, J. C., Negation as Failure: A Comparison of Clark's Completed Data Base and Reiter's Closed World Assumption, J. Logic Programming, 1984:1:51–79.

    Article  Google Scholar 

  15. Vasak, T., J. Potter, Characterisation of Terminating Logic Programs, IEEE Sumposium on Logic Programming, 1986.

    Google Scholar 

  16. Wang, B., R. K. Shyamasundar. Proving Termination of Logic Programs: A Perspective in Theoretical Computer Science: Commemorative Volume for Gift Siromoney,. World Scientific. pp. 380–397. 1989.

    Google Scholar 

  17. Wang, B., Ph.D. Thesis, Verification, Termination, and Completeness of Logic Programs, Computer Science Department, The Pennsylvania State University, University Park, PA, August 1990.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Christian Choffrut Matthias Jantzen

Rights and permissions

Reprints and permissions

Copyright information

© 1991 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Wang, B., Shyamasundar, R.K. (1991). Methodology for proving the termination of logic programs. In: Choffrut, C., Jantzen, M. (eds) STACS 91. STACS 1991. Lecture Notes in Computer Science, vol 480. Springer, Berlin, Heidelberg. https://doi.org/10.1007/BFb0020800

Download citation

  • DOI: https://doi.org/10.1007/BFb0020800

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-53709-0

  • Online ISBN: 978-3-540-47002-1

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics