Skip to main content

Improving prolog performance by inductive proof generalizations

  • Logic Programming
  • Conference paper
  • First Online:
Knowledge Based Computer Systems (KBCS 1989)

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

Included in the following conference series:

  • 1962 Accesses

Abstract

This paper investigates the possibility of improving PROLOG performance by using the history of search for previous queries to guide the search for subsequent queries. First, the notion of a proof plan is introduced, and it is shown how a given logic program can be translated into a plan version of it. The plan version allows search to be guided by a proof plan. A specific plan version called the uninformed plan version allows proofs to be generated from the search performed for any query.

Proof plans can be obtained by a generalization from the collection of proofs obtained earlier. A notion dual to most general unification called most special generalization (msg) is introduced for this purpose. The uniqueness of the msg is shown and an algorithm similar to the unification algorithm is given for computing the msg of two proofs. The soundness of guiding a logic program with a proof plan obtained by such a generalization is then shown.

The soundness breaks down, however, for PROLOG programs that use cut. A method based on multiple plan inference is introduced for such programs and its soundness is proved.

uunetlshaktilbetallcselgv

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. Aho, A.V., Sethi Ravi and Ullman, J.D. Compilers; Principles, Techniques and Tools, Reading, Addison-Wesley, 1986.

    Google Scholar 

  2. Apt, K.R. and van Emden, M.H., Contributions to the Theory of Logic Programming, JACM, 29(3), pp.841–862, 1982.

    Google Scholar 

  3. Clocksin, W.F. and Mellish, C.S., Programming in Prolog, Springer Verlag, 1981.

    Google Scholar 

  4. Gandhe, M., Studies in Intuitionistic Type Theory, Internal Report, Department of COmputer Science and Engineering, I.I.T. Bombay, 1988.

    Google Scholar 

  5. Gordon, M., Milner, R. and Wadsworth, C. Edinburgh LCF, LNCS vol.78, Springer Verlag, 1979.

    Google Scholar 

  6. Hindley, J.R. and Seldin, J.P., Introduction to Combinators and Lambda Calculus, London Mathematical Society Student Texts #1, Cambridge University Press, 1986.

    Google Scholar 

  7. Lloyd, J.W., Foundations of Logic Programming, Springer Verlag, 1984.

    Google Scholar 

  8. Lowen,U., Optimization Aspects of Logical Formulas in Proceedings of the First Workshop on Computer Science Logic CSL'87, eds. Borger, E, Kleine Buning, H. and Richter, M.M., LNCS vol 329, Springer Verlag, pp. 173–187, 1988.

    Google Scholar 

  9. Martin-Lof, P., Constructive Mathematics and Logic Programming in Logic, Methodology and Philosophy of Science, vol 6, North Holland, pp. 153–175, 1980.

    Google Scholar 

  10. Milner, R, Dialogue with a Proof System, Proceedings of TAPSOFT'87, LNCS vol 249, Springer Verlag, 1987.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

S. Ramani R. Chandrasekar K. S. R. Anjaneyulu

Rights and permissions

Reprints and permissions

Copyright information

© 1990 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Gandhe, M., Venkatesh, G. (1990). Improving prolog performance by inductive proof generalizations. In: Ramani, S., Chandrasekar, R., Anjaneyulu, K.S.R. (eds) Knowledge Based Computer Systems. KBCS 1989. Lecture Notes in Computer Science, vol 444. Springer, Berlin, Heidelberg. https://doi.org/10.1007/BFb0018383

Download citation

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

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

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

  • Online ISBN: 978-3-540-47168-4

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics