AI-Ready Data Hyungyu Lee

AI Math Proofs in Lean: What Does a Passing Check Prove, and What Still Needs a Person?

Abstract thumbnail: a dashed empty square for a missing assumption, followed by a statement square and a solid proof square.

As Hyungyu Lee describes in a 2026 CUBIG Tech Blog essay, LLM evaluation in mathematics moved from benchmarks to famous open problems. Researchers presented claimed proofs in Lean, where a small trusted program checks each proof step.

An AI math proof checked in Lean is a proof that an AI model writes and the Lean theorem prover verifies step by step, establishing that the proof supports the statement as written without establishing that the statement captures the author’s intended meaning, which leaves people responsible for examining the assumptions.

Based on an essay by Hyungyu Lee, Co-Founder and CRO of CUBIG, first published on CUBIG Tech Blog on December 3, 2026.

According to Lee’s account, OpenAI shared a claimed solution to the Navier-Stokes Millennium Prize problem with a Lean formalization in September 2026. In November 2026, an Anthropic mathematician announced a proof of the Riemann Hypothesis and the Generalized Riemann Hypothesis for Dirichlet L-functions, found with Claude. Mathematicians outside Anthropic examined its Lean version, including whether the formal statements expressed the intended hypothesis, as documented in Rubinstein’s 2026 verification notes.

Lee asked Claude to translate the theory sections of two of his own papers into Lean, whose mathematics library is Mathlib. He selected DAFA, an ICLR 2024 paper on robust fairness, and a JMLR 2025 paper examining how hard examples affect adversarial robustness.

Key takeaways

  • A passing Lean check shows that the proof establishes the statement as written. Whether the statement says what the paper means is a separate question.
  • In a 2026 preprint by Zhang et al., an agent’s Lean statements compiled for 87.2 percent of problems, but only 57.7 percent passed the authors’ meaning check.
  • In Hyungyu Lee’s 2026 exercise, a JMLR theorem held only after an assumption from its proof, equal input norms, was written into the statement.
  • Lean shows which assumptions a result needs. Whether those assumptions are reasonable is still a judgment a person makes.

What does a Lean check prove in an AI math proof?

The Lean theorem prover checks whether a proof establishes a formal statement from its stated assumptions. When Lean accepts the proof, the accepted statement defines the scope of the result.

Three boxes in a row: sentence in the paper, Lean statement, Lean proof. The link from the paper to the statement is a dashed orange arrow; the link from the statement to the proof is checked by Lean.
A passing Lean check covers the link from statement to proof. Whether the statement says what the paper means is a separate question.

A researcher still needs to establish whether that formal statement corresponds to the intended mathematical claim. An AI model translating a paper into Lean can omit a hypothesis, weaken a bound or express a theorem that holds for a trivial reason. Lean may accept a proof of the resulting statement without identifying the difference from the original claim.

Researchers sometimes describe the comparison between a mathematical source statement and its formal translation as statement faithfulness or meaning preservation. The comparison asks whether the formal statement expresses the same mathematical claim, including its assumptions and conclusions.

Zhang et al. examine this problem in a 2026 preprint. Their tool-using agent produced statements that compiled for 87.2 percent of university-level mathematical problems. Only 57.7 percent passed the authors’ meaning-preservation check, which used two model judges that the researchers had validated against human labels.

Ammanamanchi et al. report a related problem in their ICML 2026 research. The researchers audited five widely used Lean benchmarks and found statements with counterexamples, theorems that held for trivial reasons and axioms that allowed a proof to assume something false.

Lee’s findings separate several questions that a researcher must answer when reviewing an AI-generated formalization. Does the formal statement compile? Does the statement express the intended mathematics? Does a valid proof establish the statement under its assumptions?

Lee’s exercise carries the risk those studies measure, because Claude wrote the translations and also compared each Lean statement with its source sentence. The results establish properties of the Lean statements. Researchers can transfer those conclusions to the original papers only where the formal definitions correspond to the formulas in the papers.

What happened when the DAFA theorems went into Lean?

The DAFA paper studies Gaussian classes with different amounts of spread. The class with the wider distribution presents the harder classification problem. The paper examines how the distance between the classes affects classification error and the difference in error between them.

The theorems state that increasing the distance between the classes reduces the error on the harder class and narrows the error gap. The paper describes this behavior under standard training and adversarial training. A corollary states that adversarial training introduces greater additional unfairness when the classes lie close together.

