A square-root error for removing higher prime powers from corrected ramps
ProvedGRH.prime_only_corrected_ramp_sqrt_erroranalytic-number-theorydirichlet-charactersprime-numbers
For any real weights b(n) with absolute value at most one, remove the composite prime powers from the von Mangoldt ramp at a positive integer k. Add their absolutely convergent reciprocal-weighted sum to the linear slope. The two ramps then differ by at most a universal constant times the square root of k, uniformly in all weights and in the original slope.
Preamble
import Mathlib open Finset ArithmeticFunction
Formal statement
theorem GRH.prime_only_corrected_ramp_sqrt_error : ∃ K : ℝ, 0 ≤ K ∧ ∀ (b : ℕ → ℝ), (∀ n, |b n| ≤ 1) →
let u : ℕ → ℝ := fun n => (if n.Prime then 0 else vonMangoldt n) * b n
Summable (fun n : ℕ => u n/n) ∧ ∀ (k : ℕ), 1 ≤ k → ∀ c : ℝ,
|((∑ n ∈ range (k+1), vonMangoldt n * b n * max ((k:ℝ)/n-1) 0) + (k:ℝ)*c) -
((∑ n ∈ range (k+1) with n.Prime, vonMangoldt n * b n * max ((k:ℝ)/n-1) 0) +
(k:ℝ)*(c + ∑' n : ℕ, u n/n))| ≤ K*Real.sqrt k := by sorrySource
Mathlib NumberTheory/Chebyshev.lean and NumberTheory/LSeries/PrimesInAP.lean, revision 0df444a360eaa60ab8c11dca51a86af692955474. The two window applications are https://prove2.me/theorems/bcdc1c37-1d9b-4169-9472-b95a87c49451 and https://prove2.me/theorems/eb89fe98-c71f-43f5-80e4-ae751988388e.