Abstract
We present in this paper a case study of the use of the ACL2 system, describing an ACL2 formalization of multiset relations, and showing how multisets can be used to prove non-trivial termination properties. Every relation on a set A induces a relation on finite multisets over A; it can be shown that the multiset relation induced by a well-founded relation is also well-founded. We prove this property in the ACL2 logic, and use it by functional instantiation in order to provide well-founded relations for the admissibility test of recursive functions. We also develope a macro defmul, to define well-founded multiset relations in a convenient way. Finally, we present three examples illustrating how multisets are used to prove nontrivial termination properties in ACL2: a tail-recursive version of a general binary recursion scheme, a definition of McCarthy’s 91 function and a proof of Newman’s lemma for abstract reduction relations. These case studies show how non-trivial mathematical results can be stated and proved in the ACL2 logic, in spite of its apparent lack of expressiveness.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Bibliography
F. Baader and T. Nipkow. Term Rewriting and AU That. Cambridge University Press, 1998.
R. Boyer and J S. Moore. A Computational Logic Handbook. Academic Press, 2nd edition, 1998.
B. Brock. def structure for ACL2 version 2.0, 1997. See [Kaufmann and Moore, 2002 ].
J. Cowles. Knuth’s generalization of McCarthy’s 91 function. chapter Computer Aided Reasoning: ACL2 Case Studies. Kluwer Academic Publishers, 2000.
N. Dershowitz and Z. Manna. Proving termination with multiset orderings. Communications of the ACM, 22 (8): 465–476, 1979.
J. Giesl. Termination of nested and mutually recursive algorithms. Journal of Automated Reasoning, 19 (1): 1–29, 1997.
M. Kaufmann and J S. Moore. Structured theory development for a mechanized logic. Journal of Automated Reasoning, 26 (2): 161–203, 2001.
M. Kaufmann and J S. Moore. ACL2 version 2.7, 2002. http://www.cs.utexas.edu/users/moore/ac12/.
M. Kaufmann, P. Manolios, and J S. Moore. Computer-Aided Reasoning: An Approach. Kluwer Academic Publishers, 2000.
J. Klop. Term rewriting systems. In Handbook of Logic in Computer Science. Oxford University Press, 1992.
A. Levy. Basic Set Theory. Springer-Verlag, 1979.
H. Persson. Type Theory and the Integrated Logic of Programs. PhD thesis, Chalmers University of Technology, 1999.
J. Ruiz-Reina, J. Alonso, M. Hidalgo, and F. Martin. Multiset relations: a tool for proving termination. In Second ACL2 Workshop, Technical Report TR-00–29. Computer Science Departament, University of Texas, 2000.
J. Ruiz-Reina, J. Alonso, M. Hidalgo, and F. Martin. Formal proofs about rewriting using ACL2. Annals of Mathematics and Artificial Intelligence, 36 (3): 239–262, 2002.
N. Shankar. Step towards mechanizing program transformations using PVS. In MCP’95 (Mathematics of Program Construction, Third International Conference), number 947 in Lecture Notes in Computer Science, pages 50–66. Springer-Verlag, 1995.
K. Slind. Wellfounded schematic definitions. In CADE-17, 17th Conference on Automated Deduction, number 1831 in Lecture Notes in Computer Science, pages 45–63. Springer-Verlag, 2000.
G.L. Steele. Common Lisp the Language. Digital Press, 2nd edition, 1990.
M. Wand. Continuation-based program transformation strategies. Journal of the ACM, 1(27):164–80, 1980.
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2003 Springer Science+Business Media Dordrecht
About this chapter
Cite this chapter
Ruiz-Reina, J.L., Alonso, J.A., Hidalgo, M.J., Martín-Mateos, F.J. (2003). Termination in ACL2 Using Multiset Relations. In: Kamareddine, F.D. (eds) Thirty Five Years of Automating Mathematics. Applied Logic Series, vol 28. Springer, Dordrecht. https://doi.org/10.1007/978-94-017-0253-9_9
Download citation
DOI: https://doi.org/10.1007/978-94-017-0253-9_9
Publisher Name: Springer, Dordrecht
Print ISBN: 978-90-481-6440-0
Online ISBN: 978-94-017-0253-9
eBook Packages: Springer Book Archive