# Formal reading of the five Lean declarations

Audit date: 23 November 2026. Materials: the local snapshots in `sources/` and the companion experiments in `results/`. Nothing was fetched from the network.

## 1. Result in brief

The local record is internally consistent. The five theorems declared in `Main.lean` are each matched, by name, to a logged axiom list containing only Lean's three standard axioms and to a logged statement comparison against a challenge file that imports only Mathlib. The four MIT logs held locally are byte-identical to the entries in MIT's `SHA256SUMS`. All 24 checks of the audit script completed: 22 pass and 2 are informational notes.

This audit did not verify the proof. No Lean kernel was run here, and none could be: the exported proof is 61.6 GB and the published check needs about 100 GB of memory. What follows separates three kinds of evidence throughout.

| Kind | What it is | What it can show |
|---|---|---|
| External kernel verification | A proof checker run by someone else, known here only through a log or a web page | That a checker accepted the proof, if the log is taken at its word |
| Local log check | Text parsing and hashing re-run in this audit | That the local files are the published ones and agree with each other |
| Finite numerical work | Computations on finitely many zeros and primes | Consistency with the theorems, never their truth |

## 2. How the audit was run

The notebook sandbox was denied access to the project directory, for reading and for writing. The sources were therefore read with the file tools and passed to the notebook as transcribed text. Each transcription was then hashed and compared with `sources/index.json`. Ten files matched in both size and SHA-256, so the code ran on byte-identical copies of them:
`Main.lean`, `Statements.lean`, `MainTheoremsAll.lean`, `MainTheoremsCritical.lean`, `lean-toolchain`, `SHA256SUMS`, `audit.log`, `nanoda.log`, `con-leche-compare.log`, `sandbox-timeline.txt`.

Three files entered only as short excerpts and were not hashed: `mit.html` (the five statement blocks, three hash lines, three status cells), `zeta_definition.lean` (the definition of `RiemannHypothesis`) and `lake-manifest.json` (the Mathlib revision). `results/summary.json` was passed as its eleven fields.

The script is `verification/audit_formal.py`. Its `audit()` function is what ran. Its on-disk entry point `main()`, which reads `sources/` directly and writes `verification/audit_results.json`, was not executed in this session because of the sandbox restriction; running it from the project root would repeat the audit on the files themselves and also hash the excerpted ones. The outcome of the notebook run is recorded in `verification/audit_run_notebook.json`.

## 3. The five declarations

| # | Theorem in `Main.lean` | Type | Proof term | Domain |
|---|---|---|---|---|
| 1 | `riemannHypothesis` | `RiemannHypothesis` (Mathlib) | `rhOfAll` | all s ∈ ℂ with ζ(s) = 0, s ∉ {−2, −4, …}, s ≠ 1 ⇒ Re s = 1/2 |
| 2 | `riemannZeta_eq_zero_re` | `RiemannZetaZerosOnLine` | `rhOfAll` | the same, with the cast ℕ → ℂ written out |
| 3 | `LFunction_ne_zero_of_half_lt_re` | `DirichletLNonvanishingRightOfHalf` | `allChi` | N ≥ 1, any χ mod N, Re s > 1/2, (χ ≠ 1 or s ≠ 1) ⇒ L(χ, s) ≠ 0 |
| 4 | `LFunction_eq_zero_re` | `DirichletLZerosOnLine` | `claimAll.2.1` | N ≥ 1, any χ mod N, 0 < Re s < 1, L(χ, s) = 0 ⇒ Re s = 1/2 |
| 5 | `LFunction_eq_zero_re_of_isPrimitive` | `PrimitiveDirichletLZerosOnLine` | `critAll` | as 4, for primitive χ |

Points of precise reading:

