Lean formalization of the Riemann Hypothesis (Alpöge, 2026-11-20) being cleaned up by members of the Lean community.
Python
refactor(Lib/DiscreteSeries/Holomorphic/PeaksAwayFromCusp): keep periodicity comment and reuse φ_eq
Rohan Arunf9ea13baa7e9
diff --git a/src/Lib/DiscreteSeries/Holomorphic/PeaksAwayFromCusp.lean b/src/Lib/DiscreteSeries/Holomorphic/PeaksAwayFromCusp.leanindex 396060eb779..e402f138b9b 100644--- a/src/Lib/DiscreteSeries/Holomorphic/PeaksAwayFromCusp.lean+++ b/src/Lib/DiscreteSeries/Holomorphic/PeaksAwayFromCusp.lean@@ -462,6 +462,9 @@ private lemma New.Rows.periodic_and_mdifferentiable_transvection {E n : Type} [F(φ_eq : ∀ (h' : InfinitePlace E → USign s) (b' : InfinitePlace E → Matrix n n ℂ),(∀ w, IsBorelMatrix o (b' w)) →φ (fun w ↦ h' w * b' w) = (∏ w, diagChar (u w) (b' w)) * F h')+ (f_eq : ∀ z : ℍ,+ φ (fun w ↦ 1 - (a w * ((z : ℂ) - .I)) • vecMulVec (y w) (star (y w)) * signMatrix s) =+ (∏ w, diagChar (u w) (b z w)) * F (h z))(φ_an : ∀ z : ℍ, AnalyticAt ℂ φ (fun w ↦ (h z w : Matrix n n ℂ) * b z w)) :let x (ζ : ℂ) (w : InfinitePlace E) : Matrix n n ℂ :=1 - (a w * (ζ - .I)) • vecMulVec (y w) (star (y w)) * signMatrix s@@ -481,9 +484,7 @@ private lemma New.Rows.periodic_and_mdifferentiable_transvection {E n : Type} [Fsimp [mul_assoc]calc ((fun z : ℍ ↦ φ (x z)) ∘ ofComplex) (z + 1) = φ (x (z + 1)) := bysimp [ofComplex_apply_eq_ite, hz]- _ = φ (x z') := by- rw [x_shift, φ_eq _ _ (b_tri z'), t_fix,- (congr_arg φ (funext (x_eq z'))).trans (φ_eq _ _ (b_tri z'))]+ _ = φ (x z') := by rw [x_shift, φ_eq _ _ (b_tri z'), t_fix, f_eq]_ = ((fun z : ℍ ↦ φ (x z)) ∘ ofComplex) z := by simp [ofComplex_apply_eq_ite, hz, z']· simp [hz, ofComplex_apply_eq_ite]· have φ_analytic : AnalyticAt ℂ φ (x z) := by@@ -558,7 +559,7 @@ lemma New.Rows.norm_le_of_transvection_invariant {E n : Type} [Field E] [CMTypesimpa using (tendsto_prod_div_sqrt_atImInfty (fun w ↦ (2 * A * η w).exp) η_pos).const_mul C-- periodicity and holomorphy along the complexified transvectionobtain ⟨f_per, f_hol⟩ :=- periodic_and_mdifferentiable_transvection iso t_eq t_fix h b b_tri x_eq φ_eq+ periodic_and_mdifferentiable_transvection iso t_eq t_fix h b b_tri x_eq φ_eq f_eqfun z ↦ (hφ _ _ (b_tri z) (by simp)).1-- the Schwarz lemma with the bound `C * e ^ 2`rw [← f_I, exp_add, ← mul_assoc]