A prime-square sieve for signed balanced Möbius coefficients
DefinitionGRH_SquareDivisorSieveanalytic-number-theorymobius-functionsieve-theory
Least-common-multiple density counts, inclusion and exclusion over prime squares, and the resulting centered sum on the integers left by the prime-dilation cancellation. The deterministic cutoff is the integer part of log base 2 of u²+1 divided by k+3, with all primes through one more than the cutoff selected.
Definition code
import Definitions.Def_GRH_RoughMoebiusPairs
import Mathlib.Data.Nat.Log
namespace GRH.SquareDivisorSieve
open Finset GRH.BalancedMoebius GRH.RoughMoebiusPairs
open scoped Classical
noncomputable section
/-- The expected count of multiples of L in a reduced class modulo q. -/
def densityCount (q N L : ℕ) : ℝ :=
if IsUnit (L : ZMod q) then (N : ℝ) / ((L : ℝ) * q) else 0
def blockMain (q N V D : ℕ) : ℝ :=
∑ d ∈ Ioc 0 V, ∑ e ∈ Ioc 0 V,
mu d * mu e * densityCount q N (Nat.lcm D (d * e))
def sift (P : List ℕ) (n : ℕ) : Prop := ∀ r ∈ P, ¬ r ^ 2 ∣ n
def siftBox {q : ℕ} (a : ZMod q) (N V D : ℕ) (P : List ℕ) : ℝ :=
∑ n ∈ Ioc 0 N, if D ∣ n ∧ (n : ZMod q) = a ∧ sift P n then box V n else 0
/-- Inclusion and exclusion applied to the finite least-common-multiple main terms. -/
def siftMain (q N V : ℕ) : List ℕ → ℕ → ℝ
| [], D => blockMain q N V D
| r :: P, D => siftMain q N V P D - siftMain q N V P (Nat.lcm D (r ^ 2))
def rejectedMain (q N V : ℕ) (P : List ℕ) : ℝ :=
blockMain q N V 1 - siftMain q N V P 1
def siftRetained (q : ℕ) [NeZero q] (a : ZMod q) (p V N : ℕ) (P : List ℕ) : ℝ :=
(∑ n ∈ Ioc 0 N \ removed p V N, if sift P n then term a V n else 0) -
(mainTerm q N V V - rejectedMain q N V P)
def cutoff (k u : ℕ) : ℕ := Nat.log 2 (u ^ 2 + 1) / (k + 3)
def primesThrough (m : ℕ) : List ℕ :=
((List.range m).map (fun j => j + 2)).filter Nat.Prime
def cofinalSifted : Prop := ∀ b : ℕ, ∃ k : ℕ, b ≤ k ∧ ∃ p : ℕ, p.Prime ∧
(p : ZMod (FactorialMoebius.level k)) = 1 ∧
∀ a : ZMod (FactorialMoebius.level k), IsUnit a → ∃ C : ℝ, 0 ≤ C ∧ ∀ u : ℕ,
siftRetained (FactorialMoebius.level k) a p u.sqrt (u ^ 2) (primesThrough (cutoff k u)) ≤
C * ((u : ℝ) ^ 2 + 1) ^ (FactorialMoebius.exponent k)
end
end GRH.SquareDivisorSieve
Source
Original finite divisor-counting proof for the Prove2Me centered Möbius progression route. Earlier balanced-coefficient identity by this project: https://prove2.me/theorems/4c9e7ca9-e5ba-49f1-a5f9-cd528cd6d115 .