Definition. Fibres [01ES]

By combining function types, dependent pair types, and identification types, we can finally define something useful. Given a function f:A\to B and an element b:B, we define the fibre of f over b to by the type of elements of A whose image in B is identified with b:

\mathsf {fib}_f(b) :\equiv {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(x:A)}} fx=_B b

We could have defined fibres with an equation in the opposite direction. The two versions are going to be equivalent; but if it matters, we’ll write the following notations:

\begin {aligned} \mathsf {fib}^-_f(b) &:\equiv {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(x:A)}}{fx=_Bb} \\ \mathsf {fib}^+_f(b) &:\equiv {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(x:A)}}{b=_B fx} \end {aligned}