Definition
A type is contractible if it contains a point , called the center of contraction, such that every other point is connected to by a path. In Homotopy Type Theory, this is encoded as the type:
A contractible type is also referred to as a -2-type.
Properties
Contractibility represents the highest level of triviality in the homotopy level.
- Uniqueness of inhabitants: If a type is contractible, it is equivalent to the unit type .
- Closure under equivalence: If and is contractible, then is contractible.
- Identity types: If is contractible, then for any , the identity type is also contractible, hence all contractible types are propositions.
- Retracts: Any retract of a contractible type is contractible.
Theorems
The relationship between contractibility and other homotopy level is fundamental to the hierarchy of types:
Relation to Mere Propositions
A type is a mere proposition if and only if for all , the type is contractible. Alternatively, is a mere proposition if:
Fiberwise Contractibility
A function is an equivalence if and only if all its fibre are contractible:
Examples
- The unit type is contractible with center of contraction .
- Any singleton type is contractible by the path induction principle.
- In unit interval , the type is contractible to either endpoint.