Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

The completed Hecke LLL-function L(s,χ)L(s,\chi)L(s,χ), the measure μ1\mu_1μ1​ on CF1C_F^1CF1​, and the isotypes H0,cont(ω,S(AF))H_{0,\mathrm{cont}}(\omega,\mathcal S(\mathbb A_F))H0,cont​(ω,S(AF​))

Definition
MasulloGRH_CompletedL

by Shuze Chen · Nov 20, 2026 · Mathlib 0df444a (Lean v4.33.1)

hecke-l-functionmasullonumber-theory

Let FFF be a number field and χ\chiχ a Hecke character of FFF.

Archimedean factors. For an Archimedean place vvv let χv\chi_vχv​ be the local component of χ\chiχ on Fv×F_v^\timesFv×​, embedded in the vvv-th coordinate of the ideles.

  1. If vvv is real, χv(x)=sgn⁡(x)av∣x∣itv\chi_v(x)=\operatorname{sgn}(x)^{a_v}|x|^{it_v}χv​(x)=sgn(x)av​∣x∣itv​ with av∈{0,1}a_v\in\{0,1\}av​∈{0,1}, tv∈Rt_v\in\mathbb Rtv​∈R, and
L(χv∣⋅∣vs)=π−(s+itv+av)/2 Γ(s+itv+av2).L(\chi_v|\cdot|_v^s)=\pi^{-(s+it_v+a_v)/2}\,\Gamma\Big(\frac{s+it_v+a_v}{2}\Big).L(χv​∣⋅∣vs​)=π−(s+itv​+av​)/2Γ(2s+itv​+av​​).
  1. If vvv is complex, χv(z)=(z/∣z∣)nv∣z∣vitv\chi_v(z)=(z/|z|)^{n_v}|z|_v^{it_v}χv​(z)=(z/∣z∣)nv​∣z∣vitv​​ with nv∈Zn_v\in\mathbb Znv​∈Z, tv∈Rt_v\in\mathbb Rtv​∈R and ∣z∣v=∣z∣2|z|_v=|z|^2∣z∣v​=∣z∣2, and
L(χv∣⋅∣vs)=(2π)−(s+itv+∣nv∣/2) Γ(s+itv+∣nv∣2).L(\chi_v|\cdot|_v^s)=(2\pi)^{-(s+it_v+|n_v|/2)}\,\Gamma\Big(s+it_v+\frac{|n_v|}{2}\Big).L(χv​∣⋅∣vs​)=(2π)−(s+itv​+∣nv​∣/2)Γ(s+itv​+2∣nv​∣​).
  1. ΓF(s,χ)=∏v∣∞L(χv∣⋅∣vs)\Gamma_F(s,\chi)=\prod_{v\mid\infty}L(\chi_v|\cdot|_v^s)ΓF​(s,χ)=∏v∣∞​L(χv​∣⋅∣vs​).
  2. The completed Hecke LLL-function is the meromorphic function
L(s,χ)=ΓF(s,χ) Lf(s,χ),L(s,\chi)=\Gamma_F(s,\chi)\,L_f(s,\chi),L(s,χ)=ΓF​(s,χ)Lf​(s,χ),

which for Re⁡(s)>1\operatorname{Re}(s)>1Re(s)>1 is the product (3.2.1.2).

Homogeneous θ\thetaθ-functions.

  1. CF1⊂CFC_F^1\subset C_FCF1​⊂CF​ is the subgroup of classes of idelic norm 111, and μ1\mu_1μ1​ is the Tamagawa measure on CF1C_F^1CF1​: the invariant measure of total mass μ1(CF1)=2r1(2π)r2hFRF/(∣dF∣1/2wF)\mu_1(C_F^1)=2^{r_1}(2\pi)^{r_2}h_FR_F/(|d_F|^{1/2}w_F)μ1​(CF1​)=2r1​(2π)r2​hF​RF​/(∣dF​∣1/2wF​).
  2. For ω=χ∣CF1\omega=\chi|_{C_F^1}ω=χ∣CF1​​ and f∈S(AF)f\in\mathcal S(\mathbb A_F)f∈S(AF​), the ω\omegaω-homogeneous global adelic θ\thetaθ-function is
ΦF,ω(f)(g)=∫CF1ΦF(f)(hg) ω(h) dμ1(h).\Phi_{F,\omega}(f)(g)=\int_{C_F^1}\Phi_F(f)(hg)\,\omega(h)\,d\mu_1(h).ΦF,ω​(f)(g)=∫CF1​​ΦF​(f)(hg)ω(h)dμ1​(h).
  1. The isotype is the quotient H0,cont(ω,S(AF))=S(AF)/ker⁡ΦF,ωH_{0,\mathrm{cont}}(\omega,\mathcal S(\mathbb A_F))=\mathcal S(\mathbb A_F)/\ker\Phi_{F,\omega}H0,cont​(ω,S(AF​))=S(AF​)/kerΦF,ω​ with the quotient topology.

