The War Against Slop and an Emerging Weapon to Fight it: Formal Verification
Podcast episode · Latent Space ·A close reading of the source at latent.space: what it says, what it means for someone who builds with AI, and which claims are the publisher’s own.
Formal VerificationAI SlopAI & CybersecurityEvalsAI for MathAnthropicAmazon / AWSCognition (Devin, Windsurf)
Key claims (who said them)
- Clark Barrett, co-founder and co-CEO of &Truth, Corbel Professor at Stanford, co-creator of the cvc5 solver: cvc5 "is now called billions of times a day in production pipelines at Amazon", for example for specification analysis and test generation in Amazon's Kiro (article).
- Barrett on testing versus proof: tests, patches and scanners find many problems, but "you're never quite sure" you found them all. The difference is knowing when you are done (article).
- Barrett on Lean: it "just checks that you didn't make a mistake", a very sophisticated checker for mathematics. &Truth builds a "verification machine" on Lean that aims to read code in any language and prove it meets stated requirements (article).
- Barrett on security: a key use is going through all the C code in the world (open or closed source) and checking it is memory safe, then pointing at the broken spots. Its first tool, &Atlas, is a map of open-source C code (article).
- Barrett on workflow: with a verification tool wired to the coding agent, you still say what to build, spend some effort pinning down the spec, and the agent works with the prover "under the hood", so code "will work the first time". &Truth calls this "veri-coding" instead of vibe-coding, with more time on specs and review than on code (article).
- Anthropic and Theorem blog post (as summarized by the article): LLMs are making formal verification feasible at larger scale. On 36 small verification tasks, Opus 5.5 hit a 50% solve rate using about 40% fewer tokens than Opus 5. The article says verification is token-expensive but getting cheaper (article).
- Carina Hong, CEO of Axiom Math (quoted from a June interview): verified AI is "not just about" catching hallucinations; "it's about scaling brilliance". Axiom uses proofs as correctness feedback for training (article).
- Harmonic (website quote): in its Aristotle prover the AI writes proofs and Lean checks every step, so a result never rests on the AI being right. Theorem (website quote): "Verification is the only defense that holds while adversaries scale".
- Reported news the article repeats, not verified here: Vals says GPT-6.2 Astra produced the first Lean proof of Smoktunowicz's Gap Theorem; Anthropic formalized Fermat's Last Theorem (13 million lines of Lean); and Anthropic's Levent Alpoge claims to have proved the Riemann hypothesis with Claude, posted in Lean. These are second-hand and large claims; treat them as unconfirmed.
- Closing framing by the author: as agents build whatever you ask, you need a way to check outcomes; the article cites Cognition's Nader Dabit on "outcome engineering".
Caveat: Barrett is selling a product, and the competitors quoted are also vendors. No evaluation of &Truth itself is shown.
What to try
- Pick one critical function (parsing, bounds checks) and write its spec as an explicit statement; ask an agent to prove it in Lean or check it with an SMT solver such as cvc5, and compare the effort to writing tests.
- When an agent says it "verified" something, separate what ran (tests, a model critique) from what was proved, as Barrett does.
- Track the cost per verified result in tokens; the Anthropic/Theorem figure (40% fewer tokens for the same 50% solve rate) is one you can recreate on your own tasks.
Concepts touched
- Formal Verification: proof checkers (Lean, SMT solvers) as ground truth for AI-written code.
- AI Slop: low-quality generated code is the problem verification is pitched against.
- AI & Cybersecurity: memory-safety proofs for C code at scale.
- Evals: Theorem's proof-efficiency eval (kilobytes of machine code verified per hour) as a measure.
- AI for Math: Lean proofs by frontier models, and verified proofs as training feedback.