Zulip Chat Archive

Stream: maths

Topic: finset.sUnion


Scott Morrison (Apr 12 2020 at 05:01):

I can't find any sign of finset.sUnion : finset (finset A) -> finset A. Am I missing something?

Kenny Lau (Apr 12 2020 at 05:03):

bind

Chris Hughes (Apr 12 2020 at 05:06):

It might be join

Scott Morrison (Apr 12 2020 at 05:08):

Hmm... bind isn't quite what I want, it's

def bind (s : finset α) (t : α  finset β) : finset β

Scott Morrison (Apr 12 2020 at 05:09):

and I can't find any sign of finset.join.

Scott Morrison (Apr 12 2020 at 05:10):

but I guess s.bind id will do.

Scott Morrison (Apr 12 2020 at 05:10):

Shall I just add join defined as that?

Scott Morrison (Apr 12 2020 at 05:10):

or am I meant to set up a monad instance?

Kenny Lau (Apr 12 2020 at 05:17):

#find doesn't give me anything

Mario Carneiro (Apr 12 2020 at 05:31):

I wouldn't mind calling this sUnion instead of join. We mostly use set theoretic terminology in finset

Mario Carneiro (Apr 12 2020 at 05:32):

I'm pretty sure I've used bind id for this in the past, without bothering with a definition


Last updated: Dec 20 2023 at 11:08 UTC