Zulip Chat Archive

Stream: mathlib4

Topic: Finsupp.degree


Violeta Hernández (Aug 31 2025 at 06:20):

Out of curiosity, why is docs#Finsupp.degree called that? I would have expected that name to be used for f.support.max or something similar.

Damiano Testa (Aug 31 2025 at 06:25):

I think that this function is intended to be the finsupp of exponents of a monomial. So the degree is the sum of the entries.

Violeta Hernández (Aug 31 2025 at 10:02):

Oh, it's the degree of a monomial, not a polynomial

Violeta Hernández (Aug 31 2025 at 10:03):

Fair enough.

Jovan Gerbscheid (Aug 31 2025 at 21:04):

Shouldn't it be called Finsupp.sum?

Ruben Van de Velde (Aug 31 2025 at 21:15):

That's something else

Jovan Gerbscheid (Aug 31 2025 at 21:17):

Hmm, that's true

Damiano Testa (Aug 31 2025 at 21:28):

Maybe to help the intuition, the Finsupp should be called MonomialExponents or something like this. :upside_down:

Junyan Xu (Aug 31 2025 at 23:45):

Finsupp.total has been deprecated for more than 6 months, so the name is available now :) Feels like resale of expired domain name, should we make it an auction? :explode:

Jovan Gerbscheid (Sep 01 2025 at 00:02):

It seems that this has already been suggested in the past ^^
https://leanprover.zulipchat.com/#narrow/channel/287929-mathlib4/topic/Finsupp.2Etotal/near/465989771


Last updated: Dec 20 2025 at 21:32 UTC