Development/AutomorphicArithmetic/CharacterBoxes/ClaimStrip.lean
51exact h.resolve_right (gamma_ne_zero ψ hs0)52have hψ' : (ψ⁻¹).IsPrimitive := by53rw [DirichletCharacter.isPrimitive_def, DirichletCharacter.conductor_inv]; exact hψ54have fe := hψ'.completedLFunction_one_sub s55rw [inv_inv, hc, mul_zero] at fe56rw [DirichletCharacter.LFunction_eq_completed_div_gammaFactor ψ⁻¹ (1 - s) (Or.inl ht0'), fe,57zero_div]5859theorem strip (h : HalfPlane) : Strip := by60unfold HalfPlane at h61intro N _ χ s hs0 hs1 hz62have hs : s ≠ 1 := fun e => by rw [e, Complex.one_re] at hs1; exact lt_irrefl _ hs163have hs0' : s ≠ 0 := fun e => by rw [e, Complex.zero_re] at hs0; exact lt_irrefl _ hs064rcases lt_trichotomy s.re (1 / 2) with hlt | heq | hgt65· exfalso66haveI : NeZero χ.conductor := ⟨χ.conductor_ne_zero⟩67have hp := prim_zero χ hs0 hs1 hz68have hr := prim_reflect χ.primitiveCharacter χ.primitiveCharacter_isPrimitive hs0 hs1 hp69have ht : (1 : ℂ) - s ≠ 1 := fun e => hs0' (sub_eq_self.mp e)70exact h χ.conductor χ.primitiveCharacter⁻¹ (1 - s)71(by rw [Complex.sub_re, Complex.one_re]; linarith) (Or.inr ht) hr72· exact heq73· exact absurd hz (h N χ s hgt (Or.inr hs))7475theorem zeta (h : HalfPlane) : Zeta := by76intro s hz htriv hs177have hs0 : s ≠ 0 := fun e => by rw [e, riemannZeta_zero] at hz; norm_num at hz78rcases lt_or_ge 0 s.re with hpos | hnpos79· rcases lt_or_ge s.re 1 with hlt1 | hge180· have hL : DirichletCharacter.LFunction (1 : DirichletCharacter ℂ 1) s = 0 := by81rw [DirichletCharacter.LFunction_modOne_eq]; exact hz82exact strip h 1 1 s hpos hlt1 hL83· exact absurd hz (riemannZeta_ne_zero_of_one_le_re hge1)84· exfalso85have hG : Gammaℝ s ≠ 0 := by86intro hg87obtain ⟨n, hn⟩ := Complex.Gammaℝ_eq_zero_iff.mp hg88rcases n with _ | n89· exact hs0 (by simpa using hn)90· exact htriv ⟨n, by rw [hn]; push_cast; ring⟩91have hc : completedRiemannZeta s = 0 := by92rw [riemannZeta_def_of_ne_zero hs0, div_eq_zero_iff] at hz93exact hz.resolve_right hG94have h1s : 1 - s ≠ 0 := fun e => by95have := congrArg Complex.re e96rw [Complex.sub_re, Complex.one_re, Complex.zero_re] at this97linarith98have hz' : riemannZeta (1 - s) = 0 := by99rw [riemannZeta_def_of_ne_zero h1s, completedRiemannZeta_one_sub, hc, zero_div]100exact riemannZeta_ne_zero_of_one_le_re (by rw [Complex.sub_re, Complex.one_re]; linarith) hz'