Zulip Chat Archive

Stream: Is there code for X?

Topic: finset.coe_product


Yaël Dillies (Nov 19 2021 at 13:54):

Am I dumb or are we missing this?

import data.finset.prod

lemma finset.coe_product (s : finset α) (t : finset β) :
  (s.product t : set (α × β)) = (s : set α).prod t :=
begin
  ext,
  simp,
end

Eric Wieser (Nov 19 2021 at 13:59):

I assume something like finset.ext $ λ _, finset.mem_product works too?

Eric Wieser (Nov 19 2021 at 13:59):

I think it's missing, I'd expect it right below docs#finset.mem_product

Yaël Dillies (Nov 19 2021 at 14:01):

Yeah me too.

Yaël Dillies (Nov 19 2021 at 14:01):

And I swear I used it before, so I formally concluded I was crazy.


Last updated: Dec 20 2023 at 11:08 UTC