Plectis Atlas
Search

↑ and ↓ move, Enter opens, Esc closes.

Lean statement

Patterson first moment and angular cancellation

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.CubicFirstMoment.patterson_firstMoment OAI.CubicFirstMoment.patterson_angularComparison OAI.CubicFirstMoment.patterson_angularCancellation

Lean statement file: PattersonFirstMoment.leanShow on the mapOpenAI’s Lean catalogue does not list this as a main result; the release’s Lean notes for family 023 link it.

The Lean statement

The lines of the Lean statement that state the theorem, then the definitions in the file that it uses.

def FirstMomentStatement : Prop :=  Asymptotics.IsLittleO Filter.atTop    (fun X : ℝ => primeCutoffSum gaussAtPrime X -      (((6 / 5 : ℝ) * cStar * firstMomentScale X : ℝ) : ℂ))    firstMomentScaledef AngularComparisonStatement : Prop :=  ∀ ℓ : ℤ, Asymptotics.IsLittleO Filter.atTop    (primeCutoffSum (fun p => theta ℓ p *       (gaussAtPrime p - ((cStar * norm p ^ (-1 / 6 : ℝ) : ℝ) : ℂ))))    firstMomentScaledef AngularCancellationStatement : Prop :=  ∀ ℓ : ℤ, ℓ ≠ 0 → Asymptotics.IsLittleO Filter.atTop    (primeCutoffSum (fun p => theta ℓ p * gaussAtPrime p)) firstMomentScaletheorem patterson_firstMoment : FirstMomentStatement := by  sorrytheorem patterson_angularComparison : AngularComparisonStatement := by  sorrytheorem patterson_angularCancellation : AngularCancellationStatement := by  sorry

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.

  • definition OAI.CubicFirstMoment.omega line 16

    def omega : ℂ := Complex.exp (2 * (Real.pi : ℂ) * Complex.I / 3)
  • definition OAI.CubicFirstMoment.eisensteinRing line 18

    def eisensteinRing : Subalgebra ℤ ℂ := Algebra.adjoin ℤ {omega}
  • abbreviation OAI.CubicFirstMoment.Eisenstein line 19

    abbrev Eisenstein := eisensteinRing
  • definition OAI.CubicFirstMoment.omegaE line 21

    def omegaE : Eisenstein :=  ⟨omega, Algebra.subset_adjoin (Set.mem_singleton omega)⟩
  • definition OAI.CubicFirstMoment.norm line 24

    def norm (a : Eisenstein) : ℝ := Complex.normSq (a : ℂ)
  • definition OAI.CubicFirstMoment.normNat line 26

    def normNat (a : Eisenstein) : ℕ := ⌊norm a⌋₊
  • definition OAI.CubicFirstMoment.primary line 28

    def primary (a : Eisenstein) : Prop := (3 : Eisenstein) ∣ a - 1
  • definition OAI.CubicFirstMoment.primaryPrime line 30

    def primaryPrime (a : Eisenstein) : Prop := primary a ∧ Prime a
  • definition OAI.CubicFirstMoment.modulus line 32

    def modulus (a : Eisenstein) : Ideal Eisenstein := Ideal.span {a}
  • abbreviation OAI.CubicFirstMoment.Residues line 34

    abbrev Residues (a : Eisenstein) := Eisenstein ⧸ modulus a
  • definition OAI.CubicFirstMoment.residueRepresentative line 36

    def residueRepresentative (a : Eisenstein) (v : Residues a) : Eisenstein :=  Classical.choose (Ideal.Quotient.mk_surjective v)
  • definition OAI.CubicFirstMoment.cubicSymbolAtPrime line 39

    def cubicSymbolAtPrime (p v : Eisenstein) : ℂ :=  if IsUnit (Ideal.Quotient.mk (modulus p) v) then    if h : ∃ j : Fin 3,        Ideal.Quotient.mk (modulus p) (v ^ ((normNat p - 1) / 3)) =          Ideal.Quotient.mk (modulus p) (omegaE ^ (j : ℕ)) then      omega ^ ((Classical.choose h : Fin 3) : ℕ)    else 0  else 0
  • definition OAI.CubicFirstMoment.additivePhase line 48

    def additivePhase (p v : Eisenstein) : ℂ :=  let z : ℂ := (v : ℂ) / (p : ℂ)  Complex.exp (2 * (Real.pi : ℂ) * Complex.I * (z + star z))
  • definition OAI.CubicFirstMoment.gaussAtPrime line 52

    def gaussAtPrime (p : Eisenstein) : ℂ :=  (Real.sqrt (norm p) : ℂ)⁻¹ *    ∑' v : Residues p,      cubicSymbolAtPrime p (residueRepresentative p v) *        additivePhase p (residueRepresentative p v)
  • definition OAI.CubicFirstMoment.cStar line 58

    def cStar : ℝ := (2 * Real.pi) ^ (2 / 3 : ℝ) / (3 * Real.Gamma (2 / 3))
  • definition OAI.CubicFirstMoment.primeCutoffSum line 60

    def primeCutoffSum (f : Eisenstein → ℂ) (X : ℝ) : ℂ :=  ∑' p : Eisenstein, if primaryPrime p ∧ norm p ≤ X then f p else 0
  • definition OAI.CubicFirstMoment.firstMomentScale line 63

    def firstMomentScale (X : ℝ) : ℝ := X ^ (5 / 6 : ℝ) / Real.log X
  • definition OAI.CubicFirstMoment.theta line 71

    def theta (ℓ : ℤ) (a : Eisenstein) : ℂ := ((a : ℂ) / (‖(a : ℂ)‖ : ℂ)) ^ ℓ

