arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2601.04653cs.AIcs.LO
收藏

Vibe 编码一个基于 LLM 的定理推理论证系统

Vibe Coding an LLM-powered Theorem Prover

Griffith University(格里菲斯大学)

Zhe Hou

AI总结:

Isabellm是一个基于LLM的定理推理论证系统,通过结合分步推证器和证明计划器,实现自动证明合成,并展示了LLM在复杂证明任务中的潜力与挑战。

摘要:

我们介绍了Isabellm,这是一个基于LLM的Isabelle/HOL定理推理论证系统,能够实现完全自动的证明合成。Isabellm可以与任何本地LLM在Ollama和Gemini CLI等API上运行,并且设计为可以在消费级计算机上运行。该系统结合了一个分步推证器,它使用大语言模型提出证明命令,由Isabelle进行验证,在有限的搜索循环中进行验证;同时还有一个更高层次的证明计划器,生成结构化的Isar草稿,并尝试填补和修复剩余的空白。该框架包括用于战术的束搜索、战术重排的ML和RL模型、使用小Transformer模型进行前提选择、基于AFP构建的Isar证明的微RAG,以及反例引导的证明修复。所有代码均由GPT 4.1-5.2、Gemini 3 Pro和Claude 4.5实现。实证结果表明,Isabellm能够证明某些击败Isabelle标准自动化的引理,包括Sledgehammer,展示了LLM引导的证明搜索的实用价值。同时,我们发现即使是最先进的LLM,如GPT 5.2 Extended Thinking和Gemini 3 Pro,在复杂算法设计中也难以可靠地实现预期的填补和修复机制,突显了LLM代码生成和推理中的根本性挑战。Isabellm的代码可在https://github.com/zhehou/llm-isabelle上获得。

英文摘要:

We present Isabellm, an LLM-powered theorem prover for Isabelle/HOL that performs fully automatic proof synthesis. Isabellm works with any local LLM on Ollama and APIs such as Gemini CLI, and it is designed to run on consumer grade computers. The system combines a stepwise prover, which uses large language models to propose proof commands validated by Isabelle in a bounded search loop, with a higher-level proof planner that generates structured Isar outlines and attempts to fill and repair remaining gaps. The framework includes beam search for tactics, tactics reranker ML and RL models, premise selection with small transformer models, micro-RAG for Isar proofs built from AFP, and counter-example guided proof repair. All the code is implemented by GPT 4.1 - 5.2, Gemini 3 Pro, and Claude 4.5. Empirically, Isabellm can prove certain lemmas that defeat Isabelle's standard automation, including Sledgehammer, demonstrating the practical value of LLM-guided proof search. At the same time, we find that even state-of-the-art LLMs, such as GPT 5.2 Extended Thinking and Gemini 3 Pro struggle to reliably implement the intended fill-and-repair mechanisms with complex algorithmic designs, highlighting fundamental challenges in LLM code generation and reasoning. The code of Isabellm is available at https://github.com/zhehou/llm-isabelle

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