Zulip Chat Archive
Stream: Is there code for X?
Topic: cartesian product
George Shakan (Mar 10 2022 at 14:56):
How can I create the Cartesian product in finsets. I thought it should be in data.finset.pi and pi A B for finsets A,B, but I am getting a type error I do not really understand
Johan Commelin (Mar 10 2022 at 15:04):
finset.product
Johan Commelin (Mar 10 2022 at 15:04):
So if you have s : finset X
and t : finset Y
, then you can write s.product t
to get a finset (X × Y)
.
George Shakan (Mar 10 2022 at 15:11):
That works for prod A B, but when I try for prod (A+B) C it does not and does not like A+B
George Shakan (Mar 10 2022 at 15:11):
(Here A+B is the sumset)
Last updated: Dec 20 2023 at 11:08 UTC