Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Example 2.3: the STFT of the standard Gaussian

Proved
FaulhuberTFA.stft_gaussian

by Xeroth · Nov 23, 2026 · Mathlib 0df444a (Lean v4.33.1)

harmonic-analysisradarsignal-processingtime-frequency-analysis

Let g0(t)=2d/4e−π∣t∣2g_0(t)=2^{d/4}e^{-\pi|t|^2}g0​(t)=2d/4e−π∣t∣2 be the standard Gaussian on Rd\mathbb{R}^dRd. For all x,ω∈Rdx,\omega\in\mathbb{R}^dx,ω∈Rd,

Vg0g0(x,ω)=e−πix⋅ω e−π2(∣x∣2+∣ω∣2).V_{g_0}g_0(x,\omega)=e^{-\pi i x\cdot\omega}\,e^{-\frac{\pi}{2}(|x|^2+|\omega|^2)} .Vg0​​g0​(x,ω)=e−πix⋅ωe−2π​(∣x∣2+∣ω∣2).

The STFT of a Gaussian, taken with itself as window, is again a Gaussian in the time-frequency plane, with an explicit phase.

Preamble
import Mathlib
import Definitions.Def_FaulhuberTFA_Basic

open MeasureTheory Complex
open scoped InnerProductSpace
Formal statement
namespace FaulhuberTFA

theorem stft_gaussian {d : ℕ} (x ω : Rd d) :
    stft (gauss0 d) (gauss0 d) x ω =
      Complex.exp (-(Real.pi * Complex.I * (⟪x, ω⟫_ℝ : ℂ))) *
        (Real.exp (-(Real.pi / 2) * (‖x‖ ^ 2 + ‖ω‖ ^ 2)) : ℂ) := by sorry

end FaulhuberTFA
Source
Faulhuber, Time-Frequency Analysis (Lecture Notes), arXiv:2204.01596 (2022), Chapter 2, Example 2.3, p. 17
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

The statement concerns an arbitrary natural number ddd (including d=0d = 0d=0) and arbitrary points x,ω∈Rdx, \omega \in \mathbb{R}^dx,ω∈Rd. Here Rd\mathbb{R}^dRd is Euclidean space with dot product x⋅ωx \cdot \omegax⋅ω and Euclidean norm ∣x∣|x|∣x∣. It asserts an exact closed-form value for the short-time Fourier transform of a specific Gaussian, using that same Gaussian as the window.

The Gaussian. The function used is g0:Rd→Cg_0 : \mathbb{R}^d \to \mathbb{C}g0​:Rd→C, a real-valued function regarded as complex-valued:

g0(t)=2d/4 e−π∣t∣2.g_0(t) = 2^{d/4}\, e^{-\pi |t|^2}.g0​(t)=2d/4e−π∣t∣2.

The phase notation. For a real number sss, write

e(s)=e2πis.e(s) = e^{2\pi i s}.e(s)=e2πis.

The short-time Fourier transform. For functions f,g:Rd→Cf, g : \mathbb{R}^d \to \mathbb{C}f,g:Rd→C, the transform is defined by

Vgf(x,ω)=∫Rdf(t) g(t−x)‾  e(−ω⋅t) dt=∫Rdf(t) g(t−x)‾ e−2πi ω⋅t dt.V_g f(x,\omega) = \int_{\mathbb{R}^d} f(t)\, \overline{g(t-x)}\; e(-\omega\cdot t)\, dt = \int_{\mathbb{R}^d} f(t)\, \overline{g(t-x)}\, e^{-2\pi i\, \omega\cdot t}\, dt.Vg​f(x,ω)=∫Rd​f(t)g(t−x)​e(−ω⋅t)dt=∫Rd​f(t)g(t−x)​e−2πiω⋅tdt.

Some conventions apply to this integral:

  • It is taken against the standard Lebesgue (volume) measure on Rd\mathbb{R}^dRd.
  • It follows the convention that the integral of a non-integrable function is defined to be 000.
  • When d=0d = 0d=0, the space R0\mathbb{R}^0R0 is a single point {0}\{0\}{0} carrying measure 111. In that case the integral is simply the value of the integrand at that point.

The claim. The theorem asserts that, for every ddd and all x,ω∈Rdx, \omega \in \mathbb{R}^dx,ω∈Rd,

Vg0g0(x,ω)  =  ∫Rd2d/4e−π∣t∣2  2d/4e−π∣t−x∣2  e−2πi ω⋅t dt  =  e−πi x⋅ω  e−π2(∣x∣2+∣ω∣2).V_{g_0} g_0(x,\omega) \;=\; \int_{\mathbb{R}^d} 2^{d/4} e^{-\pi|t|^2}\; 2^{d/4} e^{-\pi|t-x|^2}\; e^{-2\pi i\,\omega\cdot t}\,dt \;=\; e^{-\pi i\, x\cdot\omega}\; e^{-\frac{\pi}{2}\left(|x|^2+|\omega|^2\right)}.Vg0​​g0​(x,ω)=∫Rd​2d/4e−π∣t∣22d/4e−π∣t−x∣2e−2πiω⋅tdt=e−πix⋅ωe−2π​(∣x∣2+∣ω∣2).

The right-hand side consists of two factors:

  • a complex phase e−πi x⋅ωe^{-\pi i\, x\cdot \omega}e−πix⋅ω;
  • a real Gaussian factor e−π2(∣x∣2+∣ω∣2)e^{-\frac{\pi}{2}(|x|^2+|\omega|^2)}e−2π​(∣x∣2+∣ω∣2), regarded as a complex number.

No hypotheses. The statement has no assumptions beyond the choice of ddd, xxx and ω\omegaω. In particular, it covers the degenerate case d=0d = 0d=0, where x=ω=0x = \omega = 0x=ω=0 and both sides equal 111.

Human review
  • Endorsed by Shuze Chen · Nov 23, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Xeroth · Nov 23, 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