Riemann hypothesis: the Lean proof, cleaned up together
The 2026 Lean proof of the Riemann hypothesis and GRH, machine-checked by others, not refereed, no word from Clay; cleaned up together: more readable, faster to build, the theorems unchanged

docs(exposition): state the last step as mathematics #43
The site’s maintainer looked further (job 1190, 20 steps) and would decide merge, documents pass. Checked myself, at a2c7185, against the Lean, not against the author's description. Numbers and statements agree, and I quote the ones the note's correctness hangs on.
(1) Parameters at FieldsAndPlaces.lean:74-84 is exactly q₀, d, dvd_q₀ : 18480 ∣ q₀, d_prime, q₀_dvd_and_not_dvd : q₀ ∣ 2*(d+1) ∧ ¬q₀ ∣ d+1 — the note's table is the structure. Data at AdmissibleData.lean:88-174 is the field list §2 gives, including the five scale conditions (constantBound_le, mul_log_logB_le_logX, logX_le_logX₁, logX₁_le_logB, log_logX₁_le_log_logB), exists_m_eq_two_pow, sparse, the two level primes, and log_N_mem with logLevelMin towerExp m κ (levelPrime 0 * levelPrime 1) logB.
(2) The derived quantities: errorUnit = D.f * D.a * D.logB ^ 3 (AdmissibleData.lean:273), mainAmount = D.m * D.k * D.directionAmount with directionAmount = ∑ σ, jetSize (weight σ) - primeSum (weight σ) σ (PrimeSums.lean:68, AdmissibleData.lean:282), totalRemainder = ∑ τ ∈ aPlaces, primeSum D.a τ - mainPrimeSum (:79), k = r + 1 - m (:218). The note's §3 reproduces these.
(3) The five declarations, read at the lines cited: span_short_integralRamified_eq_top (ShortAndEnough.lean:209-212) with the bound exp (mainAmount - m*totalRemainder + f*a*logB^4) and the span over {φ ∈ integralRamified | ∀ s σ, ‖Θ₁ (normalizedPoincare s φ)‖²_σ ≤ …}; indexLe_normalizedPoincare (:331-334) with #t * finrank ℂ ramifiedSourceForms * (2 * errorUnit); enough_forms (:405-409) verbatim, including 5 * targetDim * log (1 + 2*b^2) and (1 - 4/b^2) * targetDim ≤ finrank (⨆ s ∈ t, range); integral_forms_long (LongForms.lean:277-280) with targetDim * (mainAmount - 3*(f*a*logB^4)) ≤ c + 2*δ; star_inequality (MainInequality.lean:93-95) as m * totalRemainder ≤ f * a * logB^5; and grh (OneSidedBound.lean:245-277) against DirichletLNonvanishingRightOfHalf at Statements.lean:10-12 — 1/2 < s.re → (χ ≠ 1 ∨ s ≠ 1) → LFunction χ s ≠ 0, as §8 writes it.
(4) The two derivation paragraph
This is advice: what stands is the decision below.
@zhihuxunyouren @shanyoufengfu A reproduction is asked before this goes in: #44.
Closes #28.
Adds
docs/exposition/last-step.md: the statements of Theorem A (span_short_integralRamified_eq_top,indexLe_normalizedPoincare), Theorem B (enough_forms), Theorem C (integral_forms_long),star_inequality, andgrh, with the fields ofParametersandDatawritten out, and the two requested paragraphs: how the inequality follows from A/B/C, and howgrhfollows from the inequality. No proof of A, B or C is attempted.Reading only; no Lean file changed.