跳到正文
原文
The Decoder· Matthias Bastian·· 2 小时前精选AI 评分79

Anthropic 用 Claude 自动验证现有代码的正确性

Anthropic's Claude now writes code and proves it safe automatically

AI 导读

Anthropic 与 Theorem 让 Claude 为 123 个开源库生成约 1.8 亿行形式化证明代码,并通过 Rocq 自动检查。Claude 在验证过程中发现数百个缺陷,其中包括一个潜伏十余年的逻辑错误;但证明仅适用于特定处理器架构、单线程程序和低于 64 MB 的输入,单次证明最高消耗数亿 tokens,且正式验证不等于完全无错误。

推荐理由

实验展示了 Claude 自动生成形式化证明并发现隐蔽缺陷的方式,也明确了验证范围与计算成本限制。

来源:The Decoder · the-decoder.com