202505071605
Tags : Homotopy Type Theory
Higher Groupoids Structure of Coproducts
Consider the type which is ‘presented’ by the injections and , since we expect the sum type to have copies of and we would like the following:
To prove this, we fix an element and look at the type family:
And a similar argument would characterize the type family .
To make the analysis easier, we shall first define the type family as follows:
This will make proving statements about the above easier and it has the following property:
To prove so we first define
that is simple, we can think of as a non-dependent function to the universe and get
Now we define
To define this, we use the elimination rule of and divide it into cases:
- Case 1: , this means so we can simply apply and get the answer.
- In the second case, since is the empty type, its elimination rule gives us the element.
We now show that and are quasi inverses for all , I will write them as becuase I like this notion better.
Now for the other direction, we again divided based on cases, when and , for the first case we hae
And for the other case we can have whatever we want.
Transports can be defined in a fairly straightforward way:
where the type family is defined from type families as .