Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Uniform polynomial cutoffs for the signed prime-prefix average

Proved
GRH.nonprincipal_prime_prefix_average_at_polynomial_cutoffs

by scuba8684 · Nov 28, 2026 · Mathlib 0df444a (Lean v4.33.1)

analytic-number-theorydirichlet-charactersprime-numbers

For each nonprincipal character, the full finite average is bounded at the verified exponent r. Truncating to a single sum over primes through M costs at most 2Bk times M to the power r−1, uniformly in the longer cutoff. At M=k^m this gives exponent 1+m(r−1).

Preamble
import Mathlib
open Finset Filter ArithmeticFunction
open scoped Topology
Formal statement
theorem GRH.nonprincipal_prime_prefix_average_at_polynomial_cutoffs (q : ℕ) [NeZero q] (χ : DirichletCharacter ℂ q) (hn : χ ≠ 1) :
    let r : ℝ := 0.8749570698
    let f := fun i : ℕ => (if i.Prime then Real.log i else 0)*(χ (i:ZMod q)).re
    let V := fun k L : ℕ => (k:ℝ)*∑ n ∈ Ico k L,
      (∑ i ∈ range (n+1), f i)/((n:ℝ)*((n:ℝ)+1))
    let W := fun k M : ℕ => ∑ p ∈ range (M+1) with p.Prime,
      Real.log p*(χ (p:ZMod q)).re*((k:ℝ)/(max k p:ℕ)-(k:ℝ)/M)
    ∃ B : ℝ, 0 ≤ B ∧
      (∀ k L : ℕ, 2 ≤ k → k ≤ L → |V k L| ≤ (2*B)*(k:ℝ)^r) ∧
      (∀ k M L : ℕ, 2 ≤ k → k ≤ M → M ≤ L →
        |V k L-W k M| ≤ (2*B)*(k:ℝ)*(M:ℝ)^(r-1)) ∧
      (∀ k m L : ℕ, 2 ≤ k → 1 ≤ m → k^m ≤ L →
        |V k L-W k (k^m)| ≤ (2*B)*(k:ℝ)^(1+(m:ℝ)*(r-1))) := by sorry
Source
A tail estimate uniform in both cutoffs for https://prove2.me/theorems/67aa0f0e-8dc0-4601-8982-550e8395066b.

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