Software

Hygienic Macros for ACL2

Free registration required

Executive Summary

ACL2 is a theorem prover for a purely functional subset of Common Lisp. It inherits Common Lisp's unhygienic macros, which are used pervasively to eliminate repeated syntactic patterns. The lack of hygiene means that macros do not automatically protect the producers or consumers of macros from accidental variable capture. This paper demonstrates how this lack of hygiene interferes with theorem proving. It then explains how to design and implement a hygienic macro system for ACL2. An evaluation of the ACL2 code base shows the impact of this hygienic macro system on existing libraries and practices.

  • Format: PDF
  • Size: 296.7 KB