Definition. Universes, or types of types › Universe [01F6]
A universe is defined to be a type \mathcal {U}~\mathit {type} together with a family X:\mathcal {U}\vdash \mathcal {T}[X]~\mathit {type} that is closed under all the type constructors in the sense that we have the following operations and laws:
\frac {}{ \overline {\mathsf {empty}}:\mathcal {U} \qquad \mathcal {T}[\overline {\mathsf {empty}}]\equiv \mathsf {empty} ~\mathit {type} } \frac {}{ \overline {\mathsf {unit}}:\mathcal {U} \qquad \mathcal {T}[\overline {\mathsf {unit}}]\equiv \mathsf {unit} ~\mathit {type} } \frac {}{ \overline {\mathsf {bool}}:\mathcal {U} \qquad \mathcal {T}[\overline {\mathsf {bool}}]\equiv \mathsf {bool} ~\mathit {type} } \frac { X:\mathcal {U}\quad x:\mathcal {T}[X]\vdash Y[x]:\mathcal {U} }{ {\mathop {\mathchoice {\textstyle \overline \prod }{\textstyle \overline \prod }{\scriptstyle \overline \prod }{\scriptscriptstyle \overline \prod } }_{(x:X)}}Y[x]:\mathcal {U} \qquad \mathcal {T}\bigl [ {\mathop {\mathchoice {\textstyle \overline \prod }{\textstyle \overline \prod }{\scriptstyle \overline \prod }{\scriptscriptstyle \overline \prod } }_{(x:X)}}Y[x] \bigr ] \equiv {\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod } }_{(x:\mathcal {T}[X])}} \mathcal {T}[Y[x]] ~\mathit {type} } \frac { X:\mathcal {U}\quad x:\mathcal {T}[X]\vdash Y[x]:\mathcal {U} }{ {\mathop {\mathchoice {\textstyle \overline \sum }{\textstyle \overline \sum }{\scriptstyle \overline \sum }{\scriptscriptstyle \overline \sum } }_{(x:X)}}Y[x]:\mathcal {U} \qquad \mathcal {T}\bigl [ {\mathop {\mathchoice {\textstyle \overline \sum }{\textstyle \overline \sum }{\scriptstyle \overline \sum }{\scriptscriptstyle \overline \sum } }_{(x:X)}}Y[x] \bigr ] \equiv {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(x:\mathcal {T}[X])}} \mathcal {T}[Y[x]] ~\mathit {type} } \frac { X:\mathcal {U}\quad u,v:\mathcal {T}[X] }{ \overline {\mathsf {Id}}(X,u,v):\mathcal {U} \qquad \mathcal {T}[ \overline {\mathsf {Id}}(X,u,v) ]\equiv (u =_{\mathcal {T}[X]} v) ~\mathit {type} }