Definition. Fibration [01JT]

A fibration over a type B is defined to be a pair of a type E with a mapping p:E\to B.

When B:\mathcal {U} lies inside a universe, we can relativise the notion of a fibration over B. In particular, a \mathcal {U}-fibration over B is defined to be a type E:\mathcal {U} together with a mapping p\colon E\to B. We will write \mathsf {Fib}_{\mathcal {U}}(B) for the type of \mathcal {U}-fibrations over B:

\mathsf {Fib}_{\mathcal {U}}(B) :\equiv {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(E:\mathcal {U})}}(E\to B)