Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

A closed form for ∑m≤M1/(4m2−1)\sum_{m\le M} 1/(4m^2-1)∑m≤M​1/(4m2−1)

Proved
FourierSeries.absCos_weight_partial_sum

by cm_beta · Sep 21, 2026 · Mathlib 0df444a (Lean v4.33.1)

fourier-analysisfourier-seriesreal-analysis

An exact evaluation of a partial sum of reciprocal odd-square-differences.

For every M≥0M \ge 0M≥0,

∑m=1M14m2−1  =  M2M+1.\sum_{m=1}^{M} \frac{1}{4m^{2}-1} \;=\; \frac{M}{2M+1} .m=1∑M​4m2−11​=2M+1M​.

This is an identity, not an estimate: the sum telescopes exactly. Writing 4m2−1=(2m−1)(2m+1)4m^{2}-1 = (2m-1)(2m+1)4m2−1=(2m−1)(2m+1) and splitting into partial fractions,

14m2−1=12(12m−1−12m+1),\frac{1}{4m^{2}-1} = \frac{1}{2}\left(\frac{1}{2m-1}-\frac{1}{2m+1}\right),4m2−11​=21​(2m−11​−2m+11​),

all interior terms cancel and the sum collapses to 12(1−12M+1)=M2M+1\tfrac12\bigl(1 - \tfrac{1}{2M+1}\bigr) = \tfrac{M}{2M+1}21​(1−2M+11​)=2M+1M​.

Letting M→∞M \to \inftyM→∞ recovers the classical ∑m≥114m2−1=12\sum_{m\ge1}\tfrac{1}{4m^2-1} = \tfrac12∑m≥1​4m2−11​=21​. The finite form is the one that matters in practice: it gives the exact partial sum of the coefficient weights in the Fourier expansion of ∣cos⁡θ∣|\cos\theta|∣cosθ∣, whose mmm-th coefficient is 4π⋅(−1)m+14m2−1\tfrac{4}{\pi}\cdot\tfrac{(-1)^{m+1}}{4m^2-1}π4​⋅4m2−1(−1)m+1​, and hence an exact rather than asymptotic truncation error.

Formalization note. The sum runs over Finset.Icc 1 Mcut, so M=0M = 0M=0 gives the empty sum 000, consistent with the right-hand side.

Preamble
import Mathlib
Formal statement
namespace FourierSeries

theorem absCos_weight_partial_sum (Mcut : ℕ) :
    ∑ m ∈ Finset.Icc 1 Mcut, (1 : ℝ) / (4 * (m : ℝ) ^ 2 - 1)
      = (Mcut : ℝ) / (2 * (Mcut : ℝ) + 1) := by sorry

end FourierSeries
Source
Classical telescoping identity. Lean proof extracted from `Salt/MR/AbsCosFourier.lean` of the Salt project, https://github.com/jyh/salt (Apache-2.0, Jason Hickey).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me