Artificial intelligence
Researchers build tool to check AI-written math proofs against their Lean code
A group at ETH Zurich says its HumanLean system can flag mismatches between AI-generated math papers and their formal code, while other experts question whether another AI layer is the right fix.
· 2 min read
- ETH Zurich researchers built HumanLean to catch mismatches between AI-written math papers and their Lean code.
- In a test on nine papers, human reviewers found no mismatches in the system's output.
- Axiom Math and a Lean FRO cofounder dispute how serious some of the inconsistencies are and whether more AI is the answer.
A research group at ETH Zurich has built a system called HumanLean that aims to catch mismatches between AI-generated math papers and the formal code meant to verify them, WIRED reported. The tool also tries to make that code easier for people to read.
The effort follows a large release by OpenAI in October of roughly 700 AI-generated math papers, which came with code files that could help check some of the results. According to WIRED, it has since become clear that much of this code does not match the claims in the accompanying papers, and even correct code has been hard for humans to follow.
ETH Zurich professor Martin Vechev said his group found such inconsistencies in publications from OpenAI, the startup Axiom Math and 29 other AI-assisted proofs it audited. Most were differences between the method described in the paper and the logic in the code, so the problem is still solved but by another route. More seriously, the code sometimes fails to state the paper's main theorem correctly. British mathematician Kevin Buzzard separately found 38 such cases in OpenAI's release. OpenAI did not respond to WIRED's request for comment.
The AI companies translate problems from ordinary language into Lean, an open-source programming language, so that solutions can be checked by machine. HumanLean adds annotations covering assumptions and cited external results. An AI agent, OpenAI's Astra in this case, first audits a proof to set out its goal, assumptions and arguments. A second, independent agent looks for inconsistencies, which go to humans for review. The proof is then rebuilt with the annotations and merged after a final check.
When the team used the system to formalize nine papers on different topics, human reviewers found no mismatches. The experiment also showed that HumanLean can shorten formalizations by removing unnecessary statements. Vechev said the issue reaches beyond mathematics to any work that converts human language into Lean, such as writing and verifying software. He urged AI labs to adopt the tool, which works with several large language models.
Others disagree about the scale of the problem. Ashvin Swaminathan of Axiom Math argued that because Lean verifies every proof, a theorem's correctness does not depend on following the human-written argument. He said the differences were intentional, since the company told its agents to produce valid, efficient proofs, and that the statement mismatches had already been found and fixed.
Leonardo de Moura, an AWS scientist and cofounder of Lean FRO, who was not involved in the work, called mistakes in stating problems serious. He questioned whether adding another AI tool is the answer and said argument inconsistencies matter less if the solution holds. He also noted that Lean cannot judge whether a proof is intuitive or simple, so humans will remain involved.
The readability issue drew attention after Anthropic researcher Levent Alpöge posted a Lean solution to the Riemann hypothesis in late November that ran past 17 million lines. He later called it a "travesty of slop." Mathematicians have since cut it to about 100,000 lines, and de Moura said it is unclear whether a tool like HumanLean would shorten it further.