In the months following recent technological releases, it has become evident that a significant portion of AI-generated code fails to align with the claims made in accompanying natural language papers. Even the code that turns out to be mathematically correct presents substantial hurdles for human researchers attempting to follow the underlying logic. To bridge this gap and establish greater trust in machine-generated mathematics, a team of researchers has engineered a specialized system designed to weed out inconsistencies and enhance overall readability.
ETH Zurich computer science professor Martin Vechev notes that the widespread nature of this issue remains underappreciated by the public. His research group audited publications from OpenAI, startup Axiom Math, and 29 other AI-assisted math proofs, uncovering frequent discrepancies across the board. These issues primarily manifest as mismatches between the methodological framework outlined in the paper and the actual computational logic executed within the code, meaning the mathematical problem is technically solved via a different pathway than advertised.
More critically, the research team discovered instances where the code files failed to accurately state, let alone properly prove, the main theorem featured in the paper. A separate independent review conducted by British mathematician Kevin Buzzard on an October release by OpenAI identified 38 similar occurrences, though OpenAI did not respond to requests for comment.
Frontier artificial intelligence laboratories previously claimed to have resolved hundreds of complex mathematical problems this year to demonstrate that their models possess advanced logic and reasoning capabilities suited for programming. To make these solutions verifiable by machines, developers translate or formalize the problem from everyday language into strict logical steps using the open-source programming language Lean, which automates solution verification for enhanced efficiency.
According to Martin Vechev, human experts are in short supply to manually check these highly complex and non-human outputs, a bottleneck emerging not just in mathematics but across any domain translating human language into Lean syntax. Ensuring these formalizations remain human-readable is a vital necessity.
To combat these errors and simplify the reading process, Vechev’s team formulated a system named HumanLean, which annotates formalizations with underlying assumptions and cited external results.
The workflow begins with an artificial intelligence agent, specifically OpenAI’s Astra, auditing the proof to establish the primary goal, assumptions, and supporting arguments. A secondary independent agent then scans for inconsistencies, routing them to a separate queue for human review. Finally, AI agents reconstruct the proof steps incorporating the new annotations before merging the output into a finalized publication following a rigorous check. When tested across nine math papers spanning diverse topics, human reviewers reported zero formatting mismatches.
AWS scientist and Lean FRO cofounder Leonardo de Moura describes these problem-statement errors as serious, though he questions whether introducing another layer of artificial intelligence is the most effective remedy. De Moura was not involved in the development of Vechev's project.
He notes that logical inconsistencies in how a proof is argued hold less weight so long as the final mathematical solution remains sound.
Because the Lean platform machine-verifies every single proof, the ultimate correctness of a theorem does not rely on following the human-written argument sequentially, explains Ashvin Swaminathan of Axiom Math. The discrepancies identified by Vechev's team were intentional outcomes driven by instructions given to agents to produce valid and efficient proofs, with statement mismatches already identified and rectified.
Critics within the mathematical community argue that artificial intelligence firms show little regard for advancing genuine human comprehension, urging them to make their findings more accessible. Vechev concurs that labs should publish more digestible versions of their solutions and recommends the adoption of HumanLean, which functions across various large language models.
The system also streamlines readability by excising redundant statements, as demonstrated in recent experiments. The difficulty of condensing Lean code gained widespread attention after an Anthropic researcher published a 17-million-line solution to the Riemann hypothesis, later describing it as a travesty of slop.
While mathematicians have successfully trimmed that specific proof down to roughly 100,000 lines, de Moura suggests it remains uncertain whether tools like HumanLean can drive further reductions.
While the Lean program can verify formal correctness, it cannot evaluate whether a proof is intuitive, simple, or straightforward, as those qualities remain entirely subjective and require human oversight.



















