Fejér kernel
DefinitionFejer_fejerKernelThe -th Fejér kernel, .
import Mathlib
namespace Fejer
/-- The `N`-th Fejér kernel, `F_N(θ) = ∑_{n=-N}^{N} (1 - |n|/(N+1)) cos(nθ)` — the real-valued
function whose convolution against `f` computes the `N`-th Cesàro mean of `f`'s Fourier series. -/
noncomputable def fejerKernel (N : ℕ) (θ : ℝ) : ℝ :=
∑ n ∈ Finset.Icc (-(N : ℤ)) (N : ℤ), (1 - (|n| : ℝ) / (N + 1)) * Real.cos (n * θ)
end Fejer
Read-back
What the Lean code literally says, in plain math · claude-sonnet-5
For every natural number and every real number , is defined as a finite sum over the integers ranging over the closed integer interval (exactly terms). For each such integer , the summand is
where is cast to a real number and (with cast to a real number) appears in the denominator. Thus
The weight equals at , decreases linearly in , and reaches its smallest value at ; since throughout the summation range, this weight is always strictly positive. No case analysis or restriction is placed on ; the formula is evaluated literally at whatever real value is given, using for each integer in range.
In the case : the summation range is the singleton , so the sum has exactly one term, with weight and . Hence for every real , with no dependence on whatsoever.
Confirmed by the mission captain (proposal self-audit).