Skip to content

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

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 ζ(s) have real part 1/2," human readers automatically skip the pole at s=1 and the negative even integers −2,−4,−6,…. A computer checker takes every word literally: if you forget to exclude even one point where a function behaves specially, the statement becomes false.

src/Statements.lean packages four carefully scoped propositions over the two-dimensional grid of points s=σ+itcomplex plane:

  1. Whole-plane form for ζ(s) (RiemannZetaZerosOnLine): For the global function extending ∑n=1∞n−sRiemann zeta function, whenever ζ(s)=0, s is not one of the predictable negative even integers −2,−4,−6,…trivial zero, and s≠1, the point s lies on the vertical line Re(s)=1/2critical line.
  2. Right-half-plane nonvanishing (DirichletLNonvanishingRightOfHalf): For every modulus N≥1 and every periodic multiplicative weight χ modulo NDirichlet character, the twisted function L(χ,s)Dirichlet L-function is nonzero whenever Re(s)>1/2, provided we exclude the single pole case where χ=1 and s=1 at the same time.
  3. Strip form for all characters (DirichletLZerosOnLine): For every modulus N≥1 and every character χ, any zero of L(χ,s) strictly inside the open vertical band 0<Re(s)<1critical strip lies on the critical line.
  4. 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 ζ(s) has a pole at s=1 rather than a zero? Because in dependent type theoryformal verification, every function ℂ → ℂ 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.

Dirichlet characters as periodic remainder wheels modulo 4 and modulo 5 contrasting primitive and induced characters

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 L-functions genuinely possess infinitely many zeros on the line Re(s)=0 coming from deleted prime factors, so dropping 0 < s.re without adding primitivity and excluding trivial zeros would turn DirichletLZerosOnLine into a false statement.

Level 2 · Undergrad Bridge

Level 2 — Undergrad Bridge ​

Each hypothesis in the four predicates of src/Statements.lean matches a concrete analytic boundary condition:

  • RiemannZetaZerosOnLine

    ∀s∈C,ζ(s)=0∧(¬∃n∈N,s=−2(n+1))∧s≠1⟹Re(s)=12.

    Here n : ℕ starts at 0, so -2 * ((n : ℂ) + 1) ranges over {-2, -4, -6, ...} and intentionally excludes 0 (where ζ(0)=−1/2≠0). The guard s ≠ 1 shields the statement from the total-function convention at the simple pole s=1 (even though Mathlib actually defines riemannZeta 1 to be a nonzero constant, riemannZeta_one_ne_zero). This matches Mathlib's RiemannHypothesis word for word.

  • DirichletLNonvanishingRightOfHalf

    ∀N≥1,∀χmodN,∀s∈C,Re(s)>12∧(χ≠1∨s≠1)⟹L(χ,s)≠0.

    Why (χ ≠ 1 ∨ s ≠ 1) instead of s ≠ 1? When χ is non-principal (χ≠1), L(χ,s) is entire—it has no pole at s=1, and L(χ,1)≠0 is Dirichlet's theorem on primes in arithmetic progressions. Only when χ=1 (a principal character modulo N, whose L-function equals ζ(s)∏p∣N(1−p−s)) does L(χ,s) inherit a pole at s=1. Requiring (χ ≠ 1 ∨ s ≠ 1) preserves the genuine nonvanishing assertion L(χ,1)≠0 for all non-principal characters while excluding only the genuine pole pair (χ=1,s=1).

  • DirichletLZerosOnLine

    ∀N≥1,∀χmodN,∀s∈C,0<Re(s)<1∧L(χ,s)=0⟹Re(s)=12.

    Confining s to the open strip 0<Re(s)<1 avoids three boundary phenomena simultaneously: the pole at s=1 (for χ=1), the non-positive integer trivial zeros in Re(s)≤0, and the infinitely many Euler-factor zeros on Re(s)=0 that appear whenever χ is imprimitive. Because NeZero N excludes N=0, every modulus N≥1 is covered cleanly.

  • PrimitiveDirichletLZerosOnLine Restricts DirichletLZerosOnLine by inserting χ.IsPrimitive. Mathematically it is strictly equivalent to DirichletLZerosOnLine (since deleting primes p∣N multiplies L(χ∗,s) by factors 1−χ∗(p)p−s that never vanish for Re(s)>0), and it serves as the handoff interface to the external formal-conjectures bridge (comparator/FormalConjecturesBridge.lean, archived on upstream's alpoge branch pending re-integration).

Level 3 · Formal Lean Contract

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)

lean
def RiemannZetaZerosOnLine : Prop :=
  ∀ s : ℂ, riemannZeta s = 0 → (¬∃ n : ℕ, s = -2 * ((n : ℂ) + 1)) → s ≠ 1 → s.re = 1 / 2

def DirichletLNonvanishingRightOfHalf — Upstream source (src/Statements.lean L10-L12)

lean
def DirichletLNonvanishingRightOfHalf : Prop :=
  ∀ (N : ℕ) [NeZero N] (χ : DirichletCharacter ℂ N) (s : ℂ),
    1 / 2 < s.re → (χ ≠ 1 ∨ s ≠ 1) → DirichletCharacter.LFunction χ s ≠ 0

def DirichletLZerosOnLine — Upstream source (src/Statements.lean L14-L16)

lean
def DirichletLZerosOnLine : Prop :=
  ∀ (N : ℕ) [NeZero N] (χ : DirichletCharacter ℂ N) (s : ℂ),
    0 < s.re → s.re < 1 → DirichletCharacter.LFunction χ s = 0 → s.re = 1 / 2

def PrimitiveDirichletLZerosOnLine — Upstream source (src/Statements.lean L18-L20)

lean
def PrimitiveDirichletLZerosOnLine : Prop :=
  ∀ (N : ℕ) [NeZero N] (χ : DirichletCharacter ℂ N), χ.IsPrimitive →
    ∀ s : ℂ, 0 < s.re → s.re < 1 → DirichletCharacter.LFunction χ s = 0 → s.re = 1 / 2

Page 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.