Multi-level Contextual Type Theory

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 fo...

Full description

Bibliographic Details
Main Authors: Mathieu Boespflug, Brigitte Pientka
Format: Article
Language:English
Published: Open Publishing Association 2011-10-01
Series:Electronic Proceedings in Theoretical Computer Science
Online Access:http://arxiv.org/pdf/1111.0087v1
id doaj-4e563c3654cf4cd0b2a71e3472a01474
record_format Article
spelling doaj-4e563c3654cf4cd0b2a71e3472a014742020-11-25T01:39:56ZengOpen Publishing AssociationElectronic Proceedings in Theoretical Computer Science2075-21802011-10-0171Proc. LFMTP 2011294310.4204/EPTCS.71.3Multi-level Contextual Type TheoryMathieu BoespflugBrigitte PientkaContextual 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. http://arxiv.org/pdf/1111.0087v1
collection DOAJ
language English
format Article
sources DOAJ
author Mathieu Boespflug
Brigitte Pientka
spellingShingle Mathieu Boespflug
Brigitte Pientka
Multi-level Contextual Type Theory
Electronic Proceedings in Theoretical Computer Science
author_facet Mathieu Boespflug
Brigitte Pientka
author_sort Mathieu Boespflug
title Multi-level Contextual Type Theory
title_short Multi-level Contextual Type Theory
title_full Multi-level Contextual Type Theory
title_fullStr Multi-level Contextual Type Theory
title_full_unstemmed Multi-level Contextual Type Theory
title_sort multi-level contextual type theory
publisher Open Publishing Association
series Electronic Proceedings in Theoretical Computer Science
issn 2075-2180
publishDate 2011-10-01
description 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.
url http://arxiv.org/pdf/1111.0087v1
work_keys_str_mv AT mathieuboespflug multilevelcontextualtypetheory
AT brigittepientka multilevelcontextualtypetheory
_version_ 1725048223820677120