AFTD Auto-Formalizing Theoretical Domains

energy_filter_fourier_entropy_constant

def

For a real sequence a on Z, energy_filter_fourier_entropy_constant a is the integral over [0, 2 pi] of w(theta) log w(theta) dtheta / (2 pi), where w(theta) = |A(theta)|^2 / S2(a) and 0 log 0 = 0.

Statement

noncomputable def energy_filter_fourier_entropy_constant (a : ℤ → ℝ) : ℝ
Defined in
arXiv:2405.02158
Verified
05 Nov 2026
Axioms
none listed
Built on 2
  • energy_filter_fourier_symbolFor a sequence a : ℤ → ℝ and real θ, energy_filter_fourier_symbol a θ is the Fourier symbol A(θ) = ∑' j : ℤ, (a j : ℂ) * Complex.exp…
  • energy_filter_sequence_lattice_s2For a real sequence a on Z, energy_filter_sequence_lattice_s2 a is the sum of (a j)^2 over all j in Z.
Used by 1

Read back from the Lean

The definition energy_filter_fourier_entropy_constant maps a sequence $a : \mathbb{Z} \to \mathbb{R}$ to the real number given by: $$\frac{1}{2\pi} \int_0^{2\pi} f(\theta) \, d\theta$$ where: - $S_2 = \sum_{j \in \mathbb{Z}} (a(j))^2$ - For each $\theta \in \mathbb{R}$, $w(\theta) = \frac{1}{S_2} \left\| \sum_{j \in \mathbb{Z}} a(j) e^{i j \theta} \right\|^2$ - $f(\theta) = \begin{cases} 0 & \text{if } w(\theta) = 0 \\ w(\theta) \ln(w(\theta)) & \text{otherwise} \end{cases}$

Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.

Lean source view module on GitHub

/-- The filter-dependent Fourier entropy constant integral_0^(2 pi) w(theta) log w(theta) dtheta / (2 pi). -/
noncomputable def energy_filter_fourier_entropy_constant (a : ℤ → ℝ) : ℝ :=
  let S2 := energy_filter_sequence_lattice_s2 a
  (1 / (2 * Real.pi)) * ∫ θ in (0 : ℝ)..(2 * Real.pi),
    let w := ‖energy_filter_fourier_symbol a θ‖^2 / S2
    if w = 0 then 0 else w * Real.log w
See it in the graphDiscuss this resultChallenge it