Formal Statement Contracts (Statements.lean)
This landmark page examines the four Prop definitions in src/Statements.lean that serve as the shared contract between the proof library and the entry theorems. Return to the Stage 00 Overview or read The Five Entry Theorems to see how Main.lean proves them.
Level 1 — First-Principles
Writing a mathematical conjecture in a computer language forces every silent assumption out into the open. When mathematicians say informally that "all zeros of
src/Statements.lean packages four carefully scoped propositions over the two-dimensional grid of points
- Whole-plane form for
( RiemannZetaZerosOnLine): For the global function extendingRiemann zeta function, whenever , is not one of the predictable negative even integers trivial zero, and , the point lies on the vertical line critical line. - Right-half-plane nonvanishing (
DirichletLNonvanishingRightOfHalf): For every modulusand every periodic multiplicative weight modulo Dirichlet character, the twisted function Dirichlet L-function is nonzero whenever , provided we exclude the single pole case where and at the same time. - Strip form for all characters (
DirichletLZerosOnLine): For every modulusand every character , any zero of strictly inside the open vertical band critical strip lies on the critical line. - Strip form for minimal-period characters (
PrimitiveDirichletLZerosOnLine): The exact same strip claim restricted to characters whose pattern cannot be inherited from a strictly smaller dividing modulusprimitive character, isolating the exact version needed to prove equivalence with independent external formulations.
Why does RiemannZetaZerosOnLine still require s ≠ 1 if ℂ → ℂ must return some complex number at every input—there is no "undefined" value. Excluding s ≠ 1 makes the theorem completely independent of whatever conventional junk value Mathlib assigns at the pole.
Where this analogy breaks
Thinking of the extra hypotheses (s ≠ 1, 0 < s.re, s.re < 1) as mere defensive boilerplate understates their mathematical role. For imprimitive characters, the strict inequality 0 < s.re is mathematically required rather than a technicality: imprimitive 0 < s.re without adding primitivity and excluding trivial zeros would turn DirichletLZerosOnLine into a false statement.
Level 2 — Undergrad Bridge
Each hypothesis in the four predicates of src/Statements.lean matches a concrete analytic boundary condition:
RiemannZetaZerosOnLineHere
n : ℕstarts at0, so-2 * ((n : ℂ) + 1)ranges over{-2, -4, -6, ...}and intentionally excludes0(where). The guard s ≠ 1shields the statement from the total-function convention at the simple pole(even though Mathlib actually defines riemannZeta 1to be a nonzero constant,riemannZeta_one_ne_zero). This matches Mathlib'sRiemannHypothesisword for word.DirichletLNonvanishingRightOfHalfWhy
(χ ≠ 1 ∨ s ≠ 1)instead ofs ≠ 1? Whenis non-principal ( ), is entire—it has no pole at , and is Dirichlet's theorem on primes in arithmetic progressions. Only when (a principal character modulo , whose -function equals ) does inherit a pole at . Requiring (χ ≠ 1 ∨ s ≠ 1)preserves the genuine nonvanishing assertionfor all non-principal characters while excluding only the genuine pole pair . DirichletLZerosOnLineConfining
to the open strip avoids three boundary phenomena simultaneously: the pole at (for ), the non-positive integer trivial zeros in , and the infinitely many Euler-factor zeros on that appear whenever is imprimitive. Because NeZero Nexcludes, every modulus is covered cleanly. PrimitiveDirichletLZerosOnLineRestrictsDirichletLZerosOnLineby insertingχ.IsPrimitive. Mathematically it is strictly equivalent toDirichletLZerosOnLine(since deleting primesmultiplies by factors that never vanish for ), and it serves as the handoff interface to the external formal-conjecturesbridge (comparator/FormalConjecturesBridge.lean, archived on upstream'salpogebranch pending re-integration).
Level 3 — Formal Lean Contract
src/Statements.lean (lines 1–20) declares module (line 1), public import Mathlib (line 3)—importing zero files from the proof submission—and @[expose] public section (line 5) so every definition unfolds transparently for downstream proofs and for Comparator.
All four declarations are preserved verbatim (with preserve_defs: true) in skeleton/00_statement/statements.lean from upstream src/Statements.lean:7-20 at pinned commit 41c2716658c42ba08eb0648994a2efe83082a95c (41c2716658c4). In the condensed tree, Challenge.lean now lives at the repository root and directly executes import Statements at line 1 rather than duplicating the four definitions; nothing in the submission imports Challenge.lean, and Statements imports only Mathlib.
Verification status (audit/verification-status.json): Local Lean build verification is unverified-locally (pinned upstream commit 41c2716658c42ba08eb0648994a2efe83082a95c; entry static scan reports 0 forbidden tokens in src/Statements.lean). Proceed to Independent Statement Equivalence to see how PrimitiveDirichletLZerosOnLine bridges to the external formal-conjectures statement of GRH.
def RiemannZetaZerosOnLine — Upstream source (src/Statements.lean L7-L8)
def RiemannZetaZerosOnLine : Prop :=
∀ s : ℂ, riemannZeta s = 0 → (¬∃ n : ℕ, s = -2 * ((n : ℂ) + 1)) → s ≠ 1 → s.re = 1 / 2def DirichletLNonvanishingRightOfHalf — Upstream source (src/Statements.lean L10-L12)
def DirichletLNonvanishingRightOfHalf : Prop :=
∀ (N : ℕ) [NeZero N] (χ : DirichletCharacter ℂ N) (s : ℂ),
1 / 2 < s.re → (χ ≠ 1 ∨ s ≠ 1) → DirichletCharacter.LFunction χ s ≠ 0def DirichletLZerosOnLine — Upstream source (src/Statements.lean L14-L16)
def DirichletLZerosOnLine : Prop :=
∀ (N : ℕ) [NeZero N] (χ : DirichletCharacter ℂ N) (s : ℂ),
0 < s.re → s.re < 1 → DirichletCharacter.LFunction χ s = 0 → s.re = 1 / 2def PrimitiveDirichletLZerosOnLine — Upstream source (src/Statements.lean L18-L20)
def PrimitiveDirichletLZerosOnLine : Prop :=
∀ (N : ℕ) [NeZero N] (χ : DirichletCharacter ℂ N), χ.IsPrimitive →
∀ s : ℂ, 0 < s.re → s.re < 1 → DirichletCharacter.LFunction χ s = 0 → s.re = 1 / 2Page Glossary
- 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.
- 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 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.
- 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.
- 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.