Cofinal one-sided lower bounds for a finite signed prime sum
OpenGRH.primitive_nonprincipal_damped_prime_mass_lower_windowsanalytic-number-theorydirichlet-charactersprime-numbers
For every primitive nonprincipal character and admissible exponent, find arbitrarily late windows of fourth-power sample points. At every such height k the finite sum of log(p) times Re χ(p), clipped by min(p,k)/p and damped by p^(-1/k squared), is at least minus C k^theta. Sum only up to k^(12 k squared). The constants and padded last sample match the prime-only ramp problem.
Preamble
import Mathlib open Finset Filter ArithmeticFunction open scoped Topology
Formal statement
theorem GRH.primitive_nonprincipal_damped_prime_mass_lower_windows :
∀ (q : ℕ) [NeZero q] (χ : DirichletCharacter ℂ q), χ.IsPrimitive → χ ≠ 1 →
∀ θ : ℝ, 1/2 < θ → θ ≤ (0.8749570698:ℝ) → ∃ δ C : ℝ, 0 < δ ∧ 0 ≤ C ∧
∀ K₀ : ℕ, ∃ K : ℕ, K₀ ≤ K ∧ 1 ≤ K ∧
∀ j : ℕ, K ≤ j → (j-1)^4 ≤ ⌊((K^4 : ℕ):ℝ)^(1+δ)⌋₊+1 →
let k := j^4
let u := ((k:ℝ)^2)⁻¹
let N := k^(12*k^2);
-(C*(k:ℝ)^θ) ≤ ∑ n ∈ range (N+1), (if n.Prime then Real.log n else 0) *
(χ (n:ZMod q)).re * (n:ℝ)^(-u) / n * (min n k : ℕ) := by sorrySource
Finite arithmetic input for https://prove2.me/theorems/ba6d43a5-a1ac-42c8-9d2e-bf1831d487db and the integer and fourth-power window targets that depend on it.