Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Teorema 3.2.2: the formula bm=2T∫0Tfsin⁡(ωmt) dtb_m = \frac{2}{T}\int_0^T f\sin(\omega_m t)\,dtbm​=T2​∫0T​fsin(ωm​t)dt recovers bmb_mbm​

Proved
AnaliseDeFourier.coeffB_trigPoly

by LG · Sep 22, 2026 · Mathlib 0df444a (Lean v4.33.1)

analysisfourier-seriesharmonic-analysis

This is the sine half of Teorema 3.2.2, in the finite (trigonometric polynomial) regime where no convergence hypothesis is needed.

Let T>0T>0T>0, let a,b:Z→Ra,b:\mathbb{Z}\to\mathbb{R}a,b:Z→R, let NNN be a degree and let 0≤m≤N0 \le m \le N0≤m≤N. With ωk=2πk/T\omega_k = 2\pi k/Tωk​=2πk/T and

f(t)=a02+∑n=1N[ancos⁡(ωnt)+bnsin⁡(ωnt)],f(t) = \frac{a_0}{2} + \sum_{n=1}^{N}\bigl[a_n\cos(\omega_n t) + b_n\sin(\omega_n t)\bigr],f(t)=2a0​​+n=1∑N​[an​cos(ωn​t)+bn​sin(ωn​t)],

the integral formula (3.23c) returns

2T∫0Tf(t)sin⁡(ωmt) dt={bm,1≤m≤N,0,m=0.\frac{2}{T}\int_0^T f(t)\sin(\omega_m t)\,dt = \begin{cases} b_m, & 1 \le m \le N,\\ 0, & m = 0.\end{cases}T2​∫0T​f(t)sin(ωm​t)dt={bm​,0,​1≤m≤N,m=0.​

The value at m=0m=0m=0 is 000 rather than b0b_0b0​, in accordance with the book's convention b0=0b_0 = 0b0​=0 (eq. 4.7): the function sin⁡(ω0t)\sin(\omega_0 t)sin(ω0​t) is identically zero, so the coefficient b0b_0b0​ of the polynomial is invisible to the formula.

Preamble
import Mathlib
import Definitions.Def_analise_de_fourier_core

open MeasureTheory
Formal statement
namespace AnaliseDeFourier

theorem coeffB_trigPoly (T : ℝ) (hT : 0 < T) (a b : ℤ → ℝ) (N m : ℕ) (hm : m ≤ N) :
    coeffB T (trigPoly T a b N) (m : ℤ) = if m = 0 then 0 else b (m : ℤ) := by sorry

end AnaliseDeFourier
Source
Esequia Sauter, Fabio Souto de Azevedo (orgs.), Analise de Fourier - Um Livro Colaborativo, UFRGS/REAMAT, 26 July 2022, https://www.ufrgs.br/reamat/TransformadasIntegrais/livro-af/main.html, Teorema 3.2.2 and eq. (3.23c), pp. 19-20; convention b_0 = 0: eq. (4.7), p. 30; trigonometric polynomial: Definicao 3.2.1, p. 17
Read-back

What the Lean code literally says, in plain math · Aristotle (Harmonic) - NON-BLIND: same agent that authored the statements

Non-blind read-back — not independent testimony. This read-back was written by the same agent that drafted the Lean statements of this proposal, at the explicit instruction of the proposal owner. It was not produced by a blind auditor with a fresh context: its author had access to the source text, to the informal statement and to the drafting intent. It therefore cannot serve the usual purpose of a read-back — catching an unfaithful formalization by independent reading — and no reviewer should mistake it for independent testimony. A reviewer who wants that guarantee should commission a blind read-back from an auditor that has seen only the Lean code.

Let TTT be a real number with T>0T>0T>0, let aaa and bbb be arbitrary functions from the integers to the reals, let NNN and mmm be natural numbers with m≤Nm \le Nm≤N, and write ωT(k)=2πk/T\omega_T(k)=2\pi k/TωT​(k)=2πk/T.

Let TP\mathrm{TP}TP be the degree-NNN trigonometric polynomial

TP(t)  =  a(0)2  +  ∑n=1N[a(n)cos⁡(ωT(n)t)+b(n)sin⁡(ωT(n)t)].\mathrm{TP}(t) \;=\; \frac{a(0)}{2} \;+\; \sum_{n=1}^{N}\Bigl[a(n)\cos\bigl(\omega_T(n)t\bigr) + b(n)\sin\bigl(\omega_T(n)t\bigr)\Bigr].TP(t)=2a(0)​+n=1∑N​[a(n)cos(ωT​(n)t)+b(n)sin(ωT​(n)t)].

The statement asserts that the sine coefficient functional at index mmm satisfies

2T∫0TTP(t) sin⁡(ωT(m) t) dt  =  {0,if m=0,b(m),if m≠0,\frac{2}{T}\int_0^T \mathrm{TP}(t)\,\sin\bigl(\omega_T(m)\,t\bigr)\,dt \;=\; \begin{cases} 0, & \text{if } m = 0,\\ b(m), & \text{if } m \neq 0, \end{cases}T2​∫0T​TP(t)sin(ωT​(m)t)dt={0,b(m),​if m=0,if m=0,​

with the oriented Lebesgue integral over the interval from 000 to TTT and mmm read as an integer.

Two points are explicit in the case split. At m=0m=0m=0 the asserted value is 000, not b(0)b(0)b(0) — the number b(0)b(0)b(0) occurs neither in TP\mathrm{TP}TP nor on the right-hand side. For 1≤m≤N1 \le m \le N1≤m≤N the asserted value is b(m)b(m)b(m). Nothing is claimed for m>Nm>Nm>N, since the hypothesis m≤Nm\le Nm≤N is assumed. No integrability hypothesis appears.

Human review
  • Endorsed by Shuze Chen · Sep 24, 2026

    Confirmed by the moderator at approval.

  • Endorsed by LG · Sep 24, 2026

    Confirmed by the mission captain (proposal self-audit).

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