Lean formalization of the Riemann Hypothesis (Alpöge, 2026-11-20) being cleaned up by members of the Lean community.
Python
module
import Mathlib.Data.Rat.Cast.OfScientific
public import New.Derivatives.Sharpness.Cases
import Lib.General.Algebra.LevelModulus
import Lib.Weil.Construction.FourierInversion
import New.Derivatives.Vacuum.ShortVectors
/-!
# Sharpness of the valuation bound
* `New.Data.exists_le_norm_coeff_indicatorDatum`: the reduction to the curve. Some Taylor
coefficient of degree `l` of an indicator datum, times the factor `vacuumScale ^ 12` of the
integral vacuum, has valuation at most `val₁₂(l) + v(M ^ (12 f) c₀)`, where `c₀` is a value of the
integral vacuum.
* `New.Data.exists_rpow_neg_localPrimeSumTotal_le_norm_coeff`: for degrees `l` between the weights
`κ` and `κ + x ^ 42`, with `x = D.x`, there is one number `t ≠ 0` with small conjugates such that
at every prime some Taylor coefficient of degree `l` of an indicator datum, times `∏ l!` and the
factor `vacuumScale ^ 12` of the integral vacuum, has valuation at most `S_p + v(t)`.
The theta product times monomials in the function `y` along the forms of a tight frame is the Taylor
series of a vector with integral values, and Fourier inversion expands that vector in translates of
the vacuum. Each translate is a sum of indicator data times roots of unity.
Notions from other files:
* A tight frame of length `M` with multiplicities `c` is a family `w` of lattice vectors with
`∑ c i Φ_σ(w i) conj(Φ_τ(w i)) = M δ_{σ τ}` (`New.IsTightFrame`). Here `M = D.M`.
* `val_n(l) ≤ r` (`CMLattice.LeastValLE`) says that some coefficient of degree `l` in some product
over `n` copies of `H Θ` has valuation at most `r`. Here `Θ` is the theta product of the frame and
`H` is an integral series in the functions `y` along the forms of the frame.
* `intVacuum V` is the vacuum `V.vacElem` times `vacuumScale ^ n`, where `n` is the rank of `V`.
* `π_M = D.piM` is the conjugate of the integer `π̄_M = D.piMBar` of `K`, of norm `M`.
* `D.localPrimeSumTotal p` is the forced divisibility `S_p` at the weights of `D`, the sum of
`D.localPrimeSum p (D.weight τ) τ` over the infinite places `τ`.
* `α` is the finite idele of the Weil data of `D.E`, `𝔞₀ = E ∩ α Ô` its lattice, `finVec x` the
adelic vector `(0, α x)` with zero part at infinity, and `D.f` the number of infinite places
of `D.E`.
## Relation to the literature
Sharpness for one curve (slope `p / (p² - 1)`, attained in infinitely many degrees) is known in the
literature.
Related work: Bannai–Kobayashi, Algebraic theta functions and the p-adic interpolation of
Eisenstein–Kronecker numbers (arXiv v1), 2006; Bannai–Kobayashi–Yasuda, Radius of convergence of the
p-adic sigma function, 2017; Schneider–Teitelbaum, p-adic Fourier theory, 2001; Bannai–Kobayashi,
Integral structures on p-adic Fourier theory, 2016.
-/
@[expose] public section
open Finset MvPowerSeries ComplexConjugate Real IsUltrametricDist Fintype Nat Finsupp
namespace New
section copies
/-- The embedding of the variables of one copy as the `b`-th of `k` copies. -/
def copyEmbedding {X : Type} {k : ℕ} (b : Fin k) : X × Unit ↪ X × Fin k × Unit :=
⟨fun x ↦ (x.1, b, ()), fun _ _ h ↦ Prod.ext (Prod.mk.inj h).1 rfl⟩
lemma copyEmbedding_apply {X : Type} {k : ℕ} (b : Fin k) (x : X × Unit) :
copyEmbedding b x = (x.1, b, ()) := rfl
/-- The exponent in `k` copies of the variables whose part in the `b`-th copy is `α b`. -/
noncomputable def copyExponent {X : Type} {k : ℕ} (α : Fin k → X × Unit →₀ ℕ) :
X × Fin k × Unit →₀ ℕ :=
∑ b : Fin k, (α b).embDomain (copyEmbedding b)
/-- The part of `copyExponent α` in the `b`-th copy is `α b`. -/
lemma copyExponent_apply {X : Type} {k : ℕ} (α : Fin k → X × Unit →₀ ℕ) (x : X) (b : Fin k) :
copyExponent α (x, b, ()) = α b (x, ()) := by
rw [copyExponent, finsetSum_apply, sum_eq_single_of_mem b (mem_univ b)]
· exact embDomain_apply_self (copyEmbedding b) (α b) (x, ())
· exact fun b' _ hb' ↦ embDomain_of_notMem_range _ _ _ fun ⟨⟨x', ⟨⟩⟩, hx'⟩ ↦
hb' (Prod.mk.inj (Prod.mk.inj hx').2).1
/-- The coefficient at `copyExponent α` of a product of series, each in the variables of its own
copy, is the product of the coefficients at the exponents `α b` of the copies. -/
lemma coeff_prod_rename_copyEmbedding {X R : Type} [CommRing R] {k : ℕ}
(α : Fin k → X × Unit →₀ ℕ) (Ψ : Fin k → MvPowerSeries (X × Unit) R) :
coeff (copyExponent α) (∏ b : Fin k, rename (copyEmbedding b) (Ψ b)) =
∏ b : Fin k, coeff (α b) (Ψ b) := by
classical
let β₀ : Fin k →₀ X × Fin k × Unit →₀ ℕ :=
equivFunOnFinite.symm fun b ↦ (α b).embDomain (copyEmbedding b)
have hβ₀ : β₀ ∈ finsuppAntidiag univ (copyExponent α) :=
mem_finsuppAntidiag.2 ⟨rfl, fun _ _ ↦ mem_univ _⟩
rw [coeff_prod, sum_eq_single_of_mem β₀ hβ₀]
· simp only [β₀, equivFunOnFinite_symm_apply_apply, coeff_embDomain_rename]
-- In a nonzero term each exponent `β b` lies in copy `b`, so it is the part `α b`.
intro β hβ h_ne
by_contra h_prod
have h_range (b : Fin k) : β b ∈ Set.range (mapDomain (copyEmbedding b)) :=
by_contra fun hb ↦ h_prod (prod_eq_zero (mem_univ b) (coeff_rename_eq_zero _ _ hb))
choose (α' : Fin k → X × Unit →₀ ℕ) hα' using h_range
have h_exponent : copyExponent α' = copyExponent α := by
rw [copyExponent]
simp only [embDomain_eq_mapDomain, hα']
exact (mem_finsuppAntidiag.1 hβ).1
have h_copy (b : Fin k) : α' b = α b := by
ext ⟨x, ⟨⟩⟩
rw [← copyExponent_apply, h_exponent, copyExponent_apply]
exact h_ne (Finsupp.ext fun b ↦ by
rw [← hα' b, h_copy b, ← embDomain_eq_mapDomain]
rfl)
end copies
namespace Data
open CMLattice Parameters QuadField Pointwise
/-- Substitute the linear form `∑ x, μ x • X_(x, b)` (`linearSeries`) in the variables of copy
`b` into the Taylor series of `f`, and apply `ιₚ : ℂ → ℂ_[p]` to the coefficients. The result is
the series `taylorVia ιₚ f` along the form `ιₚ ∘ μ` of one copy, renamed into copy `b`. -/
lemma map_subst_linearSeries_copy {p : ℕ} [Fact p.Prime] [PadicPlace p] {X : Type} [Fintype X]
{k : ℕ} (f : ℂ → ℂ) (μ : X → ℂ) (b : Fin k) :
((taylorAtZero f).subst
(linearSeries fun y : X × Fin k × Unit ↦ if y.2 = (b, ()) then μ y.1 else 0)).map ιₚ =
rename (copyEmbedding b) ((taylorVia ιₚ f).subst
(linearSeries fun x : X × Unit ↦ (ιₚ (μ x.1) : ℂ_[p]))) := by
have h_lhs : (linearSeries fun y : X × Fin k × Unit ↦ if y.2 = (b, ()) then μ y.1 else 0) =
∑ x : X, μ x • MvPowerSeries.X (x, b, ()) := by
rw [linearSeries, sum_prod_type]
refine sum_congr rfl fun x _ ↦ ?_
rw [sum_prod_type_right, Fintype.sum_unique, PUnit.default_eq_unit]
simp only [Prod.mk.injEq, and_true, ite_smul, zero_smul, Fintype.sum_ite_eq']
have h_form : (linearSeries fun y : X × Fin k × Unit ↦ if y.2 = (b, ()) then μ y.1 else 0).map
ιₚ = rename (copyEmbedding b) (linearSeries fun x : X × Unit ↦ (ιₚ (μ x.1) : ℂ_[p])) := by
let fMap := MvPowerSeries.map (σ := X × Fin k × Unit) ιₚ
let gMap := rename (R := ℂ_[p]) (copyEmbedding (X := X) b)
rw [h_lhs, map_sum fMap, linearSeries,
map_sum gMap, sum_prod_type]
refine sum_congr rfl fun x _ ↦ ?_
rw [Fintype.sum_unique, PUnit.default_eq_unit, smul_eq_C_mul, smul_eq_C_mul,
RingHom.map_mul fMap, map_C, map_X, map_mul, rename_C, rename_X, copyEmbedding_apply]
-- Both sides are the series of `f` substituted into the linear form in the copy `b`.
rw [PowerSeries.map_subst (.of_constantCoeff_zero (constantCoeff_linearSeries _)), h_form]
simp only [rename_eq_subst, PowerSeries.subst]
rw [subst_comp_subst_apply (PowerSeries.HasSubst.of_constantCoeff_zero
(constantCoeff_linearSeries _)).const (.X_comp _)]
/-- The `p`-adic norm of a product of nonzero natural numbers is `p` to minus the sum of their
valuations. -/
lemma norm_natCast_prod_eq_rpow_neg_sum {p : ℕ} [hp : Fact p.Prime] [PadicPlace p] {X : Type}
[Fintype X] {n : X → ℕ} (hn : ∀ x : X, n x ≠ 0) :
‖(ιₚ (∏ x : X, n x : ℕ) : ℂ_[p])‖ = p ^ (-∑ x : X, (padicValNat p (n x) : ℝ)) := by
rw [map_natCast, Nat.cast_prod]
exact New.norm_prod_natCast_eq_rpow_neg_sum (p := p) hn
/-- The hermitian space `Hom(E, E¹²)` of `12 × 1` matrices over `E = D.E`, where `E` and `E¹²` carry
the sum of the norms of the coordinates (`stdSpace`). The sign of a coordinate is the product of
the signs of its row and column, here always `+1` (`homSigns 1 1`). The vectors of this file lie
in `𝒮 D.twelveSpace`, the space of functions on adelic vectors that models the adelic Heisenberg
representation. -/
noncomputable abbrev twelveSpace {P : Parameters} (D : Data P) :
Space D.E (Fin 12 × Unit) (homSigns 1 1) :=
(stdSpace D.E Unit).hom (stdSpace D.E (Fin 12))
/-- The series `Space.jetSeries` of a vector `F` on `Hom(E, E¹²)` at the scale `a = π_M * jetScale`:
for `F` in the finite part it is the Taylor series at `0` of `z ↦ Θ_F(a z)`, where `Θ_F` is the
theta function `Space.entireTheta F`. Here `π_M` is the conjugate of `D.piMBar` and
`jetScale = periodFactor * areaScale / cmPeriod`, where `cmPeriod 𝓞_K` is the lattice of the curve
`P.cmCurve`, `areaScale = √(2π / √d)` for `d = P.d`, and
`periodFactor = vacuumRoot / chowlaSelbergUnit` is a constant of the field `D.E = P.E D.towerExp`,
the cyclotomic extension of `K` at the level `D.towerExp` of the tower. -/
noncomputable abbrev twelveTaylor {P : Parameters} (D : Data P) :
𝒮 D.twelveSpace →ₗ[ℂ] MvPowerSeries (D.Φ × Fin 12 × Unit) ℂ :=
D.twelveSpace.jetSeries (conj ↑D.piMBar * P.jetScale D.towerExp)
/-- The vector on `Hom(E, E¹²)` whose part at infinity is the Gaussian `exp(-|x|² / 2)`
(`Fock.vacVector`), whose part at the places dividing `𝔪` is the indicator of the class `y₀` of
matrices over the residue ring `𝔪.ResidueRing = O_E/𝔪`, and which agrees with the vacuum
`Space.vacElem` at the other finite places. The three parts are put together by `modDatum`. -/
noncomputable abbrev indicatorDatum {P : Parameters} (D : Data P) (𝔪 : Modulus D.E)
(y₀ : Matrix (Fin 12) Unit 𝔪.ResidueRing) : 𝒮 D.twelveSpace :=
modDatum (stdSpace D.E Unit) (stdSpace D.E (Fin 12)) 𝔪 (Pi.single y₀ 1) Fock.vacVector
/-- For `e * 3 ≤ c`, the Taylor series at `0` of `P.cmCurve.monomialSection (c - e * 3, 0, e)`
equals `taylorAtZero P.cmCurve.translatedY ^ e * taylorAtZero P.cmCurve.θ ^ c`. -/
private lemma taylorAtZero_monomialSection_eq {P : Parameters} {c e : ℕ} (hce : e * 3 ≤ c) :
taylorAtZero (P.cmCurve.monomialSection (c - e * 3, 0, e)) =
taylorAtZero P.cmCurve.translatedY ^ e * taylorAtZero P.cmCurve.θ ^ c := by
have hθ : AnalyticAt ℂ P.cmCurve.θ 0 := P.cmCurve.differentiable_theta.analyticAt 0
have h_eq : ∀ z : ℂ, z + P.cmCurve.t ∉ P.cmCurve.Λ →
P.cmCurve.monomialSection (c - e * 3, 0, e) z =
P.cmCurve.θ z ^ c * P.cmCurve.translatedY z ^ e := by
intro z hz
rw [P.cmCurve.monomialSection_eq (c - e * 3, 0, e) z hz]
dsimp only [monomialDeg]
rw [zero_mul, add_zero, Nat.sub_add_cancel hce, pow_zero, one_mul]
rw [P.cmCurve.taylorAtZero_congr h_eq,
taylorAtZero_mul (hθ.fun_pow _) (P.cmCurve.analyticAt_translatedY_zero.fun_pow _),
taylorAtZero_pow hθ, taylorAtZero_pow P.cmCurve.analyticAt_translatedY_zero, mul_comm]
/-- For a resolution product `F` on `D.twelveSpace` at scale `P.cmPeriod / conj ↑D.piMBar`,
evaluating `D.twelveTaylor F` cancels the scaling factors to `P.periodFactor D.towerExp` and
gives the product over `J × Fin 12 × Unit` of the Taylor series of `monomialSection` composed with
`resolutionFormCoeff`. -/
private lemma twelveTaylor_eq_prod_of_isResolutionProduct {P : Parameters} (D : Data P)
{J : Type} [Fintype J] {w : J → D.E} {c : J → ℕ}
{monomialDegrees : J × Fin 12 × Unit → ℕ × ℕ × ℕ} {F : 𝒮 D.twelveSpace}
(hF : IsResolutionProduct D.twelveSpace P.cmCurve (P.cmPeriod / conj (D.piMBar : ℂ)) w c
(fun x : J × Fin 12 × Unit ↦ P.cmCurve.monomialSection (monomialDegrees x)) F) :
D.twelveTaylor F = ∏ x : J × Fin 12 × Unit,
(taylorAtZero (P.cmCurve.monomialSection (monomialDegrees x))).subst
(linearSeries (resolutionFormCoeff (P.periodFactor D.towerExp) w x)) := by
have h_scale : P.cmPeriod / conj ↑D.piMBar / P.areaScale *
(conj ↑D.piMBar * P.jetScale D.towerExp) = P.periodFactor D.towerExp := by
have hπ : conj (D.piMBar : ℂ) ≠ 0 := star_ne_zero.2 D.coe_piMBar_ne_zero
rw [jetScale, div_div, div_mul_eq_mul_div, mul_left_comm (P.cmPeriod : ℂ),
mul_div_mul_left _ _ hπ, mul_comm (P.cmPeriod : ℂ),
div_mul_cancel₀ _ P.cmPeriod.ne_zero, mul_div_cancel_right₀ _ P.areaScale.ne_zero]
have h_shift (x : J × Fin 12 × Unit) :
resolutionShift (P.cmPeriod / conj ↑D.piMBar) w (0 : Fin 12 × Unit → D.E) x = 0 := by
rw [resolutionShift, Pi.zero_apply,
Finset.sum_eq_zero fun τ _ ↦ by rw [map_zero, zero_mul], neg_zero, mul_zero]
have h := hF.jetSeries_translate 0 (conj ↑D.piMBar * P.jetScale D.towerExp)
rw [map_zero, finVec_zero, Space.ϱ, Heisenberg.Rep.rho_zero_apply, h_scale] at h
refine h.trans (prod_congr rfl fun x _ ↦ ?_)
rw [h_shift x, twistedTranslate, thetaShift_zero]
/-- Applying `ιₚ : ℂ → ℂ_[p]` to the product over `J × Fin 12 × Unit` of the Taylor series of
`P.cmCurve.monomialSection (c i - e b i * 3, 0, e b i)` along `resolutionFormCoeff` separates it
into the product over the twelve copies `b : Fin 12` of
`(∏ i, (taylorVia ιₚ translatedY).subst (linearSeries (μ i)) ^ e b i) * thetaProd μ c`. -/
private lemma map_prod_subst_monomialSection_eq {P : Parameters} {p : ℕ} [Fact p.Prime]
[PadicPlace p] (D : Data P) {J : Type} [Fintype J] {w : J → D.E} {c : J → ℕ}
{e : Fin 12 → J → ℕ} (he : ∀ (b : Fin 12) (i : J), e b i * 3 ≤ c i) :
(∏ x : J × Fin 12 × Unit,
(taylorAtZero (P.cmCurve.monomialSection
(c x.1 - e x.2.1 x.1 * 3, 0, e x.2.1 x.1))).subst
(linearSeries (resolutionFormCoeff (P.periodFactor D.towerExp) w x))).map ιₚ =
∏ b : Fin 12, rename (copyEmbedding b)
((∏ i : J, (taylorVia ιₚ P.cmCurve.translatedY).subst
(linearSeries (P.resolutionForms (p := p) D.towerExp w i)) ^ e b i) *
P.cmCurve.thetaProd (P.resolutionForms D.towerExp w) c) := by
let copyForm : J × Fin 12 × Unit → D.Φ × Fin 12 × Unit → ℂ :=
resolutionFormCoeff (P.periodFactor D.towerExp) w
have h_copy (f : ℂ → ℂ) (i : J) (b : Fin 12) :
((taylorAtZero f).subst (linearSeries (copyForm (i, b, ())))).map ιₚ =
rename (copyEmbedding b)
((taylorVia ιₚ f).subst
(linearSeries (P.resolutionForms (p := p) D.towerExp w i))) :=
map_subst_linearSeries_copy f (fun τ ↦ P.periodFactor D.towerExp * conj (New.Φ τ (w i))) b
have h_subst (x : J × Fin 12 × Unit) : PowerSeries.HasSubst (linearSeries (copyForm x)) :=
.of_constantCoeff_zero (constantCoeff_linearSeries _)
rw [map_prod, prod_prod_type_right, prod_prod_type_right, Fintype.prod_unique,
PUnit.default_eq_unit]
refine prod_congr rfl fun b _ ↦ ?_
rw [thetaProd, map_mul, map_prod, map_prod, ← prod_mul_distrib]
refine prod_congr rfl fun i _ ↦ ?_
rw [taylorAtZero_monomialSection_eq (he b i), PowerSeries.subst_mul (h_subst _),
PowerSeries.subst_pow (h_subst _), PowerSeries.subst_pow (h_subst _), map_mul, map_pow,
map_pow, h_copy, h_copy, map_pow, map_pow]
/-- Let `D` be admissible data for the parameters `P`, with `K = P.K = ℚ(√-d)` and `E = D.E` the
cyclotomic extension `P.E D.towerExp` of `K`; `D.Φ` is the set of its infinite places `τ`. Let `w`
be a tight frame of length `M = D.M` with multiplicities `c`. Let
`μ_i(z) = periodFactor * ∑ conj(Φ_τ(w i)) z_τ` be its linear forms (`resolutionForms`, read through
an embedding `ιₚ : ℂ → ℂ_[p]`). Let `θ` be the theta function of the elliptic curve
`P.cmCurve = ℂ / cmPeriod 𝓞_K`, let `y(z) = ½(℘′(z + t) - a₁(℘(z + t) - ℘(t)))` for its point `t`
and coefficient `a₁` (`translatedY`), and `Θ = ∏ θ(μ_i z) ^ c i` (`thetaProd`).
If `3 e b i ≤ c i`, there is a vector `F` of `𝒮 D.twelveSpace`, the Heisenberg model of functions on
the adelic `12 × 1` matrices over `E`, such that
* the rescaled Taylor series `twelveTaylor F` of its theta function `Space.entireTheta F` is the
product over twelve copies `b` of the variables of the series `∏ y(μ_i z) ^ e b i * Θ`;
* its values at the adelic vectors `finVec x = (0, α x)`, for `x` over the finite adeles `𝔸f E`, are
integral at `ιₚ`;
* its theta function is fixed by the signed translations along `π_M 𝔞₀¹²` (`IsThetaFunction`). -/
lemma exists_integral_isThetaFunction_twelveTaylor_eq {P : Parameters} {p : ℕ} [Fact p.Prime]
[PadicPlace p] (D : Data P) {J : Type} [Fintype J] {w : J → D.E} {c : J → ℕ}
(hw : IsTightFrame w c D.M) {e : Fin 12 → J → ℕ}
(he : ∀ (b : Fin 12) (i : J), e b i * 3 ≤ c i) : ∃ F : 𝒮 D.twelveSpace,
(D.twelveTaylor F).map ιₚ = ∏ b : Fin 12, rename (copyEmbedding b)
((∏ i : J, (taylorVia ιₚ P.cmCurve.translatedY).subst
(linearSeries (P.resolutionForms (p := p) D.towerExp w i)) ^ e b i) *
P.cmCurve.thetaProd (P.resolutionForms D.towerExp w) c) ∧
(∀ x : Fin 12 × Unit → 𝔸f D.E, ‖(ιₚ (F (finVec x)) : ℂ_[p])‖ ≤ 1) ∧
IsThetaFunction (star (algebraMap P.K D.E D.piMBar) • idealLattice D.E (Fin 12 × Unit))
(Space.entireTheta F) := by
-- `y ^ e θ ^ c = (y θ ^ 3) ^ e θ ^ (c - 3 e)` is a monomial section of degree `c`.
let monomialDegrees (x : J × Fin 12 × Unit) : ℕ × ℕ × ℕ :=
(c x.1 - e x.2.1 x.1 * 3, 0, e x.2.1 x.1)
have h_area : P.cmCurve.area = ‖(P.cmPeriod : ℂ)‖ ^ 2 / D.M * D.M * √P.d / 2 := by
rw [area_eq_of_eq_scaledIdeal latticeModule_cmCurve,
div_mul_cancel₀ _ (Nat.cast_ne_zero.2 (NeZero.ne D.M))]
dsimp only
rw [Units.val_one, map_one, Rat.cast_one, mul_one]
obtain ⟨F, hF, hF_int, h_periods⟩ := exists_isResolutionProduct_of_isTightFrame D.twelveSpace
D.piMBar (NeZero.ne D.M) D.piMBar_mul_conj hw monomialDegrees
(fun x ↦ Nat.sub_add_cancel (he x.2.1 x.1)) cmPeriod_mem_cmCurve_lattice h_area
refine ⟨F, ?_, hF_int p, h_periods⟩
rw [D.twelveTaylor_eq_prod_of_isResolutionProduct hF]
exact D.map_prod_subst_monomialSection_eq he
/-- Let `D` be admissible data for the parameters `P`, with CM field `E = D.E` over `K = P.K`, and
let `F` lie in `𝒮 D.twelveSpace`, the Heisenberg model of functions on the adelic `12 × 1` matrices
over `E`. Let `F` have integral values at the adelic vectors `finVec x = (0, α x)`, for `x` over the
finite adeles `𝔸f E` and `α` the finite idele of the Weil data of `E`. Let its theta function be
fixed by the signed translations along `π_M 𝔞₀¹²`. Let `𝔪 = (π_M)`. For every linear form `L` and
every vector `y` over `𝔸f E` there is a class `y₀` modulo `𝔪` such that the valuation of
`L (indicatorDatum 𝔪 y₀)` is at most that of `M ^ (12 f) L(F)` times the value of the vacuum at
`finVec y`. -/
lemma exists_norm_le_norm_indicatorDatum {P : Parameters} {p : ℕ} [Fact p.Prime] [PadicPlace p]
(D : Data P) {F : 𝒮 D.twelveSpace}
(hF_int : ∀ x : Fin 12 × Unit → 𝔸f D.E, ‖(ιₚ (F (finVec x)) : ℂ_[p])‖ ≤ 1)
(h_periods : IsThetaFunction
(star (algebraMap P.K D.E D.piMBar) • idealLattice D.E (Fin 12 × Unit)) (Space.entireTheta F))
{𝔪 : Modulus D.E} (h𝔪 : 𝔪.ideal = .span {D.piM}) (L : 𝒮 D.twelveSpace →ₗ[ℂ] ℂ)
(y : Fin 12 × Unit → 𝔸f D.E) : ∃ y₀ : Matrix (Fin 12) Unit 𝔪.ResidueRing,
‖(ιₚ (D.M ^ (D.f * 12) * L F * D.twelveSpace.vacElem (finVec y)) : ℂ_[p])‖ ≤
‖(ιₚ (L (D.indicatorDatum 𝔪 y₀)) : ℂ_[p])‖ := by
-- Fourier inversion writes `M ^ (12 f) F = ∑ i, c i • ϱ(u i) vac` with `π̄_M u i` in `𝔞₀¹²`,
-- where `ϱ(u i)` is the translation by the finite part of the rational vector `u i`.
set v : ℂ := D.twelveSpace.vacElem (finVec y)
have h_integral : algebraMap D.E (𝔸f D.E) (algebraMap P.K D.E D.piMBar) ∈ Ô D.E :=
coe_mem_Ô (algebraMap (NumberField.RingOfIntegers P.K) _ D.piMBar)
have h_norm : algebraMap P.K D.E D.piMBar * star (algebraMap P.K D.E D.piMBar) = D.M := by
apply (New.Φ 1).injective
rw [map_mul, map_star_complex, phi_algebraMap, map_natCast]
exact D.piMBar_mul_conj
obtain ⟨Y, Γ, _, _, u, γ, c, hu, -, -, h_average, h_inversion⟩ :=
D.twelveSpace.exists_fourier_coefficients h_integral (NeZero.ne D.M) h_norm h_periods
-- The values of `c i • vac`, among them `c i * v`, are integral with those of `F`.
have hc (i : Y) : ‖(ιₚ (c i * v) : ℂ_[p])‖ ≤ 1 :=
D.twelveSpace.norm_mul_vacElem_le_one_of_eq_sum hF_int (h_average i) y
-- Each translate of the vacuum is a sum of indicator data times roots of unity.
have h_translate (i : Y) : ∃ z : Matrix (Fin 12) Unit 𝔪.ResidueRing → 𝔸f D.E,
D.twelveSpace.ϱ (finVec (finiteImage (u i))) D.twelveSpace.vacElem =
∑ y₀ : Matrix (Fin 12) Unit 𝔪.ResidueRing,
stdLattice.selfDualAddChar D.E (z y₀) • D.indicatorDatum 𝔪 y₀ := by
refine exists_rho_finVec_vacElem_eq_sum_modDatum _ _ h𝔪 fun k ↦ ?_
have hk := mem_idealLattice.1 (hu i) k
rw [map_smul, Pi.smul_apply, Algebra.smul_def] at hk
exact hk
choose z hz using h_translate
have h_sum : D.M ^ (D.f * 12) * L F * v = ∑ x : Y × Matrix (Fin 12) Unit 𝔪.ResidueRing,
stdLattice.selfDualAddChar D.E (z x.1 x.2) * (c x.1 * v) * L (D.indicatorDatum 𝔪 x.2) :=
calc D.M ^ (D.f * 12) * L F * v
= L ((D.M : ℂ) ^ card (D.Φ × Fin 12 × Unit) • F) * v := by
rw [map_smul, smul_eq_mul, Fintype.card_prod, Fintype.card_prod, Fintype.card_fin,
Fintype.card_unique (α := Unit), mul_one]
_ = ∑ i : Y, c i * (∑ y₀ : Matrix (Fin 12) Unit 𝔪.ResidueRing,
stdLattice.selfDualAddChar D.E (z i y₀) * L (D.indicatorDatum 𝔪 y₀)) * v := by
rw [← h_inversion, map_sum L, Finset.sum_mul]
refine sum_congr rfl fun i _ ↦ ?_
rw [hz i, L.map_smul, smul_eq_mul, map_sum L]
congr 2
exact sum_congr rfl fun y₀ _ ↦ by rw [L.map_smul, smul_eq_mul]
_ = _ := by
rw [sum_prod_type]
refine sum_congr rfl fun i _ ↦ ?_
rw [Finset.mul_sum, Finset.sum_mul]
exact sum_congr rfl fun y₀ _ ↦ by ring
obtain ⟨y₀, h_max⟩ := Finite.exists_max fun y₁ : Matrix (Fin 12) Unit 𝔪.ResidueRing ↦
‖(ιₚ (L (D.indicatorDatum 𝔪 y₁)) : ℂ_[p])‖
refine ⟨y₀, ?_⟩
rw [h_sum, map_sum ιₚ]
refine norm_sum_le_of_forall_le_of_nonneg (norm_nonneg _) fun x _ ↦ ?_
rw [map_mul, map_mul, norm_mul, norm_mul, norm_map_selfDualAddChar, one_mul]
exact (mul_le_mul_of_nonneg_right (hc x.1) (norm_nonneg _)).trans
(by rw [one_mul]; exact h_max x.2)
/-- Reduction to the curve. Let `D` be admissible data for the parameters `P`, with CM field
`E = D.E = P.E D.towerExp`, whose `f = D.f` infinite places form `D.Φ`; valuations are taken at
`ιₚ : ℂ → ℂ_[p]`. Let `w` be a tight frame of length `M = D.M` with linear forms `μ_i`
(`resolutionForms`) and multiplicities `c i ≥ 3 |l|`. Suppose `val₁₂(l) ≤ r` (`LeastValLE`): some
coefficient of degree `l` in some product over twelve copies of the variables of series `H Θ` has
valuation at most `r`, where `Θ = ∏ θ(μ_i z) ^ c i` and each `H` is an integral series in the
`y(μ_i z)`, for the functions `θ` and `y` of the elliptic curve `P.cmCurve`. Then for some class
`y₀` modulo `𝔪 = (π_M)`, `π_M = D.piM`, some coefficient of degree `l` of the rescaled Taylor series
(`twelveTaylor`) of the theta function of `indicatorDatum 𝔪 y₀`, times `vacuumScale ^ 12`, has
valuation at most `r + v(M ^ (12 f) c₀)`.
The vacuum is the Gaussian times the twisted indicator of the standard lattice, on the adelic
`12 × 1` matrices over `E` (`twelveSpace`); `indicatorDatum 𝔪 y₀` is the vacuum with its part at the
places dividing `𝔪` replaced by the indicator of `y₀`. The integral vacuum `intVacuum` is the vacuum
times `vacuumScale ^ 12`, a constant that makes its values integral, and `c₀` is its value at the
adelic vector `finVec y` with zero part at infinity. -/
lemma exists_le_norm_coeff_indicatorDatum {P : Parameters} {p : ℕ} [Fact p.Prime] [PadicPlace p]
(D : Data P) {J : Type} [Fintype J] {w : J → D.E} {c : J → ℕ}
(hw : IsTightFrame w c D.M) {l : D.Φ × Unit →₀ ℕ} (hc : ∀ i : J, l.degree * 3 ≤ c i) {r : ℝ}
(h_val : P.cmCurve.LeastValLE (p := p) (P.resolutionForms D.towerExp w) c 12 l r)
{𝔪 : Modulus D.E} (h𝔪 : 𝔪.ideal = .span {D.piM}) (y : Fin 12 × Unit → 𝔸f D.E) :
∃ (γ : D.Φ × Fin 12 × Unit →₀ ℕ) (y₀ : Matrix (Fin 12) Unit 𝔪.ResidueRing),
(∀ σ : D.Φ, ∑ b : Fin 12, γ (σ, b, ()) = l (σ, ())) ∧
p ^ (-r) * ‖(ιₚ (D.M ^ (D.f * 12) * intVacuum D.twelveSpace (finVec y)) : ℂ_[p])‖ ≤
‖(ιₚ (P.vacuumScale D.towerExp ^ 12 * coeff γ (D.twelveTaylor (D.indicatorDatum 𝔪 y₀))) :
ℂ_[p])‖ := by
-- Take twelve series `∏ y(μ_i z) ^ e b i * Θ` with `|e b| ≤ |l|` whose coefficients at exponents
-- `α b` of sum `l` have a product of valuation at most `r`. Lift them to a vector and expand it.
obtain ⟨α, e, rfl, he_deg, h_prod⟩ := h_val.exists_monomial
have he (b : Fin 12) (i : J) : e b i * 3 ≤ c i :=
(Nat.mul_le_mul_right 3 ((le_degree _ _).trans (he_deg b))).trans (hc i)
obtain ⟨F, h_series, hF_int, h_periods⟩ :=
D.exists_integral_isThetaFunction_twelveTaylor_eq (p := p) hw he
obtain ⟨y₀, h_indicator_bound⟩ := D.exists_norm_le_norm_indicatorDatum hF_int h_periods h𝔪
(P.vacuumScale D.towerExp ^ 12 • coeff (copyExponent α) ∘ₗ D.twelveTaylor) y
refine ⟨copyExponent α, y₀, fun σ ↦ by simp only [copyExponent_apply, finsetSum_apply], ?_⟩
set a : ℂ := coeff (copyExponent α) (D.twelveTaylor F) with ha
have h_coeff : p ^ (-r) ≤ ‖(ιₚ a : ℂ_[p])‖ := by
rwa [ha, ← coeff_map, h_series, coeff_prod_rename_copyEmbedding, norm_prod]
have h_vac : a * (D.M ^ (D.f * 12) * intVacuum D.twelveSpace (finVec y)) =
D.M ^ (D.f * 12) * (P.vacuumScale D.towerExp ^ 12 * a) *
D.twelveSpace.vacElem (finVec y) := by
rw [intVacuum, Space.smul_apply, Fintype.card_prod, Fintype.card_fin, Fintype.card_unique]
ring
calc p ^ (-r) * ‖(ιₚ (D.M ^ (D.f * 12) * intVacuum D.twelveSpace (finVec y)) : ℂ_[p])‖
≤ ‖(ιₚ a : ℂ_[p])‖ *
‖(ιₚ (D.M ^ (D.f * 12) * intVacuum D.twelveSpace (finVec y)) : ℂ_[p])‖ := by gcongr
_ = ‖(ιₚ (D.M ^ (D.f * 12) * (P.vacuumScale D.towerExp ^ 12 * a) *
D.twelveSpace.vacElem (finVec y)) : ℂ_[p])‖ := by
rw [← norm_mul, ← map_mul, h_vac]
_ ≤ _ := h_indicator_bound
/-- Let `D` be admissible data for the parameters `P`, with CM field `E = D.E`, whose `f = D.f`
infinite places form `D.Φ`. For degrees `l ≤ κ + x ^ 42` at the weights `κ = D.weight`, all
conjugates of `t = M ^ (12 f) c₀ ∏ B_τ ^ 2` are at most `exp (f m b / k)` in absolute value. Here
`x`, `b` are scales and `m`, `r` ranks of `D`, with `k = D.k = r + 1 - m` and `M = D.M`. Further
`B_τ = D.lossProduct (l τ) = (l⁻ + 1) ⋯ (l⁻ + n)` with `n = D.lossFactorCount = ⌈6 b / k⌉` and
`l⁻ = (l τ - n)₊`. The number `c₀` is the value at `finVec y`, an adelic vector with zero part at
infinity, of the integral vacuum `intVacuum`: the Gaussian times the twisted indicator of the
standard lattice on the adelic `12 × 1` matrices over `E` (`twelveSpace`), multiplied by the
constant `vacuumScale ^ 12` that makes its values integral. -/
lemma norm_map_mul_intVacuum_le {P : Parameters} (D : Data P) {l : D.Φ → ℕ}
(hl : ∀ τ : D.Φ, (l τ : ℝ) ≤ D.weight τ + D.x ^ 42)
(y : Fin 12 × Unit → 𝔸f D.E) (σ : ℂ ≃+* ℂ) :
‖σ ((D.M ^ (D.f * 12) * ∏ τ : D.Φ, D.lossProduct (l τ) ^ 2 : ℕ) *
intVacuum D.twelveSpace (finVec y))‖ ≤ exp (D.f * D.m / D.k * D.b) := by
-- the vacuum and each loss product are bounded by exponentials; their exponents add up
set lossBase : ℝ := 2 * D.b + D.lossFactorCount with h_lossBase
have h_vac : ‖σ (intVacuum D.twelveSpace (finVec y))‖ ≤
exp (12 * (P.constantBound * D.q₁ ^ 2)) := by
have h_const : (P.vacuumBoundConst : ℝ) ≤ P.constantBound := by
rw [Parameters.constantBound, add_assoc]
exact le_add_of_nonneg_right (by positivity)
refine (norm_ringEquiv_intVacuum_le (V := D.twelveSpace) σ).trans ?_
rw [Fintype.card_prod, Fintype.card_fin, Fintype.card_unique (α := Unit), mul_one,
← exp_natCast_mul]
exact Real.exp_le_exp.2 (by push_cast; gcongr)
have h_loss (τ : D.Φ) : (D.lossProduct (l τ) : ℝ) ≤ lossBase ^ D.lossFactorCount := by
refine (Nat.cast_le.2 (ascFactorial_le_pow_add _ _)).trans ?_
rw [cast_pow]
refine pow_le_pow_left₀ (Nat.cast_nonneg _) ?_ _
rw [cast_add]
exact add_le_add ((Nat.cast_le.2 tsub_le_self).trans
((hl τ).trans (weight_add_x_pow_le_two_mul_b D τ))) le_rfl
have h_int : ((D.M ^ (D.f * 12) * ∏ τ : D.Φ, D.lossProduct (l τ) ^ 2 : ℕ) : ℝ) ≤
exp (12 * D.f * Real.log D.M + 2 * D.f * D.lossFactorCount * Real.log lossBase) := by
have h_lossBase_pos : 0 < lossBase := by positivity
calc _ ≤ (D.M : ℝ) ^ (D.f * 12) * ∏ _τ : D.Φ, (lossBase ^ D.lossFactorCount) ^ 2 := by
push_cast
gcongr with τ _
exact h_loss τ
_ = exp (Real.log D.M) ^ (D.f * 12) *
(exp (Real.log lossBase) ^ D.lossFactorCount) ^ (2 * D.f) := by
rw [exp_log (Nat.cast_pos.2 (NeZero.pos D.M)), exp_log h_lossBase_pos, prod_const,
Finset.card_univ, ← pow_mul]
_ = _ := by
simp only [← exp_natCast_mul, ← exp_add]
congr 1
push_cast
ring
have h_exponent : 12 * D.f * Real.log D.M + 2 * D.f * D.lossFactorCount * Real.log lossBase +
12 * (P.constantBound * D.q₁ ^ 2) ≤ D.f * D.m / D.k * D.b := by
rw [h_lossBase, lossFactorCount]
exact D.le_of_hasLogBound (by scale_grind D)
rw [map_mul, norm_mul, map_natCast, Complex.norm_natCast]
exact (mul_le_mul h_int h_vac (norm_nonneg _) (exp_nonneg _)).trans
(by rw [← exp_add]; exact Real.exp_le_exp.2 h_exponent)
/-- Sharpness. Let `D` be admissible data for the parameters `P`, with `K = ℚ(√-d)` for the prime
`d = P.d` and `E = D.E = P.E D.towerExp` the extension of `K` by the roots of unity of order
`q₁ = D.q₁`. For degrees `l` with `κ ≤ l ≤ κ + x ^ 42` at the weights `κ = D.weight` there is a
number `t ≠ 0` with all conjugates at most `exp (f m b / k)` such that, at every prime `p` and
embedding `ιₚ : ℂ → ℂ_[p]`, for some exponent `γ` of degree `l` and some class `y₀` modulo
`𝔪 = (π_M)` the valuation of the coefficient at `γ` of `twelveTaylor (indicatorDatum 𝔪 y₀)`, times
`vacuumScale ^ 12 ∏ l!`, is at most `S_p + v(t)`.
The numbers `x`, `b` are scales and `m`, `r` ranks of `D`, `k = r + 1 - m`, and `π_M = D.piM` is an
integer of `K` of norm `D.M`. -/
theorem exists_rpow_neg_localPrimeSumTotal_le_norm_coeff {P : Parameters} (D : Data P) (l : D.Φ → ℕ)
(hl : ∀ τ : D.Φ, (D.weight τ : ℝ) ≤ l τ ∧ l τ ≤ (D.weight τ : ℝ) + D.x ^ 42) :
∃ t : ℂ, t ≠ 0 ∧
(∀ σ : ℂ ≃+* ℂ, ‖σ t‖ ≤ exp (D.f * D.m / D.k * D.b)) ∧
∀ 𝔪 : Modulus D.E, 𝔪.ideal = .span {D.piM} → ∀ (p : ℕ) [Fact p.Prime] [PadicPlace p],
∃ (γ : D.Φ × Fin 12 × Unit →₀ ℕ) (y₀ : Matrix (Fin 12) Unit 𝔪.ResidueRing),
(∀ τ : D.Φ, ∑ b : Fin 12, γ (τ, b, ()) = l τ) ∧
p ^ (-D.localPrimeSumTotal p) ≤ ‖ιₚ
(P.vacuumScale D.towerExp ^ 12 / t * (∏ τ : D.Φ, (l τ)!) *
coeff γ (D.twelveTaylor (D.indicatorDatum 𝔪 y₀)))‖ := by
-- Take `t = M ^ (12 f) c₀ ∏ B_τ ^ 2` for a nonzero value `c₀` of the integral vacuum; combine
-- the reduction with the bound for `val₁₂(l)`.
obtain ⟨y, hy⟩ := exists_intVacuum_ne_zero (V := D.twelveSpace)
-- a tight frame with multiplicities at least `6 f b` and a unit linear form at every prime
obtain ⟨J, _, w, c, hw, hc, h_unit⟩ := D.exists_isTightFrame
let intFactor : ℕ := D.M ^ (D.f * 12) * ∏ τ : D.Φ, D.lossProduct (l τ) ^ 2
set c₀ : ℂ := intVacuum D.twelveSpace (finVec y)
have ht : intFactor * c₀ ≠ 0 :=
mul_ne_zero (Nat.cast_ne_zero.2 (mul_ne_zero (pow_ne_zero _ (NeZero.ne D.M))
(Finset.prod_ne_zero_iff.2 fun τ _ ↦ pow_ne_zero 2 (D.lossProduct_ne_zero _)))) hy
refine ⟨intFactor * c₀, ht, D.norm_map_mul_intVacuum_le (fun τ ↦ (hl τ).2) y,
fun 𝔪 h𝔪 p hp _ ↦ ?_⟩
obtain ⟨ν, rfl⟩ : ∃ ν : D.Φ × Unit →₀ ℕ, (fun τ ↦ ν (τ, ())) = l :=
⟨equivFunOnFinite.symm fun x ↦ l x.1, rfl⟩
obtain ⟨i₀, hi₀⟩ := h_unit p
have h_degree (i : J) : ν.degree * 3 ≤ c i := by
have h_sum : (ν.degree : ℝ) ≤ D.f * (2 * D.b) := by
rw [degree_eq_sum, cast_sum, sum_prod_type_right, Fintype.sum_unique, PUnit.default_eq_unit]
refine (Finset.sum_le_sum (g := fun _ ↦ 2 * D.b) fun τ _ ↦
(hl τ).2.trans (weight_add_x_pow_le_two_mul_b D τ)).trans ?_
rw [sum_const, Finset.card_univ, nsmul_eq_mul]
rify
linarith [hc i]
let valLoss : ℝ := ∑ τ : D.Φ, (padicValNat p (D.lossProduct (ν (τ, ()))) : ℝ)
let valFactorial : ℝ := ∑ τ : D.Φ, (padicValNat p (ν (τ, ()))! : ℝ)
have h_leastVal : P.cmCurve.LeastValLE (p := p) (P.resolutionForms D.towerExp w) c 12 ν
(D.localPrimeSumTotal p + 2 * valLoss - valFactorial) := by
simpa only [sum_prod_type, Fintype.sum_unique, PUnit.default_eq_unit] using
D.leastValLE_twelve ⟨fun τ ↦ (hl τ).1, fun τ ↦ (hl τ).2⟩ hw (i₀ := i₀) fun x ↦ hi₀ x.1
obtain ⟨γ, y₀, hγ, h_coeff⟩ := D.exists_le_norm_coeff_indicatorDatum hw h_degree h_leastVal h𝔪 y
refine ⟨γ, y₀, hγ, ?_⟩
-- Multiply by `l!` and divide by `t`.
set scaledVac : ℂ := D.M ^ (D.f * 12) * c₀ with h_scaledVac
have hp_pos : (0 : ℝ) < p := mod_cast hp.out.pos
have h_normVac : 0 < ‖(ιₚ scaledVac : ℂ_[p])‖ := by
have h_ne : scaledVac ≠ 0 :=
mul_ne_zero (pow_ne_zero _ (Nat.cast_ne_zero.2 (NeZero.ne D.M))) hy
exact norm_pos_iff.2 fun h ↦ h_ne (ιₚ.injective (h.trans ιₚ.map_zero'.symm))
have h_factor :
intFactor * c₀ = scaledVac * (∏ τ : D.Φ, D.lossProduct (ν (τ, ())) : ℕ) ^ 2 := by
push_cast [h_scaledVac, intFactor, Finset.prod_pow]
ring
have h_normLoss : ‖(ιₚ (∏ τ : D.Φ, D.lossProduct (ν (τ, ())) : ℕ) : ℂ_[p])‖ = p ^ (-valLoss) :=
norm_natCast_prod_eq_rpow_neg_sum fun τ ↦ D.lossProduct_ne_zero _
have h_normFactorial : ‖(ιₚ (∏ τ : D.Φ, (ν (τ, ()))! : ℕ) : ℂ_[p])‖ = p ^ (-valFactorial) :=
norm_natCast_prod_eq_rpow_neg_sum fun τ ↦ factorial_ne_zero _
calc (p : ℝ) ^ (-D.localPrimeSumTotal p)
= (‖(ιₚ scaledVac : ℂ_[p])‖ * (p ^ (-valLoss)) ^ 2)⁻¹ * p ^ (-valFactorial) *
(p ^ (-(D.localPrimeSumTotal p + 2 * valLoss - valFactorial)) *
‖(ιₚ scaledVac : ℂ_[p])‖) := by
rw [mul_inv, ← rpow_natCast, ← rpow_mul hp_pos.le, ← rpow_neg hp_pos.le]
have h_cancel : ‖(ιₚ scaledVac : ℂ_[p])‖⁻¹ * ‖(ιₚ scaledVac : ℂ_[p])‖ = 1 :=
inv_mul_cancel₀ h_normVac.ne'
calc (p : ℝ) ^ (-D.localPrimeSumTotal p)
= ((p : ℝ) ^ (-(-valLoss * (2 : ℕ))) * p ^ (-valFactorial) *
p ^ (-(D.localPrimeSumTotal p + 2 * valLoss - valFactorial))) *
(‖(ιₚ scaledVac : ℂ_[p])‖⁻¹ * ‖(ιₚ scaledVac : ℂ_[p])‖) := by
rw [h_cancel, mul_one, ← rpow_add hp_pos, ← rpow_add hp_pos]
congr 1
push_cast
ring
_ = _ := by ring
_ ≤ (‖(ιₚ scaledVac : ℂ_[p])‖ * (p ^ (-valLoss)) ^ 2)⁻¹ * p ^ (-valFactorial) *
‖ιₚ (P.vacuumScale D.towerExp ^ 12 * coeff γ
(D.twelveTaylor (D.indicatorDatum 𝔪 y₀)))‖ := by
gcongr
_ = _ := by
rw [← h_normLoss, ← h_normFactorial, h_factor]
simp only [map_mul, map_div₀, map_pow, norm_mul, norm_div, norm_pow]
ring
end Data
end New