让AI为代码写证明:239个入口背后的适用边界
AI-written proofs come with precise boundaries.
AI说代码没问题,还不够。这次研究让AI写出一份证明,再交给专门的检查器核对;但证明只回答事先写清楚的问题,不能自动覆盖整套软件的所有风险。
An AI's assurance that code is correct is not enough. This research asks AI to produce a proof that a dedicated checker can verify. A proof, however, addresses only the question that has been precisely specified; it does not automatically cover every risk in an entire software system.
进展是交出可检查的证明
The advance is a proof that can be checked
与在10月22日公布软件研究。合作方报告,Claude为123个开源库的239个测试入口生成了可由Rocq检查的证明。测试入口是把输入交给库中特定功能的小程序,因此“覆盖某个库”并不意味着验证了整个库。这里的239是合作方报告的规模,本轮没有独立重跑证明,也不能据此计算所有尝试的成功率。
and announced research on formal software verification on October 22. The collaborators reported that Claude generated proofs checkable by Rocq for 239 test entry points across 123 open-source libraries. A test entry point is a small program that passes input to a particular function in a library, so covering a library does not mean verifying that library in its entirety. The figure of 239 is the scale reported by the collaborators. This review did not independently rerun the proofs, and the figure cannot be used to calculate the success rate across all attempts.
AI写证明,检查器核对步骤
AI writes the proof; a checker verifies the steps
普通测试通过具体输入寻找反例;则先精确定义程序和允许的行为,再检查某项性质是否在这些前提下成立。模型负责提出并撰写证明,检查器核查证明步骤。这样的分工有价值:读者可以检查证明,而不必只相信模型说“代码没问题”。但如果规格遗漏了重要风险,证明再正确也不能补上遗漏;机器语义模型和检查器本身仍属于需要信任的基础。
Conventional testing looks for counterexamples by running specific inputs. first defines the program and its permitted behavior precisely, then checks whether a particular property holds under those assumptions. The model proposes and writes the proof; the checker verifies its steps. This division of labor matters because a reader can inspect a proof rather than simply trust the model's claim that the code has no problems. But if a specification omits an important risk, even a correct proof cannot fill that gap. The model of machine semantics and the checker itself also remain part of the trusted foundation.

