LeanPlan: Optimal Planning with LLM-Generated Heuristics and Admissibility Proofs
Organizations: Federal University of Rio Grande do Sul Brazil · University of Oxford United Kingdom · University of Aberdeen United Kingdom · Linköping University Sweden
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.
Figures & tables
| Blind | with heuristics | ||||||
| Scorpion | Scorpion | ||||||
| Domain | Scorpion | LeanPlan | LM-cut | SCP | LeanPlan | ||
| IPC 2023 | Blocksworld | 6 | 6 | 11 | 11 | 20 | |
| Childsnack | 9 | 9 | 9 | 9 | 16 | ||
| Ferry | 10 | 10 | 18 | 19 | 29 | ||
| Floortile | 10 | 10 | 20 | 20 | 20 | ||
Appendix figures & tables2 assets
Supplementary material from the paper’s appendix.
Appendix
| Domain | Bound composition |
|---|---|
| Blocksworld | Maximum of unmet-clear count and required grab/place count, with held-block corrections and two actions per forced detour. |
| Childsnack | Unserved goal children, tray-loading shortfall, sandwich-making shortfall and necessary tray moves. Shortfalls account for gluten-free demand and existing sandwiches. |
| Ferry | Unmet car goals: three actions per nonaboard car or one or two per carried car, plus the maximum of repositioning and waiting-location corrections. |
| Floortile | Unmet painted goals, color changes and the maximum of farthest painting-position distance, half the unattended-tile count rounded up and distinct forced painting squares without a robot. Color changes cover missing colors and, with one robot, the color order forced within a column. A reachability test also detects dead ends. |
| Miconic | Boarding and leaving counts plus distinct required floors other than the current lift floor. |
| Rovers | Communication, sampling, imaging, calibration-shortfall and empty-store-shortfall counts, plus the maximum of travel and unoccupied required-waypoint counts. |