Lean formalization of the Riemann Hypothesis (Alpöge, 2026-11-20) being cleaned up by members of the Lean community.
Python
refactor(New/Derivatives/Vacuum/Divisibility): keep scale factorization inline
Rohan Arun8efb3d71a173
diff --git a/src/New/Derivatives/Vacuum/Divisibility.lean b/src/New/Derivatives/Vacuum/Divisibility.leanindex 14e01e755b6..8534e1e53f8 100644--- a/src/New/Derivatives/Vacuum/Divisibility.lean+++ b/src/New/Derivatives/Vacuum/Divisibility.lean@@ -113,9 +113,11 @@ theorem norm_jet_jetSeries_le_pow {P : Parameters} {s : ℕ} {n : Type} [Fintype‖ιₚ (jetPairing (Q.map embValRing.subtype) (V.jetSeries (c * P.jetScale s) f))‖ ≤‖ιₚ (c / (star (δ : ℂ) * P.d))‖ ^ l := by-- Scaling the variables by `c / (conj δ * d)` multiplies the derivative by the `l`-th power.+ have h_ne : star (δ : ℂ) * P.d ≠ 0 :=+ mul_ne_zero (star_ne_zero.2 (mod_cast hδ)) (NeZero.ne _)have h_scale : c * P.jetScale s =- c / (star (δ : ℂ) * P.d) * (star (δ : ℂ) * P.d * P.jetScale s) :=- mul_jetScale_eq_div_mul hδ c+ c / (star (δ : ℂ) * P.d) * (star (δ : ℂ) * P.d * P.jetScale s) := by+ rw [← mul_assoc, div_mul_cancel₀ _ h_ne]rw [h_scale, V.jetSeries_mul_eq_rescale, jet_rescale (hQ.map _), map_mul, map_pow, norm_mul,norm_pow]exact mul_le_of_le_one_right (by positivity) (norm_jet_jetSeries_le_one hδ hf Q)@@ -140,16 +142,6 @@ open NumberField ComplexConjugate Finset Fintypenamespace New.Parametersvariable {P : Parameters} {s : ℕ} {n : Type} {p : ℕ} [Fact p.Prime]-/-- Factor a nonzero scale `c * P.jetScale s` for `δ ≠ 0` as-`(c / (star (δ : ℂ) * P.d)) * (star (δ : ℂ) * P.d * P.jetScale s)`. -/-private lemma mul_jetScale_eq_div_mul {P : Parameters} {s : ℕ} {δ : 𝓞 P.K}- (hδ : δ ≠ 0) (c : ℂ) :- c * P.jetScale s =- c / (star (δ : ℂ) * P.d) * (star (δ : ℂ) * P.d * P.jetScale s) := by- have h_ne : star (δ : ℂ) * P.d ≠ 0 :=- mul_ne_zero (star_ne_zero.2 (mod_cast hδ)) (NeZero.ne _)- rw [← mul_assoc, div_mul_cancel₀ _ h_ne]-/-- Let `α = P.α s` be the finite idele of `E = P.E s` that makes the integral adeles self-dual inthe construction of the Weil representation; the product of `α` and the integer `P.q₁ s` is integralat every place. Let `p` be a prime that does not divide `P.q₁ s`, and `y` a vector over `E`. If all