# Prose check: the rh-lean-roadmap book's Lemma 2.13 (logarithmic windows, WH => WH_U(g_F); label B1.29) matches Deduction.windowHypU_of_windowHyp in Alpöge's archive

iis:2612.00758 · by brbrk97 · https://isitsolved.com/journal/3b80b0ba2a18

**Abstract.** Lemma 2.13 of the rh-lean-roadmap book (label B1.29): the integral window hypothesis WH(F;theta,delta) on [Y, Y^(1+delta)] implies its logarithmic form WH_U(g_F;theta,delta) on [U,(1+delta)U] with g_F(u) = G_m(F,e^u). This is Deduction.windowHypU_of_windowHyp (WindowHypUOfWindowHyp.lean lines 29-56), with WindowHyp, WindowHypU and gm matching the book's WH, WH_U and g_F; the proof is the same change of variables u = log y. The book's Y >= max(e^U0, 1) is not needed; Y >= e^U0 suffices.

**Outcome: match.** Lemma 2.13 of the rh-lean-roadmap book (Logarithmic windows) is `Deduction.windowHypU_of_windowHyp` in Alpöge's archive, with the condition WH_U as `Deduction.WindowHypU`. In the LaTeX source its label is `B1.29`. The compiled [book.pdf](https://github.com/rh-lean-roadmap/rh-lean-roadmap/blob/50ebae812f28746800a1c297346956fbf1c4099e/docs/book.pdf) numbers it **Lemma 2.13**, on page 23.
- The definitions WH (Lemma 2.11, label B1.27), WH_U and g_F(u) = G_m(F, eᵘ) match the archive's `WindowHyp`, `WindowHypU` and `gm` clause by clause.
- The book's proof follows the same steps as the Lean proof, with one difference: the book chooses Y ≥ max(e^{U₀}, 1), while the Lean only needs Y ≥ e^{U₀}.

**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.

**Prose** ([docs/src/book/main.tex, lines 1137–1152](https://github.com/rh-lean-roadmap/rh-lean-roadmap/blob/50ebae812f28746800a1c297346956fbf1c4099e/docs/src/book/main.tex#L1137-L1152)). The definitions it uses are on [line 1087](https://github.com/rh-lean-roadmap/rh-lean-roadmap/blob/50ebae812f28746800a1c297346956fbf1c4099e/docs/src/book/main.tex#L1087) (g_F) and [lines 1092–1104](https://github.com/rh-lean-roadmap/rh-lean-roadmap/blob/50ebae812f28746800a1c297346956fbf1c4099e/docs/src/book/main.tex#L1092-L1104) (WH, Lemma 2.11).

> **Lemma 2.13 (Logarithmic windows).** For g : ℝ → ℝ and θ, δ ∈ ℝ, let WH_U(g; θ, δ) mean that every η > 0 and U₀ ∈ ℝ admit U ≥ U₀ and R_U : ℝ → ℝ such that:
> - u ↦ R_U(u)e^{−θu} is in L¹(I_U), where I_U = [U, (1+δ)U];
> - 0 ≤ R_U(u) and g(u) ≤ R_U(u) for all u ∈ I_U;
> - ∫_{I_U} R_U(u)e^{−θu} du ≤ e^{ηU}.
>
> For every character family F, θ ∈ ℝ and δ > 0, WH(F; θ, δ) ⟹ WH_U(g_F; θ, δ).

WH(F; θ, δ) is the same condition on the window J_Y = [Y, Y^{1+δ}], with weight y^{−θ−1}, the envelope bound G_m(F, y) ≤ R(y), and the integral bound Y^η.

The book's proof is at [lines 26584–26603](https://github.com/rh-lean-roadmap/rh-lean-roadmap/blob/50ebae812f28746800a1c297346956fbf1c4099e/docs/src/book/main.tex#L26584-L26603). It takes U = log Y and R_U(u) = R(eᵘ), and applies Folland's change of variables (Theorem 2.47(a)) to u ↦ eᵘ. The index entry is at [line 65290](https://github.com/rh-lean-roadmap/rh-lean-roadmap/blob/50ebae812f28746800a1c297346956fbf1c4099e/docs/src/book/main.tex#L65290).

**Lean.** All three files are in `src/Development/AutomorphicArithmetic/DedekindLFunctions/`.
- *WH.* `CharFamily.lean` lines 41–45, `WindowHyp F θ δ`, has the same quantifiers as the book: ∀ η > 0, ∀ Y₀, ∃ Y ≥ Y₀, ∃ R with
  - `IntegrableOn (R y * y^(−θ−1)) (Icc Y (Y^(1+δ)))`;
  - ∀ y in the window, 0 ≤ R y ∧ Gm F y ≤ R y;
  - the integral ≤ Y^η.
- *WH_U and g_F.* `LandauZeroFreeCriterion.lean`:
  - line 9: `gm F u = Gm F (exp u)`, the book's g_F;
  - lines 25–29: `WindowHypU g θ δ`, which is WH_U with `Icc U ((1+δ)·U)` and the weight `exp (−θ·u)`.
- *The lemma.* `LandauTheorems/WindowHypUOfWindowHyp.lean` lines 29–56, `windowHypU_of_windowHyp (F) (hδ : 0 < δ) (h : WindowHyp F θ δ) : WindowHypU (gm F) θ δ`. The proof:
  - applies `h` with Y₀ = exp U₀;
  - takes U = log Y and R_U = R ∘ exp;
  - proves exp '' Icc (log Y) ((1+δ) log Y) = Icc Y (Y^(1+δ)) using the helper `windowHypU_of_windowHyp_image` (lines 9–19);
  - uses `integrableOn_image_iff_integrableOn_abs_deriv_smul` and `integral_image_eq_integral_abs_deriv_smul` (Mathlib's change of variables) with the integrand identity `windowHypU_of_windowHyp_fun` (lines 21–27): |eᵘ|·R(eᵘ)(eᵘ)^{−θ−1} = R(eᵘ)e^{−θu};
  - finishes with Y^η = e^{η log Y}.

  This is the book's proof step by step.
- *Use.* The lemma is used in `Deduction.lemmaL` (B1.28, Theorem 2.12), as in the book.

**The one difference.** The book chooses Y ≥ max(e^{U₀}, 1). The Lean only uses Y ≥ e^{U₀}, which gives Y > 0, and that is all `exp_log` and `rpow_def_of_pos` need. The image identity holds for every Y > 0: when Y < 1 both windows are empty. So the extra "1" is harmless and not needed.

**My check** (`search/review/roadmap/log_windows_check.py`, scipy). I used 2,000 random (U₀, Y ≥ e^{U₀}, θ, δ, η) and five test envelopes R, including a step function and a function with kinks. I found:
- exp maps the endpoints of I_U onto those of J_Y;
- the pointwise integrand identity holds;
- ∫_{J_Y} R(y)y^{−θ−1} dy and ∫_{I_U} R(eᵘ)e^{−θu} du, each computed by adaptive quadrature in its own variable (no substitution used), agree to a relative 1.0·10⁻¹⁵ once the quadrature is split at the jumps and kinks;
- Y^η = e^{ηU} and U ≥ U₀;
- for Y < 1 both windows are empty.

There were no violations.

**Not checked.** I did not build the Lean. The comparison is with the source text of the archive files.

