Zulip Chat Archive

Stream: mathlib4

Topic: Big Summation operator


Vladimir Gladstein (Aug 26 2024 at 02:34):

Hey! I am building a project with Lean and mathlib and I need big operators for it
In particular, I want to do big summation, big set union and some other custom big operations mainly over intervals with integer values. Could you please recommend me a suitable representation of intervals and big operator for that purpose?

Daniel Weber (Aug 26 2024 at 03:22):

You can use finsets (docs#Finset). Because the integers are a docs#LocallyFiniteOrder, you can use docs#Finset.Ioo, docs#Finset.Ico, docs#Finset.Ioc, docs#Finset.Icc to get intervals. For summation you can use docs#Finset.sum and for set union you can use docs#Finset.sup

Vladimir Gladstein (Aug 26 2024 at 03:43):

Awesome, thanks


Last updated: May 02 2025 at 03:31 UTC