Contents
Contents
Idea
The interval type is an axiomatization of the cellular interval object in the context of homotopy type theory.
Definition
As a higher inductive type, the interval is given by
Inductive Interval : Type
| left : Interval
| right : Interval
| segment : Id Interval left right
This says that the type is inductive constructed from two terms in the interval, whose interpretation is as the endpoints of the interval, together with a term in the identity type of paths between these two terms, which interprets as the 1-cell of the interval
Induction principle
The induction principle for the interval says that for any equipped with point and and a dependent identification , there is such that:
and for every such that
there is an identification .
As a special case, its recursion principle says that given any type with points and and an identification , there is with
Syntax
The interval type is defined by the following rules:
Formation rules for the interval type:
Introduction rules for the interval type:
Elimination rules for the interval type:
Computation rules for the interval type:
Uniqueness rules for the interval type:
Using a function from the two-valued type
The interval type is defined by the following rules:
Formation rules for the interval type:
Introduction rules for the interval type:
Elimination rules for the interval type:
Computation rules for the interval type:
Uniqueness rules for the interval type:
…
Properties
-
An interval type is provably contractible. Conversely, any contractible type satisfies the rules of an interval type up to typal equality.
-
An interval type is a suspension type of the unit type, and the suspension of an interval type is a 2-globe type.
-
An interval type is a cone type of the unit type.
-
An interval type is a cubical type? .
Relation to identity types
Every identity between two terms and of a type has an associated term in context , inductively defined by
where
is the function application to identities,
is concatenation of identities (i.e. transitivity), and
is the inverse of identities (i.e. symmetry).
Conversely, given a function and terms and with identities and , there is an identity
Relation to dependent identity types
Given a type , a dependent type , terms and , identity , terms and , and dependent identity , let us inductively define the family of elements by
where is transport, is the function application to identities, is concatenation of identities (i.e. transitivity), and is the inverse of identities (i.e. symmetry).
Relation to function extensionality
Postulating an interval type with judgmental computation rules for the point constructors of the interval type implies function extensionality. (Shulman).
The proof assumes a typal uniqueness rule for function types. First it constructs a function from a dependent function , inductively defined by
Then it uses the properties of function types, product types, currying, uncurrying, and the symmetry of products , to construct a function , inductively defined by
If the interval type has judgmental computation rules for the point constructors, then and for all , which implies that and for all , and subsequently that and . This means that there are identities and , and an identity
thus proving function extensionality.
An interval type with only typal computation rules for the point constructors does not imply function extensionality. This is because the proof with the judgmental computation rules uses the fact that and for all implies that and . However, if the computation rules are typal, then the equivalent statement is that having identities and for all implies that there are identities and , which is precisely function extensionality, and so cannot be used to prove function extensionality.
Relation to propositional truncations
An interval type is the propositional truncation of the two-valued type . We use the definition of an interval type using a function from . Since the interval type has identities
- ,
- ,
- ,
- ,
there is a dependent function
inductively defined by the identities
If dependent product types have judgmental computation rules, then the above becomes
Both show that the interval type is the propositional truncation of the two-valued type.
The converse is true as well: the propositional truncation of the two-valued type is the interval type. Recall that is inductively generated by a function and a dependent function
which makes into an h-proposition. By definition of an h-proposition, for each element and , the identity type is a contractible type. In particular, by induction on , this means that there are identities
and for every identity , there are identities
Thus, one could simply take and as the term constructors and as the identity constructor of the interval type.
If both propositional truncations and the two-valued type have judgmental computation rules, the the interval type also has judgmental computation rules. See (this file)
References
Proofs of function extensionality using an interval type with judgmental computation rules for point constructors could be found here
- Carlo Angiuli, Univalence implies function extensionality (blog, pdf)