Boris Cherny· @bcherny · X·· 2026-09-24AI 评分42
AI 导读
给形式化方法圈的朋友补充些细节——实际发生的是 Claude 在做类似这样的事: 1. 构建程序模型,针对棘手的状态机或代码中易出现竞态的部分 2. 在模型中寻找反例。这些就是疑似 bug 3. 复现这些 bug 4. 在代码中修复这些 bug 并不是整个代码库都被形式化验证了(还早着呢!..),更像是代码中最棘手的部分被建模、检查反例并修复。
正文
More details for the formal methods people -- what's happening is Claude is doing something like:
- Building a model of the program, targeting a tricky state machine or race-prone part of the code
- Finding counter-examples in the model. These are suspected bugs
- Reproducing the bugs
- Fixing the bugs in the code
It's not that the whole codebase is formally verified (yet!..), more that the hairiest parts of the code are modeled, checked for counter-examples, and fixed.
来源:Boris Cherny · x.com