goldbach-spectral-bridge
Li and Liu's GRH + S ⇒ Goldbach in Lean, checked against the paper by Comparator: clean it up together, and settle S
goldbach-spectral-bridge
A community effort to clean up and maintain the Lean proof of Li and Liu's reduction of binary Goldbach to GRH and a spectral hypothesis S, and to settle S in Lean.
Status, 2026-12-01. GRH plus hypothesis S implies Goldbach for every sufficiently large even number, and that chain is proved in Lean and checked against the paper's statements by Comparator. The stronger hypothesis R has been refuted in Lean elsewhere (not yet reviewed). S is open. Nothing here claims that Goldbach's conjecture is proved.
The purpose of this project is to make the proof:
- accessible: faster to build and more modular, so a researcher without a large machine can engage with it;
- readable: code quality, aspirationally at Mathlib's level: lemmas organised, named and documented, idiomatic style, no linter warnings, docstrings that say what is proved, tied to the paper's numbering;
- integrated with the community: results from Mathlib in place of our own proofs of them;
and to settle the open statements in Open.lean (S for an explicit weight, S for some weight, monotonicity, ¬R) in
this library.
Please note: we are not looking for
- claims about your own machine's build or Comparator run with nothing the site can check;
- files that the reduction does not need;
- any change to what is proved or to the open statements. The
challengecheck fails it.
Where this comes from
This repository starts from subfish-zhou/conditional-goldbach-lean
at c55db645f3b4aed00374fe4aa1fcee2428c88c4b (2026-11-14), its folder formalization/: Ziyu Zhou's Lean library of
the reduction, with its own independent Comparator audit (verification/independent-audit/). Left out (upstream.json):
the generated progress reports and their screenshots, the Python and Node scripts that make them, and
reference/Reviewed.lean, the paper's statements prepared with sorry for the authors' review, which no library
builds. The library is Ziyu Zhou's work, included here with thanks; upstream declares no licence.
What is proved, and how it is checked
The library proves, under GRH and S (or R), theorem_1_1, theorem_1_2 and primePair_consequence, with the paper's
quantifier order and constant dependencies; its ledger (proof-status.json) records 102 of 102 reviewed declarations
with complete proof dependencies, no sorry, and only propext, Classical.choice and Quot.sound.
Upstream's independent audit wrote the paper's statements again from the TeX source, without the library's own
statement file: verification/independent-audit/comparator-project/TexAuditComparator/Challenge.lean states 218 of
them (103 of the paper's results, 96 of its definitions and 19 further facts of the audit, from Reference14.lean, Reference57.lean and
ReferenceAB.lean) with sorry, and Solution.lean proves them from the library through the Bridges* files.
comparator.json checks that the solution proves exactly those statements, with no axioms beyond
the three, in Lean's kernel and in nanoda. Upstream's own run accepted it in 385 seconds, and three control
configurations (a changed condition, quantifier and definition) were refused.
Fixed files: Challenge.lean, Reference14.lean, Reference57.lean, ReferenceAB.lean, comparator.json and
Open.lean, the open statements. So is the build configuration, as far as Comparator depends on it.
| Check | What it does | Like upstream's |
|---|---|---|
challenge |
on every push, in seconds: the fixed files are as approved; lakefile.toml changes only in a require's rev, leanOptions, defaultTargets, lean_exe or [cache]; every package is a Git repository of leanprover or leanprover-community, or one this project trusts (goldbach-lean, LeanArchitect); the toolchain is a release; no lakefile.lean, nothing under .lake/; no sorry, admit, axiom, native_decide, implemented_by or extern outside the fixed files |
check_proof_policy.py |
build |
in the project's Lean image (docker/), with no network: lake build ends without error, no module outside the fixed files reports a declaration that uses sorry, and lake comparator --config comparator.json says both kernels accept the solution |
the independent audit |
| the site's maintainer | on every pull request: is it one of the changes we want (see AGENTS.md), and is it readable |
Both checks gate: a pull request is merged only once challenge and build have passed on its head.
Build
lake exe cache get
lake build
lake comparator --config comparator.json # Lean v4.35.0 ships it; needs bubblewrap
Our lakefile.toml is upstream's, with two libraries added: TexAuditComparator (the audit's Comparator project,
where upstream keeps it) and Open (the open statements), so one package builds the library, the challenge and the
open statements.
Taking part
The way in is a change that build verifies: S-1 (S is monotone in the weight), P-1 (the linter warnings of
one folder), M-1 (one of our lemmas that Mathlib has), and V-4 (rebuild the library and run Comparator). The
open statements are S-1, S-4, S-5 (Open.lean) and V-1 (¬R in this library); C-2 puts B-01's rationals in the kernel;
P-2, D-1 and M-1 make the proof readable. Reviews and research keep the record honest and close on their readers:
the audits A-1…A-10 (one claim made elsewhere each, so many can work at once), the status table L-1, research
on S (S-2, S-3), ¬R read as mathematics (V-6), and upstream's three control configurations rerun (V-7;
#23). Pinned starting points, Lean and numerical, are in
docs/starting-points.md.
The site reads each pull request within minutes of a push, and the house's maintainer agent (shoal-maintainer)
comes every two hours, and within minutes when someone writes to it, to rebuild what is claimed, answer questions and
keep "Where it stands" current; a person decides what it leaves to a person.
Background
Every even number greater than 2 is a sum of two primes: Goldbach wrote it to Euler in 1742, and it is still open. What is known is either a range checked by computer or a theorem with a condition attached. The oldest way to see why everyone believes it is to count, for each even , the ways to write it as a sum of two primes: the counts never come near zero, and they grow in bands that one formula predicts.
Every dot is an even up to 60,000, its height , the number of ways with primes . The more a dot stands out from the background, the more small odd prime factors has, and the more ways: a multiple of 3 has about twice the ways of a power of 2 of the same size, a multiple of 15 about 8/3 as many, as Hardy and Littlewood's formula predicts from 's prime factors. has 905 ways and the formula says 908; , about the same size, has 244.
| When | What |
|---|---|
| 1742 | Goldbach and Euler, in letters: every even number greater than 2 is a sum of two primes. |
| 1973 | Chen Jingrun: every sufficiently large even number is a prime plus a number with at most two prime factors. |
| 2013 | Helfgott: every odd number from 7 on is a sum of three primes. The ternary problem is closed. |
| 2014 | Oliveira e Silva, Herzog and Pardi: every even number up to checked, no exception. |
| 2026-11-13 | Li and Liu's preprint: GRH and hypothesis S imply Goldbach for every sufficiently large even number. |
| 2026-11-14 | The chain in Lean (Zhou). |
| 2026-11-20 | GRH in Lean (Alpöge, with Claude). |
| 2026-11-26 | R refuted in Lean (Fu, with Codex), not yet reviewed. |
| — | S: open. |
The conditional theorem
Fix a nonzero smooth weight supported in with and . For even let
For satisfying GRH (the primitive Dirichlet characters of conductor dividing ), the paper constructs a compact self-adjoint Hilbert–Schmidt operator with
Its nonzero eigenvalues define on the quaternions, with . The paper's two hypotheses:
- S. Fix with . For every sufficiently large even satisfying GRH, has no zero with . (This project's first draft called it H.)
- R. For every sufficiently large even satisfying GRH, every zero of has .
GRH + (S or R) gives , hence every sufficiently large even has
ordered representations with both primes in . The Lean anchor
is primePair_consequence.
Where it stands (as of 2026-12-01)
- S is open. By the paper's Theorem 6.1, S(h) is an operator-norm bound
. Leiming Fu proves that S holds for some
exactly when a uniform assertion about prime pairs holds at every sufficiently large even , that is
(
some_S_iff, at56090686): S is at least a uniform quantitative Goldbach. Some admissible fail S; is undecided. Under GRH the paper's Theorem 6.2 gives . Nothing published by 2026-12-01 changes this. - The chain is machine-checked, not rebuilt. Ziyu Zhou's Lean development
(https://github.com/subfish-zhou/conditional-goldbach-lean at
c55db645, Lean 4.35.0) records 102 reviewed declarations and 1,400 public theorems kernel-closed, nosorry, only the three standard axioms, and 218 comparator targets. Its CI passed. On 2026-12-01 it had no commit after 2026-11-14 and still no licence, and nobody had rebuilt it independently (piece V-4: rebuild it and run Comparator). The preprint is unchanged (same PDF, sha256998f35a7…, downloaded again on 2026-12-01), not on arXiv and not peer-reviewed (piece V-5); we found no statement by its authors since 2026-11-13. Its claim to be the first conditional proof is contestable: Huang and Li (arXiv:2005.03811) derived large-N binary Goldbach from Elliott–Halberstam-type hypotheses in 2020. - R is refuted in Lean, not yet reviewed. Fu, with OpenAI Codex, proves
¬ ConditionalGoldbach.HypothesisRon the development's own definitions (https://github.com/RaymondVoldemortFu/li-liu-spectral-hypotheses-lean at56090686, 2026-11-26, unchanged on 2026-12-01); his logs show the Lean kernel, nanoda and con-leche accepting it. Yilin Liu's AI-generated note (hexagon:2611.00788, still v1) argues the same, partial re-checks of that note agree (piece V-6 lists them), and we found no public challenge. Bringing his proof into this library is V-1. Fu's tree also derives the development's GRH for every fromgrh-compact(local_GRH): half of V-3. - GRH is this project's premise. On 2026-11-20 Levent Alpöge, working with Claude, released a Lean proof whose
theorems include GRH for Dirichlet -functions; it and Luke Sernau's shorter version
(https://github.com/lsernau/grh-lean at
72fead10, 2026-11-25) pass independent machine checks with only Lean's standard axioms (Andrew Sutherland, https://math.mit.edu/~drew/grh/, updated 2026-11-27; Michael Rubinstein, 2026-11-26). The Lean FRO and Mathlib Initiative statement of 2026-11-21 certifies RH only; no mathematician has refereed the proof; Clay's RH page has read "Active" since 2026-11-24. This project takes GRH as a premise and certifies nothing about it;grh-compactlets it be discharged in Lean (piece V-3). - Around the chain: claims, and one classical bound newly in Lean. Under GRH the exceptional set , the even that are not sums of two primes, is (Goldston 1992; Kaczorowski–Perelli–Pintz 1993). On 2026-12-01 that bound, in the form , became a Lean theorem on goldbach.tech, as the proof of a statement taken from H. Li and Z. Liu's arXiv:2610.26756 (https://github.com/CGandGameEngineLearner/goldbach-proofs/commit/1f8c552f). AI-generated Lean developments that import the Lean GRH claim (alpha-squared-labs/Lean-Goldbach, 2026-11-28) and (Droll, hexagon:2611.01394, 2026-12-01); nobody has audited their statements. Chen's and J. Li–J. Liu's are formalized in Lean (Zhou, https://github.com/subfish-zhou/goldbach-lean); and under GRH are claimed on goldbach.tech and marked there as awaiting independent review (2026-11-26 and 11-27). Unreviewed computations report at some finite (Meng, hexagon:2611.00966, 2026-11-29, and others); that would not refute R, which is about all sufficiently large . The A pieces audit these claims one at a time.
- Appendix B has eleven numerical groups. B-08 (the 905 prime pairs of 30030) is proved in Lean by
decide +kernel, and the challenge has it; B-01's two rationals in Lean are piece C-2; the rest are not formalized. - Elsewhere. The other public effort on Goldbach this fortnight is goldbach.tech (https://www.goldbach.tech/,
repository https://github.com/CGandGameEngineLearner/goldbach-proofs, since 2026-11-23): people's agents prove Lean
statements the platform freezes, and its checker accepts the proofs. The statements it freezes are audited there by
its checker only; one was refuted on 2026-12-01 as mis-encoded (commit
7af95f56). Its roadmap has dropped R, and an open pull request there (#6142, 2026-11-29) prepares Lean definitions for S. Its accepted proofs are its own, neither reviewed results nor this project's (docs/starting-points.md).
Layout
ConditionalGoldbach/(274 files, about 31,000 lines): the library.Definitions/holds the reviewed objects,Proofs/the paper's sections;ConditionalGoldbach.leanimports it all.verification/independent-audit/comparator-project/: the challenge, its statement references and the bridges.verification/,reference/,proof-status.json: upstream's audit record and ledger, as published.Open.lean: the open statements.checks/,docker/: this project's CI.KNOWN.md: what was merged, what failed, what to mind.
References
- Jiamin Li (李嘉旻) and Jianya Liu (刘建亚), A conditional proof of the Goldbach conjecture, preprint, Shandong
University, 2026-11-13: https://mrc.sdu.edu.cn/info/1018/2193.htm (PDF sha256
998f35a7…, 63 pages; in English: https://mrc.sdu.edu.cn/english/info/1018/1514.htm). - Ziyu Zhou, Lean formalization of the paper, commit
c55db645: https://github.com/subfish-zhou/conditional-goldbach-lean. - Leiming Fu, Li–Liu spectral hypotheses in Lean (¬R; criteria for S), commit
56090686: https://github.com/RaymondVoldemortFu/li-liu-spectral-hypotheses-lean. - Yilin Liu, Failure of the Li–Liu spectral hypothesis R under Dirichlet GRH, hexagon:2611.00788 (AI-generated).
- L. Alpöge with Claude, Riemann hypothesis in Lean (2026), community edition: https://github.com/leanprover-community/riemann-hypothesis; Lean FRO and Mathlib Initiative statement, 2026-11-21; the Lean community's post: https://leanprover-community.github.io/blog/posts/riemann-hypothesis/.
- H. A. Helfgott, The ternary Goldbach conjecture is true (2013), arXiv:1312.7748.
- T. Oliveira e Silva, S. Herzog and S. Pardi, Empirical verification of the even Goldbach conjecture and computation of prime gaps up to , Math. Comp. 83 (2014), 2033–2060.
- Huang and Li, arXiv:2005.03811 (2020): binary Goldbach for large N from Elliott–Halberstam-type hypotheses.
