Zulip Chat Archive

Stream: general

Topic: Using set.maps_to, inj_on, etc on finset


Eric Wieser (Jan 14 2021 at 10:23):

We have a lot of lemmas around docs#set.maps_to, but they're all written for sets. Would it make sense to generalize these for any object that implements has_mem?

Yury G. Kudryashov (Jan 16 2021 at 20:14):

I think, yes

Bryan Gin-ge Chen (Jan 16 2021 at 20:20):

It'd be good to make the interface for set,finset, etc. more uniform. I'd love to see if @Kyle Miller's proposal here for unions could be made to work.

Kyle Miller (Jan 16 2021 at 20:23):

(There are still some bugs with that proposal, by the way -- for example, a bounded union for set didn't seem to work. It should be fixable.)


Last updated: Dec 20 2023 at 11:08 UTC