Tao Lemma 4.6 (proof): removing the small primes from the Montgomery-Vaughan sum
ProvedTaoFivePrimes.mertens_coprime_splitFor all integers ,
where is the Möbius function, is Euler's totient, is the primorial, and both the sum and the product on the right run over the integers, respectively the primes, in and .
In words: restricting the Montgomery–Vaughan sum to moduli free of small prime factors costs at most the Mertens product . It is the step that converts the unrestricted lower bound into the lower bound for the restricted sum which weights the Farey translates in the local estimate for smoothed prime exponential sums; combined with it gives
The mechanism is the factorization of a squarefree modulus into its -smooth and -rough parts, together with the multiplicativity of ; the Euler product collects the smooth parts.
Formalization Note The Möbius function is the arithmetic function of the ambient library, cast to the reals, and the coprimality condition is written as coprimality to the product of the primes in rather than as a condition on each small prime. For the summand is under the ambient division convention, and the sum starts at in any case.
import Mathlib open Finset
theorem TaoFivePrimes.mertens_coprime_split (Q R : ℕ) :
(∑ n ∈ Finset.Icc 1 R,
((ArithmeticFunction.moebius n : ℝ)) ^ 2 / (Nat.totient n : ℝ))
≤ (∑ m ∈ (Finset.Icc 1 R).filter
(fun m => Nat.Coprime m (∏ p ∈ (Finset.Icc 1 Q).filter Nat.Prime, p)),
((ArithmeticFunction.moebius m : ℝ)) ^ 2 / (Nat.totient m : ℝ))
* ∏ p ∈ (Finset.Icc 1 Q).filter Nat.Prime, ((p : ℝ) / ((p : ℝ) - 1)) := by sorry