Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Horizontal p-adic L-functions with positive-density prime systems

Definition
KN_HorizontalPadicLFunctionDensity

by davidloeffler · Sep 18, 2026 · Mathlib 0df444a (Lean v4.33.1)

modular-formsnumber-theoryp-adic-l-functionsprime-density

Defines horizontal measures and their evaluation, together with prime-relative natural density. An eigenform horizontal prime system now specifies an exponent m > 0 and an injective sequence whose orderly tail consists of primes congruent to 1 modulo p^m and has a specified positive natural density among all rational primes. This supplies the quantitative hypothesis needed for fixed-order character counting. The file also defines horizontal p-adic L-functions, critical-value interpolation, fixed-order nonvanishing counts, and newness.

Retired. This full replacement bundle redeclared the original horizontal-measure structures and therefore could not be imported together with existing project nodes. Use KN_HorizontalPadicLDensityExtension.

Definition code
import Definitions.Def_KN_HorizontalPadicL
import Mathlib.NumberTheory.Padics.Complex
import Mathlib.NumberTheory.Padics.RingHoms
import Mathlib.Topology.Instances.Real.Lemmas

set_option autoImplicit false
noncomputable section

namespace HorizontalPadicL

/-- The finite horizontal group `∏_{n ∈ A} ℤ / p^(m n) ℤ`, written
multiplicatively so that its finitely supported functions form a group ring. -/
abbrev HorizontalFiniteGroup (p : ℕ) (m : ℕ → ℕ) (A : Finset ℕ) :=
  ∀ i : {n : ℕ // n ∈ A}, Multiplicative (ZMod (p ^ m i.1))

/-- The group ring of a finite horizontal quotient. -/
abbrev HorizontalGroupRing (R : Type*) [CommRing R]
    (p : ℕ) (m : ℕ → ℕ) (A : Finset ℕ) :=
  HorizontalFiniteGroup p m A →₀ R

/-- Restriction from the coordinates in `B` to those in `A`. -/
def restrictHorizontalCoordinates {p : ℕ} {m : ℕ → ℕ} {A B : Finset ℕ}
    (hAB : A ⊆ B) (x : HorizontalFiniteGroup p m B) : HorizontalFiniteGroup p m A :=
  fun i => x ⟨i.1, hAB i.2⟩

/-- Pushforward of finite group rings under coordinate restriction. -/
def horizontalGroupRingProjection (R : Type*) [CommRing R]
    {p : ℕ} {m : ℕ → ℕ} {A B : Finset ℕ} (hAB : A ⊆ B) :
    HorizontalGroupRing R p m B →+ HorizontalGroupRing R p m A :=
  Finsupp.mapDomain.addMonoidHom (M := R)
    (restrictHorizontalCoordinates (p := p) (m := m) hAB)

/-- An element of the horizontal Iwasawa algebra, represented as a compatible family
of group-ring elements on all finite sets of coordinates. -/
structure HorizontalMeasure (R : Type*) [CommRing R] (p : ℕ) (m : ℕ → ℕ) where
  finiteLevel : ∀ A : Finset ℕ, HorizontalGroupRing R p m A
  compatible : ∀ (A B : Finset ℕ) (hAB : A ⊆ B),
    horizontalGroupRingProjection R hAB (finiteLevel B) = finiteLevel A

/-- A horizontal measure is nonzero if one of its finite-level projections is nonzero. -/
def HorizontalMeasure.Nonzero {R : Type*} [CommRing R] {p : ℕ} {m : ℕ → ℕ}
    (ν : HorizontalMeasure R p m) : Prop :=
  ∃ A : Finset ℕ, ν.finiteLevel A ≠ 0

/-- A finite-order character of a finite quotient of the horizontal profinite group. -/
structure HorizontalCharacter (p : ℕ) [Fact p.Prime] (m : ℕ → ℕ) where
  support : Finset ℕ
  toMonoidHom : HorizontalFiniteGroup p m support →* ℂ_[p]

/-- Evaluation of a horizontal measure whose coefficient ring is a subring of `ℂ_p`
at a finite-order character. -/
def HorizontalMeasure.eval {p : ℕ} [Fact p.Prime] {m : ℕ → ℕ}
    {R : Subring ℂ_[p]} (ν : HorizontalMeasure R p m)
    (χ : HorizontalCharacter p m) : ℂ_[p] :=
  (ν.finiteLevel χ.support).sum fun g a =>
    (a : ℂ_[p]) * χ.toMonoidHom g

/-- A prime `ℓ` is orderly for `f` at the `p`-adic embedding `ιp` when it is one
modulo `p` and `a_ℓ(f) - 1 - ε_f(ℓ)` is a `p`-adic unit. -/
def IsOrderlyPrimeForEigenform {N k : ℕ} {ι : MTT.Qbar →+* ℂ}
    (p : ℕ) [Fact p.Prime] (ιp : MTT.Qbar →+* ℂ_[p])
    (f : MTT.Eigenform N k ι) (ℓ : ℕ) : Prop :=
  ℓ.Prime ∧ Nat.ModEq p ℓ 1 ∧
    ‖ιp (f.coeff ℓ - 1 - f.epsilon ℓ)‖ = 1

/-- A set of natural numbers has prime-relative natural density `δ` if the proportion
of rational primes below `X` which lie in the set tends to `δ`. -/
def HasPrimeNaturalDensity (A : Set ℕ) (δ : ℝ) : Prop := by
  classical
  exact Filter.Tendsto
    (fun X : ℕ =>
      (((Finset.range X).filter fun ℓ => ℓ.Prime ∧ ℓ ∈ A).card : ℝ) /
        (((Finset.range X).filter Nat.Prime).card : ℝ))
    Filter.atTop (nhds δ)

/-- The orderly-prime condition of order `m`: in addition to being orderly modulo
`p`, the auxiliary prime is congruent to one modulo `p ^ m`. -/
def IsOrderlyPrimeForEigenformOfOrder {N k : ℕ} {ι : MTT.Qbar →+* ℂ}
    (p m : ℕ) [Fact p.Prime] (ιp : MTT.Qbar →+* ℂ_[p])
    (f : MTT.Eigenform N k ι) (ℓ : ℕ) : Prop :=
  IsOrderlyPrimeForEigenform p ιp f ℓ ∧ Nat.ModEq (p ^ m) ℓ 1

/-- The sequence `L = (ℓₙ)` and exceptional index `r` used in Definition 5.3 of
Kriz--Nordentoft for an eigenform, augmented with the quantitative hypothesis used in
Theorem 5.9. The tail consists of orderly primes of order `m` and has positive natural
density among all rational primes. -/
structure EigenformHorizontalPrimeSystem {N k : ℕ} {ι : MTT.Qbar →+* ℂ}
    (p : ℕ) [Fact p.Prime] (ιp : MTT.Qbar →+* ℂ_[p])
    (f : MTT.Eigenform N k ι) where
  orderExponent : ℕ
  orderExponent_pos : 0 < orderExponent
  exceptionalCount : ℕ
  primeAt : ℕ → ℕ
  primeAt_prime : ∀ n, (primeAt n).Prime
  primeAt_injective : Function.Injective primeAt
  primeAt_coprime : ∀ n, Nat.Coprime (primeAt n) N
  primeAt_modEq : ∀ n, Nat.ModEq p (primeAt n) 1
  eventually_orderly : ∀ n, exceptionalCount ≤ n →
    IsOrderlyPrimeForEigenformOfOrder p orderExponent ιp f (primeAt n)
  naturalDensity : ℝ
  naturalDensity_pos : 0 < naturalDensity
  tail_has_naturalDensity : HasPrimeNaturalDensity
    {ℓ : ℕ | ∃ n : ℕ, primeAt (exceptionalCount + n) = ℓ} naturalDensity

/-- The exponent `mₙ = v_p(ℓₙ - 1)` attached to a horizontal prime system. -/
def EigenformHorizontalPrimeSystem.exponent
    {N k p : ℕ} {ι : MTT.Qbar →+* ℂ} [Fact p.Prime]
    {ιp : MTT.Qbar →+* ℂ_[p]} {f : MTT.Eigenform N k ι}
    (L : EigenformHorizontalPrimeSystem p ιp f) (n : ℕ) : ℕ :=
  padicValNat p (L.primeAt n - 1)

/-- A horizontal `p`-adic L-function in the sense of Kriz--Nordentoft: an element of
the horizontal Iwasawa algebra associated to a sequence of primes that is orderly after
finitely many exceptional terms. Nonzeroness and interpolation are separate properties. -/
structure HorizontalPadicLFunctionForEigenform
    {N k : ℕ} {ι : MTT.Qbar →+* ℂ} (p : ℕ) [Fact p.Prime]
    (ιp : MTT.Qbar →+* ℂ_[p]) (f : MTT.Eigenform N k ι) where
  primes : EigenformHorizontalPrimeSystem p ιp f
  coefficientRing : Subring ℂ_[p]
  coefficient_integral : ∀ x : coefficientRing, (x : ℂ_[p]) ∈ 𝓞_ℂ_[p]
  measure : HorizontalMeasure coefficientRing p primes.exponent

/-- The character-realization and nonvanishing part of the interpolation formula of
Corollary 5.4. It is separated from the inverse-limit measure of Definition 5.3. -/
def HorizontalPadicLFunctionForEigenform.InterpolatesCriticalValues
    {N k p : ℕ} {ι : MTT.Qbar →+* ℂ} [Fact p.Prime]
    {ιp : MTT.Qbar →+* ℂ_[p]} {f : MTT.Eigenform N k ι}
    (ν : HorizontalPadicLFunctionForEigenform p ιp f) : Prop :=
  ∃ realized : HorizontalCharacter p ν.primes.exponent → DirichletCharacterWithLevel,
    (∀ χ, (realized χ).2.IsPrimitive) ∧
    (∀ χ, ∃ a : ℕ, orderOf (realized χ).2 = p ^ a) ∧
    (∀ χ, (realized χ).2.conductor ∣
      ∏ n ∈ χ.support, ν.primes.primeAt n) ∧
    (∀ χ : DirichletCharacterWithLevel,
      χ.2.IsPrimitive →
      (∃ a : ℕ, orderOf χ.2 = p ^ a) →
      (∃ A : Finset ℕ, χ.2.conductor ∣ ∏ n ∈ A, ν.primes.primeAt n) →
      ∃ ψ : HorizontalCharacter p ν.primes.exponent, realized ψ = χ) ∧
    (∀ χ, ν.measure.eval χ ≠ 0 ↔
      @MTT.criticalLValue ι f.form
        (realized χ).1.1 ⟨Nat.ne_of_gt (realized χ).1.2⟩ (realized χ).2
        (k / 2 - 1) ≠ 0)

/-- Primitive exact-order twists of an eigenform whose central critical value is nonzero. -/
def eigenformNonvanishingCount {N k : ℕ} (ι : MTT.Qbar →+* ℂ)
    (f : MTT.Eigenform N k ι) (d : ℕ) (X : ℝ) : ℕ :=
  Set.ncard {χ : DirichletCharacterWithLevel |
    χ.2.IsPrimitive ∧ orderOf χ.2 = d ∧ (χ.2.conductor : ℝ) ≤ X ∧
    Nat.Coprime N χ.1.1 ∧
    @MTT.criticalLValue ι f.form χ.1.1 ⟨Nat.ne_of_gt χ.1.2⟩ χ.2
      (k / 2 - 1) ≠ 0}

/-- A normalized eigenform of trivial nebentypus is new at level `N` if its q-expansion
does not occur as a cusp form for `Γ₀(M)` at any smaller positive level `M`. -/
def IsNewEigenform {N k : ℕ} {ι : MTT.Qbar →+* ℂ}
    (f : MTT.Eigenform N k ι) : Prop :=
  ∀ (M : ℕ) (hM : 0 < M), M < N →
    ¬ ∃ g : CuspFormAtLevel M hM,
      ∀ n : ℕ, (UpperHalfPlane.qExpansion 1 g).coeff n = ι (f.coeff n)

end HorizontalPadicL
Source
Kriz–Nordentoft, Horizontal p-adic L-functions, https://arxiv.org/pdf/2310.20678, Definitions 4.1 and 5.3, Lemma 5.7, and Theorem 5.9.

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