Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Positive-density enhancement of horizontal prime systems

Definition
KN_HorizontalPadicLDensityExtension

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

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

Extends the existing horizontal p-adic L-function definitions without redeclaring them. It defines prime-relative natural density and packages an ordinary horizontal prime sequence together with an exponent m > 0, the order-m orderly condition on its tail, and a proof that this tail has positive natural density among rational primes.

Definition code
import Definitions.Def_KN_HorizontalPadicLFunction
import Mathlib.Topology.Instances.Real.Lemmas

set_option autoImplicit false
noncomputable section

namespace HorizontalPadicL

/-- 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`: the prime is orderly modulo `p`
and 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

/-- An eigenform horizontal prime system whose orderly tail has positive natural
density and supports characters of order `p ^ orderExponent`. This enhances the
sequence used in Definition 5.3 with the quantitative input of Theorem 5.9. -/
structure EigenformPositiveDensityPrimeSystem
    {N k : ℕ} {ι : MTT.Qbar →+* ℂ}
    (p : ℕ) [Fact p.Prime] (ιp : MTT.Qbar →+* ℂ_[p])
    (f : MTT.Eigenform N k ι) where
  toPrimeSystem : EigenformHorizontalPrimeSystem p ιp f
  orderExponent : ℕ
  orderExponent_pos : 0 < orderExponent
  eventually_orderly_of_order : ∀ n, toPrimeSystem.exceptionalCount ≤ n →
    IsOrderlyPrimeForEigenformOfOrder p orderExponent ιp f
      (toPrimeSystem.primeAt n)
  naturalDensity : ℝ
  naturalDensity_pos : 0 < naturalDensity
  tail_has_naturalDensity : HasPrimeNaturalDensity
    {ℓ : ℕ | ∃ n : ℕ,
      toPrimeSystem.primeAt (toPrimeSystem.exceptionalCount + n) = ℓ}
    naturalDensity

end HorizontalPadicL
Source
Kriz–Nordentoft, https://arxiv.org/pdf/2310.20678, Definitions 4.1 and 5.3 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