Electronic Proceedings in Theoretical Computer Science (Sep 2010)

Explicit Substitutions for Contextual Type Theory

  • Andreas Abel,
  • Brigitte Pientka

DOI
https://doi.org/10.4204/EPTCS.34.3
Journal volume & issue
Vol. 34, no. Proc. LFMTP 2010
pp. 5 – 20

Abstract

Read online

In this paper, we present an explicit substitution calculus which distinguishes between ordinary bound variables and meta-variables. Its typing discipline is derived from contextual modal type theory. We first present a dependently typed lambda calculus with explicit substitutions for ordinary variables and explicit meta-substitutions for meta-variables. We then present a weak head normalization procedure which performs both substitutions lazily and in a single pass thereby combining substitution walks for the two different classes of variables. Finally, we describe a bidirectional type checking algorithm which uses weak head normalization and prove soundness.