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): place helper above theorem docstring
Rohan Arun340be4f4550c
diff --git a/src/New/Derivatives/Vacuum/Divisibility.lean b/src/New/Derivatives/Vacuum/Divisibility.leanindex 070999f8fb0..85c6d0b9efa 100644--- a/src/New/Derivatives/Vacuum/Divisibility.lean+++ b/src/New/Derivatives/Vacuum/Divisibility.lean@@ -98,14 +98,6 @@ lemma norm_jet_jetSeries_le_one {P : Parameters} {s : ℕ} {n : Type} [Fintype nrw [map_jetPairing, h_scaled, MvPolynomial.map_map]exact P.cmCurve.norm_jet_thetaProd_pow_mul_le_one hν m N hH' (fun x : embValRing ↦ x.property) Q-/-- **Integrality at all primes.** Let `V` be a standard hermitian space over `E = P.E s`, and let-`f` be standard data of level `δ ≠ 0` at `p` on it (`standardData V δ`): a `p`-integral combination-of the translates of the integral vacuum by the points that `δ` makes integral above `p`. Let-`jetScale = periodFactor * √(2π / √d) / Ω₀`, where `P.K = ℚ(√-d)`, `Ω₀ 𝓞_K` is the lattice of its CM-curve and `periodFactor` is a normalising constant attached to `E`. Let `Q` be a homogeneous-polynomial 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}@@ -116,6 +108,14 @@ private lemma mul_jetScale_eq_div_mul {P : Parameters} {s : ℕ} {δ : 𝓞 P.K}mul_ne_zero (star_ne_zero.2 (mod_cast hδ)) (NeZero.ne _)rw [← mul_assoc, div_mul_cancel₀ _ h_ne]+/-- **Integrality at all primes.** Let `V` be a standard hermitian space over `E = P.E s`, and let+`f` be standard data of level `δ ≠ 0` at `p` on it (`standardData V δ`): a `p`-integral combination+of the translates of the integral vacuum by the points that `δ` makes integral above `p`. Let+`jetScale = periodFactor * √(2π / √d) / Ω₀`, where `P.K = ℚ(√-d)`, `Ω₀ 𝓞_K` is the lattice of its CM+curve and `periodFactor` is a normalising constant attached to `E`. Let `Q` be a homogeneous+polynomial 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)`. -/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 : ℂ)@@ -123,10 +123,8 @@ 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_scale : c * P.jetScale s =- 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,+ rw [mul_jetScale_eq_div_mul hδ c, 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)