Short expansions, counting, and prescribed denominators
Lean is a language for mathematical statements and proofs that a computer can verify. This page shows one statement file from OpenAI’s release, possible paper matches and independent reports. The code-like names below identify the definitions or theorems selected by the proof-verification settings.
Theorems selected for verification:OAI.Problem337.egyptian_length_is_minimumOAI.Problem337.main_double_log_orderOAI.Problem337.one_expansions_finite_and_boundedOAI.Problem337.counting_double_log_orderOAI.Problem337.exact_marker_paddingOAI.Problem337.every_exact_marker_occursOAI.Problem337.quantitative_marked_lengthOAI.Problem337.missing_denominator_semanticsOAI.Problem337.prescribed_denominator_corollary
The lines of the Lean statement that state the theorem, then the definitions in the file that it uses.
theoremegyptian_length_is_minimum : ∀ a b : ℕ, 1 ≤ a → a < b → (∃ n : Fin (egyptianLength a b) → ℕ, IsEgyptianExpansion ((a : ℚ) / (b : ℚ)) n) ∧ (∀ k : ℕ, (∃ n : Fin k → ℕ, IsEgyptianExpansion ((a : ℚ) / (b : ℚ)) n) → egyptianLength a b ≤ k) := bysorry⋮theoremmain_double_log_order : ∃ c1 c2 : ℝ, 0 < c1 ∧ 0 < c2 ∧ ∃ b0 : ℕ, ∀ b : ℕ, b0 ≤ b → c1 * Real.log (Real.log (b : ℝ)) ≤ (maxEgyptianLength b : ℝ) ∧ (maxEgyptianLength b : ℝ) ≤ c2 * Real.log (Real.log (b : ℝ)) := bysorry⋮theoremone_expansions_finite_and_bounded : (∀ k : ℕ, Set.Finite (OneExpansions k) ∧ F k ≤ k ^ (2 ^ k - 1)) ∧ (∀ k : ℕ, ∀ n : Fin k → ℕ, IsOneExpansion n → ∀ i : Fin k, n i ≤ k ^ (2 ^ i.val)) := bysorry⋮theoremcounting_double_log_order : ∃ c C : ℝ, 0 < c ∧ 0 < C ∧ ∃ k0 : ℕ, ∀ k : ℕ, k0 ≤ k → c * (k : ℝ) ≤ Real.log (Real.log (F k : ℝ)) ∧ Real.log (Real.log (F k : ℝ)) ≤ C * (k : ℝ) := bysorry⋮theoremexact_marker_padding : ∀ r : ℕ, 3 ≤ r → ∀ n : Fin r → ℕ, IsOneExpansion n → ∀ m : ℕ, (∃ i : Fin r, n i = m) → ∃ n' : Fin (r + 1) → ℕ, IsOneExpansion n' ∧ ∃ i : Fin (r + 1), n' i = m := bysorry⋮theoremevery_exact_marker_occurs : ∀ m : ℕ, 2 ≤ m → ∃ k : ℕ, m ∈ D k := bysorry⋮theoremquantitative_marked_length : ∀ ε : ℝ, 0 < ε → ∃ mε : ℕ, 2 ≤ mε ∧ ∀ m : ℕ, mε ≤ m → ∃ k : ℕ, ∃ n : Fin k → ℕ, IsOneExpansion n ∧ (∃ i : Fin k, n i = m) ∧ (k : ℝ) ≤ (257 / Real.log 2 + ε) * Real.log (Real.log (m : ℝ)) := bysorry⋮theoremmissing_denominator_semantics : ∀ k : ℕ, Set.Finite (D k) ∧ (∃ m : ℕ, m ∈ missingDenominators k) ∧2 ≤ v k ∧ v k ∉ D k ∧ (∀ m : ℕ, 2 ≤ m → m < v k → m ∈ D k) ∧ (1 ≤ k → v k ≤ 1 + k ^ (2 ^ (k - 1))) := bysorry⋮theoremprescribed_denominator_corollary : (∃ k0 : ℕ, ∀ k : ℕ, k0 ≤ k → Real.exp (Real.exp ((k : ℝ) / 600)) ≤ (v k : ℝ) ∧ v k ≤ 1 + k ^ (2 ^ (k - 1))) ∧ (Real.log 2 / 257 ≤ Filter.liminf prescribedSlope Filter.atTop ∧ Filter.liminf prescribedSlope Filter.atTop ≤ Filter.limsup prescribedSlope Filter.atTop ∧ Filter.limsup prescribedSlope Filter.atTop ≤ Real.log 2) ∧ (∀ c : ℝ, c < Real.log 2 / 257 → ∃ k0 : ℕ, ∀ k : ℕ, k0 ≤ k → Real.exp (Real.exp (c * (k : ℝ))) ≤ (v k : ℝ)) := bysorry
A Lean statement states the theorem and leaves its proof as sorry on purpose. OpenAI’s proof is in a separate solution module, and a program called Comparator checks that proof against this statement.
Definitions needed to read it
Local definitions the statement names, followed through the definitions they name in turn. The match is by name in the source text, so a name reached only through notation can be missed; the full file is below.
defprescribedSlope (k : ℕ) : ℝ := Real.log (Real.log (v k : ℝ)) / (k : ℝ)
Possible paper match, with no recorded review
Atlas selected this possible match by comparing words in the Lean statement with every statement in the family. No review of whether the statements mean the same thing is recorded.
Words of the Lean statement, its names split into words, that also appear in the theorem: k/600, exp, bound, log and integer. Shared only with the release’s name for the Lean statement or OpenAI’s note on it: theta.
Equivalently for the lower bound, every fixed c<\log2/257 satisfies v(k)\ge\exp(\exp(ck)) for every sufficiently large integer k. In particular \log\log v(k)=\Theta(k).
For every sufficiently large integer $k$,
\[
\exp\bigl(\exp(k/600)\bigr)\le v(k)\le1+k^{2^{k-1}}.
\]
More precisely,
\[
\frac{\log2}{257}
\le\liminf_{k\to\infty}\frac{\log\log v(k)}k
\le\limsup_{k\to\infty}\frac{\log\log v(k)}k
\le\log2.
\]
Equivalently for the lower bound, every fixed $c<\log2/257$ satisfies
$v(k)\ge\exp(\exp(ck))$ for every sufficiently large integer $k$.
In particular $\log\log v(k)=\Theta(k)$.
Other possible paper matches, closest wording first
Proposition 2.1 of Short Egyptian fractions. Words of the Lean statement, its names split into words, that also appear in the theorem: real, expansions, denominators, log and integer. Shared only with the release’s name for the Lean statement or OpenAI’s note on it: short.
Proposition 8.1 of Short Egyptian fractions. Words of the Lean statement, its names split into words, that also appear in the theorem: occurs, denominator, log and integer. Shared only with the release’s name for the Lean statement or OpenAI’s note on it: terms.
Theorem 1.1 of Short Egyptian fractions. Words of the Lean statement, its names split into words, that also appear in the theorem: bound, log and integer. Found in the paper’s title, which its main theorem states: egyptian.
Corollary 1.2 of Short Egyptian fractions. Words of the Lean statement, its names split into words, that also appear in the theorem: log and integer.
How Atlas selects possible matches: it compares words in the Lean statement with every statement in the family. It also splits Lean names into words. The release’s label and note receive less weight; a main theorem wins a close match. If the Lean wording yields no clear match, Atlas uses the catalogue description. This selects passages to compare; it does not establish that they mean the same thing.
Reported Comparator runs
two independent groups report that Comparator accepted runs for this Lean statement file: Carlos Toledo’s cert-machine; MathVet. Each group reports its own Comparator run for this statement file. Atlas has not repeated the runs.
For a configured theorem, Comparator tests whether OpenAI’s proof proves the exact Lean statement. Some files instead configure definitions for comparison by name and type. Acceptance does not establish that the statement means the same thing as the paper’s theorem.
Every Comparator challenge re-run on Linux with nanoda switched on, decided by a preregistered rule; every family’s challenge statements read against OpenAI’s headline, clause by clause. Decider: Comparator (leanprover/comparator d03acab1 = tag v4.34.0, built with the release’s toolchain v4.34.1), lean4export 076e8e57, landrun 811cfff5, nanoda_lib 3a240721 — on GitHub’s Linux runners (.github/workflows/openai-math-kernel.yml), one j…
AcceptedTheir term: “CERTIFIED”.
Re-run through Comparator with the independent nanoda kernel switched on: Lean’s kernel and nanoda both accept OpenAI’s solution.
An independent, model-assisted, pre-referee reading of each family’s challenge statements against its headline claim under a published rubric (PROTOCOL.md), with its own Comparator runs per challenge. Its protocol describes a planned error-rate study; this import does not establish that the study has been completed.
AcceptedTheir term: “comparator-sandboxed-pass”.
Re-run through Comparator in a sandboxed virtual machine: accepted.
If Comparator is run under this configuration and accepts, the solution proves the configured theorem using only the allowed axioms, and the Lean kernel accepts every step.
This configuration lists no definition holes, so every definition the statement uses is compared as it is written in this file.
Acceptance leaves open whether the Lean statement means the same thing as the paper’s theorem, whether the paper’s other claims are correct, and whether the result is new. Those questions require comparing the definitions and statements, reviewing the paper’s arguments, and reading the earlier literature.
Do family 025’s Lean statements express the advertised result?
These assessments compare all the family’s Lean statements with the whole result OpenAI describes in its catalogue. They do not assess this statement alone. Each group uses its own published rules.
MathVet and cert-machine agree on how much of the advertised result the Lean statements express.
OpenAI’s own note on what this Lean statement covers
“The formalization proves that every $a/b$ with $1\le a<b$ has such an expansion and that the largest minimum length at denominator $b$ is $\Theta(\log\log b)$. If $F(k)$ counts exact $k$-term expansions of $1$, it also proves $\log\log F(k)=\Theta(k)$ and bounds every denominator in such an expansion.”
An AI agent drafted an interpretation of that note, classifying this statement as “states a paper’s theorem as the paper does”. No human review of the draft is recorded.
Supporting material
The complete Lean statement file
124 lines, copied from release version fd4aeeb. A name defined in this file links to its line; pointing at the name shows its definition.
Declared in this fileOpenAI’s library at fd4aeebOther linked names open the current documentation for Mathlib, Lean’s mathematical library.
Links in the file: 39 to its own declarations, 57 to Mathlib’s documentation. 20 declared names also link to the same declaration in OpenAI’s library. OpenAI uses Mathlib version d13f23b. The linked documentation describes the current version, so names that have since changed may be missing there.
There are absolute constants $c_1,c_2>0$ and $b_0$ such that, for every
integer $b\ge b_0$,
\[
c_1\log\log b\le N(b)\le c_2\log\log b.
\]
In particular, the upper bound holds for every integer numerator
$1\le a<b$.
Corollary
There are absolute constants c,C>0 and k_0 such that, for every integer k\ge k_0,
Equivalently for the lower bound, every fixed c<\log2/257 satisfies v(k)\ge\exp(\exp(ck)) for every sufficiently large integer k. In particular \log\log v(k)=\Theta(k).
For every sufficiently large integer $k$,
\[
\exp\bigl(\exp(k/600)\bigr)\le v(k)\le1+k^{2^{k-1}}.
\]
More precisely,
\[
\frac{\log2}{257}
\le\liminf_{k\to\infty}\frac{\log\log v(k)}k
\le\limsup_{k\to\infty}\frac{\log\log v(k)}k
\le\log2.
\]
Equivalently for the lower bound, every fixed $c<\log2/257$ satisfies
$v(k)\ge\exp(\exp(ck))$ for every sufficiently large integer $k$.
In particular $\log\log v(k)=\Theta(k)$.
Equivalently for the lower bound, every fixed c<\log2/257 satisfies v(k)\ge\exp(\exp(ck)) for every sufficiently large integer k. In particular \log\log v(k)=\Theta(k).
Short Egyptian fractions
TeX label cor:prescribed, build/introduction.tex, line 102
The Lean statement says
theoremegyptian_length_is_minimum : ∀ a b : ℕ, 1 ≤ a → a < b → (∃ n : Fin (egyptianLength a b) → ℕ, IsEgyptianExpansion ((a : ℚ) / (b : ℚ)) n) ∧ (∀ k : ℕ, (∃ n : Fin k → ℕ, IsEgyptianExpansion ((a : ℚ) / (b : ℚ)) n) → egyptianLength a b ≤ k) := bysorry⋮theoremmain_double_log_order : ∃ c1 c2 : ℝ, 0 < c1 ∧ 0 < c2 ∧ ∃ b0 : ℕ, ∀ b : ℕ, b0 ≤ b → c1 * Real.log (Real.log (b : ℝ)) ≤ (maxEgyptianLength b : ℝ) ∧ (maxEgyptianLength b : ℝ) ≤ c2 * Real.log (Real.log (b : ℝ)) := bysorry⋮theoremone_expansions_finite_and_bounded : (∀ k : ℕ, Set.Finite (OneExpansions k) ∧ F k ≤ k ^ (2 ^ k - 1)) ∧ (∀ k : ℕ, ∀ n : Fin k → ℕ, IsOneExpansion n →⋮
A Lean statement states the theorem and leaves its proof as sorry on purpose. OpenAI’s proof is in a separate solution module, and a program called Comparator checks that proof against this statement.
Recorded comparisons with the paper
Atlas records no contributed comparison of this statement with the paper.
Contributed Comparator run reports
Atlas records no contributed report of running Comparator for this statement file.