Creative Commons Attribution 4.0 International license
Termination - proving there are no inputs on which a function runs forever - is one of the most fundamental problems in software verification, and competitions comparing termination analysis tools have run for over twenty years. We integrate two state-of-the-art, open-weight LLMs with a theorem prover’s built-in automation to generate termination proofs, solving 39% more problems than the best LLM alone and more than tripling the number solved by the built-in analysis on our benchmark. This is the first, to our knowledge, integration of an LLM with a termination-analysis algorithm, and is generalizable to any theorem prover based on a functional language. Our design is informed by nine ablations considering what theorem-prover feedback helps the LLM and four experiments on how the model decomposes problems.
@InProceedings{medley_et_al:LIPIcs.ITP.2026.22,
author = {Medley, Zeke and Manolios, Panagiotis},
title = {{Feedback \& Synthesis in LLM-Assisted Termination Proofs}},
booktitle = {17th International Conference on Interactive Theorem Proving (ITP 2026)},
pages = {22:1--22:19},
series = {Leibniz International Proceedings in Informatics (LIPIcs)},
ISBN = {978-3-95977-436-9},
ISSN = {1868-8969},
year = {2026},
volume = {382},
editor = {Komendantskaya, Ekaterina and Nipkow, Tobias},
publisher = {Schloss Dagstuhl -- Leibniz-Zentrum f{\"u}r Informatik},
address = {Dagstuhl, Germany},
URL = {https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.ITP.2026.22},
URN = {urn:nbn:de:0030-drops-269965},
doi = {10.4230/LIPIcs.ITP.2026.22},
annote = {Keywords: termination analysis, theorem proving, large language models, ACL2}
}
archived version
archived version