Case study: solving P-99 with LPTP and an LLM
Fred MesnardThierry MarianneÉtienne PayetWim Vanhoof
Fred Mesnard
Thierry Marianne
Étienne Payet
Wim Vanhoof
+4
This paper experiments with solving the first 33 problems of the Ninety-Nine Prolog Problems (P-99) by having an LLM (Claude) generate Prolog code, tests, and formal proofs. The LLM produced 58 logic procedures, 508 tests, 257 lemmas, and 11,800 proof lines. Automatic testing and formal verification with LPTP (Logic Program Theorem Prover) were used to check types, groundness, termination, uniqueness, existence, and sometimes functional correctness. All generated files were manually inspected. The authors describe the approach in enough detail to be reproducible.

arXiv ·
· July 23, 2026