Lean proved the theorems as statements about the paper’s derived formulas, and an audit of what each proof depends on found no unproved step. Some of the formal statements also held under broader conditions than the paper specified. The first theorem, for example, held for any class distance.

Lean also checked a step concerning the classifier’s bias. The original derivation identified a bias by setting a derivative to zero. Claude supplied a proof that the resulting bias minimizes the error, and Lean accepted the proof.

Two conditions still had to be written into the statements, because the paper left one in its formulas and the other in its appendix.

The attack norm

The DAFA paper limits the attack to size ε without naming the norm, but its formulas assume the ℓ∞ norm. Under that norm, an attacker may move each input feature by up to ε.

Claude had to express the attack norm in the formal statement so that Lean could check the result under the relevant conditions. The accepted proof therefore supports the result for the specified attack norm. The proof does not establish that the same formula or conclusion holds under every possible norm.

The dimension condition

The paper’s corollary also depends on a condition that appears in the appendix. The appendix describes the input dimension as much larger than a constant. That description communicates the intended mathematical setting but leaves the precise inequality implicit.

Claude replaced the informal description with the exact inequality that the original proof uses. Lean then checked the corollary under that explicit condition. The formal statement made the existing mathematical requirement visible rather than introducing an unrelated restriction to obtain a passing result.

In Lee’s DAFA exercise, the theorems held once the two conditions were written into the statements. Lean accepted the derived results after Claude stated the relevant conditions, subject to the correspondence between the formal definitions and the original formulas.

What did Lean show about the JMLR theorem’s hidden assumption?

Theorem 1 of Lee’s JMLR 2025 paper compares a hard example and an easy example from the same class in a logistic model. The theorem claims that an attack reducing both margins by ε increases the gap between the magnitudes of their loss gradients.

The original proof treats the inputs as having almost the same norm. The derivation therefore handles their sizes as equal, allowing the corresponding terms to cancel. The theorem itself does not explicitly require equal input norms.

Claude formalized the result with the equal-norm condition, and Lean accepted the proof. The formalization also showed that the result could hold under a relaxed bound on ε when the inputs have equal norms.

Without that assumption, Lean confirmed a counterexample using the formula from the JMLR 2025 paper. The hard and easy examples have margins of log 2 and log 8, input norms of 1 and 2, and ε = log 2. The theorem’s stated conditions hold in this example. The gap between their loss-gradient magnitudes decreases from 1/9 to 1/10 rather than increasing.

Dot chart of the gap between the hard and easy examples gradient norms before and after an attack of size log 2. With equal input norms the gap widens; with norms 1 and 2 it narrows.
Same margins and attack, two input-norm settings. With equal norms the gap widens, as the theorem says. With norms 1 and 2 it narrows, the case Lean confirms (computed from the formula in Lee et al., JMLR 2025).

The counterexample does not settle how close the input norms must be for the original conclusion to hold. An input with twice the norm of another input does not satisfy the proof’s informal description of almost equal norms. Lee has not established how much difference the theorem can accommodate.

The result also exposes a limit of meaning preservation as an evaluation criterion. A check like the one behind the 57.7 percent result in Zhang et al. (2026) would favor a faithful translation of the paper’s original, false statement. The same criterion would reject the equal-norm version that Lean proves because the added condition changes the original claim.

The assumptions about bias and test-time attacks

Theorems 2 and 3 of the JMLR 2025 paper rely on further choices that appear in their proofs. The derivations fix the classifier’s bias at a nonzero value even though the training objective would produce a bias of zero. The derivations also allow the test-time attack to change only the signal feature.

Claude expressed those choices explicitly, and Lean accepted the resulting proofs. With zero bias, ordinary accuracy stops depending on the number of hard examples in training.

With zero bias and a standard attack that spreads its budget across the input, the direction of change reverses. Accuracy under attack on hard examples goes up where the paper says it goes down.

The results concern the simplified mathematical model rather than the paper’s experiments. The formal proofs establish what follows from the selected definitions and assumptions. Which reading applies depends on whether the paper means a bias learned in training or a fixed one, and the paper’s proof does not say.

Where each assumption sat in the two papers
Paper and result Assumption Where it sat in the paper What Lean showed once it was written into the statement
JMLR 2025, Theorem 1 Equal input norms Proof only, through the treatment of almost equal norms The theorem holds with equal norms, and a counterexample exists without a condition on the norms.
DAFA, ICLR 2024, theorems ℓ∞ attack norm Derived formulas The theorems hold for the specified formulas and attack norm.
DAFA, ICLR 2024, corollary Input dimension satisfies the required inequality. Appendix, expressed using ≫ The corollary holds when the statement includes the exact inequality.
JMLR 2025, Theorems 2 and 3 Fixed nonzero bias and an attack that changes only the signal feature Proofs The theorems hold under those choices, while alternative choices change the results of the simplified model.

