Tabled evaluation with delaying for general logic programs

作者: Weidong Chen , David S Warren , None

DOI: 10.1145/227595.227597

关键词: RecursionFirst-order logicResolution (logic)Literal (mathematical logic)Query languageSLD resolutionComputer scienceInfinite loopTheoretical computer scienceProlog

摘要: SLD resolution with negation as finite failure (SLDNF) reflects the procedural interpretation of predicate calculus a programming language and forms computational basis for Prolog systems. Despite its advantages stack-based memory management, SLDNF is often not appropriate query evaluation three reasons: (a) it may terminate due to infinite positive recursion; (b) be recursion through negation; (c) repeatedly evaluate same literal in rule body, leading unacceptable performance.We address all problems goal-oriented general logic programs by presenting tabled delaying, called SLG resolution. It has distinctive features:(i) partial deduction procedure, consisting seven fundamental transformations. A transformed step into set answers. The use transformations separates logical issues from ones. allows an arbitrary computation selecting body control strategy apply.(ii) sound search space complete respect well-founded model non-floundering queries, preserves three-valued stable models. To under differenc models, can enhanced further processing answers subgoals relevant query.(iii) avoids both negative loops always terminates bounded-term-size property. polynomial time data complexity function-free programs. Through delaying mechanism handling ground literals involved loops, repetition any derivation steps.Restricted are identified definite, locally stratified, modularly stratified programs, shedding light on role each transformation plays.

参考文章(51)
Peter J. Stuckey, David B. Kemp, Divesh Srivastava, Query Restricted Bottom-Up Evaluation of Normal Logic Programs. JICSLP. pp. 288- 302 ,(1992)
Peter J. Stuckey, David B. Kemp, Divesh Srivastava, Magic sets and bottom-up evaluation of well-founded models International Logic Programming Symposium 1991. pp. 337- 351 ,(1991)
J. W. Lloyd, Foundations of logic programming; (2nd extended ed.) Springer-Verlag New York, Inc.. ,(1987)
Weidong Chen, David Scott Warren, A Goal-Oriented Approach to Computing Well Founded Semantics. JICSLP. pp. 589- 603 ,(1992)
Hidenori Itoh, Hirohisa Seki, A Query Evaluation Method for Stratified Programs Under the Extended CWA. international conference on lightning protection. pp. 195- 211 ,(1988)
Laurent Vieille, A Database-complete Proof Procedure Based on SLD-resolution international conference on lightning protection. pp. 74- 103 ,(1987)
Henryk Jan Komorowski, Towards a programming methodology founded on partial deduction european conference on artificial intelligence. pp. 404- 409 ,(1990)
S. Sudarshan, Raghu Ramakrishnan, Divesh Srivastava, Controlling the Search in Bottom-Up Evaluation. JICSLP. pp. 273- 287 ,(1992)
Rodney W. Topor, David B. Kemp, Completeness of a Top-Down Query Evaluation Procedure for Stratified Databases. international conference on lightning protection. pp. 178- 194 ,(1988)
Teodor Przymusinski, Well-founded semantics coincides with three-valued stable semantics Fundamenta Informaticae. ,vol. 13, pp. 445- 463 ,(1990) , 10.3233/FI-1990-13404