A semantics for modular general logic programs

被引:1
|
作者
Etalle, S
机构
[1] Univ Amsterdam, Fac WINS, NL-1098 SJ Amsterdam, Netherlands
[2] Univ Genoa, Dept Comp Sci, I-16126 Genoa, Italy
关键词
logic programming; modularity; open programs; negation; semantics; constraint logic programming;
D O I
10.1016/S0304-3975(97)00191-6
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
Modular programs are built as a combination of separate modules, which may be developed and verified separately. Therefore, in order to reason over such programs, compositionality plays a crucial role: the semantics of the whole program must be obtainable as a simple function from the semantics of its individual modules. In the field of logic programming, the need for a compositional semantics has been long recognized, however, while for definite (i.e. negation-free) logic programs a few such semantics have been proposed, in the literature of normal logic programs (programs which employ the negation operator), compositionality has received scarce attention. This is mainly due to the fact that normal programs typically have a nonmonotonic behavior, which is difficult to fit in a compositional framework. Here we propose a declarative compositional semantics for general logic programs. First, a compositional semantics for first-order modules is presented and proved correct wrt the set of logical consequences of the module in three-valued logic. In a second stage, the obtained results are applied to modular normal logic programs, obtaining a semantics which is correct with respect to the set of logical consequences of the completion of the program and - in contrast with the other approaches - which is always computable. This semantics might be regarded as a compositional counterpart of Kunen's semantics. Finally we discuss and show how these results have to be modified in order to be applied to normal constraint logic programs. (C) 1998-Elsevier Science B.V. All rights reserved.
引用
收藏
页码:51 / 80
页数:30
相关论文
共 50 条
  • [31] ON THE EQUIVALENCE OF SEMANTICS FOR NORMAL LOGIC PROGRAMS
    YOU, JH
    YUAN, LY
    JOURNAL OF LOGIC PROGRAMMING, 1995, 22 (03): : 211 - 222
  • [32] A dataflow semantics for constraint logic programs
    Colussi, L
    Marchiori, E
    Marchiori, M
    PROGRAMMING LANGUAGES: IMPLEMENTATIONS, LOGICS AND PROGRAMS, 1995, 982 : 431 - 448
  • [33] SEMANTICS OF HORN AND DISJUNCTIVE LOGIC PROGRAMS
    LOBO, J
    RAJASEKAR, A
    MINKER, J
    THEORETICAL COMPUTER SCIENCE, 1991, 86 (01) : 93 - 106
  • [35] Semantics of structured normal logic programs
    Pasarella, Edelmira
    Orejas, Fernando
    Pino, Elvira
    Navarro, Marisa
    JOURNAL OF LOGIC AND ALGEBRAIC PROGRAMMING, 2012, 81 (05): : 559 - 584
  • [36] A FIXPOINT SEMANTICS FOR DISJUNCTIVE LOGIC PROGRAMS
    MINKER, J
    RAJASEKAR, A
    JOURNAL OF LOGIC PROGRAMMING, 1990, 9 (01): : 45 - 74
  • [37] Contextual hypotheses and semantics of logic programs
    Martin, Eric A.
    THEORY AND PRACTICE OF LOGIC PROGRAMMING, 2012, 12 : 843 - 887
  • [38] Observable semantics for constraint logic programs
    1600, Oxford Univ Press, Oxford, Engl (05):
  • [39] On the Semantics and Complexity of Probabilistic Logic Programs
    Cozman, Fabio Gagliardi
    Maua, Denis Deratani
    JOURNAL OF ARTIFICIAL INTELLIGENCE RESEARCH, 2017, 60 : 221 - 262
  • [40] Semantics of framed temporal logic programs
    Duan, ZH
    Yang, XX
    Koutny, M
    LOGIC PROGRAMMING, PROCEEDINGS, 2005, 3668 : 356 - 370