Displayed Categories as Dependent Types
Displayed category theory is the category-theoretic analogue of dependent type theory. A category plays the role of a context, and a displayed category over it the role of a dependent type in that context. The analogy extends to each construction:
| Dependent type theory | Displayed category theory |
| context | category |
| dependent type | displayed category over |
| dependent function | section of |
| context extension | total category and its projection |
| substitution | reindexing |
| -type | displayed total category |
| a type not depending on its context | weakening |