Zulip Chat Archive

Stream: Is there code for X?

Topic: dependent functions out of a sum equivalent to ...


Scott Morrison (Aug 25 2021 at 03:33):

Somewhat unbelievably I can't find

def sum_fun_equiv {α β : Type*} (f : α  β  Type*) :
  (Π x, f x)  (Π a, f (sum.inl a)) × (Π b, f (sum.inr b)) :=
sorry

Does anyone see it?

Adam Topaz (Aug 25 2021 at 03:40):

Looks like we have the non-dependent version docs#equiv.sum_arrow_equiv_prod_arrow

Scott Morrison (Aug 25 2021 at 03:41):

Okay. I'll add it eventually.

Scott Morrison (Aug 25 2021 at 03:44):

In fact, the same proof works with a tiny bit of effort, so I may try to just generalize.


Last updated: Dec 20 2023 at 11:08 UTC