Eliahou (1993) Lemma 3.1 (linear form): positive integer Farey combination
ProvedEliahou1993.farey_intermediate_coeffsLet be natural numbers with , , and . Suppose that and form a Farey pair satisfying , and that the rational number lies strictly between them:
This structural refinement of the Farey mediant property expresses any rational fraction strictly inside a unimodular interval 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).
/- 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
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