Zulip Chat Archive
Stream: Is there code for X?
Topic: intersection of a set and a finset as a finset
Eric Rodriguez (Jun 23 2021 at 15:35):
Title; this would be mighty helpful if it exists!
Adam Topaz (Jun 23 2021 at 15:37):
You can use docs#finset.filter
Eric Rodriguez (Jun 23 2021 at 15:37):
often when I use filter
it ends up being awkward, but I guess that'll work fine for this tbh
Adam Topaz (Jun 23 2021 at 15:39):
The lemma docs#finset.mem_filter should make this a useful enough approach, I think.
Bryan Gin-ge Chen (Jun 23 2021 at 15:39):
Does using finset.filter
count as breaking through the barrier of the set API?
Adam Topaz (Jun 23 2021 at 15:40):
If you use set membership as the prop, then I think it's okay?
Yakov Pechersky (Jun 23 2021 at 15:42):
This relies on the decidability of membership in the set, iirc
Last updated: Dec 20 2023 at 11:08 UTC