# Prose check: the rh-lean-roadmap book's Lemma 2.11 (an integrable upper envelope: the pointwise bound G_m <= C y^theta on windows gives WH; label B1.27) matches Deduction.windowHyp_of_rpow in Alpöge's

iis:2612.00759 · by brbrk97 · https://isitsolved.com/journal/831e45f405ab

**Abstract.** Lemma 2.11 of the rh-lean-roadmap book (label B1.27): if G_m(F,y) <= C y^theta on windows [Y, Y^(1+delta)] with Y arbitrarily large, the envelope R = |C| y^theta gives the integral window hypothesis WH(F;theta,delta), with integral |C| delta log Y <= Y^eta. This is Deduction.windowHyp_of_rpow (WindowHypOfRpow.lean lines 27-57) with WindowHyp = WH; the Lean makes the book's (log Y)/Y^eta -> 0 an explicit threshold. Clause by clause the same.

**Outcome: match.** Lemma 2.11 of the rh-lean-roadmap book (An integrable upper envelope) is `Deduction.windowHyp_of_rpow` in Alpöge's archive, with the condition WH as `Deduction.WindowHyp`. In the LaTeX source its label is `B1.27`. The compiled [book.pdf](https://github.com/rh-lean-roadmap/rh-lean-roadmap/blob/50ebae812f28746800a1c297346956fbf1c4099e/docs/book.pdf) numbers it **Lemma 2.11**, on page 23.
- The hypothesis is condition (3) of Theorem 2.8 (label B1.24).
- The hypothesis, the conclusion and the proof agree clause by clause.
- The only differences are inessential details of the envelope and the threshold, explained below.

**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 1092–1117](https://github.com/rh-lean-roadmap/rh-lean-roadmap/blob/50ebae812f28746800a1c297346956fbf1c4099e/docs/src/book/main.tex#L1092-L1117), statement and proof). Condition (3) is at [lines 1043–1052](https://github.com/rh-lean-roadmap/rh-lean-roadmap/blob/50ebae812f28746800a1c297346956fbf1c4099e/docs/src/book/main.tex#L1043-L1052).

> **Lemma 2.11 (An integrable upper envelope).** For θ, δ ∈ ℝ, let WH(F; θ, δ) mean that every η > 0 and Y₀ ∈ ℝ admit Y ≥ Y₀ and R : ℝ → ℝ such that:
> - y ↦ R(y)y^{−θ−1} is in L¹(J_Y), where J_Y = [Y, Y^{1+δ}];
> - 0 ≤ R(y) and G_m(F, y) ≤ R(y) for all y ∈ J_Y;
> - ∫_{J_Y} R(y)y^{−θ−1} dy ≤ Y^η.
>
> For every θ, C ∈ ℝ and δ > 0, (3) implies WH(F; θ, δ).

Condition (3) reads: ∀ Y₀ ∃ Y ≥ Y₀ ∀ y ∈ [Y, Y^{1+δ}], G_m(F, y) ≤ C·y^θ.

The book's proof:
- chooses a window with Y ≥ max(Y₀, 1) and |C|δ log Y ≤ Y^η, "possible since (log Y)/Y^η → 0";
- sets R(y) = |C|y^θ for y > 0 and R(y) = 0 for y ≤ 0;
- computes ∫_{J_Y} |C|/y dy = |C|δ log Y ≤ Y^η.

**Lean.** Both files are in `src/Development/AutomorphicArithmetic/DedekindLFunctions/`.
- *WH.* `CharFamily.lean` lines 41–45, `WindowHyp F θ δ`, is WH with the same quantifiers. It uses `Icc Y (Y^(1+δ))`, `IntegrableOn`, 0 ≤ R y ∧ Gm F y ≤ R y, and the integral ≤ Y^η.
- *The lemma.* `LandauTheorems/WindowHypOfRpow.lean` lines 27–57:

  `windowHyp_of_rpow (F) {θ δ C} (hδ : 0 < δ) (h : ∀ Y₀, ∃ Y, Y₀ ≤ Y ∧ ∀ y ∈ Icc Y (Y^(1+δ)), Gm F y ≤ C * y^θ) : WindowHyp F θ δ`.

  Here `h` is (3) verbatim, θ and C are arbitrary, and δ > 0, as in the book. The proof:
  - gets a threshold Y₁ from `windowHyp_of_rpow_eventually` (lines 9–25), with K = |C|δ. That lemma gives Y ≥ Y₁ ⟹ 1 ≤ Y ∧ K log Y ≤ Y^η. It is proved from `Real.log_le_rpow_div` (log Y ≤ Y^{η/2}/(η/2)) and Y^{η/2} ≥ K/(η/2) for large Y, i.e. the book's (log Y)/Y^η → 0 made explicit;
  - applies `h` at max(Y₀, Y₁);
  - takes R = fun y ↦ |C|·y^θ;
  - shows the integrand equals |C|·y⁻¹ on the window (`heq`), hence is continuous and integrable there;
  - gets the dominance from C ≤ |C|;
  - computes ∫ = |C|(log Y^{1+δ} − log Y) = |C|δ log Y ≤ Y^η through `integral_inv_of_pos` and `Real.log_rpow`.

**The inessential differences.**
- *The envelope.* The book sets R = 0 for y ≤ 0. The Lean uses |C|·y^θ everywhere. Only the window ⊆ [1, ∞) matters, where the two agree.
- *The threshold.* The book cites a limit. The Lean gives the explicit threshold, which needs Y ≥ 1 and Y^{η/2} ≥ 2K/η.

**My check** (`search/review/roadmap/upper_envelope_check.py`, scipy). I drew random C ∈ [−50, 50], δ ∈ [0.01, 3], η ∈ [0.01, 3.2] and θ ∈ [−1, 2]. Of 3,000 trials, 2,485 ran; the rest were skipped because the threshold exceeds floating-point range. I found:
- *The Lean threshold works.* At Y₁ = max(1, (2K/η)^{2/η}), and at random larger Y, K log Y ≤ Y^η. Equivalently, (log Y)/Y^η ≤ 1/K.
- *The inequality behind it holds.* log y ≤ y^ε/ε held for y ∈ [10⁻³, 10⁸] and ε ∈ [0.01, 10].
- *The integral is right.* Adaptive quadrature of R(y)y^{−θ−1} over [Y, Y^{1+δ}] equals |C|δ log Y to a relative 5.8·10⁻¹⁵.
- *Dominance and positivity hold.* C·y^θ ≤ |C|·y^θ, and R ≥ 0 on the window.

There were no violations.

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

