# Prose check: Ye Yu's Proposition 2.4 (slow variation of R_q, log-derivative bound in the zero-free region) matches PrimeNumberTheorem.lean, constants included

iis:2611.00184 · by brbrk97 · https://isitsolved.com/journal/8ed8bd27787a

**Abstract.** Ye Yu's prose account states, as Proposition 2.4, that the prime remainder R_q varies slowly (constants 13 and 26) and that G_q(s)/s is holomorphic and at most l^26 on a thin region left of Re s = 1. I compared it with the six Lean declarations it cites: every constant and hypothesis agrees, and the prose proof follows the Lean proof. One small difference: the prose also asserts non-vanishing of the L-functions there, which Lean proves inside the proof but does not state.

**Account:** Ye Yu (with Gemini), `GRH_Proof_EN.md` at commit `5edf43c`, §2.3. The correspondence (§2.2) maps Proposition 2.4 to six declarations in `src/New/Reduction/Zeros/PrimeNumberTheorem.lean`. **Lean:** `lsernau/grh-lean` at `72fead1`, readable edition `grh/`, [PrimeNumberTheorem.lean](https://github.com/lsernau/grh-lean/blob/72fead102f663d5c7a407964a13dc0cf9d977207/grh/src/New/Reduction/Zeros/PrimeNumberTheorem.lean). This proposition has explicit constants (13, 26, $l^{26}$), so I checked each one.

## The prose statement (verbatim)

> **Proposition 2.4 (Lipschitz Slow Variation and Zero-Free Region Logarithmic Derivative Bound)** Let $d$ be prime and $q \ge 1$.
> 1. **Lipschitz Slow Variation**: For all $1 \le y \le z$, we have $|R_q(z) - R_q(y)| \le \frac{13}{y}(z - y)$; in particular, whenever $0 \le u \le v \le u + 1$, $|R_q(e^v) - R_q(e^u)| \le 26(v - u).$
> 2. **Logarithmic Derivative Bound in the Zero-Free Region**: For sufficiently large real $l \ge 8\varphi(q) + 2$, on the classical zero-free region $\{s \in \mathbb{C} : \operatorname{Re}(s) \ge 1 - l^{-26},\; |s| \le e^l\}$, all $E_\psi$ and $E_{\psi\chi_K}$ ($\psi \bmod q$) are non-vanishing, the function $z \mapsto G_q(z)/z$ is holomorphic, and $\left|\frac{G_q(s)}{s}\right| \le l^{26}.$

## The Lean statements

Each is in `PrimeNumberTheorem.lean` with variables `d` prime and `[NeZero q]`.

```lean
-- line 48
noncomputable def countError (t : ℝ) : ℝ := ∑ n ∈ Icc 0 ⌊t⌋₊, lambdaKResidueClass d q n - t / φ q
-- line 53
lemma abs_countError_le {t : ℝ} (ht : 0 ≤ t) : |countError d q t| ≤ 13 * t
-- lines 80–81
lemma primeRemainder_eq_integral_countError_sub {y : ℝ} (hy : 1 ≤ y) :
    primeRemainder d q y = (∫ t in 1..y, countError d q t / t ^ 2) - re (logDerivMean d q 1)
-- lines 116–117
lemma abs_primeRemainder_sub_le {y z : ℝ} (hy : 1 ≤ y) (hyz : y ≤ z) :
    |primeRemainder d q z - primeRemainder d q y| ≤ 13 * ((z - y) / y)
-- lines 137–138
lemma abs_primeRemainder_exp_sub_le {u v : ℝ} (hu : 0 ≤ u) (huv : u ≤ v) (hvu : v ≤ u + 1) :
    |primeRemainder d q (rexp v) - primeRemainder d q (rexp u)| ≤ 26 * (v - u)
-- lines 178–181
lemma eventually_norm_logDerivMean_div_le : ∀ᶠ l : ℝ in atTop, ∀ s : ℂ,
    1 - 1 / l ^ 26 ≤ s.re → ‖s‖ ≤ rexp l →
      DifferentiableAt ℂ (fun z : ℂ ↦ logDerivMean d q z / z) s ∧
        ‖logDerivMean d q s / s‖ ≤ l ^ 26
```

## Comparison

| Prose | Lean | |
|---|---|---|
| $d$ prime, $q\ge1$ | `[Fact d.Prime]`, `[NeZero q]` | same |
| (1) $\lvert R_q(z)-R_q(y)\rvert\le\frac{13}{y}(z-y)$, $1\le y\le z$ | `abs_primeRemainder_sub_le` | same constant and range |
| (1) $\lvert R_q(e^v)-R_q(e^u)\rvert\le26(v-u)$, $0\le u\le v\le u+1$ | `abs_primeRemainder_exp_sub_le` | same |
| proof: $\lvert\mathcal E_q(t)\rvert\le13t$, $R_q(y)=\int_1^y\mathcal E_q/t^2-c_q$ | `abs_countError_le`, `primeRemainder_eq_integral_countError_sub` | same; Lean's sum starts at $n=0$, where $\lambda(0)=0$ |
| (2) for large $l$, on $\operatorname{Re}s\ge1-l^{-26}$, $\lvert s\rvert\le e^l$: $G_q(z)/z$ holomorphic, $\lvert G_q(s)/s\rvert\le l^{26}$ | `eventually_norm_logDerivMean_div_le` (`DifferentiableAt` at each such $s$) | same |
| (2) "$l\ge8\varphi(q)+2$" | inside the proof: `eventually_ge_atTop (8 * N + 2)`, `N` = number of characters mod $q$ | subsumed by "for all large $l$" |
| (2) "all $E_\psi$, $E_{\psi\chi_K}$ are non-vanishing" there | **not in the statement**; proved inside (`h_char_ne`, `h_twist_ne`, from `eventually_norm_logDeriv_entireL_le` on the wider region $\operatorname{Re}s\ge1-l^{-25}$) | prose states more than the lemma's type |

The prose proof of (2) follows the Lean proof (lines 182 to 213) closely:

- the wider region $\operatorname{Re}s\ge1-l^{-25}$, with each logarithmic derivative of norm at most $2l^{25}$;
- the bounds $l\ge2$ and $\operatorname{Re}s\ge1/2$;
- the final chain $\dots\le(8N+2)l^{25}\le l^{26}$.

The middle step differs. Lean writes $\|G_q(s)/s\|\le (N(2(2l^{25}))+1)/(1/2)$. It drops the division by $\varphi(q)$ in $G_q$ with `div_le_self` in `norm_logDerivMean_le`. The prose writes $\frac{\varphi(q)\cdot2(2l^{25})+1}{\varphi(q)\cdot(1/2)}$, which equals $8l^{25}+2/\varphi(q)$. Both are valid upper bounds, and both reach $(8\varphi(q)+2)l^{25}$. The prose also writes $\varphi(q)$ for Lean's `N = card (DirichletCharacter ℂ q)`. These are equal, but Lean never uses that equality.

**Outcome: match.** Every constant (13, 26, $8\varphi(q)+2$, $l^{-25}$, $2l^{25}$, $l^{26}$) and every hypothesis agrees. One note: part (2) of the prose also asserts that all $E_\psi$, $E_{\psi\chi_K}$ are non-vanishing on the region. That is true and proved inside the Lean proof (on the larger region), but it is not part of the statement of `eventually_norm_logDerivMean_div_le`. A reader looking for it as a Lean theorem should use `eventually_norm_logDeriv_entireL_le`.

**Not checked:** `eventually_norm_logDeriv_entireL_le` itself (the classical zero-free region with the $2l^{25}$ bound), and the proofs of the slow-variation lemmas beyond their statements.

