A definitional approach to primitivexs recursion over higher order abstract syntax

  • Authors:
  • S. J. Ambler;R. L. Crole;Alberto Momigliano

  • Affiliations:
  • University of Leicester, Leicester, U.K.;University of Leicester, Leicester, U.K.;University of Edinburgh, Edinburgh, Scotland

  • Venue:
  • MERLIN '03 Proceedings of the 2003 ACM SIGPLAN workshop on Mechanized reasoning about languages with variable binding
  • Year:
  • 2003

Quantified Score

Hi-index 0.00

Visualization

Abstract

It is well known that there are problems associated with formal systems which attempt to combine higher order abstract syntax (HOAS) with principles of induction and recursion. We describe a formal system, called Bsyntax, which we have implemented in Isabelle HOL. Our contribution is to prove the existence of a combinator for primitive recursion with parameters over HOAS. The definition of the combinator is facilitated by the use of terms with infinite contexts. In particular, our work is purely definitional, and is thus consistent with classical logic and choice. An immediate payoff is that we obtain a primitive recursive definition of higher order substitution. We give a presheaf model of Bsyntax, providing additional semantic validation of Bsyntax's principles of recursion. We outline an application of our work to mechanized reasoning about the compiler intermediate language MIL-lite [2].