Remark. “Fibrations” are functions with an attitude [01JS]

The operations of straightening and unstraightening suggest that functions f:A\to B can be thought of in two different ways. Sometimes a function is just a function: a way to turn elements of A into elements of B. But other times, a function is (contextually) meant to be thought of as defining some kind of structure over its codomain, which can be extracted by straightening. In this case, we like to call it a “fibration”. At this level, there is no technical distinction between a fibration and a function: the terms are rather hints to suggest how we are intending to think about it. At times, it is useful to think of a given function as both a function and a fibration: for example, an equivalence is a function that transforms elements of one type into another type, but we define the property of being an equivalence in terms of the function’s straightening (which indicates we are thinking of it as a fibration).