equality (definitional, propositional, computational, judgemental, extensional, intensional, decidable)
identity type, equivalence of types, definitional isomorphism
isomorphism, weak equivalence, homotopy equivalence, weak homotopy equivalence, equivalence in an (∞,1)-category
Examples.
Given a set , the identity function on is the function that maps any element of to itself:
or equivalently,
Thus, the identity function is the function for which every element of is a fixed point.
The identity functions are the identity morphisms in the category Set of sets.
More generally, in any concrete category, the identity morphism of each object is given by the identity function on its underlying set.
In dependent type theory, the type of identity functions on a type is the type
of functions with a witness that every element is a fixed point of the function.
In general, an identity function is an element of this type. However, any element of the type of identity functions is unique up to identification:
For all types , the type
is a proposition.
Suppose we have with and with . Then we have a homotopy
and by function extensionality, an identification
and by dependent function application on this identification, a dependent identification
Then by the extensionality principle for dependent pair types, we have
in the identity type
By induction on dependent pair types, this implies that for all elements
Thus, the type
is a proposition.
For all types , the type
is contractible.
Since the type
is a proposition, it suffices to construct an element of the above type. Given a type , by the weakening rules and the generic variable rule in dependent type theory, one gets the identity family of elements . Then by lambda abstraction, one gets a function , and by the typal computation rule for weak function types one gets the dependent function . For strict function types, we have . Thus, one has the identity function
Since the type
is a proposition and has element , the type is contractible.
Thus, it makes sense to refer to the canonical identity function as the identity function on type .
Now, we show that the identity function is an equivalence of types:
Any identity function is a (non-coherent) involution.
Given a function and a dependent function , by function application on , we have the family of identifications
Thus by concatenation of identifications and lambda abstraction, we have the dependent function
which indicates that the identity function is a non-coherent involution.
By definition of involution, it follows that:
The inverse function of the identity function is the identity function itself.
Any identity function is bi-invertible.
Given a function and a dependent function , we have an element
of type
indicating that is bi-invertible.
By definition, it follows that:
Any identity function on a type is an equivalence of types.
Hence, in dependent type theory, the identity function is also called the identity equivalence.
There are other ways to prove that the identity function is an equivalence of types. One of them is given below:
Suppose that function types are defined using judgmental computation rules. Then for all terms , the fiber of the identity function (1) at is a contractible type.
The fiber type in question is the dependent type
By the judgmental computation rule of function types, the term reduces down to , and the fiber type becomes
This is always a contractible type:
the center of contraction is given by the dependent pair ,
for any , there is an identification
By induction on dependent sum types, it suffices to construct an identification
for any and , and by induction on identity types, it suffices to construct an identification
but that’s just reflexivity on
Thus, for all , the fiber type of the identity function at is contractible.
Last revised on November 4, 2023 at 23:01:09. See the history of this page for a list of all contributions to it.