AI is bringing formal verification within reach
The striking result is the price and speed: Stanford researcher Chuyue Sun and colleagues used an AI tool to finish an engineering project in less than half a day for under $500. Three highly skilled experts took five months to complete the same work by hand. Sun described the result in
a recent paper. It’s an early sign that AI could make formal verification practical for more software teams.
Formal verification uses mathematics to check that software behaves according to precise specifications. Developers have
long wanted to prove their code is free of bugs, but writing those specifications and translating code into formulas takes time and specialist skill. Conventional testing can find many defects; formal methods can expose
less predictable behavior that tests may miss. The tradeoff has kept the method out of reach for most projects.
Now startups are betting generative AI can reduce that burden. Sun joined &Truth in August; the company launched publicly on Thursday. Her research used AI to verify part of the code that
encrypts conversations in Signal. “Bridges, buildings, they don’t collapse, because people did math before constructing them,” says Ilya Sergey, &Truth’s chief science officer. “Why don’t we do the same for code? The technology to mathematically reason was all there, just difficult to scale.”
&Truth has raised $70 million and says it ultimately wants to verify software written in any programming language. The competition is building quickly. Harmonic, cofounded by Robinhood CEO Vlad Tenev and backed with $295 million, said this week that its math-focused agent
Aristotle can check software written in C and hardware designs in Verilog. The company is evaluating the technology with potential users, including chipmakers Tensordyne and Nvidia; Nvidia’s venture capital arm is an investor. Anthropic and verification startup Theorem
also announced they’d used AI to help find bugs in open source software that trillions of tests had missed, and released a Claude add-on for developers. They didn’t disclose the project’s cost.
The promise is fewer failures and security problems. Whether AI can carry verification beyond high-stakes systems at organizations such as NASA and Apple is still an open question. The technology remains at the prototype stage, and strong interest doesn’t yet show what customers will pay or how they’ll adopt it. Verification also depends on assumptions about how people and computers interact with software. It may not catch bugs caused by user mistakes or hardware failure.
Proof has limits—and a price
Will Wilson, who runs the bug-hunting AI startup Antithesis, calls formal verification “a trap” for math nerds like himself. His company spent millions formally verifying some of its cybersecurity defenses, a process he describes as “a pain in the ass.” Antithesis later found more errors with its own tool, including bugs in software that customers had formally verified. “It can give you some assurance, but only robust exhaustive testing can prove your assurance is true,” Wilson says.
Vitalik Buterin, the engineer who created Ethereum, made a similar qualification in a
blog post earlier this year: “formal verification is not a panacea.” Still, he and other advocates see it as a useful defense against AI systems
launching cyberattacks and
causing damage. The case for verification is strongest where a software failure could have serious consequences.
Adoption starts with the most sensitive code
Formal methods already protect pieces of software in Boeing planes, Amazon servers, and more than 2.5 billion active Apple devices, according to company disclosures. That code is generally security-related, where a successful attack could do serious harm. Byron Cook, a distinguished scientist and vice president at Amazon Web Services, says verification has reassured cloud customers and helped Amazon teams
move faster by catching major bugs early.
Most midsized technology companies have taken a narrower approach: several told WIRED they’ve formally checked just one key product feature, if anything. They point to a shortage of verification engineers, costs that may exceed the risk, and the prospect of waiting weeks for a review. That delay can be hard to accept when product teams are trying to ship.
Apple’s security team said earlier this year that formal verification found problems in its encryption library, “corecrypto,” that it says couldn’t have been found by other means. But Apple also said it must be “conservative” about adding code to the library so its review process can keep up. Two cybersecurity executives at large companies that haven’t verified code said they’re unsure automation will change the economics. They could, however, imagine paying major AI labs for “verified” AI-generated code.
Open source maintainers are testing AI-assisted verification too. The nonprofit Beneficial AI Foundation used
an Anthropic grant to check the same encryption code Sun studied at Stanford. Michael Rosenberg, a maintainer of the curve25519-dalek library, wants steady funding for future work. “I have no ideas as to how that’s going to happen, though, and we certainly shouldn’t rely on the goodwill of the AI companies,” he says.
Automating the proof-writing work
Several startups are still deciding whether to sell verification tools directly or distribute them through companies such as Anthropic. Their shared goal is to automate the work of describing how a program should behave. A specification for a data table, for instance, might say sorting can change the order of its items but must preserve the items themselves. Other tools—some of which may not use AI—would then translate code into a form that mathematical
proof systems such as Lean, Rocq, and Isabelle can check.
Madan Musuvathi left Microsoft Research after more than 20 years to start Truidic. The
OpenAI hack of Hugging Face helped convince him his research needed a commercial path. “AI in the hands of attackers can be extremely powerful,” he says. Verification, he argues, can “make AI safe and secure for everyone, everywhere.”
Proofcraft, one of the few firms that has long sold traditional verification services, says customer inquiries are surging beyond what it and its competitors can handle. CEO June Andronick and chief scientist Gerwin Klein are encouraged by the interest, but they worry AI-written specifications could create “unjustified trust” in the results. Klein also wants the work itself to remain satisfying. He calls verification “pretty addictive, like a puzzle game.” If AI can take over more of the routine work, he may get more time to solve those puzzles.