AFTD Auto-Formalizing Theoretical Domains

redistribution_damped_cosine_integral

theoremverified

For positive real damping a and any real frequency b, the exponentially damped cosine is absolutely integrable on the positive half-line and its integral is a/(a²+b²).

Statement

theorem redistribution_damped_cosine_integral
    (a b : ℝ) (ha : 0 < a) :
    IntegrableOn (fun u : ℝ => Real.exp (-a*u) * Real.cos (b*u)) (Set.Ioi 0) ∧
      (∫ u : ℝ in Set.Ioi 0, Real.exp (-a*u) * Real.cos (b*u)) =
        a / (a^2+b^2)
Source
Routine analytic helper for IN-251, equation13 in the proof of arXiv:2610.10995 Lemma4.2. This supplies an exponential-regularization route to the absolute cosine kernel integral, avoiding a separate conditional sine integral. It does not prove the main error bound or a new research result.
Verified
27 Oct 2026
Axioms
Classical.choiceQuot.soundpropext

The proof, explained

The proof expresses the damped cosine exp(-a*u) * cos(b*u) as the real part of the complex exponential exp(z*u) for z = -a + bi. Because a > 0, the real part of z is negative, ensuring that exp(z*u) is integrable on (0, ∞) with integral -1/z. Taking the real part commutes with integration since it is a continuous linear map, which reduces the calculation to Re(-1/z) = a / (a² + b²).

  1. The complex exponential function u ↦ exp(z * u) is integrable on (0, ∞), where z = -a + bi.

    Define z = -a + bi. Since a > 0, the real part of z is -a < 0. By integrableOn_exp_mul_complex_Ioi, any complex exponential with strictly negative real rate is integrable on (0, ∞).

    lines 8–11

    uses integrableOn_exp_mul_complex_Ioi

      set z : ℂ := (-(a:ℂ)) + (b:ℂ) * Complex.I with hz_def
      have hzre : z.re < 0 := by simp [hz_def, ha]
      have hf : MeasureTheory.IntegrableOn (fun u : ℝ => Complex.exp (z * u)) (Set.Ioi 0) :=
        integrableOn_exp_mul_complex_Ioi hzre 0
  2. For every real u, Re(exp(z * u)) = exp(-a * u) * cos(b * u).

    By Euler's formula (Complex.exp_re), the real part of exp(z * u) is exp(Re(z * u)) * cos(Im(z * u)). Since z * u = (-a + bi)u = -a*u + (b*u)i, its real part is -a*u and its imaginary part is b*u.

    lines 12–17

    uses Complex.exp_re

      have hcongr : ∀ u : ℝ, (Complex.exp (z * u)).re = Real.exp (-a*u) * Real.cos (b*u) := by
        intro u
        rw [Complex.exp_re]
        have h1 : (z * (u : ℂ)).re = -a*u := by simp [hz_def]
        have h2 : (z * (u : ℂ)).im = b*u := by simp [hz_def]
        rw [h1, h2]
  3. The function u ↦ Re(exp(z * u)) is integrable on (0, ∞).

    Taking the real part is a continuous real-linear map (Complex.reCLM). Composing it with the integrable function u ↦ exp(z * u) yields an integrable function by ContinuousLinearMap.integrable_comp.

    lines 18–19

    uses ContinuousLinearMap.integrable_comp, Complex.reCLM

      have hint : MeasureTheory.IntegrableOn (fun u : ℝ => (Complex.exp (z*u)).re) (Set.Ioi 0) :=
        ContinuousLinearMap.integrable_comp Complex.reCLM hf
  4. The damped cosine u ↦ exp(-a * u) * cos(b * u) is integrable on (0, ∞).

    Splitting the conjunction with `constructor`, the first goal requires integrability of the damped cosine. Since it coincides pointwise with Re(exp(z * u)), integrability transfers directly.

    lines 20–21

    uses Filter.Eventually.of_forall

      constructor
      · exact hint.congr (Filter.Eventually.of_forall (fun u => hcongr u))
  5. The integral of the damped cosine equals Re(∫₀^∞ exp(z * x) dx).

    By MeasureTheory.setIntegral_congr_fun and measurableSet_Ioi, the integral of the damped cosine equals that of Re(exp(z * x)). Because taking the real part is a continuous linear map (Complex.reCLM), it commutes with the integral by ContinuousLinearMap.integral_comp_comm.

    lines 22–26

    uses MeasureTheory.setIntegral_congr_fun, measurableSet_Ioi, ContinuousLinearMap.integral_comp_comm, Complex.reCLM

      · rw [← MeasureTheory.setIntegral_congr_fun (measurableSet_Ioi) (fun u _ => hcongr u)]
        have hcomm : ∫ x : ℝ in Set.Ioi 0, (Complex.exp (z * x)).re
            = (∫ x : ℝ in Set.Ioi 0, Complex.exp (z * x)).re := by
          simpa using ContinuousLinearMap.integral_comp_comm Complex.reCLM hf
        rw [hcomm]
  6. The integral evaluates to -(Re(z) / |z|²).

    By integral_exp_mul_complex_Ioi, the complex integral evaluates to -exp(z * 0) / z = -1 / z. The real part of -1 / z is -(Re(z) / |z|²), which is simplified by applying elementary rewriting rules for zero, division, and complex inversion.

    lines 27–29

    uses integral_exp_mul_complex_Ioi, Complex.ofReal_zero, mul_zero, Complex.exp_zero, neg_div, Complex.neg_re, one_div, Complex.inv_re

        rw [integral_exp_mul_complex_Ioi hzre 0]
        simp only [Complex.ofReal_zero, mul_zero, Complex.exp_zero, neg_div, Complex.neg_re,
          one_div, Complex.inv_re]
  7. The integral equals a / (a² + b²).

    By the definition of z, Re(z) = -a. Applying Complex.normSq_add_mul_I shows that |z|² = (-a)² + b² = a² + b². Substituting these values yields -(-a / (a² + b²)) = a / (a² + b²), which concludes the proof.

    lines 30–38

    uses Complex.normSq_add_mul_I

        have hzr : z.re = -a := by simp [hz_def]
        have hnorm : Complex.normSq z = a^2+b^2 := by
          rw [hz_def]
          have h := Complex.normSq_add_mul_I (-a) b
          rw [show ((-a:ℝ):ℂ) = -((a:ℝ):ℂ) by push_cast; ring] at h
          rw [h]
          ring
        rw [hzr, hnorm]
        ring
