编译器引导的自适应证明搜索:基于跨模型协同的上下文相关定理证明 Compiler-Guided Adaptive Proof Search with Cross-Model Synergy on Context-Dependent Theorem Proving 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-06-04
⬇️ 3 次下载
👁️ 预览文献
💡 AI 中文简介
在真实的Lean 4项目中,定理证明常依赖项目特定上下文,失败证明的复用需要精细控制。本文提出编译器引导的证明搜索框架,通过双模型生成和停滞触发重采样探索多样起点,并利用编译器成对比较引导的当前最优精炼来利用有希望的证明状态。在miniCTX-v2的七个真实项目上,该方法在pass@32预算内平均通过率提升12.8个百分点,同时减少21.9%的大模型调用。
领域人工智能/自动定理证明
适合谁读需要一定专业背景(了解定理证明、大语言模型和Lean 4)
核心贡献提出编译器引导的自适应证明搜索框架,平衡探索与利用;设计双模型生成与停滞触发重采样机制,以及基于编译器成对比较的当前最优精炼策略。
关键数据在miniCTX-v2的七个真实Lean 4项目上,pass@32预算内平均通过率提升12.8个百分点,LLM调用减少21.9%。
推荐理由如果你关注大模型与形式化验证的结合,这篇工作用编译器反馈巧妙平衡探索与利用,在真实项目上显著提升效率,值得一读。
关键词["定理证明", "Lean 4", "编译器引导", "证明搜索", "跨模型协同", "自适应探索"]

原文摘要

查看英文原文摘要

Theorem proving in real-world Lean 4 projects is challenging because proofs often depend on project-specific context. While iterative refinement can use compiler errors to repair failed proofs, reusing failed attempts requires careful search control: some proofs provide better starting points than others, and later revisions may degrade a partially correct proof. We propose a compiler-guided proof search framework that balances exploration and exploitation. It explores diverse starting points through dual-model generation and stagnation-triggered resampling, while exploiting promising proof states through current-best refinement guided by compiler-grounded pairwise comparison. Experiments on seven real-world Lean 4 projects from miniCTX-v2 show that our method achieves a better effectiveness--efficiency tradeoff than pass@k baselines. Within the pass@32 budget, our method improves average pass rate by 12.8 percentage points while reducing LLM calls by 21.9%.