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
Preview
Unable to display preview. Download preview PDF.
References
Aho, A.V., Sethi Ravi and Ullman, J.D. Compilers; Principles, Techniques and Tools, Reading, Addison-Wesley, 1986.
Apt, K.R. and van Emden, M.H., Contributions to the Theory of Logic Programming, JACM, 29(3), pp.841–862, 1982.
Clocksin, W.F. and Mellish, C.S., Programming in Prolog, Springer Verlag, 1981.
Gandhe, M., Studies in Intuitionistic Type Theory, Internal Report, Department of COmputer Science and Engineering, I.I.T. Bombay, 1988.
Gordon, M., Milner, R. and Wadsworth, C. Edinburgh LCF, LNCS vol.78, Springer Verlag, 1979.
Hindley, J.R. and Seldin, J.P., Introduction to Combinators and Lambda Calculus, London Mathematical Society Student Texts #1, Cambridge University Press, 1986.
Lloyd, J.W., Foundations of Logic Programming, Springer Verlag, 1984.
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.
Martin-Lof, P., Constructive Mathematics and Logic Programming in Logic, Methodology and Philosophy of Science, vol 6, North Holland, pp. 153–175, 1980.
Milner, R, Dialogue with a Proof System, Proceedings of TAPSOFT'87, LNCS vol 249, Springer Verlag, 1987.
Author information
Authors and Affiliations
Editor information
Rights 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