Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Admissible data for the approximation argument

Definition
OAI_NumberTheory_PiExponent_Approximation_AdmissibleParameters

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

diophantine-approximationnumber-theoryopenai-pi-exponent-017rational-approximation

Fix real parameters ν,Λ,c\nu,\Lambda,cν,Λ,c. An element of AdmissibleParameters(ν,Λ,c)\mathrm{AdmissibleParameters}(\nu,\Lambda,c)AdmissibleParameters(ν,Λ,c) consists of a base record P:Parameters(ν)P:\mathrm{Parameters}(\nu)P:Parameters(ν), real numbers ϵ,F0,w⋆\epsilon,F_0,w_\starϵ,F0​,w⋆​, natural numbers m,Km,Km,K, rational numbers w0,v0,σw_0,v_0,\sigmaw0​,v0​,σ, integer and natural sequences pn,qnp_n,q_npn​,qn​, and a real sequence xnx_nxn​, subject to the following conditions. The base parameters obey 0<θ<A<B<10<\theta<A<B<10<θ<A<B<1, 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 1−θ<ν(A−θ)1-\theta<\nu(A-\theta)1−θ<ν(A−θ), where θ,A,B,C,η\theta,A,B,C,\etaθ,A,B,C,η are the fields of PPP. The additional gap is g=ν(A(1−η)−θ)−(1−θ)g=\nu(A(1-\eta)-\theta)-(1-\theta)g=ν(A(1−η)−θ)−(1−θ); the record requires 0<ϵ<g0<\epsilon<g0<ϵ<g and ϵ≤1/2\epsilon\le 1/2ϵ≤1/2.

The scale and dimension data satisfy 0<F00<F_00<F0​, 2/θ<F02/\theta<F_02/θ<F0​, ν/F0<ϵ/3\nu/F_0<\epsilon/3ν/F0​<ϵ/3, 1≤m1\le m1≤m, and K=dimensionK(C,m)≥1K=\mathrm{dimensionK}(C,m)\ge1K=dimensionK(C,m)≥1. The rational weights satisfy w0=dimensionW(B,m)w_0=\mathrm{dimensionW}(B,m)w0​=dimensionW(B,m) and v0=dimensionV(θ,B,C,m)v_0=\mathrm{dimensionV}(\theta,B,C,m)v0​=dimensionV(θ,B,C,m) after casting to R\mathbb{R}R, with both positive, and

Kw0v0θm=12,Kθm<1.K\frac{w_0}{v_0}\theta^m=\frac12,\qquad K\theta^m<1.Kv0​w0​​θm=21​,Kθm<1.

They also satisfy the dimension margin (ΛF0m+2log⁡2)/v0+100K/w0<ϵ/3(\Lambda F_0m+2\log 2)/v_0+100K/w_0<\epsilon/3(ΛF0​m+2log2)/v0​+100K/w0​<ϵ/3 and the collision bound 2<c η2Kθm/((m+1)v0Am)2<c\,\eta^2K\theta^m/((m+1)v_0A^m)2<cη2Kθm/((m+1)v0​Am). The rational σ\sigmaσ is positive and obeys

(1+3σ)m+1K(w0/v0)θm<1,(1+3σ)mKθm<1,(1+σ)θ<1.(1+3\sigma)^{m+1}K(w_0/v_0)\theta^m<1,\quad (1+3\sigma)^mK\theta^m<1,\quad (1+\sigma)\theta<1.(1+3σ)m+1K(w0​/v0​)θm<1,(1+3σ)mKθm<1,(1+σ)θ<1.

The sequences satisfy x0=1x_0=1x0​=1, xn+1=⌈log⁡qn⌉x_{n+1}=\lceil\log q_n\rceilxn+1​=⌈logqn​⌉, 2≤qn2\le q_n2≤qn​, pn≠0p_n\ne0pn​=0, and ∣π−pn/qn∣≤qn−ν|\pi-p_n/q_n|\le q_n^{-\nu}∣π−pn​/qn​∣≤qn−ν​ for every nnn, as well as 1≤xi1\le x_i1≤xi​ for every iii. Their growth satisfies SeparatedWeightGrowth(m,D,x)\mathrm{SeparatedWeightGrowth}(m,D,x)SeparatedWeightGrowth(m,D,x) with DDD the separation factor formed from mmm, the interpolation separation constant at (m,σ)(m,\sigma)(m,σ), w0,v0,θw_0,v_0,\thetaw0​,v0​,θ. Finally, w⋆>0w_\star>0w⋆​>0 is a minimum attained among x1,…,xmx_1,\ldots,x_mx1​,…,xm​, and the weight margin is Λ∑i=1m1/xi+(θ+log⁡4+log⁡(2K)+ν+log⁡(200K))/w⋆<ϵ/3\Lambda\sum_{i=1}^m1/x_i+(\theta+\log4+\log(2K)+\nu+\log(200K))/w_\star<\epsilon/3Λ∑i=1m​1/xi​+(θ+log4+log(2K)+ν+log(200K))/w⋆​<ϵ/3.

