🤖 AI Summary
This study addresses the suboptimality in planning caused by the lack of admissibility guarantees in heuristic functions generated by large language models (LLMs). To overcome this limitation, this work proposes the first optimal planning system that integrates LLM-generated heuristics with machine-verified proofs. The method employs an LLM-driven agent to iteratively refine domain-specific heuristics alongside their corresponding proofs, pioneering the translation of natural language reasoning into Lean 4 formal verification code to automate admissibility checking and ensure search optimality. Experimental results demonstrate that the proposed system successfully generates verifiable heuristics across multiple International Planning Competition domains. Furthermore, it outperforms the Scorpion planner by expanding fewer states while solving a greater number of planning tasks.
📝 Abstract
Frontier large language models (LLMs) can generate heuristic functions that guide search to achieve state-of-the-art performance in satisficing planning, where any plan is acceptable. However, these heuristics are not guaranteed to be admissible and can lead to suboptimal plans. We introduce LeanPlan, the first planning system that finds optimal plans with LLM-generated heuristics whose admissibility is machine-checked. Given a domain description and training tasks, an agentic loop uses planner feedback to iteratively improve a reusable domain-specific heuristic, its admissibility proof and the required domain assumptions. LeanPlan implements the heuristic, its proof and an efficient planner with machine-checked grounding and search in Lean 4. We evaluate LeanPlan on ten domains from the International Planning Competition and three new domains, using test tasks with up to 57 times as many objects as the training tasks. With GPT-5.6 Sol in the agentic loop, we successfully generate heuristics and admissibility proofs for all these domains. With the resulting heuristics, LeanPlan usually expands fewer states than the state-of-the-art Scorpion planner and solves more tasks overall.