Definition
In type theory, a universe is a type whose terms are themselves types. We typically denote a universe by or . If is a type belonging to the universe, we write . Universes are required to be closed under the type formers of the theory:
- If and , then and .
- is closed under inductive types (e.g., ) and the identity type.
Paradoxes and Hierarchies
To avoid Girard’s Paradox (the type-theoretic analogue of Russell’s Paradox), a universe cannot be a term of itself ( is inconsistent). Most systems resolve this by introducing a cumulative hierarchy of universes:
where every type in is also in .
Russell vs. Tarski Styles
- Russell-style: Types are terms of the universe directly. If , then is also a type.
- Tarski-style: The universe is a type of codes. A separate decoding function is used to translate a code into an actual type.
Predicativity
- Predicative: A universe is predicative if it only contains types whose definitions do not involve quantification over itself.
- Impredicative: A universe (often denoted ) is impredicative if it is closed under quantification over any universe level. The Calculus of Constructions utilizes an impredicative universe at the base of its hierarchy.