7.1 Definition of n-types
As mentioned in §3.1 (http://planetmath.org/31setsandntypes),§3.11 (http://planetmath.org/311contractibility), it turns out to be convenient to define -types starting two levels below zero, with the -types being the mere propositions and the -types the contractible ones.
Definition 7.1.1.
Remark 7.1.2.
The number in Definition 7.1.1 (http://planetmath.org/71definitionofntypes#Thmpredefn1) ranges over all integers greater than or equal to . We could make sense of this formally by defining a type of such integers (a type whose induction principle is identical to that of ), or instead defining a predicate for . Either way, we can prove theorems about -types by induction on , with as the base case.
Example 7.1.3.
We saw in Lemma 3.11.10 (http://planetmath.org/311contractibility#Thmprelem7) that is a -type if and only if it is a mere proposition. Therefore, is a -type if and only if it is a set.
We have also seen that there are types which are not sets (Example 3.1.9 (http://planetmath.org/31setsandntypes#Thmpreeg6)). So far, however, we have not shown for any that there exist types which are not -types. In http://planetmath.org/node/87582Chapter 8, however, we will show that the -sphere is not an -type. (Kraus has also shown that the nested univalent universe is also not an -type, without using any higher inductive types.) Moreover, in §8.8 (http://planetmath.org/88whiteheadstheoremandwhiteheadsprinciple) will give an example of a type that is not an -type for any (finite) number .
We begin the general theory of -types by showing they are closed under certain operations and constructors.
Theorem 7.1.4.
Let be a retraction and suppose that is an -type, for any . Then is also an -type.
Proof.
We proceed by induction on . The base case is handled by Lemma 3.11.7 (http://planetmath.org/311contractibility#Thmprelem4).
For the inductive step, assume that any retract of an -type is an -type, and that is an -type. Let ; we must show that is an -type. Let be a section of , and let be a homotopy . Since is an -type, is an -type. We claim that is a retract of . For the section, we take
For the retraction, we define by
To show that is a retraction of , we must show that
for any . But this follows from Lemma 2.4.3 (http://planetmath.org/24homotopiesandequivalences#Thmprelem2). ∎
As an immediate corollary we obtain the stability of -types under equivalence (which is also immediate from univalence):
Corollary 7.1.5.
If and is an -type, then so is .
Recall also the notion of embedding from §4.6 (http://planetmath.org/46surjectionsandembeddings).
Theorem 7.1.6.
If is an embedding and is an -type for some , then so is .
Proof.
Let ; we must show that is an -type. But since is an embedding, we have , and the latter is an -type by assumption. ∎
Note that this theorem fails when : the map is an embedding, but is a -type while is not.
Theorem 7.1.7.
The hierarchy of -types is cumulative in the following sense: given a number , if is an -type, then it is also an -type.
Proof.
We proceed by induction on .
For , we need to show that a contractible type, say, , has contractible path spaces. Let be the center of contraction of , and let . We show that is contractible. By contractibility of we have a path , which we choose as the center of contraction for . Given any , we need to show . By path induction, it suffices to show that , which is trivial.
For the inductive step, we need to show that is an -type, provided that is an -type. Applying the inductive hypothesis to yields the desired result. ∎
We now show that -types are preserved by most of the type forming operations.
Theorem 7.1.8.
Let , and let and . If is an -type and for all , is an -type, then so is .
Proof.
We proceed by induction on .
For , we choose the center of contraction for to be the pair , where is the center of contraction of and is the center of contraction of . Given any other element of , we provide a path by contractibility of and , respectively.
For the inductive step, suppose that is an -type and for any , is an -type. We show that is an -type: fix and in , we show that is an -type. By Theorem 2.7.2 (http://planetmath.org/27sigmatypes#Thmprethm1) we have
and by preservation of -types under equivalences (Corollary 7.1.5 (http://planetmath.org/71definitionofntypes#Thmprecor1)) it suffices to prove that the latter is an -type. This follows from the inductive hypothesis. ∎
As a special case, if and are -types, so is . Note also that Theorem 7.1.7 (http://planetmath.org/71definitionofntypes#Thmprethm3) implies that if is an -type, then so is for any . Combining this with Theorem 7.1.8 (http://planetmath.org/71definitionofntypes#Thmprethm4), we see that for any functions and between -types, their pullback
(see http://planetmath.org/node/87642Exercise 2.11) is also an -type. More generally, -types are closed under all limits.
Theorem 7.1.9.
Let , and let and . If for all , is an -type, then so is .
Proof.
We proceed by induction on . For , the result is simply Lemma 3.11.6 (http://planetmath.org/311contractibility#Thmprelem3).
For the inductive step, assume the result is true for -types, and that each is an -type. Let . We need to show that is an -type. By function extensionality and closure of -types under equivalence, it suffices to show that is an -type. This follows from the inductive hypothesis. ∎
As a special case of the above theorem, the function space is an -type provided that is an -type. We can now generalize our observations in http://planetmath.org/node/87569Chapter 2 that and are mere propositions.
Theorem 7.1.10.
For any and any type , the type is a mere proposition.
Proof.
We proceed by induction with respect to .
For the base case, we need to show that for any , the type is a mere proposition. This is Lemma 3.11.4 (http://planetmath.org/311contractibility#Thmprelem2).
For the inductive step we need to show
To show the conclusion of this implication, we need to show that for any type , the type
is a mere proposition. By Example 3.6.2 (http://planetmath.org/36thelogicofmerepropositions#Thmpreeg2) or Theorem 7.1.9 (http://planetmath.org/71definitionofntypes#Thmprethm5), it suffices to show that for any , the type is a mere proposition. But this follows from the inductive hypothesis applied to the type . ∎
Finally, we show that the type of -types is itself an -type. We define this to be:
If necessary, we may specify the universe by writing . In particular, we have and , as defined in http://planetmath.org/node/87569Chapter 2. Note that just as for and , because is a mere proposition, by Lemma 3.5.1 (http://planetmath.org/35subsetsandpropositionalresizing#Thmprelem1) for any we have
Theorem 7.1.11.
For any , the type is an -type.
Proof.
Let ; we need to show that is an -type. By the above observation, this type is equivalent to . Next, we observe that the projection
is an embedding, so that if , then by Theorem 7.1.6 (http://planetmath.org/71definitionofntypes#Thmprethm2) it suffices to show that is an -type. But since -types are preserved under the arrow type, this reduces to an assumption that is an -type.
In the case , this argument shows that is a -type — but it is also inhabited, since any two contractible types are equivalent to , and hence to each other. Thus, is also a -type. ∎
Title | 7.1 Definition of n-types |
---|---|
\metatable |