AI
AI Joins the Quest to Mathematically Prove Code Is Secure
Startups and AI labs are racing to automate formal verification—a tedious but powerful method to catch bugs before they become security disasters—with early results that suggest the approach could finally scale beyond defense agencies and tech giants.
WIRED — AI
Stanford researcher Chuyue Sun's team built an AI system that handled an engineering task in under half a day for roughly $500. Three experienced engineers had previously needed five months to complete the same project. That kind of efficiency gain is awakening formal verification—a mathematically rigorous approach to software development that has long remained a niche practice confined to mission-critical systems.
The Long-Neglected Proof#
Formal verification rests on a simple premise: use mathematical logic to prove that software behaves exactly as intended, eliminating entire categories of bugs before code ever runs in production. Yet the process has been prohibitively expensive and time-intensive. Engineers must articulate precise specifications for what their software should accomplish, then translate the actual code into formal logic that proof-checking tools can validate.
Most companies instead rely on conventional testing—running thousands of scenarios to find problems. While cheaper and faster, testing can never guarantee you've found every flaw. Formal verification, by contrast, can find errors that traditional methods miss entirely.
Bridges and buildings get mathematical vetting before construction. "Why don't we do the same for code?" says Ilya Sergey, chief science officer at &Truth, one of several startups now betting that generative AI can make verification practical at scale. "The technology to mathematically reason was all there, just difficult to scale."
The AI-Powered Race#
A wave of startups is backing that conviction with substantial funding. &Truth, where Sun joined in August, raised $70 million and publicly launched this week with plans to verify any programming language. Harmonic, cofounded by Robinhood CEO Vlad Tenev and backed by $295 million in capital, unveiled Aristotle, an AI agent that now supports verification for C code and Verilog hardware designs. The startup is testing the approach with major chipmakers, including Nvidia (whose venture arm invested in the company).
Last week, Anthropic and the verification startup Theorem jointly announced they'd used AI to find bugs in open-source software that trillions of conventional tests had failed to catch. Anthropic also rolled out a Claude add-on to help other developers with verification work.
The Reality Check#
Enthusiasm, however, meets resistance from skeptics. Will Wilson, founder of the bug-hunting startup Antithesis, describes formal verification as a "pain in the ass"—his company spent millions formally verifying some of its security defenses, yet still discovered additional errors using conventional testing. Antithesis has also identified bugs in software that customers had already formally verified. "It can give you some assurance, but only robust exhaustive testing can prove your assurance is true," Wilson says.

