Zulip Chat Archive

Stream: general

Topic: Functions are fun_like


Anatole Dedecker (Sep 10 2022 at 17:11):

Would the following break anything?

instance Pi.fun_like {α : Sort*} {β : α  Sort*} : fun_like (Π a, β a) α β :=
{ coe := id,
  coe_injective' := λ x y h, h }

(or the equivalent with has_coe_to_fun, I don't care)

Yaël Dillies (Sep 10 2022 at 17:13):

I suggest trying it out. My bet is on it going wrong horribly and quickly, but I can't be sure!


Last updated: Dec 20 2023 at 11:08 UTC