Table of Contents
Recent AI-generated code and machine math often fail to match the claims made in accompanying natural language papers, while the code that is correct remains difficult for humans to follow. To address these inconsistencies and improve readability, a group of researchers has developed a new system designed to make machine math more trustworthy.
The Scope of AI Math Inconsistencies
ETH Zurich computer science professor Martin Vechev noted that the widespread nature of this issue is largely unrecognized. His research group identified inconsistencies across publications by OpenAI, startup Axiom Math, and 29 other AI-assisted math proofs they audited. These problems mostly consist of mismatches between the method described in the paper and the actual logic executed in the code, meaning the problem is still solved despite the deviation.
More seriously, the research team discovered that code files occasionally failed to accurately state, let alone prove, the main theorem of a paper. British mathematician Kevin Buzzard independently found 38 similar instances during a review of an October release by OpenAI, which did not respond to WIRED’s request for comment.
The Formalization Process and Human Challenges
Frontier labs reported solving hundreds of major math problems this year to demonstrate that their models possess the logic and reasoning skills required to write code. To make these solutions machine-checkable, the problems are translated or “formalized” from everyday language into logical steps using the open-source programming language Lean, which automates verification and increases efficiency.
Vechev explained that a shortage of human experts makes it difficult to check these solutions, which are already hard to read because they are generated by machines. He added that this challenge extends beyond mathematics to any field involving translations from human language into Lean, such as writing and verifying software, making human readability essential.
Introducing HumanLean
To eliminate errors and simplify the reading of formalizations, Vechev’s team created a system called HumanLean, which annotates the code with assumptions and cited external results. The system first utilizes an AI agent—OpenAI’s Astra in this test—to audit the proof by outlining the goal, assumptions, and arguments. A second independent agent then checks for inconsistencies and files them for human review.
Following this, AI agents reconstruct the proof’s steps with added annotations and merge them into a single publication after a final check. When the research team tested the system on nine math papers across various topics, human reviewers found no mismatches in the returned results.
Industry Responses and Differing Views
AWS scientist and Lean FRO cofounder Leonardo de Moura, who was not involved in the project, described mistakes in stating problems as serious, though he questioned whether adding another AI tool is the proper solution. He suggested that inconsistencies in how a proof is argued matter less if the underlying solution remains valid.
Ashvin Swaminathan, a member of the technical staff at Axiom Math, stated that because Lean machine-verifies every proof, correctness does not rely on following the human-written argument step by step. He described the inconsistencies identified by Vechev’s team as intentional, explaining that their agents were instructed to produce valid and efficient proofs to achieve the same verified theorems. He added that the statement mismatches had already been identified and corrected.
Improving Readability and Future Solutions
Mathematicians have criticized AI companies for neglecting human understanding in their releases and failing to make their findings digestible. Vechev agreed that labs should publish more understandable versions of their solutions and recommended they adopt HumanLean, noting its compatibility with multiple large language models.
The experiment on the nine papers also demonstrated that HumanLean can improve readability by removing unnecessary statements. The difficulty of condensing Lean code gained attention in late November when Anthropic researcher Levent Alpöge posted a Lean solution to the Riemann hypothesis spanning more than 17 million lines, which he later described as a travesty of slop. Although mathematicians have since reduced the proof to roughly 100,000 lines, de Moura stated it remains uncertain whether a tool like HumanLean would help refine it further.
De Moura explained that while Lean can verify the correctness of a formal proof, it cannot determine whether it is intuitive, simple, or straightforward, as those qualities are subjective. He concluded that keeping humans in the loop remains necessary if the goal is to provide an exposition for human audiences.








