aiVIDEO
用 Lean 形式化验证 Claude Agent SDK
作者用 Opus 5.5 配合 Lean 和 TLA+ 形式化验证 Agent SDK,几段提示词换来 16 个修复 bug 与竞态的 PR。
Boris Cherny
@bcherny2026.09.24收录原推发布于 2026.09.23
Boris Cherny @bcherny原推发布于 2026.09.23
I used Opus 5.5 to formally verify the Claude Agent SDK using Lean. A couple short prompts = 16 PRs fixing various bugs and race conditions. Video attached. TLA+ also works well. I sometimes combine Lean and TLA+ to look for issues around data flow, concurrency, and state mgmt. I don't know either language well, but Claude is excellent at both. This approach is super useful for formally modeling your code and finding bugs that a human probably wouldn't have spotted. Is formal verification the future of coding (or at least, bug finding)?
x.com/bcherny/status/2102543349102338309采集于 2026.09.24 11:05