Case study: proving sqrt(2) irrational with LPTP and an LLM
Abstract
We present the interactions with an LLM (Large Language Model) aiming at proving that the square root of 2 is not a rational number in an LP (Logic Programming) context. We start from a few basic pure logic programming predicate definitions. We rely on the LPTP (Logic Program Theorem Prover) system for stating and proving properties about logic programs. As the proof language of LPTP is based on natural deduction, the proofs are human readable. In our case study, we sketch in LPTP the usual proof showing the irrationality of the square root of 2. Then we describe the interactions we had with the LLM. We end up with a complete formal proof, partially generated by an LLM and fully proof-checked by LPTP.
Create a lesson
Metadata
- Categories
- cs.LO, cs.AI, cs.SC
- Journal
- EPTCS 450, 2026, pp. 67-80
- Comments
- In Proceedings ICLP 2026, arXiv:2607.17707
Related papers
Case study: solving P-99 with LPTP and an LLM
Shared title terminologycs.LOFred Mesnard, Thierry Marianne, Étienne Payet et al.
Hereditary permutations for simple types revisited: A baby case for University Algebra
Shared title terminologycs.LOThorsten Altenkirch
Isabelle Pool Server: a pooled verification service for prover training and multi-agent proving
Shared title terminologycs.LOXuanwei Ren, Wenda Li
Apply All, Prove Once: Embedding Parameterized Lemmas in DRAT
Shared title terminologycs.LORandal E. Bryant, Zachary Battleman, Marijn J. H. Heule
DAPS: Dependency-Aware Premise Selection for LLM Theorem Proving
Shared title terminologycs.LOZixuan Chen, Wenyuan Jiang, Junling Wang et al.
CircuitProver: Agentic Lean 4 Theorem Proving with Reusable Circuit Proof Library for Hardware Verification
Shared title terminologycs.LOZiyi Yang, Wenji Fang, Chen Chen et al.