Abstract
In Uemura’s sense, the internal language of a model is the type theory obtained by allowing the objects and elements already present in a model to be used as formal symbols. If is a type theory and is a model of , then the internal language is a theory over : it keeps the rules of while adjoining constants and axioms corresponding to semantic data in .
A judgment derivable in can therefore be interpreted back as an actual construction or equality in the model. The point is that one can reason syntactically inside the internal language instead of repeatedly constructing semantic data by large commuting diagrams.
Definition
Formally, a type theory is a category with representable maps, while a model is a suitable structure-preserving functor from into discrete fibrations over a base category .
For each object of , the internal language takes the fibre over the terminal object of the discrete fibration . Equivalently, it records the global elements of each semantic object:
This produces a left-exact functor , hence a -theory. Uemura writes this construction as a functor
He then shows that yields an equivalence between theories over and democratic models of . For that class of models, passing from syntax to semantics and then extracting the internal language loses no essential information.
Interpretation
Concretely, in a model of dependent type theory:
- A semantic type becomes a type constant in the internal language.
- A semantic section becomes a term constant.
- An equality between semantic sections becomes a derivable equality axiom.
If the model supports -types, identity types, universes, or other constructors, the internal language lets one use those constructors to build new semantic objects and prove properties of them.
Comparison
This notion is related to, but not identical with, the internal language of a topos or of a presheaf category. That more familiar notion is usually a higher-order or simply typed language in which objects of the topos are types and morphisms are terms.
Uemura uses that notion when reasoning inside a topos of presheaves, but his main notion is more general: it is the dependent type-theoretic language extracted from an arbitrary model of an arbitrary abstract type theory.