natural deduction metalanguage, practical foundations
type theory (dependent, intensional, observational type theory, homotopy type theory)
computational trinitarianism =
propositions as types +programs as proofs +relation type theory/category theory
(in category theory/type theory/computer science)
of all homotopy types
of (-1)-truncated types/h-propositions
Russell universes or universes à la Russell are types whose terms are types. In type theories without a separate type judgment , only typing judgments , what would have been type judgments are represented by typing judgments that is a term of a Russell universe , . Russell universes without a separate type judgment are used in many places in type theory, including in the HoTT book, in Coq, and in Agda.
One formal definition of a type theory with Russell universes is as follows:
The type theory has judgments
, that is a context
, that is a universe index,
, that is a proposition,
, that is a true proposition,
and consists of the formal signature and inference rules of first-order Heyting arithmetic or Peano arithmetic. These rules ensure that there are an infinite number of indices, which are linearly ordered with strict order and upwardly unbounded, where is true for all indices .
Now, we introduce the typing judgment , which says that is a term of the type . Instead of type judgments, we introduce a special kind of type called a Russell universe or universe à la Russell, whose terms are the types themselves. Russell universes are formalized with the following rules:
In addition, we have rules for contexts which state that one could add typing judgments to the list of contexts:
One could also define Russell universes à la Coquand, in that the type theory has a type judgment for each universe . Using the dependent type theory with no separate type judgment, instead of having only one term judgment , for index and type , we instead have an infinite number of type judgments, one type judgment for every index , indicating that is a type with level , in addition to the term judgments . Then, one has the following rules for Russell universes à la Coquand:
In addition, we have rules for contexts which state that one could add typing judgments to the list of contexts:
One could derive from these rules the above rules for Russell universes and context extension
If the type theory has a separate type judgment , the rules for Russell universes become simpler, as one doesn’t have to assume infinitely many Russell universes and a second level to house the natural numbers type used to index the universes. Instead, we merely have
Furthermore, the separate type judgment amounts to collapsing the two levels in the theory above into one level: Instead of defining the identity type and the type of natural numbers as external to the type theory, we instead define it as normal types internal to the type theory. Then the rules for the infinite tower of Russell universes are as follows:
We could also add rules which state that every type is an element of a Russell universe:
Then the first rule for the infinite tower becomes one of
This is how one would formally present a dependent type theory like the one in Book HoTT or the ones in Agda, Coq, Lean, without resorting to external layers.
However, these set of rules are incompatible with the statement that all dependent sum types exist, because the dependent sum type contains as elements pairs of every type in the type theory and the universe level the type is in. However, by the inference rules above, is in the universe which means that by right projecting , every type is in the universe resulting in Girard's paradox which is contradictory.
Instead, usually the inference rules for dependent sum types require that the type family in the dependent sum type have the same universe level , . Since none of the universes in the above diagram have the same universe level, the dependent sum type cannot be constructed. The same is true of the formers of any type which could construct dependent sum types, such as wide pushouts.
Similarly, these set of rules are incompatible with the statement that all sequential colimits exist, because one could then find the sequential colimit of the diagram
and one would get a type , which by definition of sequential colimits contains every type in the universe hierarchy. However, is in the universe , which means that lifting from to via the sequential colimit results in Girard's paradox which is contradictory.
Instead, usually the inference rules for sequential colimits require that the types in the above diagram have the same universe level . Since none of the universes in the above diagram have the same universe level, the sequential colimit cannot be constructed. The same is true of the formers of any type which could construct sequential colimits, such as pushout types.
But none of this are problems in Book HoTT as the formers for every type have the same universe level as the type to be put in the universe.
The notion is due to:
For more see the references at type universe.
Last revised on November 28, 2023 at 16:42:12. See the history of this page for a list of all contributions to it.