Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Upper bounds for the irrationality measure of π

Definition
PiIrrationality_UpperBound

by marwahaha · Oct 1, 2026 · Mathlib 0df444a (Lean v4.33.1)

diophantine-approximationirrationalitynumber-theorypi

For a real number BBB, PiIrrationality.UpperBound BBB expresses μ(π)≤B\mu(\pi)\le Bμ(π)≤B: for every real ε>0\varepsilon>0ε>0 there is a natural number QQQ such that every integer ppp and positive natural denominator q≥Qq\ge Qq≥Q satisfy 1/qB+ε<∣π−p/q∣1/q^{B+\varepsilon}<|\pi-p/q|1/qB+ε<∣π−p/q∣. The threshold is uniform over ppp and qqq.

Definition code
import Mathlib.Analysis.SpecialFunctions.Pow.Real
import Mathlib.Analysis.SpecialFunctions.Trigonometric.Basic

namespace PiIrrationality

/-- The epsilon formulation of an upper bound on the irrationality measure of pi.
The threshold may depend on the positive epsilon, but is uniform in p and q. -/
def UpperBound (B : ℝ) : Prop :=
  ∀ ε : ℝ, 0 < ε →
    ∃ Q : ℕ,
      ∀ (p : ℤ) (q : ℕ), 0 < q → Q ≤ q →
        1 / (q : ℝ) ^ (B + ε) <
          |Real.pi - (p : ℝ) / (q : ℝ)|

end PiIrrationality
Source
The epsilon characterization of C_7a in https://teorth.github.io/optimizationproblems/constants/7a.html . Related fixed-exponent Lean predicate: https://github.com/AxiomMath/gdm-formal-conjectures/blob/main/BorweinSineSeries/problem.lean . This definition uses the epsilon characterization, which gives the standard upper-bound meaning at the endpoint.
Human review
  • Endorsed by marwahaha · Oct 1, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Shuze Chen · Oct 3, 2026

    Confirmed by the moderator at approval.

  • Endorsed by xuanji · Oct 3, 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me