A.4 Basic metatheory


This sectionPlanetmathPlanetmathPlanetmathPlanetmathPlanetmathPlanetmath discusses the meta-theoretic properties of the type theoryPlanetmathPlanetmath presented in \autorefsec:syntax-informally, and similar results hold for \autorefsec:syntax-more-formally. Figuring out which of these still hold when we add the features from \autorefsec:hott-features quickly leads to open questions, as discussed at the end of this section.

Recall that \autorefsec:syntax-informally defines the terms of type theory as an extensionPlanetmathPlanetmathPlanetmath of the untyped λ-calculus. The λ-calculus has its own notion of computation, namely the computation rule:

(λx.t)(u):t[u/x]

This rule, together with the defining equations for the defined constants form rewriting rules that determine reductionPlanetmathPlanetmath steps for a rewriting system. These steps yield a notion of computation in the sense that each rule has a natural direction: one simplifies (λx.t)(u) by evaluating the function at its argument.

Moreover, this system is confluentMathworldPlanetmath, that is, if a simplifies in some number of steps to both a and a′′, there is some b to which both a and a′′ eventually simplify. Thus we can define tu to mean that t and u simplify to the same term.

(The situation is similar in \autorefsec:syntax-more-formally: Although there we presented the computation rules as undirected equalities , we can give an operational semantics by saying that the application of an eliminator to an introductory form simplifies to its equal, not the other way around.)

It is straightforward to show that the system in \autorefsec:syntax-informally has the following properties:

Theorem 12.5.1.

If A:U and AA then A:U. If t:A and tt then t:A.

We say that a term is normalizable (respectively, strongly normalizable) if some (respectively, every), sequencePlanetmathPlanetmath of rewriting steps from the term terminates.

Theorem 12.5.2.

If A:U then A is strongly normalizable. If t:A then A and t are strongly normalizable.

We say that a term is in normal form if it cannot be further simplified, and that a term is closed if no variable occurs freely in it. A closed normal type has to be a primitive type, i.e., of the form c(v) for some primitive constant c (where the list v of closed normal terms may be omitted if empty, for instance, as with ). In fact, we can explicitly describe all normal forms:

Lemma 12.5.3.

The terms in normal form can be described by the following syntax:

v ::=kλx.vc(v)f(v),
k ::=xk(v)f(v)(k),

where f(v) represents a partial application of the defined function f. In particular, a type in normal form is of the form k or c(v).

Theorem 12.5.4.

If A is in normal form then the judgment A:U is decidable. If A:U and t is in normal form then the judgment t:A is decidable.

Logical consistency (of the system in \autorefsec:syntax-informally) follows immediately: if we had a:𝟎 in the empty context, then by \autorefthm:conversion-preserves-typing,\autorefthm:strong-normalization, a simplifies to a normal term a:𝟎. But by \autoreflem:normal-forms no such term exists.

Corollary 12.5.5.

The system in \autorefsec:syntax-informally is logically consistent.

Similarly, we have the canonicity property that if a: in the empty context, then a simplifies to a normal term 𝗌𝗎𝖼𝖼k(0) for some numeral k.

Corollary 12.5.6.

The system in \autorefsec:syntax-informally has the canonicity property.

Finally, if a,A are in normal form, it is decidable whether a:A; in other words, because type-checking amounts to verifying the correctness of a proof, this means we can always “recognize a correct proof when we see one.”

Corollary 12.5.7.

The property of being a proof in the system in \autorefsec:syntax-informally is decidable.

The above results do not apply to the extended system of homotopy type theory (i.e., the above system extended by \autorefsec:hott-features), since occurrences of the univalence axiom and constructors of higher inductive types never simplify, breaking \autoreflem:normal-forms. It is an open question whether one can simplify applications of these constants in order to restore canonicity. We also do not have a schema describing all permissible higher inductive types, nor are we certain how to correctly formulate their rules (e.g., whether the computation rules on higher constructors should be judgmental equalities).

The consistency of Martin-Löf type theory extended with univalence and higher inductive types could be shown by inventing an appropriate normalization procedure, but currently the only proofs that these systems are consistent are via semantic models—for univalence, a model in Kan complexes due to Voevodsky [klv:ssetmodel], and for higher inductive types, a model due to Lumsdaine and Shulman [ls:hits].

Other metatheoretic issues, and a summary of our current results, are discussed in greater length in the “Constructivity” and “Open problems” sections of the introduction to this book.

Title A.4 Basic metatheoryMathworldPlanetmath
\metatable