Weight constraint and aggregate programs are among the most widely used logic programs with constraints. In this paper, we relate the semantics of these two classes of programs, namely the stable model semantics for weight constraint programs and the answer set semantics based on conditional satisfaction for aggregate programs. Both classes of programs are instances of logic programs with constraints, and in particular, the answer set semantics for aggregate programs can be applied to weight constraint programs. We show that the two semantics are closely related. First, we show that for a broad class of weight constraint programs, called strongly satisfiable programs, the two semantics coincide. When they disagree, a stable model admitted by the stable model semantics may be circularly justified. We show that the gap between the two semantics can be closed by transforming a weight constraint program to a strongly satisfiable one, so that no circular models may be generated under the current implementation of the stable model semantics. We further demonstrate the close relationship between the two semantics by formulating a transformation from weight constraint programs to logic programs with nested expressions which preserves the answer set semantics. Our study on the semantics leads to an investigation of a methodological issue, namely the possibility of compact representation of aggregate programs by weight constraint programs. We show that almost all standard aggregates can be encoded by weight constraints compactly. This makes it possible to compute the answer sets of aggregate programs using the ASP solvers for weight constraint programs. This approach is compared experimentally with the ones where aggregates are handled more explicitly, which show that the weight constraint encoding of aggregates enables a competitive approach to answer set computation for aggregate programs.
答案集编程(ASP)是计算逻辑中一个著名的问题解决形式主义。如今,由于ASP求解器,ASP被用于许多现实世界的场景中。ASP程序的标准评估有一个固有的局限性,即所谓的基础瓶颈,这是由于一些规则的基础可能适合所有可用的内存。因此,存在使用标准的Ground and Solve方法无法处理的现实世界问题的实例。为了解决这个问题,已经提出了不同的策略。其中,我们专注于最近的一种方法的基础上编译的问题的约束传播,这是非常有前途的,但目前仅限于限制没有聚集。由于聚集在ASP中被广泛使用,在本文中,我们扩展这样的方法也包含聚合的约束。取得了良好的效果,证明了所提出的方法的有效性。
On Equivalence of Infinitary Formulas under the Stable Model Semantics
在直觉主义逻辑中等价的命题公式,或者在其扩展中被称为这里和那里的逻辑,具有相同的稳定模型。我们将这个定理扩展到具有无限长合取和析取的命题公式,并展示如何将此推广应用于证明答案集编程中聚合的性质。逻辑程序设计理论与实践(Theory and Practice of Logic Programming,TPLP)