Zulip Chat Archive

Stream: general

Topic: Function types in the category of all Lean types


Arnav Sabharwal (Feb 09 2024 at 04:41):

If we considered the category of all Lean types, how would we interpret function types? Would we differentiate between a morphism from 'a' to 'b' and the function type 'a -> b'? Thanks!

Johan Commelin (Feb 09 2024 at 04:45):

In this case, a morphism from a to b is by definition a term of the function type a -> b.
When defining a category in Lean, you have to specify the Hom-sets, and in this case they are defined to be the function types.


Last updated: May 02 2025 at 03:31 UTC