Exact squarefree coprime count and explicit truncated density error
ProvedHelfgott.squarefree_coprime_count_certificategoldbachminor-arcsmobiussquarefreevaughan-identity
For positive integer and any nonnegative integer , put and . Then
and
All floor endpoints, including , are exact. This is the squarefree coprime counting input for the signed Mobius cancellation in Vaughan Type II estimates. The infinite density and its sharp uniform remainder are separate subsequent steps.
Preamble
import Mathlib.NumberTheory.ArithmeticFunction.Moebius import Mathlib.Data.Nat.Sqrt import Mathlib.Data.Nat.Totient import Mathlib.Analysis.SpecialFunctions.Pow.Real open Finset Nat ArithmeticFunction open scoped BigOperators Classical
Formal statement
namespace Helfgott
theorem squarefree_coprime_count_certificate (q N : ℕ) (hq : q ≠ 0) :
((∑ n ∈ Finset.Icc 1 N,if Nat.Coprime n q then ((moebius n : ℤ) : ℝ)^2 else 0) =
∑ d ∈ Finset.Icc 1 N.sqrt,if Nat.Coprime d q then
((moebius d : ℤ) : ℝ)*(∑ e ∈ q.divisors,((moebius e : ℤ) : ℝ)*((N/(d^2*e) : ℕ) : ℝ)) else 0) ∧
|(∑ n ∈ Finset.Icc 1 N,if Nat.Coprime n q then ((moebius n : ℤ) : ℝ)^2 else 0)-
(N : ℝ)*((q.totient : ℝ)/(q : ℝ))*
(∑ d ∈ Finset.Icc 1 N.sqrt,if Nat.Coprime d q then ((moebius d : ℤ) : ℝ)/(d : ℝ)^2 else 0)| ≤
(N.sqrt : ℝ)*(∑ e ∈ q.divisors,|((moebius e : ℤ) : ℝ)|) := by sorry
end HelfgottSource
H. A. Helfgott, Minor arcs for Goldbach, section 4.1.1 (squarefree coprime counting in the Type II Mobius energy), https://arxiv.org/abs/1205.5252. Complete original Lean proof from Mobius inversion, exact divisor counting and floor errors. Mathlib attributions retained. Written by Codex.