{"title":"Semantics of (disjunctive) logic programs based on partial evaluation","authors":"Stefan Brass , Jürgen Dix","doi":"10.1016/S0743-1066(98)10030-4","DOIUrl":null,"url":null,"abstract":"<div><p>We present a new and general approach for defining, understanding, and computing logic programming semantics. We consider disjunctive programs for generality, but our results are still interesting if specialized to normal programs. Our framework consists of two parts: (a) a <em>semantical</em>, where semantics are defined in an abstract way as the <em>weakest</em> semantics satisfying certain properties, and (b) a <em>procedural</em>, namely a bottom-up query evaluation method based on operators working on <em>conditional facts</em>. As to (a), we concentrate in this paper on a particular set of abstract properties (the most important being the <em>unfolding</em> or <em>partial evaluation property</em> GPPE) and define a new semantics D-WFS, which extends WFS and GCWA. We also mention that various other semantics, like Fitting's comp<sub>3</sub>, Schipf's WFS<sub>c</sub>, Gelfond and lifschitz' STABLE and Ross and Topor's WGCWA (also introduced independently by Rajasekar et al. (A. Rajasekar, J. Lobo, J. Minker, Journal of Automated Reasoning 5 (1989) 293–307)), can be captured in our framework. In (b) we compute for any program <em>P</em> a residual program <em>res(P)</em>, and show that <em>res(P)</em> is equivalent to the original program under very general conditions on the semantics (which are satisfied, e.g., by the well-founded, stable, stationary, and static semantics). Many queries with respect to these semantics can already be answered on the basis of the residual program. In fact, <em>res(P)</em> is <em>complete</em> for D-WFS, WFS and GCWA.</p></div>","PeriodicalId":101236,"journal":{"name":"The Journal of Logic Programming","volume":"40 1","pages":"Pages 1-46"},"PeriodicalIF":0.0000,"publicationDate":"1999-07-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://sci-hub-pdf.com/10.1016/S0743-1066(98)10030-4","citationCount":"101","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"The Journal of Logic Programming","FirstCategoryId":"1085","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0743106698100304","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 101
Abstract
We present a new and general approach for defining, understanding, and computing logic programming semantics. We consider disjunctive programs for generality, but our results are still interesting if specialized to normal programs. Our framework consists of two parts: (a) a semantical, where semantics are defined in an abstract way as the weakest semantics satisfying certain properties, and (b) a procedural, namely a bottom-up query evaluation method based on operators working on conditional facts. As to (a), we concentrate in this paper on a particular set of abstract properties (the most important being the unfolding or partial evaluation property GPPE) and define a new semantics D-WFS, which extends WFS and GCWA. We also mention that various other semantics, like Fitting's comp3, Schipf's WFSc, Gelfond and lifschitz' STABLE and Ross and Topor's WGCWA (also introduced independently by Rajasekar et al. (A. Rajasekar, J. Lobo, J. Minker, Journal of Automated Reasoning 5 (1989) 293–307)), can be captured in our framework. In (b) we compute for any program P a residual program res(P), and show that res(P) is equivalent to the original program under very general conditions on the semantics (which are satisfied, e.g., by the well-founded, stable, stationary, and static semantics). Many queries with respect to these semantics can already be answered on the basis of the residual program. In fact, res(P) is complete for D-WFS, WFS and GCWA.
我们提出了一种新的通用方法来定义、理解和计算逻辑编程语义。我们考虑析取程序的普遍性,但我们的结果仍然是有趣的,如果专门针对普通程序。我们的框架由两部分组成:(a)语义,其中语义以抽象的方式定义为满足某些属性的最弱语义,以及(b)过程,即基于操作符的自下而上的查询评估方法。对于(a),我们在本文中集中讨论了一组特定的抽象属性(最重要的是展开或部分求值属性GPPE),并定义了一个新的语义D-WFS,它扩展了WFS和GCWA。我们还提到了各种其他语义,如Fitting的comp3, Schipf的WFSc, Gelfond和lifschitz的STABLE以及Ross和Topor的WGCWA(也由Rajasekar等人独立引入(A. Rajasekar, J. Lobo, J. Minker, Journal of Automated Reasoning 5(1989) 293-307))),可以在我们的框架中捕获。在(b)中,我们计算了任意程序P的残差程序res(P),并证明res(P)在非常一般的语义条件下等价于原程序(例如,由良好的、稳定的、平稳的和静态的语义所满足)。关于这些语义的许多查询已经可以在残差程序的基础上得到回答。实际上,res(P)对于D-WFS、WFS和GCWA是完整的。