finset_sum and finset_prod are now finsetSum and finsetProd

Your build says unknown identifier on a name with finset_sum or finset_prod in it? Mathlib v4.36.0 deleted 182 such deprecated names (99 with finset_sum, 83 with finset_prod). 170 of them are replaced by the same name with finsetSum or finsetProd; 12 are not, and are listed below.

Scan your project for these names All 647 names removed in v4.36.0

Computed from Mathlib's git history between the previous release and v4.36.0. All 182 were deprecated in v4.30.0 (April 2026), so they survived six releases as aliases before deletion.

The rule

For 170 of the 182 names the replacement is the old name with finset_sum written finsetSum and finset_prod written finsetProd, in the same namespace:

Old nameReplacement
AddMonoidHom.coe_finset_sumAddMonoidHom.coe_finsetSum
AddMonoidHom.finset_sum_applyAddMonoidHom.finsetSum_apply
AddSubgroup.val_finset_sumAddSubgroup.val_finsetSum
AddSubmonoid.coe_finset_sumAddSubmonoid.coe_finsetSum
AddSubmonoidClass.coe_finset_sumAddSubmonoidClass.coe_finsetSum

The match is textual. 133 of the 170 are also confirmed against the replacement declaration; for the rest the deprecation message named the new name but its type was not checked. Run #check @NewName on any you are unsure about, and let lake build have the last word.

Apply it without touching your own names

A blind search and replace on your whole source will also rewrite your own lemmas that happen to contain finset_sum. Replace only the names the compiler flagged. With the build log saved as build.log:

grep -oE "unknown identifier '[^ ]*finset_(sum|prod)[^ ]*'" build.log \
  | sed "s/^unknown identifier '//; s/'\$//" | sort -u

That prints each flagged name once. For each, apply the rule, then rebuild. Names in the table below do not follow it.

The 12 names that do not follow the rule

Old nameReplacement
AddCon.finset_sumCon.AddCon.finsetSum
AddMonoidAlgebra.le_inf_support_finset_prodAddMonoidAlgebra.le_inf_support_coeff_finsetProd
AddMonoidAlgebra.sup_support_finset_prod_leAddMonoidAlgebra.sup_support_coeff_finsetProd_le
ENNReal.coe_finset_prodENNReal.ofNNReal_finsetProd
ENNReal.coe_finset_sumENNReal.ofNNReal_finsetSum
MeasureTheory.IsStronglyProgressive.finset_sumMeasureTheory.IsStronglyProgressive.MeasureTheory.IsStronglyProgressive.finsetSum
MeasureTheory.IsStronglyProgressive.finset_sum'MeasureTheory.IsStronglyProgressive.MeasureTheory.IsStronglyProgressive.finsetSum'
MeasureTheory.ProgMeasurable.finset_prodMeasureTheory.IsStronglyProgressive.finsetProd
MeasureTheory.ProgMeasurable.finset_prod'MeasureTheory.IsStronglyProgressive.finsetProd'
MeasureTheory.ProgMeasurable.finset_sumMeasureTheory.IsStronglyProgressive.finsetSum
MeasureTheory.ProgMeasurable.finset_sum'MeasureTheory.IsStronglyProgressive.finsetSum'
ProbabilityTheory.Kernel.finset_sum_applyProbabilityTheory.Kernel.sum_apply

What differs: ENNReal.coe_finset_sum and coe_finset_prod become ofNNReal_finsetSum and ofNNReal_finsetProd; two AddMonoidAlgebra lemmas gain coeff in the middle; AddCon.finset_sum moves under Con; the MeasureTheory.ProgMeasurable versions point into MeasureTheory.IsStronglyProgressive; and Kernel.finset_sum_apply points to a different lemma, Kernel.sum_apply. Two replacements are recorded with a repeated namespace prefix, as the deprecation message reads; check the real name with #check before typing it.

If your project is more than one release behind

These names were still aliases up to v4.35.0, where the compiler printed a deprecation warning with the replacement. From v4.36.0 it prints only unknown identifier. If you can, bump to v4.35.0 first, fix the warnings, then move to v4.36.0; the procedure is here. If you are already on v4.36.0 or later, this page and the lookup are the replacement table.