• DocumentCode
    1996212
  • Title

    The declarative semantics of the Prolog selection rule

  • Author

    Stärk, Robert F.

  • Author_Institution
    Math. Inst., Munchen Univ., Germany
  • fYear
    1994
  • fDate
    4-7 Jul 1994
  • Firstpage
    252
  • Lastpage
    261
  • Abstract
    We axiomatize the Prolog selection rule which always selects the leftmost literal in a goal. We introduce a new completion of a logic program which we call the l-completion of the program. The l-completion is formulated as a first-order theory in a language extended by new predicate symbols which express success, failure and left-termination of queries. The main results of the paper are the following. If a query succeeds, fails or is left-terminating under the Prolog selection rule, then the corresponding formula in the extended language is provable from the l-completion. Conversely, if a logic program and a query are correct with respect to some mode assignment and if one can prove in the l-completion that the query succeeds and is left-terminating, then the goal is successful and Prolog, using its depth first search, will compute an answer substitution for the goal. This result can even be extended to so called non-floundering queries
  • Keywords
    PROLOG; formal logic; logic programming; programming theory; query processing; Prolog selection rule; declarative semantics; depth first search; extended language; first-order theory; l-completion; leftmost literal; logic program; mode assignment; nonfloundering queries; predicate symbols; queries; Joining processes; Logic programming;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Logic in Computer Science, 1994. LICS '94. Proceedings., Symposium on
  • Conference_Location
    Paris
  • Print_ISBN
    0-8186-6310-3
  • Type

    conf

  • DOI
    10.1109/LICS.1994.316064
  • Filename
    316064