Definition. Truncation levels › Contractible types [01FJ]

We say that a type A is contractible when we have a unique element of that type. To formalise this statement in type theory, we combine sums, products, and identification types:

\mathsf {isContr}(A) :\equiv {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(x:A)}} {\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod } }_{(y:A)}} x=_A y