Possible paper match, with no recorded review

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: first, moment, primary and primes.

Theorem 1.1 of An unconditional first moment for cubic Gauss sums

Theorem (First moment over primary primes)

As X\longrightarrow\infty,

\begin{gathered}\sum_{\substack{N\pi\le X\\\pi\equiv1\pmod3\ \mathrm{prime}}}G(\pi) =\frac65c_*\frac{X^{5/6}}{\log X} +o\!\left(\frac{X^{5/6}}{\log X}\right).\end{gathered}

The sum is over all primary primes in \mathcal O.

Section 1, Introduction Read it in the paper TeX source, line 64
Show the TeX
As $X\longrightarrow\infty$,
\begin{equation}
 \sum_{\substack{N\pi\le X\\\pi\equiv1\pmod3\ \mathrm{prime}}}G(\pi)
 =\frac65c_*\frac{X^{5/6}}{\log X}
   +o\!\left(\frac{X^{5/6}}{\log X}\right).
\end{equation}
The sum is over all primary primes in $\mathcal O$.

Other possible paper matches, closest wording first

  • Theorem A.1 of An unconditional first moment for cubic Gauss sums. Words of the Lean statement, its names split into words, that also appear in the theorem: nonzero, mode, integer, pi, comparison, theta and five more.
  • Theorem 2.1 of An unconditional first moment for cubic Gauss sums. Words of the Lean statement, its names split into words, that also appear in the theorem: 2/3, cubic, cutoffs and primary.
  • Theorem 2.4 of An unconditional first moment for cubic Gauss sums. Words of the Lean statement, its names split into words, that also appear in the theorem: star, unit, 2/3, theta, pi, gamma and three more. Shared only with the release’s name for the Lean statement or OpenAI’s note on it: term.
  • Proposition A.5 of An unconditional first moment for cubic Gauss sums. Words of the Lean statement, its names split into words, that also appear in the theorem: integer, moments and angular.
  • Proposition 6.1 of An unconditional first moment for cubic Gauss sums. Words of the Lean statement, its names split into words, that also appear in the theorem: scales, cutoff, sqrt, norm, log, moments and three more. Shared only with the release’s name for the Lean statement or OpenAI’s note on it: terms.
  • Proposition 4.1 of An unconditional first moment for cubic Gauss sums. Words of the Lean statement, its names split into words, that also appear in the theorem: norm, log, moments, primary and prime.

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; 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.

Carlos Toledo’s cert-machine

How they ran it, in their words

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…

  • Accepted Their term: “CERTIFIED”.

    Re-run through Comparator with the independent nanoda kernel switched on: Lean’s kernel and nanoda both accept OpenAI’s solution.

    Reported 10 October 2026, at the release version shown here. Original verification report

Neal McBurnett’s openai-math-lean-tooling

How they ran it, in their words

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).

  • Accepted Their term: “accepted”.

    Re-run through Comparator with Lean’s kernel: accepted (the check took 488 s).

    Reported 10 October 2026, at the release version shown here. Original verification report

What an accepted Comparator run would establish

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.