公开结果没有覆盖全部程序行为
The public results do not cover every program behavior
截至本次读取,公开仓库列出25个库、60个入口,是总体研究的一个子集,不能说123个库的全部证明都已公开复验。仓库还明确:这一批公开证明没有证明程序必然结束。因此不能把结果概括为“任意输入都正常退出”,更不能称为没有逻辑错误、内存泄漏或安全漏洞的完整保证。
At the time the material was read, the public repository listed 25 libraries and 60 entry points. This is a subset of the overall research, so it would be incorrect to say that proofs for all 123 libraries had been publicly reproduced. The repository also states explicitly that this collection of public proofs does not prove termination. The results therefore cannot be summarized as guaranteeing normal exit for every possible input, still less as a complete guarantee against logic errors, memory leaks or security vulnerabilities.
换了运行环境,要重新确认
A different runtime requires a new assessment
研究针对指定的RISC-V静态、单线程构建及受限Linux运行模型;输入大小与内存预算也有约束,附录的完整输入范围小于64 MiB。不能直接推广到常见x86或ARM、多线程、动态链接或未建模的系统行为。模型获准修改代码时,证明针对对应的修改后版本,也不代表补丁已经被上游项目接受。
The research concerns specified static, single-threaded RISC-V builds and a restricted model of a Linux runtime. Input size and memory use are constrained, and the full input range described in the appendix is below 64 MiB. The findings cannot be generalized directly to common x86 or ARM environments, multithreading, dynamic linking or system behavior outside the model. Where the model was permitted to modify code, the proof applies to that modified version; it does not establish that the upstream project has accepted the patch.
哪些团队可以尝试
Which teams can try it
官网目前接受合格开源项目的维护者申请免费验证,按项目审核,要求兼容的静态RISC-V构建,证明生成可能需要多天。这提供了实际申请入口,但不等于Claude推出了面向所有代码的一键通用验证服务。
's website currently accepts applications from maintainers of qualifying open-source projects for free verification, subject to project review. It requires a compatible static RISC-V build, and proof generation may take days. This is a real application route, but it does not mean that Claude has launched a universal, one-click verification service for arbitrary code.
维护解析器、压缩库等基础组件的团队,可以把它看作在现有测试之外增加可检查证据的一条路径。判断它能否进入日常开发,要看外部团队能否复验公开证明、更多真实运行环境能否获得支持,以及生成和检查证明的总成本。研究附录也指出证明可能很冗长,复杂程序还需要更好的模块化方法;本次结果不足以推算普遍成本节省或商业收益。
Teams maintaining foundational components such as parsers and compression libraries can view this as a way of adding checkable evidence alongside existing tests. Whether it can become part of everyday development will depend on external teams reproducing the public proofs, support for more real runtime environments, and the total cost of generating and checking proofs. The research appendix also notes that proofs can be very lengthy and that complex programs need better modular methods. These results do not establish general cost savings or commercial returns.
原始来源
Original sources
- Anthropic:10月22日形式验证研究Anthropic: formal-verification research published on October 22
公布:2026-10-22
所涉期间:本周原始研究披露;不是新模型发布
研究读取:2026-10-25 15:06:36+00:00Published: 2026-10-22
Scope: Original research disclosed that week; not a new model release
Read for this research: 2026-10-25 15:06:36+00:00 - Anthropic:研究附录与实验条件Anthropic: research appendix and experimental conditions
公布:2026-10-22
所涉期间:研究附录;同源补充非独立实验
研究读取:2026-10-25 15:06:37+00:00Published: 2026-10-22
Scope: Research appendix; supporting material from the same source, not an independent experiment
Read for this research: 2026-10-25 15:06:37+00:00 - Theorem:公开证明覆盖与限制Theorem: scope and limitations of the public proofs
公布:持续更新仓库,未单独确认首次上线日
所涉期间:本次读取的公开证明版本与适用范围
研究读取:2026-10-25 15:07:09+00:00Published: Continuously updated repository; the initial publication date has not been separately verified
Scope: Public proof version and scope as inspected during this source read
Read for this research: 2026-10-25 15:07:09+00:00 - Theorem:定理陈述与终止性边界Theorem: theorem statements and termination boundaries
公布:持续更新仓库,未单独确认首次上线日
所涉期间:本次读取的公开证明版本与适用范围
研究读取:2026-10-25 15:07:09+00:00Published: Continuously updated repository; the initial publication date has not been separately verified
Scope: Public proof version and scope as inspected during this source read
Read for this research: 2026-10-25 15:07:09+00:00 - Theorem:运行模型与资源条件Theorem: execution model and resource assumptions
公布:持续更新仓库,未单独确认首次上线日
所涉期间:本次读取的公开证明版本与适用范围
研究读取:2026-10-25 15:07:09+00:00Published: Continuously updated repository; the initial publication date has not been separately verified
Scope: Public proof version and scope as inspected during this source read
Read for this research: 2026-10-25 15:07:09+00:00 - Theorem:机器检查的信任基础Theorem: trust assumptions underlying machine checking
公布:持续更新仓库,未单独确认首次上线日
所涉期间:本次读取的公开证明版本与适用范围
研究读取:2026-10-25 15:07:52+00:00Published: Continuously updated repository; the initial publication date has not been separately verified
Scope: Public proof version and scope as inspected during this source read
Read for this research: 2026-10-25 15:07:52+00:00 - Theorem:OSS Verify申请范围Theorem: eligibility for OSS Verify applications
公布:持续更新页面,未单独确认首次公布日
所涉期间:本次读取时合格开源项目可申请;非通用一键服务
研究读取:2026-10-25 15:09:58+00:00Published: Continuously updated page; the initial publication date has not been separately verified
Scope: Eligible open-source projects could apply at the time of this read; not a general-purpose one-click service
Read for this research: 2026-10-25 15:09:58+00:00
研究时间Research time 2026-10-25 15:06:37+00:00