Balanced factors and a prime-divisor window for Möbius progression sums
DefinitionGRH_BalancedMoebiusanalytic-number-theorydirichlet-convolutionmobius-function
For cutoffs U,V the long sum runs over d>U and m>V with dm≤N and dm in the prescribed residue. The coefficient of m uses divisors coprime to its least prime factor p and in the interval V/p<e≤V. Only m whose squarefree kernel exceeds V are retained. Center the sum by (N/q) times the two reduced harmonic Möbius sums through U and V. At N=u² use U=V=floor(sqrt(u)).
Definition code
import Definitions.Def_GRH_FactorialMoebius
import Mathlib.NumberTheory.ArithmeticFunction.Misc
namespace GRH.BalancedMoebius
open Finset
noncomputable section
abbrev mu (n : ℕ) : ℝ := (ArithmeticFunction.moebius n : ℝ)
/-- The sum of the Möbius coefficients of the divisors above V. -/
def tailDiv (V m : ℕ) : ℝ := ∑ e ∈ m.divisors, if V < e then mu e else 0
/-- Only divisors that cross the cutoff on multiplication by p are retained. -/
def primeWindow (p V m : ℕ) : ℝ :=
-(∑ d ∈ m.divisors, if ¬p ∣ d ∧ d ≤ V ∧ V < p*d then mu d else 0)
def rad (m : ℕ) : ℕ := ∏ p ∈ m.primeFactors, p
def longSum {q : ℕ} (a : ZMod q) (N U V : ℕ) : ℝ :=
∑ d ∈ Ioc U (N/(V+1)), mu d * ∑ m ∈ Ioc V (N/d),
if V < rad m ∧ ((d*m : ℕ) : ZMod q)=a then primeWindow m.minFac V m else 0
def rawShort (q : ℕ) [NeZero q] (a : ZMod q) (N U V : ℕ) : ℝ :=
∑ d ∈ Ioc 0 U, mu d * ∑ e ∈ Ioc 0 V, mu e * moebiusProgressionCount q a N d e
/-- The small divisors that can contribute to a reduced residue class. -/
def active (q U : ℕ) : Finset ℕ := by
classical
exact (Ioc 0 U).filter (fun d => IsUnit (d:ZMod q) ∧ mu d ≠ 0)
def mainTerm (q : ℕ) [NeZero q] (N U V : ℕ) : ℝ :=
(N:ℝ)/q * reducedMoebiusHarmonic q U * reducedMoebiusHarmonic q V
def centeredLong (q : ℕ) [NeZero q] (a : ZMod q) (N U V : ℕ) : ℝ :=
longSum a N U V - mainTerm q N U V
/-- At the square cutoff u² both factor variables exceed floor(sqrt(u)). -/
def largeFactorUpper (q : ℕ) [NeZero q] (θ : ℝ) : Prop :=
∀ a : ZMod q, IsUnit a → ∃ C : ℝ, 0 ≤ C ∧ ∀ u : ℕ,
centeredLong q a (u^2) u.sqrt u.sqrt ≤ C*((u:ℝ)^2+1)^θ
def cofinal : Prop := ∀ b : ℕ, ∃ k : ℕ, b ≤ k ∧
largeFactorUpper (FactorialMoebius.level k) (FactorialMoebius.exponent k)
end
end GRH.BalancedMoebius
Source
Formalized for the assigned centered Möbius progression theorem on Prove2Me. Finite Dirichlet convolution and the two truncations of the Möbius function.