Mechanic:基于遗憾的正式分解工作流用于自动定理证明
MechMath: Sorrifier-Driven Formal Decomposition Workflow for Automated Theorem Proving
AI总结:
Mechanic通过基于遗憾的正式分解策略提升自动定理证明效率,有效解决传统方法在处理失败尝试时的效率与上下文过长问题。
摘要:
近年来,大语言模型(LLMs)和基于LLM的代理在自动定理证明方面取得了显著进展。然而,对于需要复杂数学推理的问题,当前系统往往难以在首次尝试中成功,必须反复修改证明策略。现有方法在处理失败尝试时通常要么丢弃整个证明并从头开始生成,要么在证明中逐步修复错误。前者效率低下,因为局部错误可能导致大部分正确推理被丢弃;后者虽然保留了先前进展,但导致上下文不断延长,逐渐削弱了模型对未解决子问题的注意力能力。为了解决这一困境,我们提出Mechanic,一种新的代理系统,采用基于遗憾的正式分解策略。通过利用Lean中的遗憾占位符,可以精确隔离未解决的子目标,同时保留周围的已验证证明结构。Mechanic将每个失败的子问题提取到一个干净、自包含的上下文中,并独立解决。这避免了完整重生成的浪费以及由重复修复引起的上下文过长问题。在具有挑战性的数学竞赛基准上,包括IMO 2025和Putnam 2025,实验结果表明,我们的代理在证明效率上取得了显著优势。
英文摘要:
Recent advances in large language models (LLMs) and LLM-based agents have substantially improved the capabilities of automated theorem proving. However, for problems that require complex mathematical reasoning, current systems seldom succeed in their initial attempt, necessitating iterative adjustments to their proof strategies. Existing approaches for handling failed attempts typically either iteratively fix errors within the proof or discard the entire proof and regenerate it from scratch. The former leads to progressively longer contexts, which degrade the model's ability to attend to the remaining unresolved subproblems, while the latter is inefficient, as it may abandon mostly correct reasoning due to localized errors. To address this dilemma, we present MechMath, an agent system centered on a Sorrifier-driven formal decomposition paradigm. By leveraging the sorry placeholder in Lean to precisely isolate unresolved subgoals while preserving the surrounding verified proof structure, MechMath extracts each failed subproblem into a clean, self-contained context and resolves it independently. This avoids both the waste of full regeneration and the excessive context length induced by repeated repairs. Experimental results on challenging mathematical competition benchmarks, including IMO 2025, Putnam 2025, miniF2F, and a subset of ProverBench, demonstrate that our agent achieves significant advantages in proving efficiency.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。