The bundle contains the structure command and its 49 declarations generated from that structure command, plus nine additional declarations: the interpolation-separation constant, the weight-error coefficient, the rational-weight sequence and its cast/positivity lemmas, and four error definitions. It packages admissible data and derived quantities; it does not assert that such data exist for arbitrary ν,Λ,c\nu,\Lambda,cν,Λ,c.

The nine declarations outside the structure also specify the following derived quantities. The interpolation separation constant is 2(m+2)m+2(1+(m+2)/σ)m+22(m+2)^{m+2}(1+(m+2)/\sigma)^{m+2}2(m+2)m+2(1+(m+2)/σ)m+2, and the weight-error coefficient is θ+log⁡4+log⁡(2K)+ν+log⁡(200K)\theta+\log4+\log(2K)+\nu+\log(200K)θ+log4+log(2K)+ν+log(200K). The rational weight is 111 at index zero and ⌈log⁡qn⌉\lceil\log q_n\rceil⌈logqn​⌉ at index n+1n+1n+1; its real cast equals xix_ixi​, and it is positive. The four error definitions are

Earith=ΛF0mv0+Λ∑i=1m1xi+θw⋆,Etrans=νF0+log⁡2v0+log⁡4+log⁡(2K)+νw⋆,E_{\rm arith}=\frac{\Lambda F_0m}{v_0}+\Lambda\sum_{i=1}^m\frac1{x_i}+\frac{\theta}{w_\star},\qquad E_{\rm trans}=\frac{\nu}{F_0}+\frac{\log2}{v_0}+\frac{\log4+\log(2K)+\nu}{w_\star},Earith​=v0​ΛF0​m​+Λi=1∑m​xi​1​+w⋆​θ​,Etrans​=F0​ν​+v0​log2​+w⋆​log4+log(2K)+ν​, Eholo=100Kw0+log⁡2v0+log⁡(200K)w⋆,Eanalytic=Etrans+Eholo.E_{\rm holo}=\frac{100K}{w_0}+\frac{\log2}{v_0}+\frac{\log(200K)}{w_\star},\qquad E_{\rm analytic}=E_{\rm trans}+E_{\rm holo}.Eholo​=w0​100K​+v0​log2​+w⋆​log(200K)​,Eanalytic​=Etrans​+Eholo​.
Definition code
import Definitions.Def_OAI_NumberTheory_PiExponent_Approximation_Parameters
import Definitions.Def_OAI_NumberTheory_PiExponent_Approximation_WeightSeparation
import Definitions.Def_OAI_NumberTheory_PiExponent_LocalAlgebra_Dimension
import Mathlib.Algebra.BigOperators.Group.Finset.Piecewise
import Mathlib.Algebra.MvPolynomial.Eval
import Mathlib.Algebra.Order.Antidiag.FinsuppEquiv
import Mathlib.Algebra.Order.BigOperators.GroupWithZero.Finset
import Mathlib.Algebra.Order.BigOperators.Ring.Finset
import Mathlib.Algebra.Order.Floor.Semiring
import Mathlib.Analysis.Asymptotics.SpecificAsymptotics
import Mathlib.Analysis.Real.Pi.Bounds
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.Data.Nat.Factorial.Basic
import Mathlib.Data.Real.Basic
import Mathlib.RingTheory.PowerSeries.Order
import Mathlib.RingTheory.PowerSeries.Trunc
import Mathlib.Tactic
import Mathlib.Tactic.FieldSimp
import Mathlib.Tactic.GCongr
import Mathlib.Tactic.Linarith
import Mathlib.Tactic.NormNum
import Mathlib.Tactic.Positivity
import Mathlib.Tactic.Ring








namespace OAI

namespace PiExponent

noncomputable def interpolationSeparationConstant (m : ℕ) (sigma : ℚ) : ℝ :=
  2 * ((m : ℝ) + 2) ^ (m + 2) *
    (1 + ((m : ℝ) + 2) / (sigma : ℝ)) ^ (m + 2)



noncomputable def weightErrorCoefficient (nu theta : ℝ) (K : ℕ) : ℝ :=
  theta + Real.log 4 + Real.log (2 * (K : ℝ)) + nu + Real.log (200 * (K : ℝ))