The isotypes decompose the space of global θ\thetaθ-functions according to the characters of the compact group CF1C_F^1CF1​; the Mellin transform maps the ω\omegaω-isotype to functions on the component {χ∣⋅∣Fs}\{\chi|\cdot|_F^s\}{χ∣⋅∣Fs​} of Ω(CF)\Omega(C_F)Ω(CF​).

Formalization Note The parameters ava_vav​, tvt_vtv​, ∣nv∣|n_v|∣nv​∣ are read off from χv\chi_vχv​: tvt_vtv​ from its values on the positive real ray, ava_vav​ from χv(−1)\chi_v(-1)χv​(−1), and ∣nv∣|n_v|∣nv​∣ from its values on the unit circle. L(s,χ)L(s,\chi)L(s,χ) is taken in meromorphic normal form (value 000 at poles). μ1\mu_1μ1​ is a measure on CFC_FCF​ supported on CF1C_F^1CF1​, selected by its characterizing properties. A character ω\omegaω of CF1C_F^1CF1​ is given as the restriction of a Hecke character.

Definition code
import Definitions.Def_MasulloGRH_ThetaSpaces
import Definitions.Def_MasulloGRH_ExpDecaySpaces

/-!
# The completed Hecke L-function, the measure on `C_F^1`, homogeneous θ-functions and isotypes

Source: A. M. Masullo, *The Music of the Primes* (draft of 20 November 2026): Lemma 3.2.1.1 and
Definition 3.2.1.2, eqs. (3.2.1.2)–(3.2.1.5) (p. 123); Definition A.3.2.1 (pp. 559–560);
Definition 2.2.5.1, eq. (2.2.5.2) (p. 95); Definition 5.2.2.1, eq. (5.2.2.3) (p. 232).
-/

namespace MasulloGRH

open NumberField IsDedekindDomain MeasureTheory

noncomputable section

variable {F : Type*} [Field F] [NumberField F]

/-! ### Archimedean local components and Γ-factors -/

open Classical in
/-- The idele whose coordinate at the infinite place `w` is `x` and whose coordinate at every
other place is `1`. -/
def ideleSingleInfinite (w : InfinitePlace F) (x : (w.Completion)ˣ) : IdeleGroup F :=
  MulEquiv.prodUnits.symm
    (MulEquiv.piUnits.symm (Pi.mulSingle w x), (1 : (FiniteAdeleRing (𝓞 F) F)ˣ))

/-- The local component `χ_w` of a Hecke character at an infinite place `w`, a function on
`F_wˣ`. -/
def HeckeCharacter.localComponentInfinite (χ : HeckeCharacter F) (w : InfinitePlace F)
    (x : (w.Completion)ˣ) : ℂ :=
  ((χ (QuotientGroup.mk (ideleSingleInfinite w x)) : Circle) : ℂ)

open Classical in
/-- The real number `t_w` with `χ_w(x) = |x|_w^{i t_w}` for all `x ∈ F_wˣ` whose image in `ℂ` is
a positive real number (`|·|_w` is the normalized absolute value). -/
def HeckeCharacter.archExponent (χ : HeckeCharacter F) (w : InfinitePlace F) : ℝ :=
  if h : ∃ t : ℝ, ∀ x : (w.Completion)ˣ,
      (InfinitePlace.Completion.extensionEmbedding w (x : w.Completion)).im = 0 →
      0 < (InfinitePlace.Completion.extensionEmbedding w (x : w.Completion)).re →
      χ.localComponentInfinite w x =
        ((‖(x : w.Completion)‖ ^ w.mult : ℝ) : ℂ) ^ (t * Complex.I) then
    h.choose
  else 0

open Classical in
/-- The parity `a_w ∈ {0, 1}` of `χ` at a real place `w`: `χ_w(-1) = (-1)^{a_w}`. -/
def HeckeCharacter.archParity (χ : HeckeCharacter F) (w : InfinitePlace F) : ℕ :=
  if χ.localComponentInfinite w (-1) = 1 then 0 else 1

open Classical in
/-- The absolute value `|n_w|` of the weight of `χ` at a complex place `w`:
`χ_w(z) = z^{n_w}` for `|z| = 1` (for one of the two identifications `F_w ≅ ℂ`). -/
def HeckeCharacter.archWeight (χ : HeckeCharacter F) (w : InfinitePlace F) : ℕ :=
  if h : ∃ n : ℤ, ∀ x : (w.Completion)ˣ, ‖(x : w.Completion)‖ = 1 →
      χ.localComponentInfinite w x =
        (InfinitePlace.Completion.extensionEmbedding w (x : w.Completion)) ^ n then
    h.choose.natAbs
  else 0

