English

Multi-level Contextual Type Theory

Logic in Computer Science 2011-11-02 v1 Programming Languages

Abstract

Contextual type theory distinguishes between bound variables and meta-variables to write potentially incomplete terms in the presence of binders. It has found good use as a framework for concise explanations of higher-order unification, characterize holes in proofs, and in developing a foundation for programming with higher-order abstract syntax, as embodied by the programming and reasoning environment Beluga. However, to reason about these applications, we need to introduce meta^2-variables to characterize the dependency on meta-variables and bound variables. In other words, we must go beyond a two-level system granting only bound variables and meta-variables. In this paper we generalize contextual type theory to n levels for arbitrary n, so as to obtain a formal system offering bound variables, meta-variables and so on all the way to meta^n-variables. We obtain a uniform account by collapsing all these different kinds of variables into a single notion of variabe indexed by some level k. We give a decidable bi-directional type system which characterizes beta-eta-normal forms together with a generalized substitution operation.

Keywords

Cite

@article{arxiv.1111.0087,
  title  = {Multi-level Contextual Type Theory},
  author = {Mathieu Boespflug and Brigitte Pientka},
  journal= {arXiv preprint arXiv:1111.0087},
  year   = {2011}
}

Comments

In Proceedings LFMTP 2011, arXiv:1110.6685

R2 v1 2026-06-21T19:28:51.999Z