Skip to main content

Termination in ACL2 Using Multiset Relations

  • Chapter
Thirty Five Years of Automating Mathematics

Part of the book series: Applied Logic Series ((APLS,volume 28))

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 84.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 109.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 109.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Bibliography

  1. F. Baader and T. Nipkow. Term Rewriting and AU That. Cambridge University Press, 1998.

    Google Scholar 

  2. R. Boyer and J S. Moore. A Computational Logic Handbook. Academic Press, 2nd edition, 1998.

    Google Scholar 

  3. B. Brock. def structure for ACL2 version 2.0, 1997. See [Kaufmann and Moore, 2002 ].

    Google Scholar 

  4. J. Cowles. Knuth’s generalization of McCarthy’s 91 function. chapter Computer Aided Reasoning: ACL2 Case Studies. Kluwer Academic Publishers, 2000.

    Google Scholar 

  5. N. Dershowitz and Z. Manna. Proving termination with multiset orderings. Communications of the ACM, 22 (8): 465–476, 1979.

    Article  MathSciNet  MATH  Google Scholar 

  6. J. Giesl. Termination of nested and mutually recursive algorithms. Journal of Automated Reasoning, 19 (1): 1–29, 1997.

    Article  MathSciNet  MATH  Google Scholar 

  7. M. Kaufmann and J S. Moore. Structured theory development for a mechanized logic. Journal of Automated Reasoning, 26 (2): 161–203, 2001.

    Article  MathSciNet  MATH  Google Scholar 

  8. M. Kaufmann and J S. Moore. ACL2 version 2.7, 2002. http://www.cs.utexas.edu/users/moore/ac12/.

  9. M. Kaufmann, P. Manolios, and J S. Moore. Computer-Aided Reasoning: An Approach. Kluwer Academic Publishers, 2000.

    Google Scholar 

  10. J. Klop. Term rewriting systems. In Handbook of Logic in Computer Science. Oxford University Press, 1992.

    Google Scholar 

  11. A. Levy. Basic Set Theory. Springer-Verlag, 1979.

    Google Scholar 

  12. H. Persson. Type Theory and the Integrated Logic of Programs. PhD thesis, Chalmers University of Technology, 1999.

    Google Scholar 

  13. 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.

    Google Scholar 

  14. 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.

    MathSciNet  MATH  Google Scholar 

  15. 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.

    Google Scholar 

  16. 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.

    Google Scholar 

  17. G.L. Steele. Common Lisp the Language. Digital Press, 2nd edition, 1990.

    Google Scholar 

  18. M. Wand. Continuation-based program transformation strategies. Journal of the ACM, 1(27):164–80, 1980.

    Google Scholar 

Download references

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints 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

Publish with us

Policies and ethics