从编译器反馈中学习修复Lean证明
Learning to Repair Lean Proofs from Compiler Feedback
AI总结:
本文研究了将Lean证明修复作为监督学习问题,提出APRIL数据集,通过系统生成的证明错误与编译器诊断配对,提升修复准确性和反馈条件推理能力。
摘要:
随着神经定理证明器越来越具有智能,解读和响应编译器反馈的能力至关重要。然而,现有的Lean数据集几乎全部由正确证明组成,为理解并修复失败提供很少的监督。我们研究Lean证明修复作为监督学习问题:给定一个错误的证明和编译器反馈,预测一个纠正的证明和基于相同反馈的自然语言诊断。我们引入APRIL(在Lean中自动证明修复),一个包含260,000个监督元组的数据集,系统生成的证明错误与编译器诊断以及对齐的修复和解释目标配对。在APRIL上训练语言模型显著提高了修复准确性和反馈条件推理;在我们的单次修复评估设置中,微调的4B参数模型优于最强的开源基线。我们将基于诊断的监督视为反馈使用证明器的互补训练信号。我们的数据集可在https://huggingface.co/datasets/uw-math-ai/APRIL获取。
英文摘要:
As neural theorem provers become increasingly agentic, the ability to interpret and act on compiler feedback is critical. However, existing Lean datasets consist almost exclusively of correct proofs, offering little supervision for understanding and repairing failures. We study Lean proof repair as a supervised learning problem: given an erroneous proof and compiler feedback, predict both a corrected proof and a natural-language diagnosis grounded in the same feedback. We introduce APRIL (Automated Proof Repair in Lean), a dataset of 260,000 supervised tuples pairing systematically generated proof failures with compiler diagnostics and aligned repair and explanation targets. Training language models on APRIL substantially improves repair accuracy and feedback-conditioned reasoning; in our single-shot repair evaluation setting, a finetuned 4B-parameter model outperforms the strongest open-source baseline. We view diagnostic-conditioned supervision as a complementary training signal for feedback-using provers. Our dataset is available at https://huggingface.co/datasets/uw-math-ai/APRIL.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。