Skip to content

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): extract jet-scale factorization helper

Rohan Arune1a5d025fb5d
diff --git a/src/New/Derivatives/Vacuum/Divisibility.lean b/src/New/Derivatives/Vacuum/Divisibility.lean
index bc9bce7bc87..14e01e755b6 100644
--- a/src/New/Derivatives/Vacuum/Divisibility.lean
+++ b/src/New/Derivatives/Vacuum/Divisibility.lean
@@ -113,10 +113,9 @@ 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) := by
- rw [← mul_assoc, div_mul_cancel₀ _ h_ne]
+ c / (star (δ : ℂ) * P.d) * (star (δ : ℂ) * P.d * P.jetScale s) :=
+ mul_jetScale_eq_div_mul hδ c
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)
@@ -141,6 +140,16 @@ open NumberField ComplexConjugate Finset Fintype
namespace New.Parameters
variable {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 in
the construction of the Weil representation; the product of `α` and the integer `P.q₁ s` is integral
at every place. Let `p` be a prime that does not divide `P.q₁ s`, and `y` a vector over `E`. If all