Allowed axioms: propext, Quot.sound, Classical.choice

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 023’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.

  • MathVet

    Finds the whole advertised result stated or implied Their term: “full”.

    The challenge statements imply the headline claim after unpacking definitions or one routine step. Their record

    Their note: None; custom Gauss-sum/cubic-symbol definitions match the paper's displayed definition (checked in paper.tex).

    Definitions the group asks readers to compare with the paper: Gauss sum, cubic residue symbol and primary-prime predicate are all custom (cubicSymbolAtPrime uses Classical.choose and a fallback value 0; residueRepresentative := Classical.choose ...; attribute [local instance] Classical.propDecidable), but they agree with the paper's definition and the summand is independent of the representative

  • Carlos Toledo’s cert-machine

    Finds the whole advertised result stated or implied Their term: “MATCHES”.

    The challenge statements state the headline as OpenAI wrote it. Their record

Read the complete assessments on the family page.

OpenAI’s own note on what this Lean statement covers

“The formalization proves the sharp-cutoff asymptotic with main term $\frac65c_*X^{5/6}/\log X$, where $c_*=(2\pi)^{2/3}/(3\Gamma(2/3))$. It also proves the corresponding angular comparison for every integer Fourier mode and cancellation of order $o(X^{5/6}/\log X)$ for each fixed nonzero mode. All primary Eisenstein primes are included, without an extra conjectural premise.”

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

99 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: 58 to its own declarations, 35 to Mathlib’s documentation. 24 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/-! Primary Eisenstein elements, residue characters, Gauss sums and first-moment target definitions. -/sectionnoncomputable sectionopen scoped BigOperatorsopen Moduleattribute [local instance] Classical.propDecidablenamespace CubicFirstMomentdef omega : ℂ := Complex.exp (2 * (Real.pi : ℂ) * Complex.I / 3)def eisensteinRing : Subalgebra ℤ ℂ := Algebra.adjoin ℤ {omega}abbrev Eisenstein := eisensteinRingdef omegaE : Eisenstein :=  ⟨omega, Algebra.subset_adjoin (Set.mem_singleton omega)⟩def norm (a : Eisenstein) : ℝ := Complex.normSq (a : ℂ)def normNat (a : Eisenstein) : ℕ := ⌊norm a⌋₊def primary (a : Eisenstein) : Prop := (3 : Eisenstein) ∣ a - 1def primaryPrime (a : Eisenstein) : Prop := primary a ∧ Prime adef modulus (a : Eisenstein) : Ideal Eisenstein := Ideal.span {a}abbrev Residues (a : Eisenstein) := Eisenstein ⧸ modulus adef residueRepresentative (a : Eisenstein) (v : Residues a) : Eisenstein :=  Classical.choose (Ideal.Quotient.mk_surjective v)def cubicSymbolAtPrime (p v : Eisenstein) : ℂ :=  if IsUnit (Ideal.Quotient.mk (modulus p) v) then    if h : ∃ j : Fin 3,        Ideal.Quotient.mk (modulus p) (v ^ ((normNat p - 1) / 3)) =          Ideal.Quotient.mk (modulus p) (omegaE ^ (j : ℕ)) then      omega ^ ((Classical.choose h : Fin 3) : ℕ)    else 0  else 0def additivePhase (p v : Eisenstein) : ℂ :=  let z : ℂ := (v : ℂ) / (p : ℂ)  Complex.exp (2 * (Real.pi : ℂ) * Complex.I * (z + star z))def gaussAtPrime (p : Eisenstein) : ℂ :=  (Real.sqrt (norm p) : ℂ)⁻¹ *    ∑' v : Residues p,      cubicSymbolAtPrime p (residueRepresentative p v) *        additivePhase p (residueRepresentative p v)def cStar : ℝ := (2 * Real.pi) ^ (2 / 3 : ℝ) / (3 * Real.Gamma (2 / 3))def primeCutoffSum (f : Eisenstein → ℂ) (X : ℝ) : ℂ :=  ∑' p : Eisenstein, if primaryPrime p ∧ norm p ≤ X then f p else 0def firstMomentScale (X : ℝ) : ℝ := X ^ (5 / 6 : ℝ) / Real.log Xdef FirstMomentStatement : Prop :=  Asymptotics.IsLittleO Filter.atTop    (fun X : ℝ => primeCutoffSum gaussAtPrime X -      (((6 / 5 : ℝ) * cStar * firstMomentScale X : ℝ) : ℂ))    firstMomentScaledef theta (ℓ : ℤ) (a : Eisenstein) : ℂ := ((a : ℂ) / (‖(a : ℂ)‖ : ℂ)) ^ ℓdef AngularComparisonStatement : Prop :=  ∀ ℓ : ℤ, Asymptotics.IsLittleO Filter.atTop    (primeCutoffSum (fun p => theta ℓ p *       (gaussAtPrime p - ((cStar * norm p ^ (-1 / 6 : ℝ) : ℝ) : ℂ))))    firstMomentScaledef AngularCancellationStatement : Prop :=  ∀ ℓ : ℤ, ℓ ≠ 0 → Asymptotics.IsLittleO Filter.atTop    (primeCutoffSum (fun p => theta ℓ p * gaussAtPrime p)) firstMomentScale/-- The sharp first moment over all primary Eisenstein primes. -/theorem patterson_firstMoment : FirstMomentStatement := by  sorry/-- Model comparison in every fixed integer angular mode. -/theorem patterson_angularComparison : AngularComparisonStatement := by  sorry/-- Cancellation at the first-moment scale for each nonzero angular mode. -/theorem patterson_angularCancellation : AngularCancellationStatement := by  sorryend CubicFirstMomentendendend 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.

