Prime large-sieve weights, full character energies, and rational arc families
DefinitionHelfgott_PrimeSieveDataDefine and , with the natural floor for the real cutoff R. Define the primitive-character square energy , the full reduced rational square energy , and its denominator window sum . Here is the already published complete circle exponential sum.
Also define ordinary rational arcs with positive denominators and radius , and the real-cutoff parity arc family with odd of radius and even of radius . Both are unions of open circular balls around all reduced representatives ; the circle has circumference one. The parity family agrees with the published actual major arcs when R is a natural cutoff.
These are data definitions only. They assert no convergence, energy estimate, quotient estimate, or disjointness. They retain the complete infinite sums and every primitive character, including conductor one. They support the prime large-sieve and variable-radius minor-arc argument of Helfgott §5–§6.
import Definitions.Def_Helfgott_WeightedCounting
import Definitions.Def_CircleMethod_char
import Mathlib.NumberTheory.ArithmeticFunction.Moebius
import Mathlib.NumberTheory.DirichletCharacter.Orthogonality
import Mathlib.Algebra.Order.Floor.Semifield
open scoped BigOperators Classical
namespace Helfgott
noncomputable def primeSieveWeight (d r : ℕ) : ℝ :=
if Nat.Coprime r d then (((ArithmeticFunction.moebius r : ℤ) : ℝ)^2)/(Nat.totient r : ℝ)
else 0
noncomputable def primeSieveG (d : ℕ) (R : ℝ) : ℝ :=
∑ r ∈ Finset.Icc 1 (Nat.floor R), primeSieveWeight d r
noncomputable def primitiveCharacterEnergy (c : ℕ → ℂ) (d : ℕ) (β : ℝ) : ℝ :=
∑ ψ ∈ (Finset.univ : Finset (DirichletCharacter ℂ d)).filter (fun ψ => ψ.IsPrimitive),
‖∑' n : ℕ, ψ (n : ZMod d)*(c n*CircleMethod.e ((n : ℝ)*β))‖^2
noncomputable def reducedRationalEnergy (c : ℕ → ℂ) (q : ℕ) (β : ℝ) : ℝ :=
∑ a ∈ (Finset.range q).filter (fun a => Nat.Coprime a q),
‖expSum c (((a : ℝ)/(q : ℝ)+β : ℝ) : AddCircle (1 : ℝ))‖^2
noncomputable def rationalWindowEnergy (c : ℕ → ℂ) (L : ℝ) (β : ℝ) : ℝ :=
∑ q ∈ Finset.Icc 1 (Nat.floor L), reducedRationalEnergy c q β
noncomputable def ordinaryMajorArcs (δ R x : ℝ) : Set (AddCircle (1 : ℝ)) :=
{α | ∃ q a : ℕ, 0 < q ∧ a < q ∧ Nat.Coprime a q ∧ (q : ℝ) ≤ R ∧
dist α ((a : ℝ)/(q : ℝ) : AddCircle (1 : ℝ)) < δ*R/(q*x)}
noncomputable def realMajorArcs (δ R x : ℝ) : Set (AddCircle (1 : ℝ)) :=
{α | ∃ q a : ℕ, 0 < q ∧ a < q ∧ Nat.Coprime a q ∧
((Odd q ∧ (q : ℝ) ≤ R ∧
dist α ((a : ℝ)/(q : ℝ) : AddCircle (1 : ℝ)) < δ*R/(2*q*x)) ∨
(Even q ∧ (q : ℝ) ≤ 2*R ∧
dist α ((a : ℝ)/(q : ℝ) : AddCircle (1 : ℝ)) < δ*R/(q*x)))}
end Helfgott