Lean formalization of the Riemann Hypothesis (Alpöge, 2026-11-20) being cleaned up by members of the Lean community.
Python
module
public import New.Derivatives.FormalGroup.Resolution
public import New.Derivatives.Vacuum.IntegralVacuum
/-!
# The scale of the Taylor series of a vector
* `New.Space.jet_jetSeries_of_isHomogeneous`: the derivative of the Taylor series along a
homogeneous polynomial is a theta value times a power of the scale.
* `New.Parameters.norm_periodFactor_mul_daggerForms_le_one`: the scaled linear form of a vector `y`
is integral at `p` if `α⁻¹ y` is integral above `p`.
The period scale is `jetScale` times an integer `π_M` of `K` of norm `M`. The statement with this
factor is `New.Data.norm_taylorScale_eq_one_of_not_dvd`.
The statements use these notions:
* `jetSeries a f`: the Taylor series of the theta function of `f`, with variables scaled by `a`;
`jetPairing Q F` is the derivative at zero of the series `F` along the polynomial `Q`.
* `daggerForms u j`: the coefficients in `ℂ_p` of the linear form `z ↦ y† z` of the vector
`y = u j`; at a pair `(v, i)` of an infinite place and a coordinate the coefficient is the image
in `ℂ_p` of the complex conjugate of `Φ_v (y i)`, with `Φ_v` the embedding chosen at `v`.
* `periodFactor`: the complex number `vacuumRoot / chowlaSelbergUnit`, where `vacuumRoot` is a root
of the inverse of the value `chiFin α` of a character at the idele `α` and the denominator is a
unit at every `p`-adic place; `jetScale` is `periodFactor * √(2π / √d) / cmPeriod`, where
`cmPeriod * 𝓞_K` is the lattice of the CM curve of the field `K = ℚ(i√d)`.
## Relation to the literature
The modulus of `jetScale` is computed from the formula of Chowla and Selberg,
`New.CMLattice.chowla_selberg`.
-/
@[expose] public section
open NumberField ComplexConjugate MvPolynomial
namespace New
/-- Scaling all variables of a power series `F` by `a` multiplies the derivative `jetPairing Q F` at
zero along a homogeneous polynomial `Q` of degree `l` by `a ^ l`. -/
lemma jet_rescale {R X : Type} [CommRing R] {Q : MvPolynomial X R} {l : ℕ}
(hQ : Q.IsHomogeneous l) (a : R) (F : MvPowerSeries X R) :
jetPairing Q (MvPowerSeries.rescale (fun (_ : X) ↦ a) F) = a ^ l * jetPairing Q F := by
rw [jetPairing_eq_sum, jetPairing_eq_sum, Finset.mul_sum]
refine Finset.sum_congr rfl fun α hα ↦ ?_
simp only [MvPowerSeries.coeff_rescale, Finsupp.prod, Finset.prod_pow_eq_pow_sum,
← hQ.degree_eq_sum_deg_support hα]
ac_rfl
/-- Let `E` be a CM number field with a chosen CM type (`CMType`) and the data of its Weil
representation (`WeilData`). For a homogeneous polynomial `Q` of degree `l` and a vector `f` of
the Weil representation `𝒮 V` of the hermitian space `V` with signs `ε`, the derivative at zero
along `Q` of the series `V.jetSeries a f` is `a ^ l θ(v_Q ⊗ f)`. Here `θ` is the theta functional,
`realSigns E ε` gives each pair (infinite place, coordinate) the sign of the coordinate,
`v_Q = polyVector Q` is the Fock vector of `Q` for these signs, and `⊗` is `V.integrated`, the
bilinear map that integrates the action of the real Heisenberg group on `f` against `v_Q`. The
series `V.jetSeries a f` has one variable for each such pair; its coefficient at the monomial
`z ^ α` is `a ^ |α| / α! * θ(v_{z ^ α} ⊗ f)`. -/
lemma Space.jet_jetSeries_of_isHomogeneous {E n : Type} [Field E] [CMType E] [WeilData E]
[Fintype n] [DecidableEq n] {ε : n → ℤˣ} (V : Space E n ε)
{Q : MvPolynomial (InfinitePlace E × n) ℂ} {l : ℕ} (hQ : Q.IsHomogeneous l) (a : ℂ) (f : 𝒮 V) :
jetPairing Q (V.jetSeries a f) =
a ^ l * V.θ (V.integrated (Fock.polyVector (realSigns E ε) Q) f) := by
-- Write the scale as `a * 1`, take out `a ^ l` and use the formula at the scale `1`.
rw [← mul_one a, jetSeries_mul_eq_rescale, jet_rescale hQ, jet_jetSeries_eq_theta, mul_one]
simp only [one_smul, aeval_X_left_apply]
/-- Let `σ` be an embedding of the number field `E` into a `p`-adic field `F`, that is, a normed
algebra over `ℚ_p` that is a field, here ultrametric and not necessarily complete. The image of a
finite adele `x` under the extension of `σ` to finite adeles has norm at most one if and only if
the component of `x` at the place induced by `σ` is integral. -/
lemma norm_adeleExtension_le_one_iff {E F : Type} [Field E] [NumberField E] {p : ℕ} [Fact p.Prime]
[NormedField F] [IsUltrametricDist F] [CharZero F] [PadicField F p] (σ : E →+* F)
{x : 𝔸f E} : ‖adeleExtension σ x‖ ≤ 1 ↔ Valued.v (evalAt (placeOfEmb σ) x) ≤ 1 := by
-- `adeleExtension σ` is by definition the component at the place, mapped by the extension of `σ`.
change ‖placeOfEmbExtension σ (evalAt (placeOfEmb σ) x)‖ ≤ 1 ↔ _
exact (valuation_comap_placeOfEmbExtension_isEquiv σ).le_one_iff_le_one
namespace Parameters
/-- Let `y = u j` be a vector over the field `E = P.E s` of the parameters at the index `s`, a
cyclotomic extension of `K = P.K = ℚ(i√d)`, and `α = P.α s` their idele. Let `ιₚ : ℂ → ℂ_p` be the
ring homomorphism chosen by `PadicPlace p`. For a pair `x = (v, i)` of an infinite place of `E` and
a coordinate, `daggerForms u j x` is the image under `ιₚ` of the complex conjugate of `Φ_v (y i)`,
with `Φ_v : E → ℂ` the embedding that the CM type chooses at `v`. If the finite adelic vector
`α⁻¹ y` (`finiteImage (u j)`) is integral at all places above `p` (`integralAfter 1`), then the
product of `ιₚ periodFactor` and this coefficient has norm at most one. -/
lemma norm_periodFactor_mul_daggerForms_le_one {P : Parameters} {s : ℕ} {n : Type} {p : ℕ}
[Fact p.Prime] [PadicPlace p] {J : Type} {u : J → n → P.E s} {j : J}
(h_integral :
finiteImage (u j) ∈ integralAfter (1 : 𝓞 P.K) fun w : FinPlace (P.E s) ↦ ↑p ∈ w.asIdeal)
(x : InfinitePlace (P.E s) × n) :
‖ιₚ (P.periodFactor s) * daggerForms u j x‖ ≤ 1 := by
-- The norm in question is that of the coordinate `x.2` of `α⁻¹ y` at the place given by `x.1`.
let σ : P.E s →+* ℂ_[p] := weightEmbedding ιₚ x.1
have h_int : ‖adeleExtension σ (finiteImage (u j) x.2)‖ ≤ 1 := by
have h_val : Valued.v (evalAt (placeOfEmb σ)
(algebraMap (P.E s) (𝔸f (P.E s)) (algebraMap P.K (P.E s) ((1 : 𝓞 P.K) : P.K)) *
finiteImage (u j) x.2)) ≤ 1 := h_integral x.2 _ (natCast_mem_placeOfEmb σ)
rw [RingOfIntegers.coe_eq_algebraMap, map_one, map_one, map_one, one_mul] at h_val
exact (norm_adeleExtension_le_one_iff σ).2 h_val
have h_image : finiteImage (u j) x.2 =
((P.α s)⁻¹).val * algebraMap (P.E s) (𝔸f (P.E s)) (u j x.2) := rfl
have h_form : daggerForms u j x = σ (u j x.2) := by
rw [daggerForms, dagger, RingHom.comp_apply, RingHom.comp_apply, starRingEnd_apply,
starRingEnd_apply, map_star_complex]
rw [h_image, map_mul, norm_mul, map_units_inv, norm_inv, adeleExtension_algebraMap] at h_int
rwa [norm_mul, norm_iota_periodFactor x.1, h_form]
end Parameters
end New