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.ThresholdParallelRepetition.threshold_parallel_repetition
The lines of the Lean statement that state the theorem, then the definitions in the file that it uses.
theoremthreshold_parallel_repetition : ∃ κ₀ : ℝ, 0 < κ₀ ∧ ∀ (x y a b : ℕ) (G : Game x y a b), entangledValue G < 1 → ∀ (δ : ℝ), 0 < δ → δ < 1 - entangledValue G → ∀ (k : ℕ), 1 ≤ k → (∀ S : RepeatedStrategy x y a b k, thresholdProbability G δ S ≤ Real.exp (-κ₀ * δ ^ 13 / (1 + Real.log (((a + 1) * (b + 1) : ℕ) : ℝ)) * k)) ∧ thresholdValue (k := k) G δ ≤ Real.exp (-κ₀ * δ ^ 13 / (1 + Real.log (((a + 1) * (b + 1) : ℕ) : ℝ)) * 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.
structureGame (x y a b : ℕ) where questionProb : Fin (x + 1) × Fin (y + 1) → ℝ questionProb_nonneg : ∀ z, 0 ≤ questionProb z questionProb_sum : ∑ z, questionProb z = 1 accepts : Fin (x + 1) → Fin (y + 1) → Fin (a + 1) → Fin (b + 1) → Bool
structureStrategy (X Y A B : Type) [Fintype A] [Fintype B] where
Show the remaining 10 lines
dimA : ℕ dimB : ℕ state : Fin (dimA + 1) × Fin (dimB + 1) → ℂ state_unit : ∑ i, Complex.normSq (state i) = 1 alice : X → A → Matrix (Fin (dimA + 1)) (Fin (dimA + 1)) ℂ bob : Y → B → Matrix (Fin (dimB + 1)) (Fin (dimB + 1)) ℂ alice_pos : ∀ x a, (alice x a).PosSemidef bob_pos : ∀ y b, (bob y b).PosSemidef alice_total : ∀ x, ∑ a, alice x a = 1 bob_total : ∀ y, ∑ b, bob y b = 1
defStrategy.born {X Y A B : Type} [Fintype A] [Fintype B] (S : Strategy X Y A B) (x : X) (y : Y) (a : A) (b : B) : ℝ := ∑ i, ∑ j, (star (S.state i) * (S.alice x a i.1 j.1 * S.bob y b i.2 j.2) * S.state j).re
defsuccessProbability {x y a b : ℕ} (G : Game x y a b) (S : SingleStrategy x y a b) : ℝ := ∑ z : Fin (x + 1) × Fin (y + 1), G.questionProb z * ∑ w : Fin (a + 1) × Fin (b + 1),if G.accepts z.1 z.2 w.1 w.2then S.born z.1 z.2 w.1 w.2else0
defwins {x y a b k : ℕ} (G : Game x y a b) (xs : Fin k → Fin (x + 1)) (ys : Fin k → Fin (y + 1)) (as : Fin k → Fin (a + 1)) (bs : Fin k → Fin (b + 1)) : ℕ := ∑ i, if G.accepts (xs i) (ys i) (as i) (bs i) then1else0
defthresholdProbability {x y a b k : ℕ} (G : Game x y a b) (δ : ℝ) (S : RepeatedStrategy x y a b k) : ℝ := ∑ xs : Fin k → Fin (x + 1), ∑ ys : Fin k → Fin (y + 1), (∏ i, G.questionProb (xs i, ys i)) * ∑ as : Fin k → Fin (a + 1), ∑ bs : Fin k → Fin (b + 1),if ⌈(entangledValue G + δ) * (k : ℝ)⌉₊ ≤ wins G xs ys as bsthen S.born xs ys as bs else0
defthresholdValue {x y a b k : ℕ} (G : Game x y a b) (δ : ℝ) : ℝ := sSup (Set.range (thresholdProbability (k := k) G δ))
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: parallel, integer, threshold, value, entangled, exp, repetitions, strategy and three more. Shared only with the release’s name for the Lean statement or OpenAI’s note on it: joint, one, universal, supremum, delta, kappa and dimensional.
Theorem 1.1 of Threshold parallel repetition for finite-dimensional entangled games
Theorem(Threshold parallel repetition)
There is a universal constant \kappa_0>0 such that the following holds. Let G be any finite two-player one-round game with Boolean acceptance predicate and entangled value v=\omega^*(G)<1. For every 0<\delta<1-v, every integer k\ge1, and every finite-dimensional joint strategy for k repetitions,
There is a universal constant $\kappa_0>0$ such that the following holds.
Let $G$ be any finite two-player one-round game with Boolean acceptance
predicate and entangled value $v=\omega^*(G)<1$. For every
$0<\delta<1-v$, every integer $k\ge1$, and every finite-dimensional
joint strategy for $k$ repetitions,
\begin{equation}
\Pr\!\left[W_k\ge\lceil(v+\delta)k\rceil\right]
\le \exp\!\left(-\frac{\kappa_0\delta^5}
{1+\log d}\,k\right).
\end{equation}
The same inequality holds for the supremum over those strategies.
Other possible paper matches, closest wording first
Corollary 5.2 of Threshold parallel repetition for finite-dimensional entangled games. Words of the Lean statement, its names split into words, that also appear in the theorem: value, question, entangled, exp, repetitions, strategy and three more. Shared only with the release’s name for the Lean statement or OpenAI’s note on it: joint, bound, supremum, delta, kappa and dimensional.
Proposition 2.3 of Threshold parallel repetition for finite-dimensional entangled games. Words of the Lean statement, its names split into words, that also appear in the theorem: threshold, exp, repetitions, strategy, finite, game and one more. Shared only with the release’s name for the Lean statement or OpenAI’s note on it: bound, supremum, delta and dimensional.
Corollary 6.1 of Threshold parallel repetition for finite-dimensional entangled games. Words of the Lean statement, its names split into words, that also appear in the theorem: accept, integer, question, exp, finite, game and one more. Shared only with the release’s name for the Lean statement or OpenAI’s note on it: one, universal, delta and kappa.
Proposition 2.4 of Threshold parallel repetition for finite-dimensional entangled games. Words of the Lean statement, its names split into words, that also appear in the theorem: value, entangled, repetitions, strategy, finite, game and one more. Shared only with the release’s name for the Lean statement or OpenAI’s note on it: universal and dimensional.
Proposition 5.1 of Threshold parallel repetition for finite-dimensional entangled games. Words of the Lean statement, its names split into words, that also appear in the theorem: question, strategy, finite, game and log. Shared only with the release’s name for the Lean statement or OpenAI’s note on it: kappa and dimensional.
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
three independent groups report that Comparator accepted runs for this Lean statement file: Carlos Toledo’s cert-machine; MathVet; Neal McBurnett’s openai-math-lean-tooling. 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.
Each challenge’s solution is built and checked by Comparator at the pinned release, on Lean leanprover/lean4:v4.34.1, recording the verdict, the check time and the peak memory; the run was still in progress at this snapshot (192 accepted, 224 pending).
AcceptedTheir term: “accepted”.
Re-run through Comparator with Lean’s kernel: accepted (the check took 169 s; peak memory 6.4 GiB).
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 277’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: threshold_parallel_repetition : ∃ κ₀ > 0, ∀ games G with entangledValue G < 1, ∀ 0 < δ < 1 - v, ∀ k ≥ 1, (∀ joint finite-dimensional k-fold strategies S, thresholdProbability G δ S ≤ exp(-κ₀ δ^13 k / (1 + log((a+1)(b+1))))) ∧ thresholdValue G δ ≤ the same bound, with Game an arbitrary correlated question distribution plus predicate, Strategy a finite-dimensional bipartite state with POVMs and entangledValue := sSup of single-copy success, and thresholdProbability = probability of at least ⌈(v+δ)k⌉ wins. Exactly the summary's exponential threshold repetition (explicit δ^13 exponent).
OpenAI’s own note on what this Lean statement covers
“If its finite-dimensional entangled value is $v<1$, its answer sets are $A,B$, and $0<\delta<1-v$, then the probability of winning at least the fraction $v+\delta$ of $k$ repetitions is at most $\exp(-\kappa\delta^{13}k/(1+\log(|A||B|)))$ for one universal $\kappa>0$. The bound applies to every joint finite-dimensional strategy and to their supremum, without assuming attainment.”
An AI agent drafted an interpretation of that note, classifying this statement as “states a weaker form of a paper’s theorem”. No human review of the draft is recorded.
Supporting material
The complete Lean statement file
80 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: 20 to its own declarations, 61 to Mathlib’s documentation. 11 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 OAInoncomputablesectionopenscoped BigOperators ComplexOrdernamespace ThresholdParallelRepetitionstructureGame (x y a b : ℕ) wherequestionProb : Fin (x + 1) × Fin (y + 1) → ℝquestionProb_nonneg : ∀ z, 0 ≤ questionProb zquestionProb_sum : ∑ z, questionProb z = 1accepts : Fin (x + 1) → Fin (y + 1) → Fin (a + 1) → Fin (b + 1) → BoolstructureStrategy (X Y A B : Type) [Fintype A] [Fintype B] wheredimA : ℕdimB : ℕstate : Fin (dimA + 1) × Fin (dimB + 1) → ℂstate_unit : ∑ i, Complex.normSq (state i) = 1alice : X → A → Matrix (Fin (dimA + 1)) (Fin (dimA + 1)) ℂbob : Y → B → Matrix (Fin (dimB + 1)) (Fin (dimB + 1)) ℂalice_pos : ∀ x a, (alice x a).PosSemidefbob_pos : ∀ y b, (bob y b).PosSemidefalice_total : ∀ x, ∑ a, alice x a = 1bob_total : ∀ y, ∑ b, bob y b = 1defStrategy.born {X Y A B : Type} [Fintype A] [Fintype B] (S : Strategy X Y A B) (x : X) (y : Y) (a : A) (b : B) : ℝ := ∑ i, ∑ j, (star (S.state i) * (S.alice x a i.1 j.1 * S.bob y b i.2 j.2) * S.state j).reabbrevSingleStrategy (x y a b : ℕ) :=Strategy (Fin (x + 1)) (Fin (y + 1)) (Fin (a + 1)) (Fin (b + 1))defsuccessProbability {x y a b : ℕ} (G : Game x y a b) (S : SingleStrategy x y a b) : ℝ := ∑ z : Fin (x + 1) × Fin (y + 1), G.questionProb z * ∑ w : Fin (a + 1) × Fin (b + 1),if G.accepts z.1 z.2 w.1 w.2then S.born z.1 z.2 w.1 w.2else0defentangledValue {x y a b : ℕ} (G : Game x y a b) : ℝ :=sSup (Set.range (successProbability G))abbrevRepeatedStrategy (x y a b k : ℕ) :=Strategy (Fin k → Fin (x + 1)) (Fin k → Fin (y + 1)) (Fin k → Fin (a + 1)) (Fin k → Fin (b + 1))defwins {x y a b k : ℕ} (G : Game x y a b) (xs : Fin k → Fin (x + 1)) (ys : Fin k → Fin (y + 1)) (as : Fin k → Fin (a + 1)) (bs : Fin k → Fin (b + 1)) : ℕ := ∑ i, if G.accepts (xs i) (ys i) (as i) (bs i) then1else0defthresholdProbability {x y a b k : ℕ} (G : Game x y a b) (δ : ℝ) (S : RepeatedStrategy x y a b k) : ℝ := ∑ xs : Fin k → Fin (x + 1), ∑ ys : Fin k → Fin (y + 1), (∏ i, G.questionProb (xs i, ys i)) * ∑ as : Fin k → Fin (a + 1), ∑ bs : Fin k → Fin (b + 1),if ⌈(entangledValue G + δ) * (k : ℝ)⌉₊ ≤ wins G xs ys as bsthen S.born xs ys as bs else0defthresholdValue {x y a b k : ℕ} (G : Game x y a b) (δ : ℝ) : ℝ :=sSup (Set.range (thresholdProbability (k := k) G δ))theoremthreshold_parallel_repetition : ∃ κ₀ : ℝ, 0 < κ₀ ∧ ∀ (x y a b : ℕ) (G : Game x y a b), entangledValue G < 1 → ∀ (δ : ℝ), 0 < δ → δ < 1 - entangledValue G → ∀ (k : ℕ), 1 ≤ k → (∀ S : RepeatedStrategy x y a b k,thresholdProbability G δ S ≤Real.exp (-κ₀ * δ ^ 13 / (1 + Real.log (((a + 1) * (b + 1) : ℕ) : ℝ)) * k)) ∧thresholdValue (k := k) G δ ≤Real.exp (-κ₀ * δ ^ 13 / (1 + Real.log (((a + 1) * (b + 1) : ℕ) : ℝ)) * k) := bysorryend ThresholdParallelRepetitionendend 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.
There is a universal constant \kappa_0>0 such that the following holds. Let G be any finite two-player one-round game with Boolean acceptance predicate and entangled value v=\omega^*(G)<1. For every 0<\delta<1-v, every integer k\ge1, and every finite-dimensional joint strategy for k repetitions,
There is a universal constant $\kappa_0>0$ such that the following holds.
Let $G$ be any finite two-player one-round game with Boolean acceptance
predicate and entangled value $v=\omega^*(G)<1$. For every
$0<\delta<1-v$, every integer $k\ge1$, and every finite-dimensional
joint strategy for $k$ repetitions,
\begin{equation}
\Pr\!\left[W_k\ge\lceil(v+\delta)k\rceil\right]
\le \exp\!\left(-\frac{\kappa_0\delta^5}
{1+\log d}\,k\right).
\end{equation}
The same inequality holds for the supremum over those strategies.
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
10 local vocabulary declarations
Lines of Lean, without comments or blank lines
55
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
Threshold parallel repetition for entangled games
Family 277: Threshold repetition for entangled games
Candidate pairing
Theorem (Threshold parallel repetition)
There is a universal constant \kappa_0>0 such that the following holds. Let G be any finite two-player one-round game with Boolean acceptance predicate and entangled value v=\omega^*(G)<1. For every 0<\delta<1-v, every integer k\ge1, and every finite-dimensional joint strategy for k repetitions,
The same inequality holds for the supremum over those strategies.
Threshold parallel repetition for finite-dimensional entangled games
TeX label thm:main, build/sections/00-introduction.tex, line 50
The Lean statement says
theoremthreshold_parallel_repetition : ∃ κ₀ : ℝ, 0 < κ₀ ∧ ∀ (x y a b : ℕ) (G : Game x y a b), entangledValue G < 1 → ∀ (δ : ℝ), 0 < δ → δ < 1 - entangledValue G → ∀ (k : ℕ), 1 ≤ k → (∀ S : RepeatedStrategy x y a b k, thresholdProbability G δ S ≤ Real.exp (-κ₀ * δ ^ 13 / (1 + Real.log (((a + 1) * (b + 1) : ℕ) : ℝ)) * k)) ∧ thresholdValue (k := k) G δ ≤ Real.exp (-κ₀ * δ ^ 13 / (1 + Real.log (((a + 1) * (b + 1) : ℕ) : ℝ)) * 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.
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.
More about this statement
Commentary The Lean statement gives a weaker decay rate than the paper's main theorem, a rate the paper says already follows from it. Robert Joseph George, Do the Lean statements in openai/math match their papers?, 2026-10-07Source
Questions to resolve when comparing this statement with the paper
The AI draft finds no Lean statement in its family that states a paper's theorem as the paper does.