Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Parameter record for exponent-gapped rational approximants

Definition
OAI_NumberTheory_PiExponent_Approximation_Parameters

by Yuxuan Xu · Oct 8, 2026 · Mathlib 0df444a (Lean v4.33.1)

number-theoryopenai-pi-exponent-017rational-approximationreal-analysis

For a real parameter ν\nuν, the structure Parameters(ν)\mathrm{Parameters}(\nu)Parameters(ν) stores rational numbers θ,A,B,C\theta,A,B,Cθ,A,B,C and a real number η\etaη satisfying 0<θ<A<B<10<\theta<A<B<10<θ<A<B<1, 1−θ<ν(A−θ)1-\theta<\nu(A-\theta)1−θ<ν(A−θ), 1<C1<C1<C, B<1/CB<1/CB<1/C, B<CθB<C\thetaB<Cθ, Cθ<1C\theta<1Cθ<1, 0<η<10<\eta<10<η<1, and 0<ν(A(1−η)−θ)−(1−θ)0<\nu(A(1-\eta)-\theta)-(1-\theta)0<ν(A(1−η)−θ)−(1−θ). The staged bundle includes the structure and its generated constructor and recursors, together with the theorem that every p:Parameters(ν)p : \mathrm{Parameters}(\nu)p:Parameters(ν) has 0<(p.A:R)0<(p.A : \mathbb{R})0<(p.A:R). This statement describes the contents of an existing record; it does not assert that such a record exists for every ν\nuν.

Definition code
import Mathlib.Algebra.MvPolynomial.Eval
import Mathlib.Algebra.Order.Antidiag.FinsuppEquiv
import Mathlib.Analysis.Asymptotics.SpecificAsymptotics
import Mathlib.Analysis.SpecialFunctions.Log.Basic
import Mathlib.Analysis.SpecialFunctions.Pow.Real
import Mathlib.Analysis.SpecialFunctions.Trigonometric.Bounds
import Mathlib.Analysis.SpecificLimits.Basic
import Mathlib.Analysis.SpecificLimits.Normed
import Mathlib.RingTheory.PowerSeries.Order
import Mathlib.RingTheory.PowerSeries.Trunc
import Mathlib.Tactic

namespace OAI

namespace PiExponent





structure Parameters (ν : ℝ) where
  theta : ℚ
  A : ℚ
  B : ℚ
  C : ℚ
  eta : ℝ
  theta_pos : 0 < (theta : ℝ)
  theta_lt_A : (theta : ℝ) < A
  A_lt_B : (A : ℝ) < B
  B_lt_one : (B : ℝ) < 1
  approximation_gap : 1 - (theta : ℝ) < ν * ((A : ℝ) - theta)
  one_lt_C : 1 < (C : ℝ)
  B_lt_inv_C : (B : ℝ) < 1 / C
  B_lt_C_theta : (B : ℝ) < (C : ℝ) * theta
  C_theta_lt_one : (C : ℝ) * theta < 1
  eta_pos : 0 < eta
  eta_lt_one : eta < 1
  gap_pos : 0 < ν * ((A : ℝ) * (1 - eta) - theta) - (1 - theta)



namespace Parameters

variable {ν : ℝ} (p : Parameters ν)

theorem A_pos : 0 < (p.A : ℝ) := lt_trans p.theta_pos p.theta_lt_A















end Parameters

end PiExponent

end OAI
Source
OpenAI math, commit adc7f1241b42e322a6451854ab7e4b4c146bf78a: https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/lean/OAI/NumberTheory/PiExponent/Approximation/Parameters.lean#L93-L124

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