跳到正文
Boris Cherny· @bcherny · X·· 2 小时前AI 评分53
AI 导读

Boris Cherny 引用一条使用案例并公开自己的实际提示词链接。被引内容称,作者用 Opus 5.5 以 Lean 形式化验证 Claude Agent SDK,几个简短提示词产出了 16 个修复 bug 和竞态条件的 PR,并可结合 TLA+ 排查数据流、并发和状态管理问题,链接 https://x.com/bcherny/status/2102543349102338309?s=20。

正文
引用Boris Cherny@bcherny
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 查看被引用的帖子

来源:Boris Cherny · x.com