arXiv cs.AI· Haotian Deng, Chris Farber, Sonal Narasimha, Samskrithi Sivakumar, Yexiang Xue·· 2026-10-21AI 评分39
修复而非仅重采样:Lean 4 中有界的编译器引导证明修复方法
Fix, Not Just Resample: Bounded Compiler-Guided Repair in Lean 4
AI 导读
论文提出一种有界的在线步级修复模块,在 Lean 4 自动定理证明中不再丢弃失败的 tactic,而是把编译器错误信息喂给预训练修复模型原位修复。该方法在 LeanDojo 基准 1,990 题子集上相对纯采样基线最多提升 32%,多解出 82 题且在 K∈{1,3,5,8} 各预算下均有效;首次修复尝试即贡献 84–96% 的总增益,并在 Lean Workbook 上近乎翻倍解题率且零回退。
正文 · 原文
Abstract:Automated theorem provers often rely on sampling language models, but proof assistants like Lean reject each failed step with a precise error message --- information that pure sampling discards. To overcome this, we introduce a bounded, online step-level repair module. Our search samples $K$ candidate tactics at each step and repairs a failed tactic at most $R$ times. Instead of discarding failed tactics, we feed the compiler's error message to a pretrained repair model to fix individual rejected steps in place. This approach improves the solve rate over a sampling-only baseline across all tested candidate budgets ($K \in \{1,3,5,8\}$), achieving up to a $32\%$ relative gain and solving $82$ additional theorems on a $1{,}990$-theorem subset of the LeanDojo benchmark. Repair is not free: it trades extra runtime for reachable proofs. But the trade is predictable: repair pays most when sampling is constrained; its return is front-loaded, with the first repair attempt capturing $84\text{--}96\%$ of the total gain; and the gain comes almost entirely from shallow tactic-execution failures rather than structural errors such as type mismatches. This targeted repair successfully replicates on a second benchmark (Lean Workbook), nearly doubling the solve rate with zero regressions.
| Subjects: | Artificial Intelligence (cs.AI) |
| Cite as: | arXiv:2610.26942 [cs.AI] |
| (or arXiv:2610.26942v1 [cs.AI] for this version) | |
| https://doi.org/10.48550/arXiv.2610.26942 arXiv-issued DOI via DataCite |
Submission history
From: Haotian Deng [view email]
[v1]
Sun, 18 Oct 2026 04:21:55 UTC (104 KB)
来源:arXiv cs.AI · arxiv.org