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 条
  • [1] Transforming constraint logic programs
    Bensaou, N
    Guessarian, I
    [J]. THEORETICAL COMPUTER SCIENCE, 1998, 206 (1-2) : 81 - 125
  • [2] The semantics of constraint logic programs
    Jaffar, J
    Maher, M
    Marriott, K
    Stuckey, P
    [J]. JOURNAL OF LOGIC PROGRAMMING, 1998, 37 (1-3): : 1 - 46
  • [3] Typing constraint logic programs
    Fages, F
    Coquery, E
    [J]. THEORY AND PRACTICE OF LOGIC PROGRAMMING, 2001, 1 : 751 - 777
  • [4] Termination of constraint logic programs
    Ruggieri, S
    [J]. AUTOMATA, LANGUAGES AND PROGRAMMING, 1997, 1256 : 838 - 848
  • [5] Transforming Coroutining Logic Programs into Equivalent CHR Programs
    Nys, Vincent
    De Schreye, Danny
    [J]. ELECTRONIC PROCEEDINGS IN THEORETICAL COMPUTER SCIENCE, 2017, (253): : 9 - 35
  • [6] Global analysis of constraint logic programs
    DeLaBanda, MG
    Hermenegildo, M
    Bruynooghe, M
    Dumortier, V
    Janssens, G
    Simoens, W
    [J]. ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS, 1996, 18 (05): : 564 - 614
  • [7] A compiler generator for constraint logic programs
    Craig, SJ
    Leuschel, M
    [J]. PERSPECTIVES OF SYSTEM INFORMATICS, 2003, 2890 : 148 - 161
  • [8] DISJUNCTIVE LOGIC PROGRAMS AND CONSTRAINT PROCESSING
    RAJASEKAR, A
    [J]. LECTURE NOTES IN ARTIFICIAL INTELLIGENCE, 1991, 542 : 610 - 619
  • [9] A dataflow semantics for constraint logic programs
    Colussi, L
    Marchiori, E
    Marchiori, M
    [J]. PROGRAMMING LANGUAGES: IMPLEMENTATIONS, LOGICS AND PROGRAMS, 1995, 982 : 431 - 448
  • [10] INTEGER PROGRAMS FOR LOGIC CONSTRAINT SATISFACTION
    MONFROGLIO, A
    [J]. THEORETICAL COMPUTER SCIENCE, 1992, 97 (01) : 105 - 130