Did Claude add assumptions until the proofs passed?

Lee traces each additional condition to the original papers. The attack norm appears in the derived formulas, the dimension condition appears in the appendix, and the choices concerning input norms, bias and the attacked feature appear in the proofs.

Lean can help researchers distinguish assumptions that a particular result needs from assumptions that the result can do without. When Lean accepts a proof after a researcher removes a hypothesis, the formal result no longer requires that hypothesis under the remaining definitions and conditions.

When Lean confirms a counterexample after a researcher removes a hypothesis, the researcher knows that the broader statement fails. The counterexample can identify the need for a restriction without determining the weakest possible restriction or whether a proposed condition makes sense for the intended application.

Lee reads the equal-norm condition as a simplification that the original derivation needs and that the theorem should state explicitly. Lean establishes the result under that condition. Researchers must still judge whether equal norms represent a reasonable simplification for the problem.

The scope of Lee’s exercise also depends on who performed each part of the work. Claude translated the statements, wrote the proofs and prepared the comparison with the original papers. Lean checked the formal proof steps. Lee has not independently checked every formal definition against the original papers line by line.

An AI math proof can therefore give a researcher a precise place to investigate a mathematical claim without resolving every question about the translation or the original research. The researcher still needs to examine the definitions, the assumptions and the intended interpretation of the theorem.

What should enterprise teams take from this for LLM evaluation?

A machine-checked proof establishes a conditional result: the stated conclusion follows under the stated assumptions. The researcher must examine those assumptions before deciding what the accepted proof establishes about the original mathematical question.

A formal translation can compile and preserve the meaning of a paper while still expressing a false mathematical statement if the original paper omits an assumption. Conversely, a formal statement with an explicit additional condition can support a valid proof while differing from the original wording.

The same reading habit applies to an evaluation score for an AI model. A score describes the model’s performance under particular conditions. Teams should identify those conditions before interpreting the result or comparing it with another score.

Teams conducting LLM evaluation should document the task, the inputs, the evaluation criteria and the information available to the evaluator. For evaluations that use model judges, the team also needs to establish what the judge sees.

When teams compare LLM models, they should establish whether the scores describe comparable tasks and evaluation conditions. A gap between two scores does not show, by itself, whether the models or the evaluation conditions caused it.

CUBIG Shorts

A Similar Score Is Not a Run Record.

A short clip from CUBIG’s It Worked in the Demo series, episode 7.

▶  Watch on YouTubeSubscribe

A self-check before interpreting an accepted result

  • Has the team identified the exact statement that the proof checker accepted?
  • Has someone compared the formal definitions with the original mathematical formulas?
  • Has the researcher made the assumptions used in the original derivation explicit?
  • Can the team distinguish a faithful translation from a mathematically valid statement?
  • Has someone examined whether the assumptions are reasonable for the intended problem?
  • Has the team documented the conditions that govern any reported model score?

Syntitan‘s Ready for Model compares results before and after data preparation under the same evaluation conditions for a specific model task. Ready for Model does not provide model certification, rank models or check mathematical proofs. Teams can use the comparison to examine the effect of preparing data for the selected task under the specified conditions.

The lesson from Lee’s examination of his papers is to read the assumptions before reading the proof or its check result. A passing result gains its meaning from the statement that the checker examined and the conditions under which the proof holds.

Try it on your data, free.

Explore Syntitan, CUBIG's AI-Ready Data Platform

FAQ

Does a passing Lean check mean the mathematics in the original paper is correct?

A passing check establishes that the formal proof supports the statement as written, while the correspondence between that statement and the original mathematics still requires examination.

What is statement faithfulness or meaning preservation?

Statement faithfulness describes whether a formal translation preserves the mathematical meaning, assumptions and conclusion of its source statement.

Why can a faithful mathematical translation still be false?

A translation can accurately reproduce an original statement that omits a necessary assumption, leaving the translated statement mathematically false under its stated conditions.

What must a person still decide after Lean accepts a proof?

A person must judge whether the formal definitions express the intended mathematics and whether the stated assumptions are plausible for the problem under investigation.