- **Total functions.** Mathlib's `riemannZeta` is a function on all of ℂ (`def riemannZeta := hurwitzZetaEven 0`) and so has a conventional value at the pole. The hypothesis `s ≠ 1` in theorems 1 and 2, and the clause `χ ≠ 1 ∨ s ≠ 1` in theorem 3, remove that point. The MIT page gives the same explanation.
- **Trivial zeros.** Lean's ℕ starts at 0, so `-2 * (n + 1)` runs over −2, −4, −6, … exactly.
- **Theorems 1 and 2 are not restricted to the strip.** They quantify over every complex s.
- **Theorem 3 is one-sided.** It asserts a zero-free open half-plane and includes the classical region Re s ≥ 1. For N = 1 it is a statement about ζ.
- **Theorems 4 and 5 use the open strip.** This leaves out the trivial zeros and, for imprimitive characters, the zeros on Re s = 0 that arise from removed Euler factors. That last remark is classical background and not taken from the sources.
- **Scope.** "GRH" here means Dirichlet L-functions for all moduli and characters. The MIT page states that Dedekind, Hecke and general automorphic L-functions are not among the checked statements. The announcement expects the Extended Riemann Hypothesis "with more time"; it is not claimed.

Only the definition of ζ and of `RiemannHypothesis` is held locally as Mathlib source. For `DirichletCharacter`, `DirichletCharacter.LFunction` and `IsPrimitive` the local record gives module names (from `audit.log`), not definitions.

## 4. What each check means

| Check | Kind | Meaning | Local finding |
|---|---|---|---|
| `#print axioms` (`audit.log`) | External | Lists every axiom a theorem's proof ultimately uses. A `sorry`, an added axiom or a `native_decide` step would appear here. | All five: `propext`, `Classical.choice`, `Quot.sound` |
| Axioms in the environment (`audit.log`) | External | Lists every axiom that exists anywhere in the 186,200 imported modules | 15 axioms, all in Lean core (`Init.*`). `sorryAx` and the compiler-trust axioms exist in core and appear in no dependency list |
| Statement comparison (`con-leche --compare`) | External | Checks that the theorem proved in the library has exactly the statement in a separate challenge file that imports only Mathlib, so the statement cannot lean on a redefinition inside the library | Each of the five names "justified by the solution"; 51,692 challenge and 1,468,418 solution declarations accepted in `--verified` mode; exit 0 |
| Second kernel (`nanoda`) | External | An independently written checker re-verifies the exported proof, guarding against a bug in one implementation | Exit 0 after 27 min 42 s. The log has timing and exit status only, so it supports the five theorems jointly |
| Sandboxed rebuild (`sandbox-timeline.txt`) | External, hash re-matched locally | A second machine compiles the archive with no network and a read-only source tree, then exports again | Exit 0; export hash `5ea74b91…f6be244e` equals the `SHA256SUMS` entry; 175,186 of 175,187 compiled files identical |
| Checksums (`SHA256SUMS`) | Local | Shows the logs read here are the published files | Four logs: recomputed hash = index record = MIT entry |
| Statement texts | Local | Shows the three sources of each statement say the same thing | MIT page text equals the local statement for all five. Mathlib's `RiemannHypothesis`, its logged printout and the written-out theorem 2 agree token for token once binder syntax and the displayed cast are erased |
| Shared proof term | Local | Theorems 1 and 2 are both `:= rhOfAll` | Source-level evidence that Lean treats the two statements as equal by definition; the verdict itself is the kernel's |
| Toolchain pins | Local | `lean-toolchain`, `lake-manifest.json` and the rebuild log name one Lean and one Mathlib | Lean 4.33.1, Mathlib `0df444a3…` |

The statement-text comparison is a textual heuristic. It cannot see elaboration, which is what the kernels check; the MIT page makes the same point about elaborated terms.

Two readings of the record need care.

1. **Hash agreement shows consistency, not authenticity.** `SHA256SUMS` and the logs came from the same server. Their agreement shows the local copies are intact and mutually consistent.
2. **Some reported checks have no local log.** The leanchecker replay of 175,187 modules, lean4lean, con-ron and con-leche `master` are reported on the MIT page and their log hashes are listed, but the logs are not in `sources/`. The Waterloo checks are known from a page only.

Open items in the record itself:

- When the MIT page was captured (last update 22 November 2026, 16:20 UTC) three rows were still marked "running": Lean's own kernel on the export, `lake comparator` end to end, and the same for the arithmetic-consequences export. The page notes that Lean's kernel had already accepted every module from the compiled files.
- The Waterloo page reports 1,484,729 declarations checked by nanoda; the MIT con-leche log reports 1,468,418. The local materials do not say why the counts differ.
- One compiled module differs between builds. The MIT page traces it to a race in naming a bound variable in an auto-generated lemma that is not on the dependency path of the five theorems.