structure AdmissibleParameters (nu Lambda c : ℝ) where
  base : Parameters nu
  epsilon : ℝ
  F0 : ℝ
  m : ℕ
  K : ℕ
  w0 : ℚ
  v0 : ℚ
  sigma : ℚ
  p : ℕ → ℤ
  q : ℕ → ℕ
  x : ℕ → ℝ
  wstar : ℝ
  epsilon_pos : 0 < epsilon
  epsilon_lt_gap : epsilon <
    nu * ((base.A : ℝ) * (1 - base.eta) - base.theta) - (1 - base.theta)
  epsilon_le_half : epsilon ≤ 1 / 2
  F0_pos : 0 < F0
  F0_large : 2 / (base.theta : ℝ) < F0
  initial_margin : nu / F0 < epsilon / 3
  m_pos : 1 ≤ m
  K_eq : K = dimensionK (base.C : ℝ) m
  K_pos : 1 ≤ K
  w0_eq : (w0 : ℝ) = dimensionW (base.B : ℝ) m
  v0_eq : (v0 : ℝ) = dimensionV (base.theta : ℝ) base.B base.C m
  w0_pos : 0 < (w0 : ℝ)
  v0_pos : 0 < (v0 : ℝ)
  volume_eq : (K : ℝ) * ((w0 : ℝ) / v0) * (base.theta : ℝ) ^ m = 1 / 2
  volume_lt_one : (K : ℝ) * (base.theta : ℝ) ^ m < 1
  dimension_margin :
    (Lambda * F0 * (m : ℝ) + 2 * Real.log 2) / (v0 : ℝ) +
      100 * (K : ℝ) / (w0 : ℝ) < epsilon / 3
  collision_margin : 2 < c *
    (base.eta ^ 2 * (K : ℝ) * (base.theta : ℝ) ^ m /
      (((m : ℝ) + 1) * (v0 : ℝ) * (base.A : ℝ) ^ m))
  sigma_pos : 0 < (sigma : ℝ)
  sigma_volume : (1 + 3 * (sigma : ℝ)) ^ (m + 1) *
    ((K : ℝ) * ((w0 : ℝ) / v0) * (base.theta : ℝ) ^ m) < 1
  sigma_centers : (1 + 3 * (sigma : ℝ)) ^ m *
    ((K : ℝ) * (base.theta : ℝ) ^ m) < 1
  sigma_theta : (1 + (sigma : ℝ)) * (base.theta : ℝ) < 1
  x_zero : x 0 = 1
  x_log : ∀ n, x (n + 1) = (Nat.ceil (Real.log (q n)) : ℝ)
  approximations : ∀ n, 2 ≤ q n ∧ p n ≠ 0 ∧
    |Real.pi - (p n : ℝ) / q n| ≤ (q n : ℝ) ^ (-nu)
  x_one_le : ∀ i, 1 ≤ x i
  weight_growth : PiExponentApprox.SeparatedWeightGrowth m
    (PiExponentApprox.weightSeparationFactor m (interpolationSeparationConstant m sigma)
      w0 v0 base.theta) x
  wstar_pos : 0 < wstar
  wstar_lower : ∀ i : Fin m, wstar ≤ x (i.val + 1)
  wstar_attained : ∃ i : Fin m, wstar = x (i.val + 1)
  weight_margin : Lambda * (∑ i : Fin m, 1 / x (i.val + 1)) +
    weightErrorCoefficient nu base.theta K / wstar < epsilon / 3



namespace AdmissibleParameters

variable {nu Lambda c : ℝ} (d : AdmissibleParameters nu Lambda c)

noncomputable def rationalWeight : ℕ → ℚ
  | 0 => 1
  | n + 1 => (Nat.ceil (Real.log (d.q n)) : ℚ)

theorem cast_rationalWeight (i : ℕ) : (d.rationalWeight i : ℝ) = d.x i := by
  cases i with
  | zero => simpa [rationalWeight] using d.x_zero.symm
  | succ n => simpa [rationalWeight] using (d.x_log n).symm

theorem rationalWeight_pos (i : ℕ) : 0 < d.rationalWeight i := by
  have h : (0 : ℝ) < (d.rationalWeight i : ℝ) := by
    rw [d.cast_rationalWeight]
    exact zero_lt_one.trans_le (d.x_one_le i)
  exact_mod_cast h











noncomputable def arithmeticError : ℝ :=
  Lambda * d.F0 * (d.m : ℝ) / (d.v0 : ℝ) +
    Lambda * (∑ i : Fin d.m, 1 / d.x (i.val + 1)) + (d.base.theta : ℝ) / d.wstar

noncomputable def translationError : ℝ :=
  nu / d.F0 + Real.log 2 / (d.v0 : ℝ) +
    (Real.log 4 + Real.log (2 * (d.K : ℝ)) + nu) / d.wstar

noncomputable def holomorphicError : ℝ :=
  100 * (d.K : ℝ) / (d.w0 : ℝ) + Real.log 2 / (d.v0 : ℝ) +
    Real.log (200 * (d.K : ℝ)) / d.wstar

noncomputable def analyticError : ℝ := d.translationError + d.holomorphicError







end AdmissibleParameters

end PiExponent

end OAI
Source
OpenAI math, commit adc7f1241b42e322a6451854ab7e4b4c146bf78a: https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/lean/OAI/NumberTheory/PiExponent/Approximation/AdmissibleParameters.lean#L14-L307

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