Proof AtlasMCP access
ProofsNumber theory

Lean proof review
The Riemann Hypothesis

Unverified claim

A proposed Lean proof that every nontrivial zero of ζ(s) has real part ½.

Lean 4Number theoryƒDirichlet L-functions
Formalism/GammaFactorNonvanishing/RhOfRight.lean
1import Mathlib23open Complex45theorem Formalism.VW.rh_of_right (hz : ∀ s : ℂ, 1 / 2 < s.re → s ≠ 1 → riemannZeta s ≠ 0) : RiemannHypothesis := by6  unfold RiemannHypothesis7  intro s hs htriv hs18  rcases lt_trichotomy s.re (1 / 2) with hlt | heq | hgt9  · exfalso10    have hpi : (Real.pi : ℂ) ≠ 0 := by exact_mod_cast Real.pi_ne_zero11    have hs0 : s ≠ 0 := by12      rintro rfl13      rw [riemannZeta_zero] at hs14      norm_num at hs15    have ht : 1 / 2 < (1 - s).re := by16      rw [Complex.sub_re, Complex.one_re]17      linarith18    have h1 : (1 - s) ≠ 1 := by19      intro h20      apply hs021      linear_combination -h22    have hnat : ∀ n : ℕ, (1 - s) ≠ -(n : ℂ) := by23      intro n h24      have hr := congrArg Complex.re h25      rw [Complex.sub_re, Complex.one_re, Complex.neg_re, Complex.natCast_re] at hr26      have : (0 : ℝ) ≤ n := n.cast_nonneg27      linarith28    have key := riemannZeta_one_sub hnat h129    rw [sub_sub_cancel, hs] at key30    have hz' := hz (1 - s) ht h131    have h2pi : (2 : ℂ) * (2 * (Real.pi : ℂ)) ^ (-(1 - s)) ≠ 0 :=32      mul_ne_zero two_ne_zero (Complex.cpow_ne_zero_iff.2 (Or.inl (mul_ne_zero two_ne_zero hpi)))33    have hG : Complex.Gamma (1 - s) ≠ 0 := Complex.Gamma_ne_zero_of_re_pos (by linarith)34    have hcos : Complex.cos ((Real.pi : ℂ) * (1 - s) / 2) ≠ 0 := by35      rw [Ne, Complex.cos_eq_zero_iff]36      rintro ⟨k, hk⟩37      have h3 : ((1 - s) - (2 * (k : ℂ) + 1)) * (Real.pi : ℂ) = 0 := by38        linear_combination 2 * hk39      rcases mul_eq_zero.1 h3 with h | h40      · have hsk : s = -2 * (k : ℂ) := by linear_combination -h41        have hre : s.re = -2 * (k : ℝ) := by42          rw [hsk, Complex.mul_re]43          simp44        rcases lt_trichotomy k 0 with hk0 | hk0 | hk045        · have : (k : ℝ) ≤ -1 := by exact_mod_cast (show k ≤ -1 by omega)46          linarith47        · apply hs048          rw [hsk, hk0]49          simp50        · apply htriv
62 linesLn 2UTF-8Raw