teal-sea / zeta-labstate of record · compiled 14 Aug 2026 · revision 9ebdea0 · source

Library · lean/HANDOFF_HardyZ.md

Handoff: Hardy's Z Function (Mathlib4 Port)

305 words · 27 lines · source

Target: hardyZ Status: Ready to draft Lean code Workspace: lean/ZetaLean/ Target Host: leanprover-community/mathlib4

Goal

Formalize Hardy's Z function in Lean 4 to pave the way for proving the Critical Line Theorem.

The Strategy

Instead of wrestling with continuous branches of log Γ for the Riemann-Siegel ϑ, we are directly defining Z t using the completed Riemann zeta function Λ (which is completedRiemannZeta in Mathlib). Since Λ(1/2 + it) is known to be real, this lets us sidestep the logarithm branching issues entirely.

Definition Stubs

I've placed a stub file at ZetaLean/HardyZ.lean. It includes the basic definition shape and outlines the lemmas for the first PR:

  1. Definition: hardyZ (t : ℝ) : ℂ := completedRiemannZeta (1/2 + t*I) / (...)
  2. Realness: Prove ∃ r : ℝ, hardyZ t = r using riemannZeta_conj and completedRiemannZeta_one_sub.
  3. Absolute Value: Prove ‖hardyZ t‖ = ‖riemannZeta (1/2 + I*t)‖ (requires showing Γ(1/4 + I*t/2) ≠ 0).
  4. Evenness: Prove hardyZ (-t) = hardyZ t.
  5. Zero Equivalency: Prove hardyZ t = 0 ↔ riemannZeta (1/2 + I*t) = 0.
  6. Continuity: Prove Continuous hardyZ.

Notes on the First PR