Zulip Chat Archive
Stream: general
Topic: sort vs type
Johan Commelin (Jul 03 2018 at 16:00):
I realise that I don't actually quite understand what the distinction is between sort and type. Somehow I treat them as interchangeable, but of course that is not a very solid strategy. So, what exactly is a sort, and when should I use it?
Reid Barton (Jul 03 2018 at 16:04):
Basically, Sort*
= Prop
union Type*
. Sort 0 = Prop
, and Sort (u+1) = Type u
.
Johan Commelin (Jul 03 2018 at 16:14):
Hmm, so that kind explains my thinking that I could equate Sort*
and Type*
. But it doesn't explain why we have these two notions that are almost the same. Lean seems to prefer to have only 1 concept when 1 suffices...
Sean Leather (Jul 04 2018 at 06:47):
@Johan Commelin Here's some of the design discussion.
Johan Commelin (Jul 04 2018 at 06:57):
Thanks!
Last updated: Dec 20 2023 at 11:08 UTC