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_add etc.;
  • 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 adds AddCircle.fourier_sub for completeness, and updates the uses in Mathlib and the references in docs/*.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.

Estimated changes

added theorem AddCircle.fourier_add'
added theorem AddCircle.fourier_add
added theorem AddCircle.fourier_neg'
added theorem AddCircle.fourier_neg
added theorem AddCircle.fourier_norm
added theorem AddCircle.fourier_one
added theorem AddCircle.fourier_sub
added theorem AddCircle.fourier_zero
deleted theorem coeFn_fourierLp
deleted theorem coe_fourierBasis
deleted theorem differentiableAt_fourier
deleted theorem differentiable_fourier
deleted def fourier
deleted def fourierBasis
deleted theorem fourierBasis_repr
deleted theorem fourierCoeff.add
deleted theorem fourierCoeff.const_mul
deleted theorem fourierCoeff.const_smul
deleted theorem fourierCoeff.sum
deleted def fourierCoeff
deleted theorem fourierCoeffOn.const_mul
deleted theorem fourierCoeffOn.const_smul
deleted def fourierCoeffOn
deleted theorem fourierCoeffOn_congr_ae
deleted theorem fourierCoeff_congr_ae
deleted theorem fourierCoeff_const
deleted theorem fourierCoeff_eq_of_hasSum
deleted theorem fourierCoeff_fourier
deleted theorem fourierCoeff_liftIco_eq
deleted theorem fourierCoeff_liftIoc_eq
deleted theorem fourierCoeff_toLp
deleted def fourierSubalgebra
deleted theorem fourierSubalgebra_coe
deleted theorem fourier_add'
deleted theorem fourier_add
deleted theorem fourier_apply
deleted theorem fourier_coe_apply'
deleted theorem fourier_coe_apply
deleted theorem fourier_eval_zero
deleted theorem fourier_neg'
deleted theorem fourier_neg
deleted theorem fourier_norm
deleted theorem fourier_one
deleted theorem fourier_zero'
deleted theorem fourier_zero
deleted theorem hasDerivAt_fourier
deleted theorem hasDerivAt_fourier_neg
deleted theorem hasSum_fourier_series_L2
deleted theorem hasSum_sq_fourierCoeff
deleted theorem hasSum_sq_fourierCoeffOn
deleted theorem orthonormal_fourier
deleted theorem tsum_sq_fourierCoeff
deleted theorem tsum_sq_fourierCoeffOn