Definition

In the theory of inductive-inductive types, a sort is one of the mutually defined type formers. An inductive-inductive definition is formally specified by a signature consisting of a context of sorts followed by a context of constructors.

Context of Sorts

The sorts of an inductive-inductive type form a telescope. Each subsequent sort may depend on the previously defined sorts. If we denote the universe of types by , a context of sorts is a valid typing context where each type is formed using and the preceding variables.

For a signature with sorts, the context of sorts is given by:

where each is a type family constructed from the preceding sorts.

Example

When defining the syntax of dependent type theory as an inductive-inductive type, the sorts represent the distinct syntactic categories. We define contexts and types over contexts. The sorts are given by the telescope:

Here, is the first sort, and is the second sort, which depends on the first. The constructors for contexts and types are then defined over this context of sorts.

References

  • Forsberg, F. N. (2013). Inductive-inductive definitions. PhD thesis, Swansea University.

  • Kaposi, A., & Kovács, A. (2018). A syntax for mutual inductive families. Proceedings of the ACM on Programming Languages.