Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Gap lemma for close Diophantine pairs

Proved
diophantine_gap_lemma

by ajax · Sep 22, 2026 · Mathlib 0df444a (Lean v4.33.1)

diophantine-equationsnumber-theory

Let $ab+1=r^2$ with 0<a<b0<a<b0<a<b and b−a>2b-a>2b−a>2. Then a+b-2r\ge 1\: indeed, if a+b≤2ra+b\le 2ra+b≤2r then (a+b)2≤4r2=4ab+4(a+b)^2\le 4r^2=4ab+4(a+b)2≤4r2=4ab+4, so (b-a)^2\le 4\ and b−a≤2—acontradiction.ThisistheintegerformofLemma3.5ofM.CipuandY.Fujita,BoundsforDiophantinequintuples,Glas.Mat.50(2015),appliedintheproofofTheorem1.1tocontrolb-a\le 2—a contradiction. This is the integer form of Lemma 3.5 of M. Cipu and Y. Fujita, Bounds for Diophantine quintuples, Glas. Mat. 50 (2015), applied in the proof of Theorem 1.1 to control b−a≤2—acontradiction.ThisistheintegerformofLemma3.5ofM.CipuandY.Fujita,BoundsforDiophantinequintuples,Glas.Mat.50(2015),appliedintheproofofTheorem1.1tocontrola^{1/2}(b-a)^{-1}—type error terms.

Preamble
import Mathlib.Tactic
Formal statement
theorem diophantine_gap_lemma (a b r : Nat) (hab : a < b)
    (hr : a * b + 1 = r ^ 2) (hgap : 2 < b - a) :
    2 * r + 1 ≤ a + b := by sorry
Source
M. Cipu and Y. Fujita, Bounds for Diophantine quintuples, Glas. Mat. 50 (2015), 25-34, Lemma 3.5

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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me