Magic Sets for the Bottom-Up Evaluation of Finitely Recursive Programs

被引:3
|
作者
Calimeri, Francesco [1 ]
Cozza, Susanna [1 ]
Ianni, Giovambattista [1 ]
Leone, Nicola [1 ]
机构
[1] Univ Calabria, Dept Math, I-87036 Arcavacata Di Rende, CS, Italy
关键词
LOGIC PROGRAMS; TERMINATION;
D O I
10.1007/978-3-642-04238-6_9
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
The support for function symbols in logic programming under answer set semantics allows to overcome some modeling limitations of traditional Answer Set Programming (ASP) systems, Such as the inability of handling infinite domains. On the other hand, admitting function symbols in ASP makes inference undecidable in the general case. Lately. the research community is focusing on finding proper subclasses for which decidability of inference is guaranteed. The two major proposals, so far, are finitary programs and finitely-ground programs. These two proposals are somehow complementary: indeed, the former is conceived to allow decidable querying (by means of a top-down evaluation strategy), while file latter supports the computability of answer-sets (by means of a bottom-up evaluation strategy). One of the main advantages of finitely-ground programs is that they can be "directly" evaluated by Current ASP systems, which are based on a bottom-up computational model. However, there are also some interesting programs which are suitable for top-down query evaluation; but do not fall in the class of finitely-ground programs. In this paper, we focus on disjunctive finitely-recursive Positive (DFRP) programs. We present a proper adaptation of the magic-sets technique for DFRP programs, which ensures query equivalence under both brave and cautious reasoning. We show that, if the input program is DFRP, then its magic-set rewriting is guaranteed to be finitely ground. Thus, reasoning oil DFRP programs turns Out to be decidable, and we provide an effective method for its computation on the ASP system DLV.
引用
收藏
页码:71 / 86
页数:16
相关论文
共 50 条
  • [11] Pipelined Bottom-Up Evaluation of Datalog Programs: The Push Method
    Brass, Stefan
    Stephan, Heike
    PERSPECTIVES OF SYSTEM INFORMATICS, PSI 2017, 2018, 10742 : 43 - 58
  • [12] Bottom-up specialisation of logic programs
    Vanhoof, W
    De Schreye, D
    Martens, B
    LOGIC-BASED PROGRAM SYNTHESIS AND TRANSFORMATION, 1999, 1559 : 325 - 327
  • [13] Dynamic Magic Sets for Programs with Monotone Recursive Aggregates
    Alviano, Mario
    Greco, Gianluigi
    Leone, Nicola
    LOGIC PROGRAMMING AND NONMONOTONIC REASONING, 2011, 6645 : 148 - 160
  • [14] On finitely recursive programs
    Baselice, Sabrina
    Bonatti, Piero A.
    Criscuolo, Giovanni
    THEORY AND PRACTICE OF LOGIC PROGRAMMING, 2009, 9 : 213 - 238
  • [15] On finitely recursive programs
    Baselice, S.
    Bonatti, P. A.
    Criscuolo, G.
    LOGIC PROGRAMMING, PROCEEDINGS, 2007, 4670 : 89 - +
  • [16] Checking termination of bottom-up evaluation of logic programs with function symbols
    Calautti, Marco
    Greco, Sergio
    Spezzano, Francesca
    Trubitsyna, Irina
    THEORY AND PRACTICE OF LOGIC PROGRAMMING, 2015, 15 : 854 - 889
  • [17] BOTTOM-UP ABSTRACT INTERPRETATION OF LOGIC PROGRAMS
    CODISH, M
    DAMS, D
    YARDENI, E
    THEORETICAL COMPUTER SCIENCE, 1994, 124 (01) : 93 - 125
  • [18] Bottom-Up Approach to Understand Functional Programs
    Villavicencio, Gustavo
    PROCEEDINGS OF THE FOURTH INTERNATIONAL C* CONFERENCE ON COMPUTER SCIENCE AND SOFTWARE ENGINEERING 2011 (C3S2E '11), 2011, : 111 - 120
  • [19] A framework for goal-directed bottom-up evaluation of functional logic programs
    Almendros-Jiménez, JM
    Becerra-Terón, A
    FUNCTIONAL AND LOGIC PROGRAMMING, PROCEEDINGS, 2001, 2024 : 153 - 169
  • [20] GENERALIZED BOTTOM-UP QUERY EVALUATION
    BRASS, S
    LIPECK, UW
    LECTURE NOTES IN COMPUTER SCIENCE, 1992, 580 : 88 - 103