Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

The Farey dissection has at most P2P^2P2 major arcs

Proved
ThreePrimes.card_fareyPairs_le

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

circle-methodnumber-theorythree-primesvinogradov

The number of reduced fractions a/qa/qa/q with 1≤a≤q≤P1\le a\le q\le P1≤a≤q≤P is at most P2P^2P2.

Crude but sufficient: the major arcs are indexed by these fractions, each has measure 2ρ=2P/N2\rho=2P/N2ρ=2P/N, and the total major-arc measure is therefore O(P3/N)O(P^3/N)O(P3/N), which is o(1)o(1)o(1) for PPP a power of log⁡N\log NlogN. The bound P2P^2P2 (rather than the true ∼3P2/π2\sim 3P^2/\pi^2∼3P2/π2) is all the error analysis needs.

Preamble
import Definitions.Def_Vino_threeprimes
import Mathlib.Analysis.Asymptotics.Defs
import Mathlib.Analysis.Asymptotics.Lemmas
import Mathlib.MeasureTheory.Integral.IntervalIntegral.Basic
import Mathlib.MeasureTheory.Integral.Bochner.Set
import Mathlib.NumberTheory.ArithmeticFunction.VonMangoldt
import Mathlib.Analysis.SpecialFunctions.Pow.Real
import Mathlib.Analysis.SpecialFunctions.Log.Basic
import Mathlib.Data.Nat.Totient

open CircleMethod Vino Finset Filter Asymptotics MeasureTheory
open scoped Topology
Formal statement
namespace ThreePrimes

theorem card_fareyPairs_le (P : ℕ) : (fareyPairs P).card ≤ P ^ 2 := by sorry

end ThreePrimes
Source
R. C. Vaughan, The Hardy-Littlewood Method, 2nd ed., Cambridge Tracts in Mathematics 125, Cambridge University Press, 1997, Chapter 3, Section 3.2

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