| | |
Summary: A MODULAR TYPECHECKING ALGORITHM FOR
TYPE THEORY WITH SINGLETON TYPES AND
PROOF IRRELEVANCE
ANDREAS ABEL, THIERRY COQUAND, AND MIGUEL PAGANO
LudwigMaximiliansUniversit˜at M˜unchen
email address: andreas.abel@ifi.lmu.de
G˜oteborg University
email address: coquand@chalmers.se
Universidad Nacional de C’ordoba
email address: pagano@famaf.unc.edu.ar
Abstract. We define a logical framework with singleton types and one universe of small
types. We give the semantics using a PER model; it is used for constructing a normalis
ationbyevaluation algorithm. We prove completeness and soundness of the algorithm;
and get as a corollary the injectivity of type constructors. Then we give the definition of
a correct and complete typechecking algorithm for terms in normal form. We extend the
results to proofirrelevant propositions.
1. Introduction and Related Work
One of the raisons d'“etre of proofcheckers like Agda [46], Coq [33], and Epigram [40] is
to decide if a given term has some type (either checking for a given type or inferring one);
i.e., if a term corresponds to a proof of a proposition [32]. Hence, the convenience of such
|