TRANSFORMING NORMAL LOGIC PROGRAMS TO CONSTRAINT LOGIC PROGRAMS

被引:4
|
作者
KANCHANASUT, K [1 ]
STUCKEY, PJ [1 ]
机构
[1] UNIV MELBOURNE, DEPT COMP SCI, KEY CTR KNOWLEDGE BASED SYST, PARKVILLE, VIC 3052, AUSTRALIA
关键词
D O I
10.1016/0304-3975(92)90286-O
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
A normal logic program P is transformed to another P(omega) by a bottom-up computation on the positive component of P while the negative counterpart is left untouched. The declarative semantics of P is given by the completion of P(omega). The completed predicate definitions in P(omega), if they do not contain local variables, can be used as a basis for expanding each negated atom in the bodies of P(omega). We show that for a class of programs where every negative subgoal can be expanded, the resultant program P' is a definite logic program with equality and disequality constraints. If the program falls outside this class, the resultant program may be executed using constructive negation. Our proposed scheme provides an effective sound and complete query-answering system for the well-founded models of a class of programs whose positive part has a finite P(omega) and whose clauses satisfy the positive groundedness property defined herein.
引用
收藏
页码:27 / 56
页数:30
相关论文
共 50 条
  • [21] Abstract verification and debugging of constraint logic programs
    Hermenegildo, M
    Puebla, G
    Bueno, F
    López-García, P
    [J]. RECENT ADVANCES IN CONSTRAINTS, 2003, 2627 : 1 - 14
  • [22] Static and dynamic slicing of constraint logic programs
    Szilágyi G.
    Gyimóthy T.
    Małuszyński J.
    [J]. Automated Software Engineering, 2002, 9 (1) : 41 - 65
  • [23] On Detecting Semantic Clones in Constraint Logic Programs
    Yernaux, Gonzague
    Vanhoof, Wim
    [J]. 2022 IEEE 16TH INTERNATIONAL WORKSHOP ON SOFTWARE CLONES (IWSC 2022), 2022, : 32 - 38
  • [24] Logic programs with monotone abstract constraint atoms
    Marek, Victor W.
    Niemela, Ilkka
    Truszczynski, Miroslaw
    [J]. THEORY AND PRACTICE OF LOGIC PROGRAMMING, 2008, 8 : 167 - 199
  • [25] Automated strategies for specializing constraint logic programs
    Fioravanti, F
    Pettorossi, A
    Proietti, M
    [J]. LOGIC BASED PROGRAM SYNTHESIS AND TRANSFORMATION, 2001, 2042 : 125 - 146
  • [26] Inferring and compiling termination for constraint logic programs
    Hoarau, S
    Mesnard, F
    [J]. LOGIC-BASED PROGRAM SYNTHESIS AND TRANSFORMATION, 1999, 1559 : 240 - 254
  • [27] Rules and strategies for transforming functional and logic programs
    Pettorossi, A
    Proietti, M
    [J]. ACM COMPUTING SURVEYS, 1996, 28 (02) : 360 - 414
  • [28] Compositionality of normal open logic programs
    Verbaeten, S
    Denecker, M
    DeSchreye, D
    [J]. LOGIC PROGRAMMING - PROCEEDINGS OF THE 1997 INTERNATIONAL SYMPOSIUM, 1997, : 371 - 385
  • [29] ON THE EQUIVALENCE OF SEMANTICS FOR NORMAL LOGIC PROGRAMS
    YOU, JH
    YUAN, LY
    [J]. JOURNAL OF LOGIC PROGRAMMING, 1995, 22 (03): : 211 - 222
  • [30] Modular Equivalence for Normal Logic Programs
    Oikarinen, Emilia
    Janhunen, Tomi
    [J]. ECAI 2006, PROCEEDINGS, 2006, 141 : 412 - +