Abstract
Higher inductive types (HITs) in Homotopy Type Theory (HoTT) allow the definition of datatypes which have constructors for equalities over the defined type. HITs generalise quotient types, and allow to define types which are not sets in the sense of HoTT (i.e. do not satisfy uniqueness of equality proofs) such as spheres, suspensions and the torus. However, there are also interesting uses of HITs to define sets, such as the Cauchy reals, the partiality monad, and the well-typed syntax of type theory. In each of these examples we define several types that depend on each other mutually, i.e. they are inductive-inductive definitions. We call those HITs quotient inductive-inductive types (QIITs). Although there has been recent progress on a general theory of HITs, there is not yet a theoretical foundation for the combination of equality constructors and induction-induction, despite having many interesting applications. In the present paper we present a first step towards a semantic definition of QIITs. In particular, we give an initial-algebra semantics and show that this is equivalent to the section induction principle, which justifies the intuitively expected elimination rules.
Introduces free extension semantics.
Outline
Introduction
Cauchy Real Numbers can be represented as HITs
Sorts
Note on nested notation
We will use the following notation for nested ‘s:
- is a vector of length .
- is the element of the list (so indexing from ).
- is the prefix list of length .
Note that the type of each may be determined by previous elements.
Definition 3
A specification of sorts is given by a list of functors built sequentially upon the previous categories sorts.
The base category for a sort signature (defined below) has objects of the form of an tuple where
is a type family for some .
Morphisms are defined as along with where
The sort signature is a functor .
This represents how the constructor for sort depends on the previous sort.
For example, .
Theorem 10
Base categories are complete: For any sort signature, , the corresponding base category has all small limits.
Algebras
Relative Continuity and Constructor Specifications
Definition 11 (Relative Continuity)
Let be a category, let be a complete category, and let
be a functor. Given a small category and a diagram , a cone in is a -limit cone, or limit cone relative to , if the induced cone is a limit cone in .
A functor is continuous relative to if it maps -limit cones to limit cones in .
Definition 12 (Constructor Specification)
A constructor specification on a base category is given by:
- A functor called the argument functor.
- A relative continuous functor called the target functor.
Definition 15 (Category of algebras)
Let be a constructor specification on a complete category . The category of algebras of is denoted by and is defined as:
- objects are pairs where is an object of and
- morphisms s.t.
where
Point Constructors
Let be finitely complete, given a functor , let be the extended base category with one more sort indexed over . Then has objects where and .
Define the base target functor corresponding to to be the functor , definte as:
Theorem 20 states that base target functors a relatively continuous.
Reindexing Target Functors
Path Constructors
Let be the functor defined on objects by:
And on morphisms by:
Then is a functor and it is the functor of fibers of a the natural transformation .
Both and are relatively continuous (lemma 24), and because of this,
In any complete base category , with constructor specification (definition 12) and global elements , then the map defined by extends to a relatively continuous functor.
Categories of Algebras are Complete
Elimination Principles
The Section Induction Principle
An object of a category is section inductive if for ever of and morphism , there exists
Initiality, and its relation to the Section Induction Principle
Conclusions and Further Work
Definitions
Higher Inductive Type
Quotient Inductive Type
Quotient Inductive-Inductive Types
Cauchy Real Numbers
Axiom of Choice