Program Logics for Homogeneous Meta-Programming (with Laurence Tratt)

A meta-program is a program that generates or manipulates another program; in homogeneous meta-programming, a program may generate new parts of, or manipulate, itself. Meta-programming has been used extensively since macros were introduced to Lisp, yet we have little idea how formally to reason about meta-programs. This paper provides the first program logics for homogeneous meta-programming -- using a variant of MiniML by Davies and Pfenning as the underlying meta-programming language. We show the applicability of our approach by reasoning about example meta-programs from the literature. We also demonstrate that our logics are relatively complete in the sense of Cook, enable the inductive derivation of characteristic formulae, and exactly capture the observational properties induced by the operational semantics.

Extended abstract: pdf, html (extended abstract). Status: Appeared in Proc. LPAR 2010, BibTeX.
Long version: pdf. Status: Appeared. BibTeX.

$Id: index.html,v 1.11 2011/01/25 16:15:09 mfb21 Exp mfb21 $