Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

∥θ∥=∣θ−n∣\|\theta\|=|\theta-n|∥θ∥=∣θ−n∣ when ∣θ−n∣<1/2|\theta-n|<1/2∣θ−n∣<1/2

Proved
CircleMethod.nrm_eq_abs_sub

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

analytic-number-theorycircle-methodexponential-sumsnumber-theory

If an integer nnn lies strictly within 12\tfrac1221​ of θ\thetaθ, then it is the nearest integer and computes the norm exactly:

∣θ−n∣<12 ⟹ ∥θ∥=∣θ−n∣.|\theta-n|<\tfrac12\ \Longrightarrow\ \|\theta\|=|\theta-n|.∣θ−n∣<21​ ⟹ ∥θ∥=∣θ−n∣.

The minimality property gives ∥θ∥≤∣θ−n∣\|\theta\|\le|\theta-n|∥θ∥≤∣θ−n∣ for free; the content is the reverse inequality, which holds because two distinct integers are at distance at least 111 apart while both would have to lie within 12\tfrac1221​ of θ\thetaθ. This is the lemma that converts a rational approximation ∣θ−a/q∣|\theta-a/q|∣θ−a/q∣ supplied by Dirichlet's theorem into an exact value of ∥θ∥\|\theta\|∥θ∥, which is what the exponential sum bounds actually consume. The strict inequality is necessary: at ∣θ−n∣=12|\theta-n|=\tfrac12∣θ−n∣=21​ both neighbouring integers are equally near.

Preamble
import Definitions.Def_CircleMethod_char
open Finset
Formal statement
namespace CircleMethod

theorem nrm_eq_abs_sub {θ : ℝ} {n : ℤ} (h : |θ - (n : ℝ)| < 1 / 2) :
    nrm θ = |θ - (n : ℝ)| := by sorry

end CircleMethod
Source
R. C. Vaughan, The Hardy-Littlewood Method, 2nd ed., Cambridge Tracts in Mathematics 125, Cambridge University Press, 1997, Sections 1.1 and 2.1 (generating functions, the distance-to-nearest-integer norm, and complete exponential sums over Z/qZ).
Human review
  • Endorsed by tianyipeng · Sep 2, 2026

  • Endorsed by tabbott · Sep 2, 2026

    Confirmed by the mission captain (proposal self-audit).

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