Prediction: AI will make formal verification go mainstream

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story. The source provided limited text, so this summary is brief.

Why it matters

If this prediction holds, programmers verifying AI-generated code with formal tools like Dafny and Verus could become standard practice rather than a niche academic specialty.

Read this as

Martin Kleppmann predicts that formal verification, mathematically proving that code is correct using special languages, will become widely used. This has historically been too hard for most programmers, but AI assistants now make writing these proofs easier. Meanwhile, AI-generated code itself needs stronger correctness guarantees. JetBrains Research found in March 2025 that Claude 3.5 Sonnet showed promising results with three such languages.

Kleppmann argues AI coding assistants and formal verification tools reinforce each other: LLM-generated code needs rigorous correctness checks, and LLMs lower the historically steep learning curve of proof-writing languages. JetBrains Research's March 2025 paper tested Claude 3.5 Sonnet on Dafny, Nagini and Verus with promising results. Companies relying on AI-written code in safety-critical domains are the audience.

Kleppmann's post (December 8, 2025) predicts mainstream adoption of formal verification languages, citing Dafny, Nagini and Verus. The supporting evidence is JetBrains Research's March 2025 arXiv paper 'Can LLMs Enable Verification in Mainstream Programming?', which reported promising results for Claude 3.5 Sonnet across those three languages. No benchmark scores, adoption metrics or limitations are given in the blog post itself.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

Dafny Nagini Verus Claude 3.5 Sonnet JetBrains Research

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading