A metaprogramming framework for formal verification
Open Access
- 29 August 2017
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in Proceedings of the ACM on Programming Languages
- Vol. 1 (ICFP) , 1-29
Abstract
We describe the metaprogramming framework currently used in Lean, an interactive theorem prover based on dependent type theory. This framework extends Lean's object language with an API to some of Lean's internal structures and procedures, and provides ways of reflecting object-level expressions into the metalanguage. We provide evidence to show that our implementation is performant, and that it provides a convenient and flexible way of writing not only small-scale interactive tactics, but also more substantial kinds of automation.Keywords
Funding Information
- National Science Foundation (DMS-1615444)
- Austrian Science Fund (W1255-N23)
- Air Force Office of Scientific Research (FA9550-15-1-0053)
- Vienna Science and Technology Fund (VRG12-004)
This publication has 31 references indexed in Scilit:
- Engineering Proof by Reflection in Agda2013
- Idris, a general-purpose dependently typed programming language: Design and implementationJournal of Functional Programming, 2013
- Simplify: a theorem prover for program checkingJournal of the ACM, 2005
- A Proof Dedicated Meta-LanguageElectronic Notes in Theoretical Computer Science, 2002
- Paramodulation-Based Theorem Proving2001
- Types in Logic, Mathematics and Programming1998
- Inductive familiesFormal Aspects of Computing, 1994
- Shallow binding makes functional arrays fastACM SIGPLAN Notices, 1991
- The calculus of constructionsInformation and Computation, 1988
- Fast Decision Procedures Based on Congruence ClosureJournal of the ACM, 1980