Contents
Idea
The principle of interval type localization states that for all types , is -local, or equivalently that the function
is an equivalence of types.
There is also a definitional interval type localization which says that the function
is a definitional isomorphism. The usual notion of interval type localization can be called propositional interval type localization.
One has the following analogies between localization at a specific type and the type theoretic letter rule that it proves:
Axiom of interval type localization
In Martin-LΓΆf type theory, interval type localization is a provable statement from the J-rule and the recursion principle of the interval type. However, in other dependent type theories where identity types are defined in terms of the interval type, interval type localization can be added as a separate axiom to the type theory as an alternative to the J-rule, because it implies the J-rule.
Suppose that one has an interval type , with elements and .
Usually, the recursion principle of the interval type is interpreted as a way to construct, from elements and and identification , paths , aka functions from the interval type to . Interpreted another way, the recursion principle of the interval type are the negative elimination and computation rules for identity types, allowing one to define identity types as negative types.
- The formation rule of identity types state that given a type and elements and , one can form the identity type . Syntactically, this is given by the following inference rules:
- The introduction rule of identity types state that given a type and a path , one can construct an identification . Syntactically, this is given by the following inference rules:
Normally, this would be function application to the canonical identification , but here we havenβt defined yet since we havenβt defined the identity type yet, and with this rule one can define said identification to be the identification of the identity function on the interval type
In addition, reflexivity of an element is given by sending the constant path of to its equality
- The elimination rule of identity types state that given a type , elements and , and identification , one can construct a path . Syntactically, this is given by the following inference rules:
This is just another name for the recursor of the interval type .
- The uniqueness rule of identity types state that given a type and a path ,
Syntactically, this is given by the following inference rules:
Then -localization is given by the following axiom:
While this states that is only a quasi-invertible function, it is well known that every quasi-invertible function can be made into a coherently invertible function by constructing a new section or retraction which satisfies a suitable family of naturality squares.
If the dependent type theory does not have type universes, then the axiom of -localization needs to be expressed as an inference rule:
and if the dependent type theory does not have dependent sum types, then this would have to be expressed as three separate rules:
Definitional -localization is given by the following rules:
This makes into a definitional isomorphism, which is always a coherently invertible function.
Interval type localization implies the J-rule
The function application to identifications can be defined without the use of path induction:
Theorem
Given types and , a a function , elements and and an identification , one can construct the identification .
This is defined through the inference rules for identity types and function composition:
Theorem
Suppose that every type is definitionally -local.
Then path induction for function types out of the interval type holds: given any type , and any type family indexed by paths in , and given any dependent function which says that for all elements , there is an element of the type defined by substituting the constant path of into , , one can construct a dependent function such that for all , .
Proof
is defined to be
and by the computation rules of path types as negative copies, one has that for all ,
and so by definition of and the judgmental congruence rules for substitution, one has
Theorem
Suppose that path induction for function types out of the interval type is true.
Then the J-rule is true: given a type and given a type family indexed by , , and , and a dependent function , one can construct a dependent function
such that for all ,
Proof
By path induction on the type family indexed by , we can construct a dependent function
such that for all ,
since by definition of constant function and reflexivity, one has
We define
since by interval recursion one has a path such that