Complete exponential sums , the singular integral, and local densities
DefinitionCircleMethod_waringThree objects that together carry the local-global structure of Waring's problem.
The complete exponential sum. For a modulus and an integer ,
This is the local analogue at of the Weyl sum : where the Weyl sum measures oscillation over an interval, measures it over the finite ring . It is multiplicative in by the Chinese remainder theorem, and satisfies the Weyl-type bound for — genuine cancellation over a complete residue system.
The singular integral.
the archimedean local factor. It arises as the continuous approximation to the Weyl sum on a major arc: for with small, , which factorises the sum into a purely arithmetic part and a purely analytic one.
The local density.
Summing over all moduli gives the singular series , which is the infinite product of local densities measuring, for each prime , the density of solutions to in the -adic integers. The Hardy--Littlewood asymptotic
is exactly the statement that the number of representations equals the product of all local densities, archimedean and -adic — a local-global principle made quantitative.
Formalization Note. The sum in runs over Finset.range q, i.e. , which is a complete residue system; the value depends only on . In the outer factor is written in , and the inner sum is over the units of represented in .
import Definitions.Def_CircleMethod_char
import Mathlib.Analysis.SpecialFunctions.Integrals.Basic
import Mathlib.Algebra.BigOperators.Group.Finset.Basic
namespace CircleMethod
/-- The complete exponential sum `S(q,a) = ∑_{x < q} e(a x^k / q)`, the local
object attached to the modulus `q` in the circle method. -/
noncomputable def S (k q : ℕ) (a : ℤ) : ℂ :=
∑ x ∈ Finset.range q, e ((a : ℝ) * (x : ℝ) ^ k / (q : ℝ))
/-- The singular integral `v(β) = ∫_0^1 e(β γ^k) dγ`, the archimedean local factor. -/
noncomputable def singInt (k : ℕ) (β : ℝ) : ℂ :=
∫ γ in (0:ℝ)..1, e (β * γ ^ k)
/-- The local density `A(q,n) = q^{-s} ∑_{(a,q)=1} S(q,a)^s e(-na/q)`, whose sum
over `q` is the singular series. -/
noncomputable def locDens (k s q : ℕ) (n : ℤ) : ℂ :=
((q : ℂ)⁻¹) ^ s * ∑ a ∈ (Finset.range q).filter (fun a => Nat.Coprime a q),
(S k q (a : ℤ)) ^ s * e (-(n : ℝ) * (a : ℝ) / (q : ℝ))
end CircleMethod