Reasoning about termination of pure Prolog programs (Q1308986)

From MaRDI portal
Revision as of 23:42, 19 March 2024 by Openalex240319060354 (talk | contribs) (Set OpenAlex properties.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
scientific article
Language Label Description Also known as
English
Reasoning about termination of pure Prolog programs
scientific article

    Statements

    Reasoning about termination of pure Prolog programs (English)
    0 references
    0 references
    0 references
    12 December 1993
    0 references
    Prolog is a programming language based on logic programming which uses a fixed (left to right) selection rule and the depth first search strategy to explore the resulting search trees. This restrictions introduce incompleteness (wrt the logic programming operational model) in the Prolog interpreter: a Prolog interpreter will miss a solution if all the success nodes lie to the right of an infinite path in the search tree. Therefore, the issue of termination is essential in order to apply to Prolog various completeness results linking the procedural and operational model of logic programming. The paper studies termination of (general) logic programs with the Prolog leftmost selection rule. Termination here means finiteness of all possible Prolog derivations starting in the initial goal. In particular, the class of left terminating programs is studied, i.e., the class of logic programs which are terminating for all ground goals. Left terminating programs are characterized by means of the notion of acceptable programs. This provides a practical method for proving termination. The approach is then extended to general programs by modifying the concept of acceptability. It is also shown that several different semantics coincide on acceptable general programs. The results are interesting also in relation to verification of Prolog programs. In fact the notion of acceptability provides an easy way to verify that a Herbrand interpretation is the least Herbrand model of a program. This simplifies the study of partial correctness of Prolog programs based on the least Herbrand model. Moreover, as argued by the authors, the method proposed for the ``a posteriori'' verification of termination can also provide a guideline for the development of terminating programs.
    0 references
    prolog
    0 references
    logic programming
    0 references
    interpreter
    0 references
    termination
    0 references
    acceptability
    0 references
    semantics
    0 references
    verification
    0 references
    least Herbrand model
    0 references
    partial correctness
    0 references

    Identifiers

    0 references
    0 references
    0 references
    0 references
    0 references
    0 references