Zulip Chat Archive
Stream: maths
Topic: Type 0 contains a universe
Kenny Lau (Jun 27 2025 at 15:42):
What’s the simplest way to state the proposition that Type 0 contains a universe?
Aaron Liu (Jun 27 2025 at 15:56):
What does that mean?
Aaron Liu (Jun 27 2025 at 15:56):
I guess you could state that it forms an inaccessible cardinal
Kenny Lau (Jun 27 2025 at 16:35):
yeah probably
Matt Diamond (Jun 27 2025 at 21:21):
is it possible to prove that the cardinality of Type 0 is inaccessible? the cardinality of Type u is notoriously hard to pin down... in fact I think the exact value may be independent of Lean
you can certainly prove that the cardinality of Type u is greater than or equal to an inaccessible cardinal (specifically Cardinal.univ.{u, u+1})... maybe that's good enough
Matt Diamond (Jun 27 2025 at 21:35):
oh wait, you were just asking about stating it, not proving it... nvm
Kenny Lau (Jun 27 2025 at 23:00):
I'm just wondering if there's a convenient way to state it in terms of type theory and basically without much reference to cardinality
Matt Diamond (Jun 27 2025 at 23:02):
I guess I'm not sure what you specifically mean by "universe"
Kenny Lau (Jun 27 2025 at 23:02):
let's say it's equivalent to |X| being an inaccessible cardinal
Matt Diamond (Jun 27 2025 at 23:05):
well, by that definition, Cardinal would be a universe, as would Ordinal
Kenny Lau (Jun 27 2025 at 23:05):
The only problem is that they don't live in Type 0
Kenny Lau (Jun 27 2025 at 23:05):
in fact you can't actually prove what i asked
Matt Diamond (Jun 27 2025 at 23:05):
hmm
Matt Diamond (Jun 27 2025 at 23:16):
wait, so is the answer to your question just ∃ (α : Type 0), (#α).IsInaccessible?
Kenny Lau (Jun 27 2025 at 23:16):
yes, but I'm wondering if there's a more "accessible" (lol) way to write that
Matt Diamond (Jun 27 2025 at 23:17):
gotcha
Kenny Lau (Jun 27 2025 at 23:20):
For example, consider the following attempt:
Partial example
Kenny Lau (Jun 27 2025 at 23:23):
hmm, this could be right! (i've edited it)
Kenny Lau (Jun 27 2025 at 23:28):
@Matt Diamond what do you think?
Matt Diamond (Jun 27 2025 at 23:31):
Looks plausible! (Though I'm not really the person to ask... my knowledge of this stuff doesn't go that deep.)
Matt Diamond (Jun 27 2025 at 23:32):
Might as well try to prove it, though!
Kenny Lau (Jun 27 2025 at 23:32):
I'll leave that to Mario :rofl:
Matt Diamond (Jun 27 2025 at 23:33):
lol good call
Matt Diamond (Jun 27 2025 at 23:45):
@Kenny Lau for the powerset axiom:
fun x ↦ ⟨Set x, by
have h1 : PLift (Set x) ≃ Set x := Equiv.plift
have h2 : Set (PLift x) ≃ Set x := ⟨
fun s => PLift.down '' s,
fun s => PLift.up '' s,
fun _ => by simp [Set.image_image],
fun _ => by simp [Set.image_image]
⟩
exact ⟨h2.trans h1.symm⟩
⟩
Kenny Lau (Jun 27 2025 at 23:46):
Informal proof: recall that a strongly inaccessible cardinal is one that is uncountable, regular, and a strong limit cardinal.
- Uncountable: take the powerset of
ℕ. - Regular: this means its cofinality is itself, which is captured by the union axiom.
- Strong limit cardinal: That's the powerset axiom.
And for the other way round, note how I've used all three axioms in the above proof.
Kenny Lau (Jun 27 2025 at 23:47):
Actually I think I can do better, I can make it more usable by leaving Prop
Matt Diamond (Jun 27 2025 at 23:49):
do you mean defining Universe as a structure?
Kenny Lau (Jun 27 2025 at 23:57):
Attempt #2
Kenny Lau (Jun 28 2025 at 00:07):
The -> direction should be that you would consider the map from \a to Cardinal and then take the union.
The <- direction should be some sort of type-theoretic interpretation of V(\a) where V is the von Neumann universe
Mario Carneiro (Jun 28 2025 at 00:40):
Am I understanding correctly that you are trying to write down the thing that lean cannot prove (because Type universes are themselves inaccessible but do not necessarily contain inaccessibles)?
Kenny Lau (Jun 28 2025 at 00:40):
Mario Carneiro said:
Am I understanding correctly that you are trying to write down the thing that lean cannot prove
Correct.
Mario Carneiro (Jun 28 2025 at 00:41):
A popular way to write this in type theory is to use inductive-recursive types
Kenny Lau (Jun 28 2025 at 00:41):
oh, that sounds fun, what does that mean?
Mario Carneiro (Jun 28 2025 at 00:41):
I'm not sure what the simplest inductive-recursive type that lean cannot prove (is equivalent to something that) exists is
Mario Carneiro (Jun 28 2025 at 00:42):
An inductive recursive type is when you define a function by recursion mutually with an inductive type
Mario Carneiro (Jun 28 2025 at 00:43):
it can be used to define models of type theory where you have an inductive type that produces codes for types mutually with a decoding function which turns the codes into actual types
Kenny Lau (Jun 28 2025 at 00:44):
Am I understanding correctly that you basically want to express the fact that an inaccessible cardinal is the a fixed point of beth that is also closed under union? And you want to use recursion to produce a fixed point of beth as well as make it closed under union?
Kenny Lau (Jun 28 2025 at 00:44):
I mean it also sounds like that since you said Lean cannot prove that it exists, then there's no way to actually write down the inductive type?
Mario Carneiro (Jun 28 2025 at 00:45):
in fact you kind of did this with your axiomatization, you are defining α by induction and obj : α → Type u by recursion, mutually
Kenny Lau (Jun 28 2025 at 00:45):
I see
Mario Carneiro (Jun 28 2025 at 00:45):
You can write down some syntax that would plausibly produce the object, except that lean doesn't support inductive recursive types
Mario Carneiro (Jun 28 2025 at 00:45):
Agda does, so people use this trick a lot over there
Kenny Lau (Jun 28 2025 at 00:45):
and reasonably so, because otherwise you would break Godel?
Mario Carneiro (Jun 28 2025 at 00:46):
no
Mario Carneiro (Jun 28 2025 at 00:46):
it's just an incredibly strong assumption
Mario Carneiro (Jun 28 2025 at 00:46):
models of type theory that support I-R types need Mahlo cardinals, not just inaccessibles
Kenny Lau (Jun 28 2025 at 00:46):
I see, so basically Agda could prove that Type contains a "universe", but that universe wouldn't be closed under I-R types?
Mario Carneiro (Jun 28 2025 at 00:47):
right, you could prove the existence of a universe closed under lean style inductives but not I-R
Kenny Lau (Jun 28 2025 at 00:48):
interesting!
Mario Carneiro (Jun 28 2025 at 00:48):
(although I have to admit I hesitate to assert that because agda allows a lot of stuff)
Kenny Lau (Jun 28 2025 at 00:48):
so basically the entire "model" of Lean lives inside Agda's Type 0!
Mario Carneiro (Jun 28 2025 at 00:49):
well, actually it's more complicated than that, because Agda has predicative universes
Mario Carneiro (Jun 28 2025 at 00:49):
while Lean has impredicative Prop
Mario Carneiro (Jun 28 2025 at 00:50):
If agda is consistent, it is probably a subsystem of second order arithmetic
Mario Carneiro (Jun 28 2025 at 00:51):
but if you added an impredicative assumption like Prop ~= Bool then Agda would model all of lean comfortably within Type 0
Aaron Liu (Jun 28 2025 at 00:58):
Mario Carneiro said:
Agda does, so people use this trick a lot over there
wow I didn't know that
Mario Carneiro (Jun 29 2025 at 22:34):
I'm pretty sure "what kind of inductive types does agda support" is an open question
James E Hanson (Jul 04 2025 at 13:45):
Matt Diamond said:
in fact I think the exact value may be independent of Lean
Yes, it's definitely independent of Lean whether there's a set in Type 0 of inaccessible cardinality.
James E Hanson (Jul 04 2025 at 13:48):
But beyond that, even if every type in Type 0 is smaller than the first inaccessible cardinal , I would suspect that it's independent of Lean whether Type 0 itself has cardinality . Type theory is generally fairly agnostic about a lot of the global structure of universes, so all you really know is that the category of types in Type 0 is equivalent to the category of sets smaller than some inaccessible cardinal.
Mario Carneiro (Jul 06 2025 at 17:02):
yes that's definitely the case. the original model in #leantt uses a hierarchy which can be described as "a strictly monotonic sequence of inaccessible cardinals", no constraints on using the first omega inaccessibles (but you can use the first omega inaccessibles). That means there are models of lean where Type 0 has no inaccessibles in it, and other models where every universe is a Mahlo cardinal and actually supports I-R (assuming those cardinals exist).
Last updated: Dec 20 2025 at 21:32 UTC