Two-interval bounds for the finite damped signed prime mass
ProvedGRH.damped_prime_mass_two_interval_prefix_boundsanalytic-number-theorydirichlet-charactersprime-numbers
For a fixed nonprincipal character and every large k, bound its finite damped prime mass from above or below using bounds for the ordinary signed prime count A(n) on two adjacent finite intervals. Splitting at H gives weights 1-k/H and k/H-k/M. There is a single character-dependent square-root error uniform over every split and choice of interval bounds.
Preamble
import Mathlib open Finset Filter ArithmeticFunction open scoped Topology
Formal statement
theorem GRH.damped_prime_mass_two_interval_prefix_bounds (q : ℕ) [NeZero q] (χ : DirichletCharacter ℂ q) (hχ : χ ≠ 1) :
let A := fun n : ℕ => ∑ i ∈ range (n+1),
(if i.Prime then Real.log i else 0)*(χ (i:ZMod q)).re
∃ B : ℝ, 0 ≤ B ∧ ∀ᶠ k : ℕ in atTop,
let M := k^((Nat.log 2 k+1)^2)
let u := ((k:ℝ)^2)⁻¹
let S := ∑ n ∈ range (k^(12*k^2)+1), (if n.Prime then Real.log n else 0)*
(χ (n:ZMod q)).re*(n:ℝ)^(-u)/n*(min n k : ℕ)
∀ H : ℕ, k ≤ H → H ≤ M → ∀ l u₁ r u₂ : ℝ,
(∀ n ∈ Ico k H, l ≤ A n ∧ A n ≤ u₁) →
(∀ n ∈ Ico H M, r ≤ A n ∧ A n ≤ u₂) →
let w₁ := 1 - (k:ℝ)/H
let w₂ := (k:ℝ)/H - (k:ℝ)/M
l*w₁+r*w₂-B*Real.sqrt k ≤ S ∧ S ≤ u₁*w₁+u₂*w₂+B*Real.sqrt k := by sorrySource
A finite sufficient test and an obstruction test for https://prove2.me/theorems/d173562c-76bd-5715-a132-9b0e0fa0b112.