Commit 2026-11-20 07:38 92b2a2cb
View on Github →chore(Analysis/Fourier/AddCircle): move the Fourier series API into the AddCircle namespace (#45629)
The declarations about the monomials fourier n, Fourier coefficients and the Fourier basis of AddCircle T lived in the root namespace (this dates back to when this was the only Fourier theory in Mathlib). By now, some of the names clash with declarations in various namespaces, e.g., fourier_zero, fourier_neg and fourier_add clash with FourierTransform.fourier_zero etc., and fourier with the class field FourierTransform.fourier. This PR moves all 61 of these declarations into the namespace AddCircle`. A few are renamed on the way for consistency:
fourierCoeff.add,.sum,.const_smul,.const_mul→fourierCoeff_addetc.;fourierCoeffOn.const_smul,.const_mul→fourierCoeffOn_const_smul,fourierCoeffOn_const_mul;has_pointwise_sum_fourier_series_of_summable→hasSum_fourier_series_apply_of_summable(cf.UnitAddTorus.hasSum_mFourier_series_apply_of_summable);has_antideriv_at_fourier_neg→hasDerivAt_div_mul_fourier_neg. The old names are deprecated aliases. This also addsAddCircle.fourier_subfor completeness, and updates the uses in Mathlib and the references indocs/*.yaml. Note that the clashes will persist until the deprecated names are removed; in particular, occurrences at many use sites need to be qualified now until the removal has happened. Unfortunately, this makes for a fairly large diff. See #mathlib4 > AddCircle Fourier declarations in the root namespace @ 💬. :robot: Claude Code (Opus 5.5) was used to set up this PR.