open Classical in
/-- The Archimedean local factor `L(χ_w |·|_w^s)` of (3.2.1.4)–(3.2.1.5): for `w` real with
`χ_w = sgn^a |·|^{it}` it is `π^{-(s+it+a)/2} Γ((s+it+a)/2)`; for `w` complex with
`χ_w(z) = (z/|z|)^n |z|_w^{it}` it is `(2π)^{-(s+it+|n|/2)} Γ(s+it+|n|/2)`. -/
def HeckeCharacter.archLFactor (χ : HeckeCharacter F) (w : InfinitePlace F) (s : ℂ) : ℂ :=
  if w.IsReal then
    (Real.pi : ℂ) ^ (-((s + χ.archExponent w * Complex.I + χ.archParity w) / 2)) *
      Complex.Gamma ((s + χ.archExponent w * Complex.I + χ.archParity w) / 2)
  else
    (2 * Real.pi : ℂ) ^ (-(s + χ.archExponent w * Complex.I + (χ.archWeight w : ℂ) / 2)) *
      Complex.Gamma (s + χ.archExponent w * Complex.I + (χ.archWeight w : ℂ) / 2)

/-- The factor `Γ_F(s, χ) = ∏_{w | ∞} L(χ_w |·|_w^s)` of (3.2.1.3). -/
def HeckeCharacter.gammaFactor (χ : HeckeCharacter F) (s : ℂ) : ℂ :=
  ∏ w : InfinitePlace F, χ.archLFactor w s

/-- The completed Hecke L-function `L(s, χ) = Γ_F(s, χ) L_f(s, χ)` (Definition 3.2.1.2), as a
meromorphic function on `ℂ` in normal form. -/
def completedHeckeLFunction (χ : HeckeCharacter F) : ℂ → ℂ :=
  toMeromorphicNFOn (fun s => χ.gammaFactor s * heckeLFunction χ s) Set.univ

/-! ### The measure on `C_F^1` and homogeneous θ-functions -/

variable (F)

/-- The subgroup `C_F^1` of the idele class group, as a set: the classes of the ideles of
norm `1`. -/
def ideleClassNormOne : Set (IdeleClassGroup F) :=
  (QuotientGroup.mk : IdeleGroup F → IdeleClassGroup F) '' {g | ideleNorm g = 1}

open Classical in
/-- The Tamagawa measure `μ₁` on `C_F^1` (Definition A.3.2.1), as a measure on `C_F` supported on
`C_F^1`: the measure invariant under translation by `C_F^1` with total mass `μ₁(C_F^1)` of
(A.3.2.1). -/
def tamagawaNormOne : Measure (IdeleClassGroup F) :=
  if h : ∃ μ : Measure (IdeleClassGroup F), μ (ideleClassNormOne F)ᶜ = 0 ∧
      μ Set.univ = ENNReal.ofReal (tamagawaClassVolume F) ∧
      ∀ x ∈ ideleClassNormOne F, μ.map (fun y => x * y) = μ then
    h.choose
  else 0

variable {F}

/-- Definition 2.2.5.1: the `ω`-homogeneous global adelic θ-function
`Φ_{F,ω}(f)(g) = ∫_{C_F^1} Φ_F(f)(h g) ω(h) dμ₁(h)`, for `ω = χ|_{C_F^1}` the restriction of a
Hecke character `χ`. -/
def adelicThetaHomogeneous (χ : HeckeCharacter F) (f : AdelicSchwartz F) (g : IdeleGroup F) : ℂ :=
  ∫ x : IdeleClassGroup F, adelicTheta f (x.out * g) * ((χ x : Circle) : ℂ) ∂(tamagawaNormOne F)

/-- The kernel of the operator `Φ_{F,ω}`, `ω = χ|_{C_F^1}`. -/
def adelicThetaHomogeneousKernel (χ : HeckeCharacter F) : Submodule ℂ (AdelicSchwartz F) :=
  Submodule.span ℂ {f | ∀ g : IdeleGroup F, adelicThetaHomogeneous χ f g = 0}

/-- Definition 5.2.2.1(1): the isotype `H_{0,cont}(ω, S(𝔸_F)) = S(𝔸_F) / ker Φ_{F,ω}` for
`ω = χ|_{C_F^1}`, with the quotient topology. -/
abbrev ThetaIsotype (χ : HeckeCharacter F) : Type _ :=
  AdelicSchwartz F ⧸ adelicThetaHomogeneousKernel χ

end

end MasulloGRH
Source
A. M. Masullo, The Music of the Primes, draft of 20 November 2026, https://math216.wordpress.com/wp-content/uploads/2026/11/the-music-of-the-primes.pdf, Lemma 3.2.1.1 and Definition 3.2.1.2, eqs. (3.2.1.2)–(3.2.1.5) (p. 123); Definition A.3.2.1 (pp. 559–560); Definition 2.2.5.1, eq. (2.2.5.2) (p. 95); Definition 5.2.2.1, eq. (5.2.2.3) (p. 232)

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me