A category with families is a category of ‘contexts’ and ‘substitutions’ with:

  • A terminal object representing the empty context.
  • A set of ‘types’ for each context .
  • A set of ‘terms’ for each .
  • A map for each substitution between types
  • A map for each substitution between terms

This can be expressed as a presheaf into where denotes a category of sets of terms in a context. TODO: Check & finish both definitions.

Sources

https://ncatlab.org/nlab/show/categorical+semantics+of+dependent+type+theory