## 5. The theta-lift idea and prime-power sums

The announcement is informal and its author says parts of its timeline paraphrase a summary he has not yet mastered. With that caution, three statements in it bear on the question.

- The argument is "a descendant of Stepanov's". Stepanov's proof of the Riemann hypothesis for curves over finite fields builds an auxiliary function that vanishes to high multiplicity at the points being counted. Over the integers "multiplicity is hard to find", since it would amount to "differentiating whole numbers".
- Iterated theta lifts are the proposed substitute. The timeline entry reads: "Iterated theta lifts U(X0) → U(X1) → ⋯ → U(Xm) between totally definite unitary groups, π ↦ π ⊞ μ_j[t], wins multiplicity m." Each lift is said to mimic one order of vanishing.
- The length of the chain is tied to the prime-power sum: "for the von Mangoldt sum of length X, Claude's suggested length of chain of theta lifts … was √X."

The prime-power sum named in the timeline is

  Λ(X) = Σ_{n ≤ X} Λ(n)·(X/n − 1) − X log X + (1 + γ)·X,

where Λ(n) is the von Mangoldt function, which is log p on powers of a prime p and zero elsewhere. The classical explicit formula turns this into a sum over zeros. The following derivation is standard background supplied here, not taken from the sources. Since (y − 1)₊ is the inverse Mellin transform of y^w / (w(w − 1)), moving the contour past the double pole at w = 1 produces exactly the subtracted terms X log X − (1 + γ)X, and

  Λ(X) = log 2π − Σ_ρ X^ρ / (ρ(ρ − 1)) − Σ_{k ≥ 1} X^{−2k} / (2k(2k + 1)),

with ρ running over the nontrivial zeros. The weight 1/(ρ(ρ − 1)) makes the sum over zeros absolutely convergent, with Σ_ρ 1/(ρ(1 − ρ)) = 2 + γ − log 4π ≈ 0.0462. Two consequences follow.

- If every ρ has real part 1/2, then |Λ(X) − log 2π| ≤ 0.0462·√X + O(X⁻²).
- Conversely, a bound Λ(X) = O(X^{1/2 + ε}) for every ε > 0 forces every zero onto the line, because the Mellin transform of Λ(X) then continues −ζ′/ζ(s) / (s(s − 1)) to Re s > 1/2.

So the Riemann hypothesis is equivalent to square-root control of this one smoothed sum over prime powers, which is how the announcement can describe the problem as "optimal control on the count of prime numbers". The Waterloo page describes the same architecture in the working guide it links: the Riemann hypothesis is deduced from "the main inequality (M), an upper bound for a weighted sum over prime powers", together with two estimates for Dirichlet characters.

A finite check of the identity was run in the notebook with the first six zero ordinates from `sources/lmfdb.txt` and primes up to 10⁶. For X between 2 and 10⁶ the two sides differ by less than the bound for the omitted zeros (0.0231·√X) at all seven values tested, and for X ≥ 10.5 the ratio |Λ(X) − log 2π| / √X stayed below 0.014. This illustrates the identity. It is finite numerical work and says nothing about the hypothesis.

How the chain of lifts yields the bound is not explained in any local source. One reading, offered as interpretation only: in Stepanov's argument the multiplicity is taken of the order of the square root of the number of points, which is the scale at which the count becomes sharp, and the announcement's "what else could it be?" points at the same scale for a sum of length X. The timeline also names what the lifts cost and how the cost is met: norms and levels of the lifts, a divisibility lower bound for the m-fold lift, a seesaw identity making the period independent of the Hecke characters, a slope inequality, an Iwasawa tower, and a remark that a first accounting "would stop at 2/3". None of these can be assessed from the local materials.

## 6. Finite numerical companion

`results/summary.json` records 100 zeros of ζ with largest residual |ζ(ρ)| of 4.6 × 10⁻⁴⁴, largest difference from the LMFDB printed decimals of 2.2 × 10⁻³¹ (limited by the reference's precision, per the file's own note), 11 bracketed sign changes with largest bracket difference 4.8 × 10⁻¹³, primes below 10⁶, and a 131 × 49 mesh. The audit re-derived the prime count by sieve: π(10⁶) = 78,498, as recorded.

