Computing Loops with at Most One External Support Rule

A consequence of a logic program under answer set semantics is one that is true for all answer sets. This article considers using loop formulas to compute some of these consequences in order to increase the efficiency of answer set solvers. Since computing loop formulas are in general intractable, we consider only loops with either no external support or at most one external support, as their loop formulas are either unit or binary clauses. We show that for disjunctive logic programs, loop formulas of loops with no external support can be computed in polynomial time, and that an iterative procedure using unit propagation on these formulas and the program completion computes the well-founded models in the case of normal logic programs and the least fixed point of a simplification operator used by DLV for disjunctive logic programs. For loops with at most one external support, their loop formulas can be computed in polynomial time for normal logic programs, but are NP-hard for disjunctive programs. So for normal logic programs, we have a procedure similar to the iterative one for loops without any external support, but for disjunctive logic programs, we present a polynomial approximation algorithm. All these algorithms have been implemented, and our experiments show that for certain logic programs, the consequences computed by our algorithms can significantly speed up current ASP solvers cmodels, clasp, and DLV.

[1]  Wolfgang Faber,et al.  The DLV system for knowledge representation and reasoning , 2002, TOCL.

[2]  Li-Yan Yuan,et al.  Under consideration for publication in Theory and Practice of Logic Programming 1 Characterizations of Stable Model Semantics for Logic Programs with Arbitrary Constraint Atoms , 2022 .

[3]  Bart Selman,et al.  Proceedings of the 26th AAAI Conference on Artificial Intelligence (AAAI'12) , 2012 .

[4]  Thomas Lukasiewicz,et al.  Well-founded semantics for description logic programs in the semantic web , 2004, TOCL.

[5]  Allen Van Gelder,et al.  The Alternating Fixpoint of Logic Programs with Negation , 1993, J. Comput. Syst. Sci..

[6]  A.4 Proof of Theorem 4 , 1994 .

[7]  Jorge Lobo,et al.  Foundations of disjunctive logic programming , 1992, Logic Programming.

[8]  Joohyung Lee,et al.  On Loop Formulas with Variables , 2008, KR.

[9]  Francesco Scarcello,et al.  Disjunctive Stable Models: Unfounded Sets, Fixpoint Semantics, and Computation , 1997, Inf. Comput..

[10]  Michael Gelfond,et al.  Classical negation in logic programs and disjunctive databases , 1991, New Generation Computing.

[11]  Fangzhen Lin,et al.  First-Order Loop Formulas for Normal Logic Programs , 2006, KR.

[12]  Kewen Wang,et al.  Comparisons and computation of well-founded semantics for disjunctive logic programs , 2003, TOCL.

[13]  Timo Soininen,et al.  Extending and implementing the stable model semantics , 2000, Artif. Intell..

[14]  Jürgen Dix,et al.  Semantics of (disjunctive) Logic Programs Based on Partial Evaluation , 1999, J. Log. Program..

[15]  John Morris,et al.  Reconciling Well-Founded Semantics of DL-Programs and Aggregate Programs , 2012, ICLP.

[16]  Vladimir Lifschitz,et al.  Nested expressions in logic programs , 1999, Annals of Mathematics and Artificial Intelligence.

[17]  Dov M. Gabbay,et al.  What Is Negation as Failure? , 2012, Logic Programs, Norms and Action.

[18]  Jia-Huai You,et al.  Loop Formulas for Logic Programs with Arbitrary Constraint Atoms , 2008, AAAI.

[19]  Joohyung Lee,et al.  A Model-Theoretic Counterpart of Loop Formulas , 2005, IJCAI.

[20]  A RossKenneth,et al.  The well-founded semantics for general logic programs , 1991 .

[21]  Martin Gebser,et al.  Conflict-Driven Disjunctive Answer Set Solving , 2008, KR.

[22]  Fangzhen Lin,et al.  Computing Loops with at Most One External Support Rule for Disjunctive Logic Programs , 2009, ICLP.

[23]  Martin Gebser,et al.  GrinGo : A New Grounder for Answer Set Programming , 2007, LPNMR.

[24]  Enrico Pontelli,et al.  Answer Sets for Logic Programs with Arbitrary Abstract Constraint Atoms , 2006, AAAI.

[25]  Chitta Baral,et al.  Knowledge Representation, Reasoning and Declarative Problem Solving , 2003 .

[26]  Fangzhen Lin,et al.  ASSAT: computing answer sets of a logic program by SAT solvers , 2002, Artif. Intell..

[27]  Miroslaw Truszczynski,et al.  Properties and Applications of Programs with Monotone and Convex Constraints , 2006, J. Artif. Intell. Res..

[28]  Fangzhen Lin,et al.  Loop formulas for circumscription , 2004, Artif. Intell..

[29]  Alexander A. Razborov,et al.  Why are there so many loop formulas? , 2006, TOCL.

[30]  Maurice Bruynooghe,et al.  Well-founded and stable semantics of logic programs with aggregates , 2007, Theory Pract. Log. Program..

[31]  Martin Gebser,et al.  Approaching the core of unfounded sets , 2006 .

[32]  Ilkka Niemelä,et al.  Logic programs with stable model semantics as a constraint programming paradigm , 1999, Annals of Mathematics and Artificial Intelligence.

[33]  Joohyung Lee,et al.  Loop Formulas for Disjunctive Logic Programs , 2003, ICLP.

[34]  Martin Gebser,et al.  Conflict-Driven Answer Set Solving , 2007, IJCAI.

[35]  Jia-Huai You,et al.  On the Effectiveness of Looking Ahead in Search for Answer Sets , 2007, LPNMR.

[36]  Haim Gaifman,et al.  Semantics of Logic Programs , 1990, ICLP.

[37]  Fangzhen Lin,et al.  A Well-Founded Semantics for Basic Logic Programs with Arbitrary Abstract Constraint Atoms , 2012, AAAI.

[38]  Yuliya Lierler,et al.  Answer Set Programming Based on Propositional Satisfiability , 2006, Journal of Automated Reasoning.

[39]  Joohyung Lee,et al.  A generalization of the Lin-Zhao theorem , 2006, Annals of Mathematics and Artificial Intelligence.

[40]  Teodor C. Przymusinski Static semantics for normal and disjunctive logic programs , 1995, Annals of Mathematics and Artificial Intelligence.