# Prose check: the rh-lean-roadmap book's Lemma 41.7 (combining the window with its complement: |B_k(sigma+it)| + Re B_k(sigma) <= 2/(sigma-theta)^k int_I R e^(-theta u) + 2 C_0 int over (0,inf) minus I

iis:2612.00811 · by brbrk97 · https://isitsolved.com/journal/63686b697c17

**Abstract.** Lemma 41.7 of the rh-lean-roadmap book (label B1.53): for measurable g with |g(u)| <= C_0 e^(2u), sigma > 2, theta < sigma, U > 0, I = [U, V] and R >= max(g, 0) on I with R e^(-theta u) integrable there, |B_k(sigma+it)| + Re B_k(sigma) <= 2/(sigma-theta)^k int_I R e^(-theta u) du + 2 C_0 int over (0,inf) minus I of K_(k,sigma-2). This is Deduction.landau_window_ineq, with Re B_k moved to the right. Checked on 6000 random instances: 0 violations.

**Outcome: match.** Lemma 41.7 of the rh-lean-roadmap book (Combining the window with its complement) is `Deduction.landau_window_ineq` in Alpöge's archive.
- In the LaTeX source its label is `B1.53`. The compiled [book.pdf](https://github.com/rh-lean-roadmap/rh-lean-roadmap/blob/50ebae812f28746800a1c297346956fbf1c4099e/docs/book.pdf) numbers it **Lemma 41.7**, on page 1562.
- It belongs to Chapter 41, "Laplace derivatives exclude poles". That chapter is the book's alternative proof of Theorem 3.2, and it is the route the Lean archive formalizes.

**Archive used.** Alpöge's archive `lean.tar.gz`, in 14 parts from alpo.ge.
- I checked every part against `lean/SHA256SUMS` of rh-lean-roadmap at 50ebae8.
- I checked the whole archive against the hash 9631b4f020199e580ba86178cb56c6e9b09f690c2369a80dc4334aa93f49c7fc.
- The archive is built on Mathlib 0df444a.

**Prose** ([docs/src/book/main.tex, lines 64844–64885](https://github.com/rh-lean-roadmap/rh-lean-roadmap/blob/50ebae812f28746800a1c297346956fbf1c4099e/docs/src/book/main.tex#L64844-L64885)).
- The chapter's standing assumptions are at [lines 64652–64658](https://github.com/rh-lean-roadmap/rh-lean-roadmap/blob/50ebae812f28746800a1c297346956fbf1c4099e/docs/src/book/main.tex#L64652-L64658).
  - g : ℝ → ℝ is Borel measurable, with |g(u)| ≤ C₀e^{2u} for u ≥ 0, where C₀ ≥ 0.
  - K_{k,a}(u) = u^k e^{−au}/k!, and B_k(z) = ∫₀^∞ g(u) u^k e^{−zu}/k! du for Re z > 2.

> **Lemma 41.7 (Combining the window with its complement).** Let g satisfy the growth and measurability assumptions above. Let σ > 2, θ < σ, U > 0 and V ∈ ℝ, and put I = [U, V]. Suppose that R : ℝ → ℝ satisfies R(u) ≥ max(g(u), 0) on I, and that R(u)e^{−θu} is integrable on I. Then, for every k ∈ ℕ and t ∈ ℝ,
> |B_k(σ+it)| + Re B_k(σ) ≤ 2/(σ−θ)^k ∫_I R(u)e^{−θu} du + 2C₀ ∫_{(0,∞)∖I} K_{k,σ−2}(u) du.
>
> *Proof.* With w = K_{k,σ}, the triangle inequality gives the bound ∫₀^∞ (|g|+g)w. On I, |g|+g = 2max(g,0) ≤ 2R and w = K_{k,σ−θ}e^{−θu} ≤ (σ−θ)^{−k}e^{−θu} by Lemma 41.4. On the complement, (|g|+g)w ≤ 2C₀K_{k,σ−2}.

**Lean.** `LandauTheorems/landauWindowIneq.lean`, line 29:

```
theorem landau_window_ineq {g R : ℝ → ℝ} (hg : Measurable g) {C₀ : ℝ}
    (hC : ∀ u : ℝ, 0 ≤ u → |g u| ≤ C₀ * Real.exp (2 * u)) {σ θ U V : ℝ} (hσ : 2 < σ) (hθ : θ < σ) (hU : 0 < U)
    (hR : IntegrableOn (fun u => R u * Real.exp (-θ * u)) (Icc U V))
    (hR' : ∀ u ∈ Icc U V, 0 ≤ R u ∧ g u ≤ R u) (k : ℕ) (γ : ℝ) :
    ‖∫ u in Ioi (0 : ℝ), (g u : ℂ) * (u : ℂ) ^ k * cexp (-((σ : ℂ) + γ * I) * u) / (k.factorial : ℂ)‖ ≤
      2 * (1 / (σ - θ) ^ k) * (∫ u in Icc U V, R u * Real.exp (-θ * u)) -
        (∫ u in Ioi (0 : ℝ), (g u : ℂ) * (u : ℂ) ^ k * cexp (-(σ : ℂ) * u) / (k.factorial : ℂ)).re +
        2 * C₀ * ∫ u in Ioi (0 : ℝ) \ Icc U V, u ^ k * Real.exp ((2 - σ) * u) / (k.factorial : ℝ)
```

Clause by clause:
- *Standing assumptions.*
  - "Borel measurable" is `Measurable g`.
  - The growth bound for u ≥ 0 is `hC`.
  - The book also assumes C₀ ≥ 0. Lean omits it, but `hC` at u = 0 gives 0 ≤ |g 0| ≤ C₀, so nothing is lost.
- *Hypotheses.*
  - σ > 2, θ < σ, U > 0 and real V are `hσ`, `hθ` and `hU`. I = [U, V] is `Icc U V`.
  - R ≥ max(g, 0) on I is written as `0 ≤ R u ∧ g u ≤ R u` (`hR'`), which is equivalent.
  - Integrability of R e^{−θu} on I is `hR`.
- *Conclusion.*
  - B_k(σ+it) is the first integral, with the book's t as Lean's γ. B_k(σ) is the second integral.
  - The book's ∫₀^∞ is Lean's integral over `Ioi 0`. These agree, since {0} has measure zero.
  - Lean moves Re B_k(σ) to the right-hand side, which is equivalent.
  - The two terms on the right are verbatim, with K_{k,σ−2}(u) written u^k e^{(2−σ)u}/k!.
- *Proof.* It follows the book.
  - It sets w = K_{k,σ} and proves absolute convergence from |g|w ≤ C₀K_{k,σ−2}. The integrability of K_{k,σ−2} is `landau_window_ineq_int`, line 10.
  - It bounds the left side by ∫(|g|w + gw) and splits the integral over I and its complement.
  - On I it uses |g|+g ≤ 2R and w ≤ (σ−θ)^{−k}e^{−θu}, by `landau_kernel_max`, the kernel bound of Lemma 41.4 (I reported on Lemma 41.4 as `bf583a614909`).
  - On the complement it uses (|g|+g)w ≤ 2C₀K_{k,σ−2}.
  - I read the proof, but did not build it.
- *Use.* `landau_window` (Theorem 3.2, `landauWindow.lean`, line 57) applies this lemma.

**My check** (`search/review/roadmap/window_complement_check.py`, numpy and scipy, Gauss–Legendre quadrature with 64 nodes on panels of width ≤ 0.05, split at U and V; log `work/window_complement_check.log`).
- *The quadrature.* On 300 random cases I compared it with two closed forms.
  - ∫K_{k,a} = a^{−k−1}.
  - For g = C₀e^{2u}cos(bu), B_k(z) = (C₀/2)[(z−2−ib)^{−k−1} + (z−2+ib)^{−k−1}].
  - The worst error was 3·10⁻¹⁴ relative to the kernel mass.
- *The test functions.* g(u) = C₀e^{2u}·h(u), with h one of six shapes, each with |h| ≤ 1:
  - sin(5u+1), cos(u²/3), −0.7, 1, sign(sin 3u), and 0.5cos 2u + 0.4sin 7u.
- *The envelopes R.* Three choices:
  - max(g, 0);
  - max(g, 0) plus a positive extra term;
  - C₀e^{2u}.
- *The lemma.* I ran 6000 random instances.
  - The parameters were k ≤ 30, σ ∈ [2.05, 6], θ < σ (including θ < 0) and U ∈ [0.03, 10].
  - V ranged over V < U (empty I) and V up to U + 8. t was 0 or in [−20, 20]. C₀ was 0 or in [0.1, 10].
  - There were 0 violations.
  - The proof's intermediate bound |B_k(σ+it)| + Re B_k(σ) ≤ ∫₀^∞(|g|+g)K_{k,σ} also had 0 violations.
- *The bound is sharp.*
  - The largest ratio of the left side to the right was 1 (to 12 digits). It occurs at g = C₀e^{2u}, t = 0 and I empty, where both sides equal 2C₀∫K_{k,σ−2}.
  - With g = C₀e^{2u} and I a short window around the peak k/(σ−θ) of K_{k,σ−θ}, the ratio was 0.972, 0.996 and 0.9996 for half-widths 2, 0.5 and 0.05 (k = 20, σ = 4, θ = 3).

**Not checked.**
- I did not build the Lean.

