Provably Complete Generalized Planning with LLMs
Organizations: Saarland Informatics Campus, Saarland University, Saarbrücken, Germany · German Research Center for Artificial Intelligence (DFKI), Saarbrücken, Germany
Abstract
Generalized planning aims to compute a plan that solves all instances of a planning domain. Recent work has used LLMs to automatically generate and debug such generalized plans in the form of Python programs and achieved perfect test data coverage for several domains. However, whether these generalized plans are actually complete, i.e. solve all instances of the domain, could only be determined by manual evaluation. Here, we present an approach for automatically generating generalized plans in Lean together with proofs of their completeness relative to a specification of the domain constraints provided as input. We introduce a semantic-preserving PDDL-to-Lean conversion, and use an LLM to generate both the generalized plan and the formal proof that it solves every instance satisfying the domain constraints. The correctness of the completeness proof is determined by Lean's kernel. We evaluate our approach on 13 commonly used benchmark domains, using GPT-5.6-Sol as the LLM. For 12 of the domains we obtain generalized plans together with valid completeness proofs. This is a major advancement of the state of the art in automatic generalized-plan completeness proofs.
Figures & tables
| Domain | N interactions | Time | ||||
|---|---|---|---|---|---|---|
| GP | Prf. | Decl. | GP | Prf. | total | |
| Basic proof generation | ||||||
| Delivery | 1 | 3 | – | 121 | 671 | 792 |
| Ferry | 2 | 3 | – | 104 | 586 | 690 |
| Grippers | 2 | 3 | – | 119 | 661 | 780 |
| Heavy | 1 | 3 | – | 36 | 495 | 531 |
| Domain | N decl. GP | N decl. Prf. | ||
|---|---|---|---|---|
| given | LLM | given | LLM | |
| Basic proof generation | ||||
| Delivery | 56 | 3 | 92 | 15 |
| Ferry | 45 | 7 | 83 | 7 |
| Grippers | 51 | 9 | 102 | 23 |
| Heavy | 47 | 5 | 76 | 9 |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
| Domain | Source of debugging problems | Instance Generator |
|---|---|---|
| delivery | Silver et al. (2024) | |
| ferry | IPC Learning track 2023 ( Taitler et al. 2024 ) | |
| heavy | Silver et al. (2024) | |
| hiking | Silver et al. (2024) | |
| miconic | Silver et al. (2024) | |
| spanner | IPC Learning track 2023 ( Taitler et al. 2024 ) | |
LLM Planning
Large language model planning studies how models decompose goals, choose actions, and revise plans under constraints.
See all 142 papers