integrableOn_exp_mul_complex_Ioi
For any complex number a with negative real part, x ↦ exp(a * x) is integrable on the ray (c, ∞).
Complex.exp_re
The real part of exp(x) is exp(Re(x)) * cos(Im(x)).
ContinuousLinearMap.integrable_comp
Composing an integrable function with a continuous linear map preserves integrability.
Complex.reCLM
The projection from ℂ to ℝ mapping z to its real part, as a continuous real-linear map.
Filter.Eventually.of_forall
A property that holds everywhere holds almost everywhere (eventually with respect to the filter).
MeasureTheory.setIntegral_congr_fun
Two functions that agree pointwise on a measurable set have equal integrals over that set.
measurableSet_Ioi
The open interval (a, ∞) is a measurable set.
ContinuousLinearMap.integral_comp_comm
A continuous linear map commutes with Bochner integration.
integral_exp_mul_complex_Ioi
For a complex number a with negative real part, the integral of exp(a * x) over (c, ∞) equals -exp(a * c) / a.
Complex.ofReal_zero
The real number 0 coerced to the complex numbers is 0.
mul_zero
Multiplying any element by zero yields zero.
Complex.exp_zero
The complex exponential of 0 is 1.
neg_div
The quotient -b / a equals -(b / a).
Complex.neg_re
The real part of -z is -Re(z).
one_div
Division of 1 by a equals the multiplicative inverse a⁻¹.
Complex.inv_re
The real part of z⁻¹ is Re(z) / |z|².
Complex.normSq_add_mul_I
The squared norm of x + y * I is x² + y².

Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.

Lean source view module on GitHub

open MeasureTheorytheorem redistribution_damped_cosine_integral    (a b : ℝ) (ha : 0 < a) :    IntegrableOn (fun u : ℝ => Real.exp (-a*u) * Real.cos (b*u)) (Set.Ioi 0) ∧      (∫ u : ℝ in Set.Ioi 0, Real.exp (-a*u) * Real.cos (b*u)) =        a / (a^2+b^2) := by  set z : ℂ := (-(a:ℂ)) + (b:ℂ) * Complex.I with hz_def  have hzre : z.re < 0 := by simp [hz_def, ha]  have hf : MeasureTheory.IntegrableOn (fun u : ℝ => Complex.exp (z * u)) (Set.Ioi 0) :=    integrableOn_exp_mul_complex_Ioi hzre 0  have hcongr : ∀ u : ℝ, (Complex.exp (z * u)).re = Real.exp (-a*u) * Real.cos (b*u) := by    intro u    rw [Complex.exp_re]    have h1 : (z * (u : ℂ)).re = -a*u := by simp [hz_def]    have h2 : (z * (u : ℂ)).im = b*u := by simp [hz_def]    rw [h1, h2]  have hint : MeasureTheory.IntegrableOn (fun u : ℝ => (Complex.exp (z*u)).re) (Set.Ioi 0) :=    ContinuousLinearMap.integrable_comp Complex.reCLM hf  constructor  · exact hint.congr (Filter.Eventually.of_forall (fun u => hcongr u))  · rw [← MeasureTheory.setIntegral_congr_fun (measurableSet_Ioi) (fun u _ => hcongr u)]    have hcomm : ∫ x : ℝ in Set.Ioi 0, (Complex.exp (z * x)).re        = (∫ x : ℝ in Set.Ioi 0, Complex.exp (z * x)).re := by      simpa using ContinuousLinearMap.integral_comp_comm Complex.reCLM hf    rw [hcomm]    rw [integral_exp_mul_complex_Ioi hzre 0]    simp only [Complex.ofReal_zero, mul_zero, Complex.exp_zero, neg_div, Complex.neg_re,      one_div, Complex.inv_re]    have hzr : z.re = -a := by simp [hz_def]    have hnorm : Complex.normSq z = a^2+b^2 := by      rw [hz_def]      have h := Complex.normSq_add_mul_I (-a) b      rw [show ((-a:ℝ):ℂ) = -((a:ℝ):ℂ) by push_cast; ring] at h      rw [h]      ring    rw [hzr, hnorm]    ring
See it in the graphDiscuss this resultChallenge it