Zulip Chat Archive

Stream: general

Topic: finsupp.{prod,sum}


Johan Commelin (Jun 12 2020 at 15:36):

Do people like finsupp.prod and finsupp.sum? I feel like they are one layer too much in the hierarchy
list.prod -> multiset.prod -> finset.prod -> finsupp.prod.
Should we try to completely remove them, and use finset.prod instead? Or is this doomed to begin with?

Johan Commelin (Jun 12 2020 at 16:59):

I also suggest

def weight (f : ι  A) : A :=
 i in f.support, f i

Patrick Massot (Jun 12 2020 at 17:06):

What's this name?

Patrick Massot (Jun 12 2020 at 17:06):

Why not sum?

Johan Commelin (Jun 12 2020 at 17:48):

Ok, we could reuse finsupp.sum for that notion, once we free up the name.


Last updated: Dec 20 2023 at 11:08 UTC