An unconditional first moment for cubic Gauss sums

Theorem (First moment over primary primes)

As X\longrightarrow\infty,

\begin{gathered}\sum_{\substack{N\pi\le X\\\pi\equiv1\pmod3\ \mathrm{prime}}}G(\pi) =\frac65c_*\frac{X^{5/6}}{\log X} +o\!\left(\frac{X^{5/6}}{\log X}\right).\end{gathered}

The sum is over all primary primes in \mathcal O.

Section 1, Introduction Read it in the paper TeX source, line 64
Show the TeX
As $X\longrightarrow\infty$,
\begin{equation}
 \sum_{\substack{N\pi\le X\\\pi\equiv1\pmod3\ \mathrm{prime}}}G(\pi)
 =\frac65c_*\frac{X^{5/6}}{\log X}
   +o\!\left(\frac{X^{5/6}}{\log X}\right).
\end{equation}
The sum is over all primary primes in $\mathcal O$.
Configuration and file facts
OpenAI’s Lean catalogue
OpenAI’s Lean catalogue does not list this as a main result; the release’s Lean notes for family 023 link it.
Solution module
OAI.NumberTheory.CubicMoment.Theta.CubicThetaMains
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
21 local vocabulary declarations
Lines of Lean, without comments or blank lines
54
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

Patterson first moment and angular cancellation

Family 023: Patterson’s first moment for cubic Gauss sums

Candidate pairing

Theorem (First moment over primary primes)

As X\longrightarrow\infty,

\begin{gathered}\sum_{\substack{N\pi\le X\\\pi\equiv1\pmod3\ \mathrm{prime}}}G(\pi) =\frac65c_*\frac{X^{5/6}}{\log X} +o\!\left(\frac{X^{5/6}}{\log X}\right).\end{gathered}

The sum is over all primary primes in \mathcal O.

An unconditional first moment for cubic Gauss sums

TeX label thm:main, build/paper.tex, line 64

The Lean statement says

def FirstMomentStatement : Prop :=  Asymptotics.IsLittleO Filter.atTop    (fun X : ℝ => primeCutoffSum gaussAtPrime X -      (((6 / 5 : ℝ) * cStar * firstMomentScale X : ℝ) : ℂ))    firstMomentScaledef AngularComparisonStatement : Prop :=  ∀ ℓ : ℤ, Asymptotics.IsLittleO Filter.atTop    (primeCutoffSum (fun p => theta ℓ p *       (gaussAtPrime p - ((cStar * norm p ^ (-1 / 6 : ℝ) : ℝ) : ℂ))))    firstMomentScaledef AngularCancellationStatement : Prop :=  ∀ ℓ : ℤ, ℓ ≠ 0 → Asymptotics.IsLittleO Filter.atTop    (primeCutoffSum (fun p => theta ℓ p * gaussAtPrime p)) firstMomentScaletheorem patterson_firstMoment : FirstMomentStatement := by  sorrytheorem patterson_angularComparison : AngularComparisonStatement := by  sorrytheorem patterson_angularCancellation : AngularCancellationStatement := by

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.

Atlas selected this possible match because the two statements share words. No review of whether they mean the same thing is recorded.two independent groups report that Comparator accepted runs for this file at the release version shown here.Statement review: none recorded

21 local vocabulary declarationsAllowed axioms: propext, Quot.sound, Classical.choiceopenai/math at fd4aeebwcook04.github.io/plectis-atlas/statements/PattersonFirstMoment.html

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.

Compare this statement with the paperShare a Comparator run reportSuggest a change