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.
Theorem selected for verification:OAI.TotientAsymptotic.companion_zero_case
The lines of the Lean statement that state the theorem, then the definitions in the file that it uses.
theoremcompanion_zero_case (k : ℕ) (_hk : 0 < k) (hno : ¬ ∃ d : ℕ, IsTotient d ∧ k*d < ell d) : (∀ x : ℝ, 0 < x → N k x = 0) ∧ (∀ s ∈ Set.Ico (0 : ℝ) 1, A (fk k) s = 0) := 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.
classical exact rho^(H*(H-1)/2) * (gamma / alpha s)^H * ∑ᶠ d : ℕ,if IsTotient d then f ((ell d : ℝ) / d) / d * ∑ᶠ T : Finset (TailDatum H),if T.Nonempty ∧ (↑T : Set (TailDatum H)) ⊆ witnesses H s d then (-1 : ℝ)^(T.card-1) * Real.exp (-(gamma / alpha s) * ∑' n : ℕ, rho^(H+n) * maxD (H+n) T)else0else0
No paper statement clearly matched the Lean wording. Statement Map, the program that collects Atlas’s source records, selected this possible match using words in OpenAI’s catalogue and Lean note. No review of whether the statements mean the same thing is recorded.
Shared with the catalogue’s wording or OpenAI’s note, none of them matched in the Lean text: arithmetic, finite, fixed, function and positive.
Theorem 2.1 of An asymptotic formula for the number of totients
Theorem
For sufficiently large positive integers H, there are nonnegative functions A_H(1;\cdot):[0,1)\to\mathbb R, given by the finite arithmetic formula (eq:AH) below, which converge uniformly as H\to\infty to a function A(1;\cdot) satisfying
For sufficiently large positive integers $H$, there are nonnegative
functions $A_H(1;\cdot):[0,1)\to\mathbb R$, given by the finite
arithmetic formula \eqref{eq:AH} below,
which converge uniformly as $H\to\infty$ to a function $A(1;\cdot)$
satisfying
\[
0<\inf_{0\le s<1}A(1;s)
\le\sup_{0\le s<1}A(1;s)<\infty.
\]
With the parameters \eqref{eq:renewal}--\eqref{eq:Gj},
\[
V(x)\sim\frac{x}{\log x}\,G_m A(1;\theta).
\]
Moreover, for every fixed real $c>0$,
\[
\frac{V(cx)}{V(x)}\longrightarrow c.
\]
Other possible paper matches, closest wording first
Proposition 5.3 of An asymptotic formula for the number of totients. Words of the Lean statement, its names split into words, that also appear in the theorem: factor, values, totient, preimages, ell and log.
Proposition 4.2 of An asymptotic formula for the number of totients. Words of the Lean statement, its names split into words, that also appear in the theorem: exceeds, zero, count, primes, real, integer and one more. Shared only with the release’s name for the Lean statement or OpenAI’s note on it: conditions and positive.
Proposition 3.3 of An asymptotic formula for the number of totients. Words of the Lean statement, its names split into words, that also appear in the theorem: rho, exp, preimage, witness and log.
Proposition 6.1 of An asymptotic formula for the number of totients. Words of the Lean statement, its names split into words, that also appear in the theorem: max, prime and log.
Proposition 6.5 of An asymptotic formula for the number of totients. Words of the Lean statement, its names split into words, that also appear in the theorem: coefficient, weights and values.
Theorem 2.2 of An asymptotic formula for the number of totients. Words of the Lean statement, its names split into words, that also appear in the theorem: ell, integer and log. Shared only with the release’s name for the Lean statement or OpenAI’s note on it: kd and positive.
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
One independent group reports that Comparator accepted a run for this Lean statement file: Carlos Toledo’s cert-machine. 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.
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 024’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.
Finds the whole advertised result stated or impliedTheir term: “full”.
The challenge statements imply the headline claim after unpacking definitions or one routine step. Their record
Their note: None for the headline (V(cx)/V(x) -> c is stated in terms of V alone). The explicit main term rests on a large custom apparatus that cannot be checked against a standard object from the statement.
Definitions the group asks readers to compare with the paper: Main term built from custom rho := sInf RenewalRootSet, lam, gamma, g (renewal recursion), AH (uses ∑ᶠ finsums over d and over Finset (TailDatum H), whose junk value 0 on infinite support is not excluded by the statement) and A f s := limUnder atTop (fun H => AH H f s) (junk value if no limit; the statement separately asserts TendstoUniformlyOn so it is not vacuous)
OpenAI’s own note on what this Lean statement covers
“The associated coefficient is positive under the stated existence condition; when no totient $d$ satisfies $kd<\ell(d)$, the count and coefficient are identically zero.”
An AI agent drafted an interpretation of that note, classifying this statement as “states part of a paper’s theorem”. No human review of the draft is recorded.
Supporting material
The complete Lean statement file
104 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: 65 to its own declarations, 33 to Mathlib’s documentation. 23 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.
import Mathlibnamespace OAI/-! The no-seed alternative of the weighted totient companion theorem. -/noncomputablesectionopenscoped BigOperators Topologyopen Filternamespace TotientAsymptoticdefIsTotient (v : ℕ) : Prop := ∃ n : ℕ, 0 < n ∧ n.totient = vdefell (v : ℕ) : ℕ := byclassicalexactif h : IsTotient v thenNat.find h else0defa (j : ℕ) : ℝ := (j + 1 : ℝ) * Real.log (j + 1) - j * Real.log j - 1defRenewalRootSet : Setℝ := {z | 0 < z ∧ z < 1 ∧ (∑' j : ℕ, a (j+1) * z^(j+1)) = 1}defrho : ℝ := sInfRenewalRootSetdeflam : ℝ := Real.log (1 / rho)defgamma : ℝ := (∑' j : ℕ, (j+1 : ℝ) * a (j+1) * rho^(j+1))⁻¹defP (H : ℕ) : ℕ := ⌊Real.log (Real.log (H : ℝ))⌋₊defalpha (s : ℝ) : ℝ := lam * Real.exp (lam * s)deflargestPrimeFactor (n : ℕ) : ℕ := max1 (n.primeFactors.sup id)structureTailDatum (H : ℕ) whereQ : Fin H → ℕcofactor : ℕdeftailPrime {H : ℕ} (η : TailDatum H) (h : ℕ) : ℕ :=if hH : h < H then η.Q ⟨h, hH⟩ else1deftailLog {H : ℕ} (η : TailDatum H) (h : ℕ) : ℝ :=Real.log (Real.log (tailPrime η h : ℝ))defIsWitness (H : ℕ) (s : ℝ) (η : TailDatum H) : Prop := (∀ h : Fin H, h.val < P H → η.Q h = 1) ∧0 < η.cofactor ∧ (∀ h ∈ Finset.Ico (P H) H, (tailPrime η h).Prime ∧ (9 / 10 : ℝ) * alpha s * h * (rho^h)⁻¹ ≤ tailLog η h ∧tailLog η h ≤ (11 / 10 : ℝ) * alpha s * h * (rho^h)⁻¹ ∧ (∑ l ∈ Finset.Ico (P H) h, a (h-l) * tailLog η l) ≤ (1 + (1 / 10000 : ℝ) * Real.exp (-(h : ℝ) / 40)) * tailLog η h) ∧largestPrimeFactor η.cofactor ≤ tailPrime η (P H) ∧Real.log (η.cofactor : ℝ) ≤Real.exp (2 * alpha s * (P H : ℝ) * (rho^(P H))⁻¹)defw {H : ℕ} (η : TailDatum H) : ℕ := η.cofactor * ∏ h ∈ Finset.Ico (P H) H, tailPrime η hdefwitnesses (H : ℕ) (s : ℝ) (d : ℕ) : Set (TailDatum H) := {η | IsWitness H s η ∧ (w η).totient = d}defD {H : ℕ} (h : ℕ) (η : TailDatum H) : ℝ := ∑ l ∈ Finset.Ico (P H) H, a (h-l) * tailLog η ldefmaxD {H : ℕ} (h : ℕ) (T : Finset (TailDatum H)) : ℝ := byclassicalexactif ht : T.Nonempty then T.sup' ht (D h) else0defAH (H : ℕ) (f : ℝ → ℝ) (s : ℝ) : ℝ := byclassicalexactrho^(H*(H-1)/2) * (gamma / alpha s)^H * ∑ᶠ d : ℕ,ifIsTotient d then f ((ell d : ℝ) / d) / d * ∑ᶠ T : Finset (TailDatum H),if T.Nonempty ∧ (↑T : Set (TailDatum H)) ⊆ witnesses H s d then (-1 : ℝ)^(T.card-1) *Real.exp (-(gamma / alpha s) * ∑' n : ℕ, rho^(H+n) * maxD (H+n) T)else0else0defA (f : ℝ → ℝ) (s : ℝ) : ℝ := limUnderatTop (fun H : ℕ => AH H f s)defN (k : ℕ) (x : ℝ) : ℝ := byclassicalexact (((Finset.Icc1 ⌊x⌋₊).filter fun v =>IsTotient v ∧ (k : ℝ) * x < ell v ∧ (ell v : ℝ) ≤ (k+1 : ℝ) * x).card : ℝ)deffk (k : ℕ) (r : ℝ) : ℝ := min1 ((k+1 : ℝ) / r) - min1 ((k : ℝ) / r)/-- Without a totient value whose least preimage exceeds its prescribed multiple,both the weighted count and its limiting coefficient vanish. -/theoremcompanion_zero_case (k : ℕ) (_hk : 0 < k) (hno : ¬ ∃ d : ℕ, IsTotient d ∧ k*d < ell d) : (∀ x : ℝ, 0 < x → N k x = 0) ∧ (∀ s ∈ Set.Ico (0 : ℝ) 1, A (fk k) s = 0) := bysorryend TotientAsymptoticendend OAI
Every extracted statement of the accompanying papers
The statements the atlas extracted automatically from each accompanying paper’s TeX source, with links to the full sources.
For sufficiently large positive integers H, there are nonnegative functions A_H(1;\cdot):[0,1)\to\mathbb R, given by the finite arithmetic formula (eq:AH) below, which converge uniformly as H\to\infty to a function A(1;\cdot) satisfying
For sufficiently large positive integers $H$, there are nonnegative
functions $A_H(1;\cdot):[0,1)\to\mathbb R$, given by the finite
arithmetic formula \eqref{eq:AH} below,
which converge uniformly as $H\to\infty$ to a function $A(1;\cdot)$
satisfying
\[
0<\inf_{0\le s<1}A(1;s)
\le\sup_{0\le s<1}A(1;s)<\infty.
\]
With the parameters \eqref{eq:renewal}--\eqref{eq:Gj},
\[
V(x)\sim\frac{x}{\log x}\,G_m A(1;\theta).
\]
Moreover, for every fixed real $c>0$,
\[
\frac{V(cx)}{V(x)}\longrightarrow c.
\]
Theorem
For each fixed positive integer k, the functions A_H(f_k;s) converge uniformly for 0\le s<1, and
For each fixed positive integer $k$, the functions $A_H(f_k;s)$ converge uniformly for $0\le s<1$, and
\[
N_k(x)=\frac{x}{\log x}\,G_m\bigl(A(f_k;\theta)+o(1)\bigr).
\]
There are two possibilities.
\begin{enumerate}[label=\textup{(\roman*)}]
\item If some $d\in\mathcal V$ satisfies $\ell(d)>kd$, then
\[
\inf_{0\le s<1}A(f_k;s)>0,\qquad
N_k(x)\sim\frac{x}{\log x}\,G_m A(f_k;\theta)
\asymp_k V(x).
\]
\item If no such $d$ exists, then $N_k(x)=0$ for every $x>0$, and $A(f_k;s)=0$ for every $s\in[0,1)$.
\end{enumerate}
The first alternative holds for $k=1,2$.
OpenAI’s Lean catalogue does not list this as a main result; the release’s Lean notes for family 024 link it.
Solution module
OAI.NumberTheory.TotientAsymptotic.Main
Allowed axioms
propext, Quot.sound, Classical.choiceThe axioms this configuration allows a proof to use. A replay shows which of them a proof uses.
Imports
Mathlib
Imports from outside Mathlib
None
Local vocabulary
22 local vocabulary declarations
Lines of Lean, without comments or blank lines
64
Second proof-verification program (nanoda)
Off in OpenAI's configuration.
Statement comparison
A shareable summary of this page: the proposed paper match, what the Lean statement expresses, and which reviews are recorded.
Plectis Atlas
Exact zero case for the companion totient counts
Family 024: An asymptotic formula for the number of totients
Candidate pairing
Theorem
For sufficiently large positive integers H, there are nonnegative functions A_H(1;\cdot):[0,1)\to\mathbb R, given by the finite arithmetic formula (eq:AH) below, which converge uniformly as H\to\infty to a function A(1;\cdot) satisfying
TeX label thm:main, build/source/statements.tex, line 45
The Lean statement says
theoremcompanion_zero_case (k : ℕ) (_hk : 0 < k) (hno : ¬ ∃ d : ℕ, IsTotient d ∧ k*d < ell d) : (∀ x : ℝ, 0 < x → N k x = 0) ∧ (∀ s ∈ Set.Ico (0 : ℝ) 1, A (fk k) s = 0) := 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.
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.