Zulip Chat Archive

Stream: mathlib4

Topic: Set.Accumulate


Yury G. Kudryashov (Sep 05 2023 at 04:58):

I have 2 questions about docs#Set.Accumulate:

Jireh Loreaux (Sep 05 2023 at 05:51):

For the latter that changes TC assumptions significantly. So I would think not.

Yury G. Kudryashov (Sep 05 2023 at 06:29):

Why? Set _ satisfies all required TC assumptions.

Yury G. Kudryashov (Sep 05 2023 at 06:30):

UPD: I missed the point that Set.Accumulate doesn't assume the domain to be Nat.

Yury G. Kudryashov (Sep 05 2023 at 06:30):

Do we ever use it for other types?

Yaël Dillies (Sep 05 2023 at 06:34):

We use it for docs#compactCovering and docs#MeasureTheory.spanningSets, so the answer is "No, at least within mathlib".

Yury G. Kudryashov (Sep 05 2023 at 06:46):

Then Q2 stands.

Yaël Dillies (Sep 05 2023 at 06:46):

Yes, I agree with you. We should use partialSups.

Pedro Sánchez Terraf (Sep 05 2023 at 12:30):

Yury G. Kudryashov said:

Then Q2 stands.

Does the proposal involve deleting Accumulate? It might be still useful for unions over a well-ordered index set.

Yaël Dillies (Sep 05 2023 at 12:32):

What about we reintroduce it when needed? I find it a bit bloat right now and I suspect there are some places where it could have been used but wasn't because the API wasn't helpful.

Anatole Dedecker (Sep 05 2023 at 12:33):

I've seen multiple occasions in which I would have liked a version od docs#partialSups indexed by any ordered set (with stronger typeclass assumptions of course), so I think the right answer is to introduce this and then use it instead of docs#Set.Accumulate

Yury G. Kudryashov (Sep 05 2023 at 12:52):

I think that we can already migrate existing uses of Set.Accumulate to partialSups and deprecate the former.

Yury G. Kudryashov (Sep 05 2023 at 12:54):

OTOH, partialSups should be redefined as (Finset.Iic a).sup' _ f


Last updated: Dec 20 2023 at 11:08 UTC