Consumer Tech

AI math code inconsistencies found in OpenAI and Axiom Math papers

Professor Martin Vechev and mathematician Kevin Buzzard identified widespread errors where AI-generated code fails to match natural language claims in math proofs. The HumanLean system developed by Vechev's team uses AI agents to audit and reconstruct proofs to eliminate these mismatches.

AI math code inconsistencies found in OpenAI and Axiom Math papers

Problems with AI code

I find the widespread inconsistencies in AI-generated mathematics highly problematic. OpenAI released approximately 700 papers in October, but much of the accompanying code fails to match the natural language claims. Martin Vechev, a computer science professor at ETH Zurich, identified inconsistencies across publications from OpenAI, the startup Axiom Math, and 29 other AI-assisted math proofs. These errors often manifest as mismatches between the method in the paper and the actual logic in the code, although the math remains solved via a different method. British mathematician Kevin Buzzard found 38 instances where the code files failed to correctly state, let alone actually prove, the main theorem in OpenAI’s October release. Because the frontier labs translate problems from everyday language and notation into logical steps using the open-source programming language Lean, the resulting code is often very hard for human experts to read. I find the lack of human-readable code a significant barrier to verifying the hundreds of math problems frontier labs claim to have solved this year. The code that is correct also proves challenging for humans to follow, especially since this discrepancy between the code and the claims in the accompanying natural language papers means the problem is solved in a different way than the paper suggests. This issue also affects anyone translating human language into Lean, such as those writing and verifying software.

HumanLean fixes the errors

The HumanLean system developed by Vechev’s team provides a clear way to fix these errors. I find the three-step process efficient for improving readability and trustworthiness. First, an AI agent, specifically OpenAI Astra, audits the proof to establish goals, assumptions, and arguments. A second independent agent then identifies inconsistencies for human review. Finally, AI agents reconstruct the proof steps with annotations, including assumptions and cited external results, before a human performs a final check. In a test where the group used their system to formalize nine math papers across various topics, human reviewers found it returned no mismatches. This method addresses the shortage of human experts who can parse code that is not human-generated. Vechev says, "People don’t fully understand the widespreadness of this problem" regarding AI math inconsistencies.