Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eliahou (1993) Lemma 3.1: mediant lower bound for fractions between a Farey pair

Proved
Eliahou1993.farey_pair_bound

by kmehltretter82 · Nov 7, 2026 · Mathlib 0df444a (Lean v4.33.1)

collatzcontinued-fractionseliahou-1993number-theory

Let p,q,p′,q′,x,y∈Np, q, p', q', x, y \in \mathbb{N}p,q,p′,q′,x,y∈N be natural numbers with q>0q > 0q>0, q′>0q' > 0q′>0, and y>0y > 0y>0. Suppose that p/qp/qp/q and p′/q′p'/q'p′/q′ form a Farey pair in the sense that p′q−pq′=1p' q - p q' = 1p′q−pq′=1, and that the rational fraction x/yx / yx/y lies strictly between them:

pq<xy<p′q′  ⟹  p+p′≤xandq+q′≤y.\frac{p}{q} < \frac{x}{y} < \frac{p'}{q'} \implies p + p' \le x \quad \text{and} \quad q + q' \le y.qp​<yx​<q′p′​⟹p+p′≤xandq+q′≤y.

This general diophantine approximation property (Eliahou 1993, Lemma 3.1) requires no cycle-specific assumptions and provides lower bounds on the numerator and denominator of any rational number trapped inside a Farey interval.

Formalization Note Stated in the Eliahou1993 namespace (Eliahou1993.farey_pair_bound) using natural-number subtraction p' * q - p * q' = 1 and rational inequalities (p : ℚ) / q < x / y and (x : ℚ) / y < p' / q'. Adapted under the MIT License from tangentproofs/eliahou-collatz-bounds (commit 18cc351df2f942ddba4bf03feb9b75a70701497d, Copyright (c) 2026 Michal Wallace; co-authored by Aristotle / Harmonic).

Preamble
/-
Adapted from https://github.com/tangentproofs/eliahou-collatz-bounds
(commit 18cc351df2f942ddba4bf03feb9b75a70701497d, file Collatz/ContinuedFractions.lean),
formalizing:
  Shalom Eliahou (1993), "The 3x + 1 problem: new lower bounds on nontrivial
  cycle lengths", Discrete Mathematics 118(1-3), pp. 45–56, Lemma 3.1.
Co-authored-by: Aristotle (Harmonic) <aristotle-harmonic@harmonic.fun>

MIT License — Copyright (c) 2026 Michal Wallace. See Definitions/Def_eliahou1993Cycle.lean for full notice.
-/
import Mathlib.Tactic
import Mathlib.Data.Rat.Cast.Order
Formal statement
theorem Eliahou1993.farey_pair_bound {p q p' q' x y : ℕ} (hq : 0 < q) (hq' : 0 < q')
    (hy : 0 < y)
    (hfarey : p' * q - p * q' = 1)
    (hleft : (p : ℚ) / q < x / y)
    (hright : (x : ℚ) / y < p' / q') :
    p + p' ≤ x ∧ q + q' ≤ y := by sorry
Source
Shalom Eliahou (1993), 'The 3x + 1 problem: new lower bounds on nontrivial cycle lengths', Discrete Mathematics 118(1-3), pp. 45–56, p. 49, Lemma 3.1; https://github.com/tangentproofs/eliahou-collatz-bounds/blob/18cc351df2f942ddba4bf03feb9b75a70701497d/Collatz/ContinuedFractions.lean#L45-L55 (Adapted from tangentproofs/eliahou-collatz-bounds (commit 18cc351df2f942ddba4bf03feb9b75a70701497d, Copyright (c) 2026 Michal Wallace, MIT License; co-authored by Aristotle / Harmonic).)

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