Claude + Lean formally verifies Agent SDK: a few prompts yield 16 bug-fix PRs

shyamalanadkat · x · 2026-09-23

Meta engineer bcherny used Opus 5.5 with Lean to formally verify the Claude Agent SDK — a couple of short prompts produced 16 PRs fixing bugs and race conditions, with a demo video attached. He notes TLA+ also works well and sometimes combines the two to probe data flow, concurrency, and state management, adding that he doesn't know either language well himself but Claude excels at both.

The reblogger argues formal verification is the future of coding: the historical bottleneck — humans tediously specifying intent in languages like Lean — has been removed by frontier models.

Related event: Anthropic dev uses Opus 5.5 with Lean to formally verify Agent SDK, yielding 16 bug-fix PRs(12 posts)→

Original post →

More from coding & agent

coding & agent channel →