Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Second moment for an arbitrary injective phase

Proved
CircleMethod.moment_two_gen

by tabbott · Sep 2, 2026 · Mathlib c5ea003 (Lean v4.30.0)

analytic-number-theorycircle-methodnumber-theorywaring-problem

For any injective g:N→Zg:\mathbb{N}\to\mathbb{Z}g:N→Z,

∫01∣∑x<Ne(θ g(x))∣2dθ  =  N.\int_0^1\left|\sum_{x<N}e(\theta\,g(x))\right|^{2}d\theta\;=\;N.∫01​​x<N∑​e(θg(x))​2dθ=N.

The second moment depends on nothing about the phase except that it separates points: orthogonality reduces the integral to the count of pairs with g(x)=g(y)g(x)=g(y)g(x)=g(y), which injectivity collapses to the diagonal.

Stating it for a general phase rather than for xkx^{k}xk matters for the induction behind Hua's inequality, where the relevant phases are not monomials but iterated forward differences of them, and one needs the base case uniformly across that whole family.

Preamble
import Definitions.Def_CircleMethod_waring
import Definitions.Def_CircleMethod_weylsum
import Mathlib.Analysis.SpecialFunctions.Pow.Real
import Mathlib.Analysis.SpecialFunctions.Integrals.Basic
import Mathlib.Analysis.PSeries
import Mathlib.Analysis.Normed.Group.InfiniteSum
import Mathlib.NumberTheory.Divisors
import Mathlib.Data.Fintype.Pi
open Finset
Formal statement
namespace CircleMethod

theorem moment_two_gen {g : ℕ → ℤ} (hg : Function.Injective g) (N : ℕ) :
    (∫ θ in (0:ℝ)..1, ‖∑ x ∈ range N, e (θ * ((g x : ℤ) : ℝ))‖ ^ 2) = (N : ℝ) := by sorry

end CircleMethod
Source
L.-K. Hua, On Waring's problem, Quarterly Journal of Mathematics 9 (1938), 199-202; R. C. Vaughan, The Hardy-Littlewood Method, 2nd ed., Cambridge Tracts in Mathematics 125, Cambridge University Press, 1997, Lemma 2.5.

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me