In type theory, particularly in homotopy type theory (HoTT), the terms "Grothendieck universe" and "Mahlo universe" have different meanings and connotations.
Grothendieck Universe (in Type Theory):
In type theory, a Grothendieck universe is a type-theoretic analogue of a Grothendieck universe in set theory. Specifically, it is a type U that satisfies:
- Universality: For every type A, A ∈ U (i.e., A is a type in U).
- Closure under type constructors: U is closed under various type constructors, such as:
- For every type A ∈ U, the type of functions A → B is in U (for any type B).
- For every type A ∈ U, the power type (or subset type) 𝒫(A) is in U.
- For every type A ∈ U and every family of types B : A → U, the dependent product type Π(a : A), B(a) is in U.
In other words, a Grothendieck universe in type theory is a "large" type that contains all types and is closed under various type constructors.
Mahlo Universe (in Type Theory):
A Mahlo universe in type theory is a Grothendieck universe U that is also:
- Regular: U is a regular cardinal in the sense that it is not the sum of fewer than U many smaller cardinals.
- Mahlo: For every "large" subset C of U (in a certain sense), there exists a regular cardinal κ < U such that κ ∈ C.
The Mahlo axiom in type theory asserts the existence of a Mahlo universe. This axiom is used to ensure the existence of "sufficiently many" universes, which is essential for certain applications in type theory, such as:
- Univalence: The univalence axiom, which states that two types are equal if and only if they are homotopy equivalent, can be proved in the presence of a Mahlo universe.
- Higher-order logic: Mahlo universes are used to formalize higher-order logic and to prove the consistency of certain type-theoretic axioms.
Key differences from set-theoretic definitions:
- Type-theoretic vs. set-theoretic: The definitions of Grothendieck and Mahlo universes in type theory are tailored to the type-theoretic framework, whereas the set-theoretic definitions are based on Zermelo-Fraenkel set theory.
- Universes as types: In type theory, universes are types that contain other types, whereas in set theory, universes are classes or sets that contain other sets.
- Large cardinal axioms: The type-theoretic Mahlo axiom is not directly equivalent to the set-theoretic Mahlo axiom, although they share some similarities.
In summary, the terms "Grothendieck universe" and "Mahlo universe" have different meanings and connotations in type theory compared to set theory. In type theory, these universes are used to formalize and study the foundations of mathematics, particularly in the context of homotopy type theory.