Skip to content

Stage 00 — Formal Statements & Challenge Contracts ​

Stage 00 establishes what the Riemann Hypothesis and the Generalized Riemann Hypothesis actually assert in Lean 4, why proving nonvanishing strictly to the right of Re(s)=1/2 forces every nontrivial zero onto Re(s)=1/2, and how independent Comparator specifications are designed to confirm that the submitted theorems match standard mathematical definitions.

Level 1 · First-Principles

Level 1 — First-Principles ​

Counting whole numbers greater than 1 that have no smaller positive divisorsprime number up to a bound x looks simple at first: roughly x/ln⁡x numbers below x are prime. Yet the exact count π(x) wavers above and below its smooth approximation Li(x)=∫2xdtln⁡t. In 1859, Bernhard Riemann showed that those irregular prime wavers behave like sound waves whose frequencies and amplitudes are read off from a single function defined across the two-dimensional grid of points s=σ+it combining a real horizontal coordinate and an imaginary vertical coordinatecomplex plane.

That master function starts as an unending sum of terms weighted by n−sinfinite series, namely ∑n=1∞n−s, which converges when Re(s)>1 and factors into a product over every prime number. Extending that formula past Re(s)=1 by the unique complex-differentiable extension beyond the sum's convergence regionanalytic continuation yields the global function ζ(s) defined on the entire plane except s=1Riemann zeta function. Every place where ζ(s)=0 falls into one of two categories:

  • Known predictable negative-integer zeros at −2,−4,−6,… forced purely by the symmetry factortrivial zero, which carry no hidden prime fluctuations;
  • nontrivial zeros, all trapped inside the open vertical band 0<Re(s)<1critical strip, where each zero at ρ=σ+it adds an oscillation of size xσ to the prime-counting error.

The Riemann Hypothesis asserts that every nontrivial zero sits on the central vertical line Re(s)=1/2critical line, making the error as tight as square-root cancellation allows.

To track primes in arithmetic progressions—such as primes leaving remainder 1 or 3 modulo 4—number theorists twist each term n−s by a periodic multiplicative weight χ(n) modulo NDirichlet character. That produces a family of twisted functions L(χ,s) generalizing ζ(s)Dirichlet L-function, each governed by an underlying minimal-period character that cannot be inherited from a smaller dividing modulusprimitive character. The Generalized Riemann Hypothesis asserts that every nontrivial zero of every Dirichlet L-function also lies on the critical line.

