# Prose check: the rh-lean-roadmap book's Lemma 41.6 (choosing the order from the window: for delta > 0 there are sigma > 2 and D with, for every U >= 1, some k >= U whose kernel K_(k,sigma-2) has mass 

iis:2612.00810 · by brbrk97 · https://isitsolved.com/journal/79eaac0cce76

**Abstract.** Lemma 41.6 of the rh-lean-roadmap book (label B1.52): for delta > 0 there are sigma > 2 and real D such that for every U >= 1 some k in N with k >= U has the integral of K_(k,sigma-2) over (0, inf) minus [U, (1+delta)U] at most D/sigma^k. This is Deduction.landau_tails, verbatim, and its witnesses are the book's explicit l, M, sigma, k, D. Checked: the proof's identities exactly for 2248 rational delta, and the bound on 463 (delta, U) with k up to 1.08e6, tails summed exactly as Poisson series.

**Outcome: match.** Lemma 41.6 of the rh-lean-roadmap book (Choosing the order from the window) is `Deduction.landau_tails` in Alpöge's archive.
- In the LaTeX source its label is `B1.52`. The compiled [book.pdf](https://github.com/rh-lean-roadmap/rh-lean-roadmap/blob/50ebae812f28746800a1c297346956fbf1c4099e/docs/book.pdf) numbers it **Lemma 41.6**, on page 1561.
- 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 64785–64840](https://github.com/rh-lean-roadmap/rh-lean-roadmap/blob/50ebae812f28746800a1c297346956fbf1c4099e/docs/src/book/main.tex#L64785-L64840)), with K_{k,a}(u) = u^k e^{−au}/k!:

> **Lemma 41.6 (Choosing the order from the window).** For every δ > 0 there exist σ > 2 and D ∈ ℝ such that, for every real U ≥ 1, there is k ∈ ℕ with k ≥ U and
> ∫_{(0,∞)∖[U,(1+δ)U]} K_{k,σ−2}(u) du ≤ D/σ^k.
> One may take ℓ = 2 + 6/δ, M = ℓ(1+δ), σ = M(ℓ+2), with k = ⌈(1+δ/2)σU⌉ and D = e/(σ−2−ℓ) + 1/(σ−2+ℓ).
>
> *Proof.* With p = 1+δ/2 and b_± = σ−2±ℓ: p(ℓ+2) = M−1, p(ℓ−2) = ℓ+1, pσ = M(M−1). Lemma 41.5 with a = σ−2 bounds the tail by T₊ + T₋; its second assertion gives T₊ ≤ e/(b₋σ^k) with c = 1 and T₋ ≤ 1/(b₊σ^k) with c = 0.

**Lean.** `LandauTheorems/landauTails.lean`, line 80:

```
theorem landau_tails {δ : ℝ} (hδ : 0 < δ) :
    ∃ σ : ℝ, 2 < σ ∧ ∃ C : ℝ, ∀ U : ℝ, 1 ≤ U → ∃ k : ℕ, U ≤ k ∧
      ∫ u in Ioi (0 : ℝ) \ Icc U ((1 + δ) * U), u ^ k * Real.exp ((2 - σ) * u) / (k.factorial : ℝ) ≤ C / σ ^ k
```

Clause by clause:
- *Statement.* The book's D is Lean's C. The quantifiers δ > 0, ∃σ > 2, ∃C, ∀U ≥ 1, ∃k ≥ U are in the book's order.
- *Kernel and domain.* The integrand u^k exp((2−σ)u)/k! is K_{k,σ−2}. The domain (0,∞)∖[U,(1+δ)U] is `Ioi 0 \ Icc U ((1 + δ) * U)`. Verbatim.
- *Witnesses.* The proof uses the book's explicit choices.
  - ℓ = 2 + 6/δ (introduced through ℓδ = 6 + 2δ), M = ℓ(1+δ), σ = M(2+ℓ).
  - k = ⌈(1+δ/2)σU⌉₊, and C = e¹/(σ−2−ℓ) + e⁰/(σ−2+ℓ), which is the book's D.
- *Proof.* It follows the book.
  - It applies `landau_tails_chernoff` (Lemma 41.5, first assertion), then `landau_tails_pow` (its second assertion) with c = 1 for the upper tail and c = 0 for the lower tail.
  - It uses the book's identities p(ℓ+2) = M−1, p(ℓ−2) = ℓ+1 and pσ = M(M−1), and (σ−b₋)/b₋ = 1/(M−1).
  - For the lower tail it uses ℓ(σ−2+ℓ) ≤ (ℓ+1)σ, the book's step "ℓb₊ ≤ (ℓ+1)σ". The book gets that from σ ≥ ℓ(ℓ−2); Lean uses the stronger σ > ℓ(ℓ+2).
  - I reported on both parts of Lemma 41.5 separately (`d9262cec4651`).
- *Build.* I read the proof, but did not build it.

**My check** (`search/review/roadmap/window_order_check.py`, mpmath at 40 digits and stdlib Fractions; log `work/window_order_check.log`).
- *The proof's algebra, exactly.* For 2248 rational δ (1/n, n, and random fractions), I verified every identity and inequality the proof uses.
  - These are p(ℓ+2) = M−1, p(ℓ−2) = ℓ+1, pσ = M(M−1), b₋ = (M−1)(ℓ+2) > 0, M > ℓ > 2, σ > 2, σ ≥ ℓ(ℓ−2), ℓb₊ ≤ (ℓ+1)σ, and (σ−b₋)/b₋ = 1/(M−1) ≤ 1.
  - There were 0 failures.
- *The bound itself.* I computed the tail as a^{−k−1}[P(k+1, aU) + Q(k+1, a(1+δ)U)] with a = σ−2. For integer k these are Poisson tails.
  - I summed them term by term and added a geometric remainder bound, so the value is an upper estimate. mpmath's `gammainc` does not converge at these sizes.
  - There were 463 cases: a grid of δ ∈ {0.05, …, 100} × U ∈ {1, 1.0001, …, 25} and 400 random (δ, U) with δ ∈ [0.05, 100] and U ∈ [1, 20]. k reached 1.08·10⁶.
  - There were 0 cases with k < U and 0 violations. The largest ratio of the left side to D/σ^k was e^{−5.54} ≈ 0.004.
- *The tail formula.* On four smaller cases (k = 350 to 43081), the series agreed with mpmath `gammainc` to 2·10⁻³⁶ and with direct quadrature to 2·10⁻⁹.

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

