Definition
Let be a category and be a functor. The Grothendieck construction (also known as the category of elements) of , denoted or , is the category defined by:
- Objects: Pairs where is an object of and .
- Morphisms: A morphism from to is a morphism in such that .
- Composition: Inherited directly from .
There is a canonical projection functor defined by and .
Properties
Fibration
The projection is a discrete opfibration.
- The fibers correspond to the sets .
- For any object and morphism in , there is a unique morphism in extending over , given by the map to .
Type Theoretic Analogue
This construction provides the categorical semantics for dependent sum types.
- Base category corresponds to a context or type .
- Functor corresponds to a type family .
- Total category corresponds to the -type .