The file states that the zero index comes from mpmath with "no independent completeness certificate". The experiments therefore do not show that these are the first 100 zeros with none missed. They concern ζ only, which is the case N = 1 of theorems 3 to 5, and they hold no data for any other character.

## 7. What remains an expository question

The formal question, whether the five statements follow from the standard axioms, is the one the external checks address. The questions below are about understanding, and the local record leaves them open.

1. **No human-readable proof exists yet.** The author chose "to only present Lean" and expects the argument to "be massively simplified". The Waterloo guide (version 2, 265 pages, a working draft) reduces the main inequality (M) to thirteen numbered hypotheses stated in classical terms, "none of which is proved outright" there.
2. **The mechanism.** How a theta lift produces something that behaves like an order of vanishing, why the chain has length about √X, and how the stated "2/3" barrier is passed are given one sentence each in the announcement.
3. **The role of the literature.** `CorGKOf.lean` contains theorems named `litN : …LiteratureRankNHypothesis` and `published_hypotheses_from_patching_alt`. The axiom audit shows these are proved statements, since nothing beyond the three standard axioms is used. Which published theorems were formalised in full, and in what form, is a matter for the census the Waterloo guide says it has begun.
4. **The proof terms.** `rhOfAll`, `allChi`, `claimAll` and `critAll` are defined upstream of the local snapshots. What else the conjunction `claimAll` contains, and why theorem 5 has its own term although its statement is a special case of theorem 4, cannot be read off here.
5. **Meaning of the Dirichlet statements.** The statements are only as faithful as Mathlib's definitions. For ζ the definition is held locally and the MIT page reports a cross-check through Robin's and Lagarias's inequalities that does not mention ζ. For Dirichlet L-functions the local record has module names only.
6. **Loose ends in the verification record.** The three checks still running at capture time and the differing declaration counts in section 4.

## References

Local snapshots, with retrieval on 23 November 2026 and hashes in `sources/index.json`.

1. L. Alpöge, announcement, 20 November 2026. `sources/announcement.pdf`; https://alpo.ge/remark.pdf
2. Lean and Mathlib communities, "Lean verification of the Riemann Hypothesis", 21 November 2026. `sources/lean-community.html`; https://leanprover-community.github.io/blog/posts/riemann-hypothesis/
3. A. Sutherland, "Verification files for the Lean proof of the Riemann Hypothesis", MIT, updated 22 November 2026. `sources/mit.html`, with `SHA256SUMS`, `audit.log`, `nanoda.log`, `con-leche-compare.log`, `sandbox-timeline.txt`; https://math.mit.edu/~drew/grh/
4. M. Rubinstein, "Alpöge/Claude proof of the Generalized Riemann Hypothesis", Waterloo. `sources/waterloo.html`; https://www.math.uwaterloo.ca/~mrubinst/alpoge_claude_grh/
5. leanprover-community/riemann-hypothesis, commit `40e56bab026552e089d7afcfeff08d2defb9c005`: `Main.lean`, `Statements.lean`, `lean-toolchain`, `lake-manifest.json`, `MainTheoremsAll.lean`, `MainTheoremsCritical.lean`, `CorGKOf.lean`.
6. Mathlib, tag v4.33.1, `Mathlib/NumberTheory/LSeries/RiemannZeta.lean` (D. Loeffler). `sources/zeta_definition.lean`.
7. LMFDB, zeros of ζ, first 100. `sources/lmfdb.txt`; https://www.lmfdb.org/zeros/zeta/list?N=1&limit=100
8. Local experiments, `results/summary.json`.

Also held locally but not consulted for this reading: the Clay Mathematics Institute problem page (`sources/clay.html`) and DLMF §25.10 (`sources/dlmf.html`).

Background not drawn from the snapshots: the explicit formula and the value of Σ 1/(ρ(1 − ρ)) are standard results of analytic number theory, as found for example in H. Davenport, *Multiplicative Number Theory*, chapters 12 and 17; Stepanov's method is described in the announcement only by name. These citations are from memory and were not checked against a source in this session.
