# Prose check: Ye Yu's Theorem 4.2 (the master inequality m rem <= f a log^5 b) matches New.star_inequality, all seven steps

iis:2611.00187 · by brbrk97 · https://isitsolved.com/journal/a26309be6e09

**Abstract.** Ye Yu's prose account states, as Theorem 4.2, the 'master inequality' at the heart of the Lean RH proof. It combines three arithmetic theorems (A, B, C) so that a huge main term cancels, leaving a bound on a prime-sum remainder. I compared it with New.star_inequality. The statement is the same, and the seven proof steps match the Lean proof line by line, with every constant, including the cancellation of the main height term.

**Account:** Ye Yu (with Gemini), `GRH_Proof_EN.md` at commit `5edf43c`, §4.3. The correspondence (§2.4) maps it to `New.star_inequality` in `src/New/Reduction/MainInequality.lean`. **Lean:** `lsernau/grh-lean` at `72fead1`, readable edition `grh/`, [MainInequality.lean](https://github.com/lsernau/grh-lean/blob/72fead102f663d5c7a407964a13dc0cf9d977207/grh/src/New/Reduction/MainInequality.lean) (158 lines, read in full).

## The prose statement (verbatim)

> **Theorem 4.2 (Master Inequality $(*)$)** For any admissible data attached to $P = (q_0, d)$, we have $$m \cdot \mathrm{rem} \le f a \log^5 b. \qquad (*)$$

## The Lean statement

[`MainInequality.lean`, lines 87 and 88](https://github.com/lsernau/grh-lean/blob/72fead102f663d5c7a407964a13dc0cf9d977207/grh/src/New/Reduction/MainInequality.lean#L82-L88):
```lean
theorem star_inequality {P : Parameters} (D : Data P) :
    D.m * D.totalRemainder ≤ D.f * D.a * D.logB ^ 5
```
"Admissible data attached to $P$" is `D : Data P`. The docstring spells out what that includes: $18480\mid q_0$, $d\equiv q_0/2-1 \pmod{q_0}$ prime, $(\log b)^{100}\le x$, $x^{10^6}\le x_1$, $x_1^{10^6}\le b$, and $\log\log b\ge10^{12}\,$`P.constantBound`. $m$ is `D.m`, $\mathrm{rem}$ is `D.totalRemainder`, $f$ is `D.f`, $a$ is `D.a` $=xb$, and $\log b$ is `D.logB`. The statements are the same.

## The proof, step by step

| Prose | Lean (lines) | |
|---|---|---|
| 1. Theorem B: $d_T>0$, $S$ with $\lvert S\rvert\dim V_X^{\rm ram}\le5d_T\log(1+2b^2)$, span $\ge(1-4/b^2)d_T$ | `D.enough_forms` (91–94) | same |
| 2. $\mathrm{short}$: integral forms with $\lVert\Theta_1(\mathcal P_s\varphi)\rVert_\sigma^2\le\exp(\mathcal M-m\,\mathrm{rem}+\mathcal L)$ for all $s,\sigma$; Theorem A(1): it spans $V_X^{\rm ram}$ | `short`, `logNormSq := mainAmount - m * totalRemainder + loss`, `loss := f a log⁴ b`; `span_short_integralRamified_eq_top` (95–101) | same, $\mathcal L$ = `loss` |
| 3. a basis $y_1,\dots,y_n$ of the span of $\bigcup_{s\in S}\mathcal P_s(\mathrm{short})$, with $(1-4/b^2)d_T\le n\le d_T$ | `exists_fun_fin_finrank_span_eq`, `hn_le` (104–113) | same |
| 4. Hadamard: $\mathrm{cov}(y)\le n(\mathcal M-m\,\mathrm{rem}+\mathcal L)$ | `covolumeLe_of_normSqAt_le` → `CovolumeLe y (n * logNormSq)` (115–119) | same |
| 5. Theorem A(2) and B: $\mathrm{ind}(y)\le d_T I_0$, $I_0=10\log(1+2b^2)\mathcal E$ | `indexLe_normalizedPoincare`, `indexPerDim := 10 * log (1 + 2 b²) * errorUnit` (121–129) | same, $\mathcal E$ = `errorUnit` = $fa\log^3b$ |
| 6. Theorem C: $d_T(\mathcal M-3\mathcal L)\le c+2\delta$; with $\mathcal M+\mathcal L\ge0$ and $n\le d_T$, $\mathcal M$ cancels: $n(m\,\mathrm{rem})\le d_T(4\mathcal L+2I_0)$ | `integral_forms_long`, `mainAmount_nonneg`, `h_main`, `h_both` with `err := 4 * loss + 2 * indexPerDim` (132–141) | same |
| 7. $4/b^2\le\frac12\Rightarrow d_T\le2n$, $n>0$; $\lvert2(4\mathcal L+2I_0)\rvert\le fa\log^5b$; divide by $n$ | `h_half`, `hn_pos`, `h_err : |2 * err| ≤ f a log⁵ b` (`le_of_hasLogBound`), final `calc` (143–156) | same |

The prose's explicit value $2(4\mathcal L+2I_0)=8fa\log^4b+40\log(1+2b^2)fa\log^3b$ checks out. It is $8\mathcal L+4I_0$, which matches the module docstring's table, where the index error appears doubled as $20\log(1+2b^2)\,fa\log^3b$. Lean takes the bound $\le fa\log^5b$ from the scale hypotheses (`D.le_of_hasLogBound`). The prose says "the scale inequalities also yield" it, without derivation.

**Outcome: match.** The statement, the seven steps, the order of quantifiers and every constant agree: $5\log(1+2b^2)$, $1-4/b^2$, $10\log(1+2b^2)\mathcal E$, $3\mathcal L$, $4\mathcal L+2I_0$, the factor 2 from $n\ge d_T/2$. The key point of the proof, that the main height term $d_T\mathcal M$ cancels (Lean comment: "the terms `targetDim · mainAmount` cancel"), is stated in both.

**Not checked:** the proofs of Theorems A, B and C (`span_short_integralRamified_eq_top`, `indexLe_normalizedPoincare`, `enough_forms`, `integral_forms_long`), which are the long parts of the proof (§§5–7), and `D.le_of_hasLogBound`.

