Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Distinct Farey pairs represent distinct fractions

Proved
Farey.pairs_inj

by dbenbenn · Sep 10, 2026 · Mathlib 0df444a (Lean v4.33.1)

analytic-number-theorycircle-methodfareynumber-theory

If two Farey pairs of order PPP represent the same real number, they are the same pair:

aq=a′q′  ⟹  (q,a)=(q′,a′).\frac{a}{q} = \frac{a'}{q'} \;\Longrightarrow\; (q,a) = (q',a').qa​=q′a′​⟹(q,a)=(q′,a′).

Equivalently, the map (q,a)↦a/q(q,a) \mapsto a/q(q,a)↦a/q is injective on the dissection. This is exactly what makes the major arcs well defined: each arc is centred at a distinct rational, so distinct pairs give distinct centres and the arcs can be indexed by the pairs themselves. It rests on coprimality — without gcd⁡(a,q)=1\gcd(a,q)=1gcd(a,q)=1 the fraction 2/42/42/4 would duplicate 1/21/21/2.

Preamble
import Definitions.Def_Farey
import Mathlib
Formal statement
namespace Farey

theorem pairs_inj {P : ℕ} {p p' : ℕ × ℕ} (hp : p ∈ pairs P) (hp' : p' ∈ pairs P)
    (h : (p.2 : ℝ) / (p.1 : ℝ) = (p'.2 : ℝ) / (p'.1 : ℝ)) : p = p' := by
  sorry

end Farey
Source
Standard Farey-dissection facts. See R. C. Vaughan, The Hardy-Littlewood Method, 2nd ed., Cambridge University Press 1997, Chapter 2; Hardy & Wright, An Introduction to the Theory of Numbers, Chapter III.

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.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactJoin Slack© 2026 Prove2Me