Because a modern machine-checked proof can span hundreds of thousands of lines, checking every logical step in a computer kernel against explicit axiomsformal verification only settles the conjecture if the statement proved by the machine matches the classical conjecture with zero loopholes. Stage 00 examines that entire statement contract across three landmark pages, plus a bridge page mapping the full proof engine ahead:

  • Full Proof Journey & Alpöge's 20-Step Map — how the eight mathematical pillars in src/New/ combine Theorems A, B, and C to drive New.grh, and how the condensed readable edition aligns with Alpöge's original 20-step roadmap.
  • The Five Entry Theorems — how src/Main.lean reduces all five headline claims to a single right-half-plane nonvanishing theorem, and how root Challenge.lean locks the target signatures.
  • Formal Statement Contracts — why each of the four predicates in src/Statements.lean carries its exact exclusions and strip bounds.
  • Independent Statement Equivalence — how the comparator/ files (archived on upstream's alpoge branch while temporarily pending re-integration on condensed main) bridge the submission's strip formulation to the external formal-conjectures statements of RH and GRH.

What Stage 00 leaves out: Stage 00 treats the core proof engine New.grh (defined in src/New/Reduction/OneSidedBound.lean and imported by src/Main.lean via New.Main, whose stated type asserts nonvanishing of L(χ,s) on Re(s)>1/2) as a typed black box. The full proof engine is unpacked across all seven downstream pillars: Stage 01 — The Theorem and Its Reduction (one-sided prime-sum reduction, main inequality, and families of lifted inner-product spaces that pair complex norms with p-adic integrality across twiststwisted lattice), Stage 02 — Derivatives of Theta Functions, Stage 03 — Upper Bound (Theorem A), Stage 04 — Spanning (Theorem B), Stage 05 — Determinant (Theorem C, Pt 1), Stage 06 — One Lift (Theorem C, Pt 2), and Stage 07 — Congruences & Galois Representations (Theorem C, Pt 3) (while the 9-file discrete-series supplement src/New/Appendix/DiscreteSeries/ and the 495-file literature library src/Lib/ sit outside the 41 primary landmarks and are cited directly where consumed).

Complex s-plane showing convergence half-plane, critical strip, critical line, pole at s=1, trivial zeros, and first nontrivial zeros

Prime counting staircase pi(x) compared against Li(x) and illustrative zeta-zero error envelope

Where this analogy breaks ​

Describing nontrivial zeros as "sound waves" building the prime-counting error accurately conveys that each zero ρ=σ+it contributes an oscillatory term xσeitln⁡x/ρ whose amplitude grows with σ and whose frequency grows with t. The analogy breaks on independence and synthesis: unlike audio harmonics that can be tuned independently on a synthesizer, the zeros of ζ(s) and L(χ,s) are rigidly locked together by the arithmetic Euler product and global analyticity, and the upstream submission does not inspect zeros individually—its strategy aims for global nonvanishing in the entire half-plane Re(s)>1/2.

Level 2 · Undergrad Bridge

Level 2 — Undergrad Bridge ​

Stage 00 organizes the logical architecture at the summit of the proof into a short chain of implications that uses only classical complex analysis and Mathlib's L-function library:

DirichletLNonvanishingRightOfHalf⟹DirichletLZerosOnLine⟹PrimitiveDirichletLZerosOnLine⟺GRH (formal-conjectures)DirichletLNonvanishingRightOfHalf⟹RiemannHypothesis=RiemannZetaZerosOnLine.

Three classical ingredients carry every arrow in Stage 00:

  1. Conductor reduction inside the open strip: For any character χmodN induced by its primitive character χ∗modq (q∣N), L(χ,s)=L(χ∗,s)∏p∣N(1−χ∗(p)p−s). Because |p−s|=p−Re(s)<1 on Re(s)>0, the finite Euler factor never vanishes in 0<Re(s)<1, so L(χ,s)=0⟹L(χ∗,s)=0.
  2. Functional-equation reflection across Re(s)=1/2: For primitive χ∗, the completed function Λ(χ∗,s) satisfies Λ(χ∗,s)=ε(χ∗)Λ((χ∗)−1,1−s) with ε(χ∗)≠0, and the gamma factor has no zeros in Re(s)>0. Any zero s of L(χ∗,s) with 0<Re(s)<1/2 therefore reflects to a zero 1−s of L((χ∗)−1,⋅) with 1/2<Re(1−s)<1, contradicting right-half-plane nonvanishing.
  3. Whole-plane equivalence for primitive characters: Classical nonvanishing on Re(s)≥1 (LFunction_ne_zero_of_one_le_re, plus ζ(1)≠0 in Mathlib's pole convention) rules out zeros to the right of the strip, while reflection from Re(s)≤0 to Re(1−s)≥1 shows every zero in Re(s)≤0 comes from a pole of the gamma factor—matching GRH.trivialZeros χ exactly.

Everything below DirichletLNonvanishingRightOfHalf belongs to Stages 01–07; everything inside Stage 00 is a transparent, self-contained statement and reduction contract (whose local Lean/Comparator build verification remains unverified-locally, and whose formal-conjectures bridge is currently archived on upstream's alpoge branch pending re-integration on condensed main).

Level 3 · Formal Lean Contract

Level 3 — Formal Lean Contract ​

On November 25, 2026, upstream leanprover-community/riemann-hypothesis condensed main to the readable edition (GUIDE.md, INDEX.md, src/New/, and src/Lib/), moving Challenge.lean to the repository root and temporarily leaving comparator/ Formal Conjectures pending re-integration (archived on upstream's alpoge branch at c900e67c2fcd1fdb041685820bbd2b867fbc5a4b).

Stage 00 covers three active extracted skeleton modules derived from upstream leanprover-community/riemann-hypothesis at pinned commit 41c2716658c42ba08eb0648994a2efe83082a95c (41c2716658c4, leanprover/lean4:v4.37.0-rc1, Mathlib rev 31ce06eaadf4a200c0e1407c5f10953cf606b8f8):

Skeleton FileUpstream PathRole in Stage 00
00_statement/statements.leansrc/Statements.leanFour Prop definitions specifying RH and GRH contracts
00_statement/challenge.leanChallenge.leanFrozen Mathlib-only challenge (import Statements; 5 target theorems with sorry at lines 8, 11, 14, 17, 20)
00_statement/main.leansrc/Main.leanSolution entry module (public import New.Main) proving all 5 theorems from New.grh (src/New/Reduction/OneSidedBound.lean)

Live direct-import DAG topology: In the condensed 41-landmark DAG (dag/dag.json), root Challenge.lean directly declares import Statements, so 00_statement/challenge depends directly on 00_statement/statements. Meanwhile, src/Main.lean declares public import New.Main, connecting 00_statement/main directly to 01_reduction/new_main (which in turn imports 01_reduction/one_sided_bound and 00_statement/statements).

Verification status (audit/verification-status.json): Local Lean compilation and kernel replay are currently unverified-locally. Local checks in this repository verify commit provenance (41c2716658c42ba08eb0648994a2efe83082a95c), entry-file static scanning (0 forbidden tokens across src/Statements.lean and src/Main.lean; 5 expected sorry tokens in root Challenge.lean at lines 8, 11, 14, 17, 20), and parsed root comparator.json metadata (challenge_module: "Challenge", solution_module: "Main", permitted axioms propext, Quot.sound, Classical.choice, enable_nanoda: true alongside Lean's kernel). The comparator/ Formal Conjectures harness is temporarily absent on condensed main@41c2716658c4 and remains archived on alpoge@c900e67c2fcd1fdb041685820bbd2b867fbc5a4b.

Formal Statements & Challenge Contracts dependency mini-mapProof graph for stage 00_statement.Statementssrc/Statements.leanChallenge [landmark]Challenge.leanMain [landmark]src/Main.lean
Formal Statements & Challenge Contracts: solid blue border marks landmark theorem modules; arrows trace Lean import dependencies.
  1. Statements — src/Statements.lean (depends on: none)
  2. Challenge (landmark) — Challenge.lean (depends on: 00_statement/statements)
  3. Main (landmark) — src/Main.lean (depends on: 01_reduction/new_main)

Page Glossary ​

prime number
A whole number greater than 1 whose only positive whole-number divisors are 1 and itself; every integer above 1 factors uniquely into a product of them.
complex plane
The two-dimensional coordinate plane of numbers s = σ + it, where the horizontal coordinate σ = Re(s) sets decay rate and the vertical coordinate t = Im(s) sets oscillation frequency.
infinite series
A limit of partial sums formed by adding infinitely many terms; in number theory, weighting terms by n⁻ˢ produces a Dirichlet series that turns integer arithmetic into a smooth function.
analytic continuation
The unique extension of a complex-differentiable function from a smaller region to a larger domain, locked in place by the identity theorem.
Riemann zeta function
The meromorphic function ζ(s) extending ∑ n⁻ˢ to all of ℂ ∖ {1}, linking prime numbers via its Euler product to zeros in the complex plane.
trivial zero
A zero at a non-positive integer forced purely by poles of the gamma factor in the functional equation, carrying no hidden information about prime fluctuations.
critical strip
The open vertical band 0 < Re(s) < 1 in the complex plane that contains every nontrivial zero of ζ(s) and of every Dirichlet L-function.
critical line
The vertical line Re(s) = 1/2 bisecting the critical strip—the axis of mirror symmetry s ↦ 1 − s where the Riemann Hypothesis asserts all nontrivial zeros lie.
Dirichlet character
A periodic multiplicative label χ : ℤ → ℂ modulo N that equals 0 when gcd(n, N) > 1, takes roots of unity when gcd(n, N) = 1, and satisfies χ(ab) = χ(a)χ(b).
Dirichlet L-function
The meromorphic continuation of ∑ χ(n) n⁻ˢ associated to a Dirichlet character χ, generalizing ζ(s) to track primes across residue classes modulo N.
primitive character
A Dirichlet character modulo q whose pattern does not come from any strictly smaller dividing modulus; its modulus q equals its minimal period (conductor).
formal verification
Checking every logical step of a mathematical proof by a small computer kernel against explicit axioms, paired with statement-equivalence checks ensuring the proved theorem matches the intended conjecture.
twisted lattice
A family of linear lifts from one complex vector space into inner-product spaces—one per twist—equipped with prime-by-prime integrality lattices so each prime can pick its own allowed twist.