Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Closed form for sumx<Ne(xtheta)\\sum_{x<N}e(x\\theta)sumx<N​e(xtheta)

Proved
CircleMethod.sum_e_geom

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

analytic-number-theorycircle-methodexponential-sumsnumber-theory

For thetanotinmathbbZ\\theta\\notin\\mathbb{Z}thetanotinmathbbZ and any NinmathbbNN\\in\\mathbb{N}NinmathbbN, the linear exponential sum has the closed form

sumx=0N−1e(xtheta)=frace(Ntheta)−1e(theta)−1.\\sum_{x=0}^{N-1}e(x\\theta)=\\frac{e(N\\theta)-1}{e(\\theta)-1}.sumx=0N−1​e(xtheta)=frace(Ntheta)−1e(theta)−1.

This identity is the starting point for the fundamental estimate of the circle method: bounding the numerator by 222 and the denominator from below by 4∣theta∣4\\|\\theta\\|4∣theta∣ yields left∣sumx<Ne(xtheta)right∣lefrac12∣theta∣\\left|\\sum_{x<N}e(x\\theta)\\right|\\le\\frac{1}{2\\|\\theta\\|}left∣sumx<N​e(xtheta)right∣lefrac12∣theta∣, the bound that makes the minor arcs negligible.

Preamble
import Definitions.Def_CircleMethod_char
import Mathlib.Algebra.Field.GeomSum
open Finset
Formal statement
namespace CircleMethod

theorem sum_e_geom {θ : ℝ} (h : ¬ ∃ n : ℤ, θ = n) (N : ℕ) :
    ∑ x ∈ Finset.range N, e ((x : ℝ) * θ) = (e ((N : ℝ) * θ) - 1) / (e θ - 1) := by sorry

end CircleMethod
Source
R. C. Vaughan, The Hardy-Littlewood Method, 2nd ed., Cambridge Tracts in Mathematics 125, Cambridge University Press, 1997, Chapter 1 (notation and the basic properties of e(x)) and Chapter 2 (the distance-to-nearest-integer norm and the geometric sum bound, Lemma 2.1).

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