Security & Quality · [ 4 min read ]
Formal Verification Emerges as the Answer to AI Code Slop
As AI code slop becomes 2026's defining complaint, &Truth, Harmonic, Theorem and Axiom Math pitch Lean-based formal verification — proofs, not tests — as the way to guarantee agent output, with Opus 5.5 already 40% more token-efficient at it.
Key findings
- Opus 5.5 hit a 50% solve rate on 36 verification tasks with about 40% fewer tokens than Opus 5, per Anthropic.
- cvc5, co-created by &Truth co-CEO Clark Barrett, runs billions of times a day in Amazon pipelines including Kiro.
- Anthropic formalized Fermat's Last Theorem in Lean — a 13-million-line project.
- &Truth, Harmonic, Theorem and Axiom Math all sell formal verification built around Lean proofs.
- Anthropic mathematician Levent Alpöge claims a Claude-assisted Lean proof of the 167-year-old Riemann hypothesis.

Mathematical proof systems, not another round of agent self-critique, have become the industry's most serious bid to eliminate AI-generated code slop. A cluster of companies — Harmonic, Theorem, Axiom Math and the new entrant &Truth — now sells formal verification: machines that check software against logical proofs rather than tests.
The timing is not accidental. The AI industry's word of the year for 2026 has been "slop" — low-quality output from a large language model — and with a rising share of code now machine-written, engineers treat avoidance of slop as a daily problem rather than a curiosity.
What separates proof from testing?
To understand the mechanism, consider what AI coding agents call "verification" today: they run tests, critique their own output, or ask another model to judge it. Clark Barrett, co-founder and co-CEO of &Truth, Corbel Professor (Research) of Computer Science at Stanford and co-creator of the cvc5 SMT solver, draws a sharp line between that practice and proof.
"The main difference is really just, how do you know when you're done," Barrett said. "They find a ton of problems. They raise those issues. But you're never quite sure, did I find all of them or is there one more lurking there that my tool can't find?"
His own solver already runs at industrial scale. cvc5 handles specification analysis and test generation in Kiro, Amazon's agentic development environment. "It's been fun to see my tools go from a good idea in the lab to cvc5 is now called billions of times a day in production pipelines at Amazon," Barrett said.
The takeaway: tests enumerate the bugs you found; a proof bounds the bugs you did not.
Why does Lean matter so much?
&Truth builds on Lean, the open-source programming language and proof assistant that frontier models now use to solve hard mathematics. The news flow this week alone shows the pace:
- GPT-6.2 Astra produced what Vals believes is "the first Lean proof of Smoktunowicz's Gap Theorem."
- Anthropic used Lean to formalize Fermat's Last Theorem — a project of 13 million lines.
- Anthropic mathematician Levent Alpöge claims he used Claude to prove the 167-year-old Riemann hypothesis, and posted the proof in Lean.
"What Lean does is it just checks that you didn't make a mistake," Barrett explained. "You can think of it as a very sophisticated checker for mathematics."
&Truth is constructing what it calls a "verification machine" on top of Lean, with the goal of reading code in any language and proving whether it satisfies precisely stated requirements. Its first tool, &Atlas, maps the world's open-source code, starting with C.
Harmonic's automated theorem prover, Aristotle, leans on the same division of labor. "Inside Aristotle, AI writes the proofs and Lean checks every step of them, so a result never rests on the AI being right," the company states.
Axiom Math takes a training-side angle: it feeds formal verification results back into its mathematical reasoning systems, with failed proof attempts improving future models. Its products are AxiomProver, which generates Lean proofs, and AXLE, a toolkit for exploring and validating them.
Axiom CEO Carina Hong, in a June interview with Latent Space, framed the stakes beyond defect removal: "Formal verification, or verified AI, to us it's not just about handling or kicking out the lousiness, the hallucinations, the mistakes. It's about scaling brilliance. It's about super-intelligence."
Is the economics improving fast enough?
Cybersecurity drives much of the demand, and Barrett named a concrete target: "One really powerful use case for our technology is going through all the C code in the world, whether it be open source or closed source, and trying to ensure that it's memory safe."
Theorem competes on the same ground — "Verification is the only defense that holds while adversaries scale," its homepage reads — and has worked with Anthropic on a joint post, "LLMs are making formal software verification feasible at a much larger scale."
The cost curve is moving in the right direction. On a set of 36 small verification tasks, Anthropic reported that Opus 5.5 reached a 50% solve rate while using about 40% fewer tokens than Opus 5. The companies expect further gains as models are trained on long verification tasks, and they describe "LLM-scaled formal verification" as a route to security guarantees at previously impractical scale.
What does the workflow look like?
&Truth markets the shift as a move from vibe-coding to "veri-coding" — the verification layer lives inside the workflow. "You can still say, 'hey, I want you to build this,'" Barrett said. "The agent can go under the hood, collaborate with the formal tool, and essentially what you'll see is almost no difference except your code will work the first time."
The developer's job then tilts toward writing specifications and reviewing proofs rather than reviewing code. As Cognition dev rel Nader Dabit's circulating post on "outcome engineering" suggests, when agents build whatever you describe, the human's remaining task is checking what arrives. Formal verification wants that job.
slopmanifesto.com (Original)
More from James Calloway
Show full bio
Correspondent covering people, launches and day-to-day practice in AI-coding movement at Vibe Coder.
24 articles