Opus 5.5 Formally Verified Claude Agent SDK in Lean, Producing 16 Bug-Fix PRs

_catwu · x · 2026-09-23

Boris Cherny used Opus 5.5 to formally verify the Claude Agent SDK with Lean — a couple of short prompts yielded 16 PRs fixing bugs and race conditions. He also combines Lean with TLA+ to probe data flow, concurrency, and state management, noting Claude excels at both despite his own limited fluency. He argues formal modeling surfaces bugs humans would likely miss and asks if formal verification is the future of bug finding.

Related event: Anthropic Dev Uses Opus 5.5 and Lean to Formal-Verify Agent SDK, Yielding 16 Bug-Fix PRs(12 posts)→

Original post →

More from coding & agent

coding & agent channel →