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:

  1. Objects: Pairs where is an object of and .
  2. Morphisms: A morphism from to is a morphism in such that .
  3. 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 .

Sources