Zulip Chat Archive

Stream: new members

Topic: Cosmology of Lean


Dan Abramov (Aug 15 2025 at 00:38):

I've been doing some doodling to understand Lean's type hierarchy.

Not saying this one would be particularly helpful to anyone but I wonder if it captures the right intuitions?

Untitled-2025-02-02-1522 copy.png.png

Note this only deals with concrete universes (not stuff polymorphic over them). It also doesn't do anything with types being dependent.

But broadly, does it appear correct? Is anything misleading or flat out wrong?

Thanks.

Aaron Liu (Aug 15 2025 at 00:42):

nothing I see is wrong

Aaron Liu (Aug 15 2025 at 00:42):

...I think

Niels Voss (Aug 15 2025 at 17:50):

This looks completely right to me. Interestingly, it does actually involve a dependent type: ∀ n, n < 3 is a dependent function type (which lives in Prop due to Prop's impredicativity)

Eric Wieser (Aug 15 2025 at 18:49):

Set Type 1 is illegal syntax, you mean Set (Type 1)

Aaron Liu (Aug 15 2025 at 18:53):

Set Type 1 is legal syntax, but it parses as (Set Type) 1 and you will get

Function expected at
  Set Type
but this term has type
  Type 1

Note: Expected a function because this term is being applied to the argument
  1

Kevin Buzzard (Aug 21 2025 at 21:06):

For me the correct intuition is

Universes | Type                            | Prop
Types     | things mathematicians call sets | theorem statements
Terms     | elements of sets                | proofs

and the facts that Prop has type Type and that Type 37 exists are just implementation issues.


Last updated: Dec 20 2025 at 21:32 UTC