Termination Prediction for General Logic Programs
Yi-Dong Shen, Danny De Schreye, Dean Voets

TL;DR
This paper introduces a heuristic framework for predicting termination in general logic programs, providing a practical alternative to traditional proof methods and achieving high accuracy on benchmark tests.
Contribution
It proposes a novel termination prediction approach with a formal characterization and an algorithm, outperforming existing analyzers on complex benchmarks.
Findings
100% prediction accuracy on 296 benchmark programs
Outperforms state-of-the-art analyzers on difficult cases
Successfully predicts termination where proofs are not possible
Abstract
We present a heuristic framework for attacking the undecidable termination problem of logic programs, as an alternative to current termination/non-termination proof approaches. We introduce an idea of termination prediction, which predicts termination of a logic program in case that neither a termination nor a non-termination proof is applicable. We establish a necessary and sufficient characterization of infinite (generalized) SLDNF-derivations with arbitrary (concrete or moded) queries, and develop an algorithm that predicts termination of general logic programs with arbitrary non-floundering queries. We have implemented a termination prediction tool and obtained quite satisfactory experimental results. Except for five programs which break the experiment time limit, our prediction is 100% correct for all 296 benchmark programs of the Termination Competition 2007, of which eighteen…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsLogic, programming, and type systems · Logic, Reasoning, and Knowledge · Formal Methods in Verification
