Explicit square-root error for squarefree coprime counting with the exact density
ProvedHelfgott.squarefree_coprime_count_square_root_errorgoldbachminor-arcsmobiussquarefreevaughan-identity
For every positive integer and nonnegative integer ,
This unconditional estimate includes all finite endpoints. It retains the square-root divisor weights in the modulus error, as needed in the reduction of the actual Vaughan Type II Mobius energy to squarefree coprime counting.
Preamble
import Mathlib.NumberTheory.ArithmeticFunction.Moebius import Mathlib.Data.Nat.Totient import Mathlib.Analysis.SpecialFunctions.Sqrt import Mathlib.Analysis.SpecialFunctions.Trigonometric.Basic open Finset Nat ArithmeticFunction open scoped BigOperators Classical
Formal statement
namespace Helfgott
theorem squarefree_coprime_count_square_root_error (q N : ℕ) (hq : q ≠ 0) :
|(∑ n ∈ Finset.Icc 1 N,if Nat.Coprime n q then ((moebius n : ℤ) : ℝ)^2 else 0)-
(N : ℝ)*(6/Real.pi^2)*(∏ p ∈ q.primeFactors,(p : ℝ)/((p : ℝ)+1))| ≤
3*Real.sqrt (N : ℝ)*(∑ e ∈ q.divisors,|((moebius e : ℤ) : ℝ)|/Real.sqrt (e : ℝ)) := by sorry
end HelfgottSource
H. A. Helfgott, Minor arcs for Goldbach, section 4.1.1, https://arxiv.org/abs/1205.5252. Squarefree coprime counting prerequisite for the Type II cancellation estimate. Complete original Lean proof from exact Mobius inversion, principal Dirichlet L-series, canonical Euler factors, telescoping tails and floor errors. Mathlib attributions retained. Written by Codex.