用 Codex CLI 与 Qwen 对 Lean 4 证明做验证式重构
Verified Proof Refactoring with Codex and Qwen
AI 导读
一项 arXiv 研究用本地部署的 Qwen 模型结合开源 Codex CLI 重构现有 Lean 4 证明,在保持定理陈述不变的前提下缩短源码并降低检查成本。系统在 Lean Refactor Arena 的 60 道题上取得 82.07 的平均综合分,CPU 确定性清理后升至 82.18,最终证明通过全部 127 项证明-版本检查,并在 VeriCodeGen 的开源 LLM 赛道获得第一名。
正文 · 原文
Abstract:We refactor existing Lean 4 proofs to reduce source length and checking cost while preserving theorem statements and compatibility across Lean versions. A locally served Qwen model uses the open-source Codex CLI to inspect source, retrieve declarations, and test proof replacements. The host keeps a replacement only if it improves the objective and Lean accepts it on every required version. A deterministic CPU pass then refines the verified proofs. On the 60 problems in Lean Refactor Arena, model search achieves a local mean combined score of 82.07, and cleanup raises it to 82.18. The final proofs pass all 127 required proof--version checks. Our system placed first in the open-source LLM track of Lean Refactor Arena at VeriCodeGen.
| Comments: | 9 pages, 1 figure |
| Subjects: | Artificial Intelligence (cs.AI) |
| Cite as: | arXiv:2611.31762 [cs.AI] |
| (or arXiv:2611.31762v1 [cs.AI] for this version) | |
| https://doi.org/10.48550/arXiv.2611.31762 arXiv-issued DOI via DataCite (pending registration) |
Submission history
From: Lazar Milikic [view email]
[v1]
Tue, 24 Nov 2026 01:06:35 UTC (17 KB)
来源:arXiv cs.AI · arxiv.org