Formalism/GammaFactorNonvanishing/CritLine.lean
1import Development.AutomorphicArithmetic.CharacterBoxes.EveryCharacter2import Formalism.GammaFactorNonvanishing.RhOfRight34open Complex DirichletCharacter56theorem Formalism.VW.gammaFactor_ne_zero {N : ℕ} (χ : DirichletCharacter ℂ N) {s : ℂ} (hs : 0 < s.re) : gammaFactor χ s ≠ 0 := by7rcases χ.even_or_odd with h | h8· rw [h.gammaFactor_def]; exact Gammaℝ_ne_zero_of_re_pos hs9· rw [h.gammaFactor_def]; exact Gammaℝ_ne_zero_of_re_pos (by rw [add_re, one_re]; linarith)1011theorem Formalism.VW.critLine (h : UpperTheory.EveryCharacter) (N : ℕ) [NeZero N] (χ : DirichletCharacter ℂ N) (hχ : χ.IsPrimitive) (s : ℂ)12(h0 : 0 < s.re) (h1 : s.re < 1) (hz : LFunction χ s = 0) : s.re = 1 / 2 := by13have hs0 : s ≠ 0 := fun e => by simp [e] at h014have hs1 : s ≠ 1 := fun e => by simp [e] at h115by_contra hne16rcases lt_or_gt_of_ne hne with hlt | hgt17· have hinv : χ⁻¹.IsPrimitive := by18rw [isPrimitive_def, conductor_inv]; exact hχ19have hc : completedLFunction χ s = 0 := by20rw [LFunction_eq_completed_div_gammaFactor χ s (Or.inl hs0)] at hz21exact (div_eq_zero_iff.1 hz).resolve_right (Formalism.VW.gammaFactor_ne_zero χ h0)22have hfe := hinv.completedLFunction_one_sub s23rw [inv_inv, hc, mul_zero] at hfe24have h2 : (1 - s) ≠ 0 := sub_ne_zero.2 hs1.symm25refine h N χ⁻¹ (1 - s) (by rw [sub_re, one_re]; linarith) (Or.inr fun e => hs0 (by linear_combination -e)) ?_26rw [LFunction_eq_completed_div_gammaFactor χ⁻¹ (1 - s) (Or.inl h2), hfe, zero_div]27· exact h N χ s hgt (Or.inr hs1) hz2829theorem Formalism.VW.rh_of_every (h : UpperTheory.EveryCharacter) : RiemannHypothesis :=30Formalism.VW.rh_of_right fun s hs hs1 => by31have := h 1 (1 : DirichletCharacter ℂ 1) s hs (Or.inr hs1)32rwa [LFunction_modOne_eq] at this