arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.21167cs.PLcs.LO
收藏

AI辅助完成CertiGC证明:经验报告

AI-Assisted Completion of CertiGC Proofs: An Experience Report

Shanghai Qi Zhi Institute(上海人工智能实验室)

Shengyi Wang

AI总结:

本文报告使用Codex辅助完成CertiGC垃圾收集器证明的经验,通过引入记录后向边不变量修复证明,并审计清理了过时条件。

摘要:

本经验报告描述了使用Codex辅助完成并稳定CertiGC(CertiGraph项目中经过验证的分代垃圾收集器)的大量Rocq(原Coq)证明开发的过程。该开发将收集器从有效的不可变设置扩展到可变设置,通过向收集路径添加记录集转发并重新建立顶层图同构正确性定理。核心技术问题不仅仅是低层证明脚本:可变更新使旧的全局无后向边假设失效,因此证明必须围绕一个记录后向边不变量重新组织,该不变量规定每条后向边都记录在适当的记录集组件中。本案例不同于近期AI辅助形式化证明的报道:它不是改编邻近的编译器证明架构或新的元理论形式化,而是完成了一个基于已验证软件工具链(VST)和CertiGraph(两者均在Rocq中机械化)的成熟代码库中的长期验证。Rocq内核仍然是正确性的仲裁者,而我们的角色转向了裁定不变量提议、约束规范变更、审查定理陈述以及决定何时进行证明清理。Codex辅助阶段首先修复了VST关系证明,然后恢复了数学图同构定理,最后才审计了从VST规范到定理的前提路径。该审计发现并移除了VST面向证明路径中一个过时的无后向边条件。本报告介绍了工作流程、生成的证明工件以及代理证明维护的经验教训。

英文摘要:

This experience report describes the Codex-assisted completion and stabilization of a substantial Rocq (formerly Coq) proof development for CertiGC, the verified generational garbage collector in the CertiGraph project. The development extends the collector from an effectively immutable setting to a mutable one by adding remembered-set forwarding to the collection path and re-establishing the top-level graph-isomorphism correctness theorem. The central technical issue was not low-level proof scripting alone: mutable updates invalidate the old global no-backward-edge assumption, so the proof had to be reorganized around a recorded-backward-edge invariant stating that every backward edge is recorded in the appropriate remembered-set component. This case differs from recent AI-assisted formal-proof accounts: unlike the adaptation of a nearby compilerproof architecture or a fresh metatheory formalization, it completes a long-running verification in a mature codebase built on the Verified Software Toolchain (VST) and CertiGraph, both mechanized in Rocq. The Rocq kernel remained the arbiter of correctness, while our role shifted toward adjudicating invariant proposals, constraining specification changes, reviewing theorem statements, and deciding when proof cleanup was justified. The Codex-assisted phase repaired the VST relation proofs first, then restored the mathematical graph-isomorphism theorem, and only then audited the premise path from the VST specification to the theorem. That audit found and removed a stale no-backward-edge condition from the VST-facing proof path. This report presents the workflow, resulting proof artifact, and lessons for agentic proof maintenance.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