Zulip Chat Archive
Stream: new members
Topic: The category of sets in mathlib
Dean Young (Dec 01 2023 at 05:29):
The category of Sets
, which would be of type Cat
or of type Category (Type.{u})
, is a pretty simple thing to make. But I was hoping there would be a standard one already. Is that the case?
Johan Commelin (Dec 01 2023 at 05:35):
Sure, just treat Type
as a category. There is an instance of Category Type
that will be picked up automatically
Dean Young (Dec 01 2023 at 05:36):
Wow thanks Johan.
Dean Young (Dec 01 2023 at 05:47):
Wait, what if I wanted a functor F : Functor 𝕊𝕖𝕥 𝕊𝕖𝕥
. In that case, I would want to be able to name 𝕊𝕖𝕥 : Category Type.{u}
.
Junyan Xu (Dec 01 2023 at 06:34):
Just write F : Functor Type Type
(or Functor (Type u) (Type v)
)
mathlib4 docs doesn't show the notation but you can write F : Type ⥤ Type
too.
Last updated: Dec 20 2023 at 11:08 UTC