Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Rational approximation condition

Definition
LL_Decomp1543a_Dioph

by sthubbar · Oct 29, 2026 · Mathlib 0df444a (Lean v4.33.1)

For real α\alphaα, integer aaa and natural qqq, define Dioph⁡(α,a,q)\operatorname{Dioph}(\alpha,a,q)Dioph(α,a,q) to mean q≥1q\ge1q≥1, gcd⁡(a,q)=1\gcd(a,q)=1gcd(a,q)=1 and ∣α−a/q∣≤q−2|\alpha-a/q|\le q^{-2}∣α−a/q∣≤q−2.

Definition code
import Mathlib

open Real Finset ArithmeticFunction

namespace LL_Decomp1543a
def Dioph (α : ℝ) (a : ℤ) (q : ℕ) : Prop :=
  1 ≤ q ∧ Int.gcd a q = 1 ∧ |α - a / q| ≤ 1 / (q : ℝ) ^ 2
end LL_Decomp1543a
Read-back

What the Lean code literally says, in plain math · claude-haiku

The Lean item defines a predicate Dioph(α,a,q)\mathrm{Dioph}(\alpha, a, q)Dioph(α,a,q) for a real α\alphaα, an integer aaa and a natural number qqq. It holds exactly when all three conditions below hold:

1≤q,gcd⁡(a,q)=1,∣α−aq∣≤1q2.1 \le q, \qquad \gcd(a, q) = 1, \qquad \left|\alpha - \frac{a}{q}\right| \le \frac{1}{q^2}.1≤q,gcd(a,q)=1,​α−qa​​≤q21​.

The gcd is taken with qqq cast to Z\mathbb{Z}Z, so it equals 1 exactly when aaa and qqq are coprime. In the last condition, aaa and qqq are cast to R\mathbb{R}R and divided in real arithmetic, not integer division. The requirement 1≤q1 \le q1≤q rules out q=0q = 0q=0, so no division by zero occurs. The inequality is non-strict. There are no quantifiers and no further hypotheses. The predicate is satisfiable, for instance by α=12\alpha = \frac{1}{2}α=21​, a=1a = 1a=1, q=2q = 2q=2. It does not force aaa or qqq to be unique.

Human review
  • Endorsed by Shuze Chen · Oct 29, 2026

    Confirmed by the moderator at approval.

  • Endorsed by sthubbar · Oct 29, 2026

    Confirmed by the mission captain (proposal self-audit).

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