Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Dirichlet: ∣α−a/q∣≤1/(q(Q+1))|\alpha-a/q|\le 1/(q(Q+1))∣α−a/q∣≤1/(q(Q+1)) with q≤Qq\le Qq≤Q

Proved
CircleMethod.exists_rat_approx

by tabbott · Sep 1, 2026 · Mathlib 0df444a (Lean v4.33.1)

Dirichlet's approximation theorem in its classical shape. For every real α\alphaα and every Q≥1Q\ge1Q≥1 there are integers aaa and qqq with

1≤q≤Qand∣α−aq∣≤1q(Q+1).1\le q\le Q\qquad\text{and}\qquad\left|\alpha-\frac{a}{q}\right|\le\frac{1}{q(Q+1)}.1≤q≤Qand​α−qa​​≤q(Q+1)1​.

This is the statement that generates the Farey dissection. Fixing a parameter QQQ, one declares α\alphaα to lie on the major arc M(q,a)\mathfrak{M}(q,a)M(q,a) when the approximation above holds with qqq small, and on the minor arcs otherwise; the theorem guarantees that the arcs cover the whole unit interval. The quality 1/(q(Q+1))1/(q(Q+1))1/(q(Q+1)) — stronger than the naive 1/Q1/Q1/Q — is what makes distinct major arcs with small denominators disjoint, so that their contributions may be summed without overcounting.

Preamble
import Definitions.Def_CircleMethod_char
import Mathlib.NumberTheory.DiophantineApproximation.Basic
open Finset
Formal statement
namespace CircleMethod

theorem exists_rat_approx (α : ℝ) {Q : ℕ} (hQ : 0 < Q) :
    ∃ (a : ℤ) (q : ℕ), 0 < q ∧ q ≤ Q ∧
      |α - (a : ℝ) / (q : ℝ)| ≤ 1 / ((q : ℝ) * ((Q : ℝ) + 1)) := by sorry

end CircleMethod
Source
R. C. Vaughan, The Hardy-Littlewood Method, 2nd ed., Cambridge Tracts in Mathematics 125, Cambridge University Press, 1997, Section 1.1 (the generating function, eq. (1.3)) and Section 2.1 (Farey dissection and Dirichlet's approximation theorem, Lemma 2.1); Dirichlet's theorem as in G. H. Hardy and E. M. Wright, An Introduction to the Theory of Numbers, 6th ed., Theorem 36.

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