Lean formalization of the Riemann Hypothesis (Alpöge, 2026-11-20) being cleaned up by members of the Lean community.
Python
fix(New/Derivatives/Vacuum/Divisibility): place helper in scope and refine docstring
Rohan Arun522300dd69c2
diff --git a/src/New/Derivatives/Vacuum/Divisibility.lean b/src/New/Derivatives/Vacuum/Divisibility.leanindex 8534e1e53f8..070999f8fb0 100644--- a/src/New/Derivatives/Vacuum/Divisibility.lean+++ b/src/New/Derivatives/Vacuum/Divisibility.lean@@ -106,6 +106,16 @@ curve and `periodFactor` is a normalising constant attached to `E`. Let `Q` be apolynomial of degree `l` with `p`-integral coefficients (in `embValRing`). Then the derivative`Q(∂)` at `0` (`jet`) of the Taylor series (`jetSeries`) of the theta function of `f` at`c * jetScale * z` has valuation in `ℂ_[p]` at least `l` times that of `c / (conj δ * d)`. -/+/-- Factor a 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]+theorem norm_jet_jetSeries_le_pow {P : Parameters} {s : ℕ} {n : Type} [Fintype n] [DecidableEq n]{ε : n → ℤˣ} {V : Space (E P s) n ε} [V.IsStd] {p : ℕ} [Fact p.Prime] [PadicPlace p]{δ : 𝓞 P.K} (hδ : δ ≠ 0) {f : 𝒮 V} (hf : f ∈ standardData V δ) (c : ℂ)@@ -113,11 +123,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δ crw [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)