Opus 5.5 formally verifies Claude Agent SDK in Lean, yields 16 bug-fix PRs

blaizedsouza · x · 2026-09-23

Developer bcherny shares how he used Opus 5.5 to formally verify the Claude Agent SDK with Lean: a couple of short prompts produced 16 PRs fixing bugs and race conditions. He says he barely knows Lean or TLA+, but Claude excels at both, and he sometimes combines the two to check data flow, concurrency, and state management.

His core claim, echoed by Dominik Tornow: formal methods will be a cornerstone of agentic coding, with one rule — the agent can write the proofs, but you state the theorems. This setup catches defects a human reviewer would likely miss.

Related event: Claude Opus 5.5 + Lean Formal Verification of Agent SDK Yields 16 Bug-Fix PRs(19 posts)→

Original post →

More from coding & agent

coding & agent channel →