Lemma discovery in automating induction
Speculating intermediate lemmas is one of the main reason of user interaction/guidance while mechanically attempting proofs by induction. An approach for generating intermediate lemmas is developed, and its effectiveness is demonstrated while proving properties of recursively defined functions. The approach is guided by the paradigm of attempting to generate a proof of the conclusion subgoal in an induction step by the application of an induction hypothesis (es). Generation of intermediate conjectures is motivated by attempts to find appropriate instantiations for non-induction variables in the main conjecture. In case, the main conjecture does not have any non-induction variables, such variables are introduced by attempting its generalization. A constraint based paradigm is proposed for guessing the missing side of an intermediate conjecture by identifying constraints on the term schemes introduced for the missing side. Definitions and properties of functions are judiciously used for generating instantiations and intermediate conjectures. Heuristics are identified for performing such analysis. The approach fails if appropriate instantiations of non-induction variables cannot be generated. Otherwise, proofs of intermediate conjectures are attempted and the proposed method is recursively applied. The method has proven to be surprisingly effective in speculating intermediate lemmas for tail-recursive programs.
Unable to display preview. Download preview PDF.
- 1.R.S. Boyer and J S. Moore, A Computational Logic. ACM Monographs in Computer Science, 1979.Google Scholar
- 3.D.Basin and T.Walsh “Difference Matching”, In Proc. of CADE 11, D. Kapur (editor), LNAI 607, Springer Verlag 1992.Google Scholar
- 4.J.T.Hesketh “Using middle out reasoning to guide inductive theorem proving”, Ph.D thesis. University of Edinburgh 1991.Google Scholar
- 5.A. Ireland and A. Bundy, “Productive Use of Failure in Inductive Proof”, Edinburgh DAI Research Report No: 716. To appear on the Special Issue on Automation of Proof by Mathematical Induction, JAR.Google Scholar
- 6.A. Ireland “The use of planning critics in mechanizing inductive proofs”, In Proc. LPAR 92, A. Voronkov (editor), LNAI 624 Springer Verlag, 1992.Google Scholar
- 7.Deepak Kapur and M. Subramaniam “ Failure Analysis and its role in Generalization”, Manuscript under Preparation.Google Scholar
- 8.Deepak Kapur and M.Subramaniam “Lemma Discovery in Automated Induction”, Technical Report, CS Dept., SUNY April, 1995(an expanded version of this paper).Google Scholar
- 10.T. Walsh “A divergence critic”, In Proc. of CADE 12, A. Bundy (editor), LNAI 814, Springer Verlag 1994.Google Scholar
- 11.H. Zhang, D. Kapur, and M.S. Krishnamoorthy, “A mechanizable induction principle for equational specifications,” Proc. Ninth International Conference on Automated Deduction, E. Lusk and R. Overbeek (eds.), LNCS, Vol. 310, Springer-Verlag, Berlin, 1988, 250–265.Google Scholar