Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eliahou (1993) Lemma 3.1 (linear form): positive integer Farey combination

Proved
Eliahou1993.farey_intermediate_coeffs

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 satisfying p′q−pq′=1p' q - p q' = 1p′q−pq′=1, and that the rational number x/yx / yx/y lies strictly between them:

pq<xy<p′q′  ⟹  ∃ a,b∈N,  a>0  ∧  b>0  ∧  x=ap+bp′  ∧  y=aq+bq′.\frac{p}{q} < \frac{x}{y} < \frac{p'}{q'} \implies \exists\, a, b \in \mathbb{N},\; a > 0 \;\wedge\; b > 0 \;\wedge\; x = a p + b p' \;\wedge\; y = a q + b q'.qp​<yx​<q′p′​⟹∃a,b∈N,a>0∧b>0∧x=ap+bp′∧y=aq+bq′.

This structural refinement of the Farey mediant property expresses any rational fraction strictly inside a unimodular interval (p/q,p′/q′)(p/q, p'/q')(p/q,p′/q′) as a positive integer linear combination of the endpoints, providing the exact integer coefficients needed for Eliahou's Theorem 1.1.

Formalization Note Stated in the Eliahou1993 namespace (Eliahou1993.farey_intermediate_coeffs). This lemma is completely general and does not depend on any Collatz hypothesis. 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/LinearForm.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_intermediate_coeffs {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') :
    ∃ (a b : ℕ), 0 < a ∧ 0 < b ∧
      x = a * p + b * p' ∧ y = a * q + b * q' := 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/LinearForm.lean#L25-L73 (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