In October, OpenAI released roughly 700 papers alongside code files intended to verify the mathematics within them. The code was meant to be a helpful tool for overwhelmed mathematicians.
In this article
Months later, it became clear that much of the generated code did not match the claims made in the accompanying natural language papers. Correct code proved difficult for humans to follow. A group of researchers has now built a system to reduce these inconsistencies and improve readability.
The gap between paper and code
ETH Zurich computer science professor Martin Vechev says people do not fully grasp how widespread this issue is. His team identified mismatches across publications by OpenAI, startup Axiom Math, and 29 other AI-assisted math proofs they audited. These are mostly cases where the method laid out in the paper differs from the actual logic in the code. The problem is still solved, but not in the way the paper suggests.
More seriously, the team found that code files sometimes fail to state the paper’s main theorem correctly, let alone prove it. A separate review of OpenAI’s October release by British mathematician Kevin Buzzard found 38 instances of this. OpenAI did not respond to WIRED’s request for comment.
Why formalisation matters
Frontier labs claimed to have solved hundreds of major math problems this year to show their models possess the logic and reasoning capabilities to write code. To make these solutions machine-checkable, they translate—or “formalise”—the problem from everyday language into logical steps using the open-source programming language Lean. This process automates solution verification, making it much more efficient.
“There are not enough human experts to check many of these things which are, on top of that, very hard to read because they’re not human-generated,” Vechev says. “This problem is emerging not just in mathematics but in anything where you are translating from some human language, like human math, into Lean,” such as writing and verifying software. “Being human-readable is so important.”
How HumanLean works
His team has created a system called HumanLean to remove errors and make reading formalisations easier by essentially annotating them with assumptions and cited external results.
First, an AI agent—OpenAI’s Astra in this case—audits the proof to lay out the goal, assumptions, and arguments. Another independent agent then checks for inconsistencies, which are filed separately for human review. The proof’s steps are then reconstructed by AI agents with the additional annotations and merged into one publication after a final check. In a test where the group used their system to formalise nine math papers across various topics, human reviewers found it returned no mismatches.
Industry pushback
Mistakes in stating problems are “serious,” says AWS scientist Leonardo de Moura, who’s also the cofounder of Lean FRO, a nonprofit dedicated to the development of the Lean theorem prover and programming language. But de Moura, who was not involved in Vechev’s project, questions whether throwing another AI tool into the mix is the solution.
He adds that inconsistencies in how a proof is argued are less concerning if the solution still stands up.
“Lean can check if a formal proof is correct, but it cannot check whether it’s intuitive, if it’s simple, if it’s straightforward. These are very subjective,” he says. “If the goal is to have an exposition to humans, humans will be in the loop.”
Ashvin Swaminathan, a member of the technical staff at Axiom Math, says the inconsistencies between the Lean code and human-written argument identified by Vechev’s team are “intentional.” He says they instructed their agents to produce valid, efficient proofs. That is the expected outcome, not an inconsistency. The theorems proved are the same, and every proof is verified. He adds that the statement mismatches had already been identified and corrected.
Readability and the Riemann hypothesis
Mathematicians have accused AI companies of not caring about advancing human understanding of their releases, arguing they should make a greater effort to make their results digestible. Vechev agrees that the companies should be publishing versions of their solutions that are more easily understood by humans and urges labs themselves to use HumanLean, noting it’s compatible with multiple large language models.
HumanLean can also make the formalisations easier to read by cutting unnecessary statements, the experiment on the nine papers shows. The challenge of condensing Lean code has been spotlighted since Anthropic researcher Levent Alpöge posted a Lean solution to math’s most famous problem, the Riemann hypothesis, in late November, running more than 17 million lines long—which he later called a “travesty of slop.”
Mathematicians have already been able to whittle the Riemann hypothesis proof down to a mere 100,000 or so lines in the past couple of weeks, and de Moura says it’s unclear whether an AI tool like HumanLean would help refine it further.
“If the goal is to have an exposition to humans, humans will be in the loop,” he says.




