Zulip Chat Archive

Stream: PR reviews

Topic: has_internal_hom class carrying data #12472


Johan Commelin (Mar 08 2022 at 06:06):

Just like @Scott Morrison I hadn't realised that is_left_adjoint was already carrying data. I wonder whether it is still worth putting more emphasis on the ihom part of the data. Right now we have

/--
This is the internal hom `A ⟶[C] -`.
Note that this is essentially an opaque definition,
and so will not agree definitionally with any "native" internal hom the category has.
TODO: we could introduce a `has_ihom` class
that allows specifying a particular definition of the internal hom,
and provide a low priority opaque instance.
-/
def ihom : C  C :=
(@closed.is_adj _ _ _ A _).right

As I understand it, this docstring is incorrect. But it still points to a problem with the current approach: even if there are no defeq problems, the ihom is still taking a back seat, in some sense.

Johan Commelin (Mar 08 2022 at 06:06):

cc @Bhavik Mehta

Scott Morrison (Mar 08 2022 at 07:28):

I'll fix that comment at some point. I

Scott Morrison (Mar 08 2022 at 07:28):

I'm not sure that it's a problem having ihom take a back seat. I've been using the internal hom in Module R today a bit, and it seems to work fine.

Scott Morrison (Mar 08 2022 at 07:29):

Perhaps the monoidal_closed (Module R) instance would be slightly more understandable if we rearranged the definition?

Johan Commelin (Mar 08 2022 at 07:35):

Yeah, that's exactly what I'm hoping


Last updated: Dec 20 2023 at 11:08 UTC