Aggregate Semantics for Propositional Answer Set Programs

Answer Set Programming (ASP) emerged in the late 1990ies as a paradigm for Knowledge Representation and Reasoning. The attractiveness of ASP builds on an expressive high-level modeling language along with the availability of powerful off-the-shelf solving systems. While the utility of incorporating aggregate expressions in the modeling language has been realized almost simultaneously with the inception of the first ASP solving systems, a general semantics of aggregates and its efficient implementation have been longstanding challenges. Aggregates have been proposed and widely used in database systems, and also in the deductive database language Datalog, which is one of the main precursors of ASP. The use of aggregates was, however, still restricted in Datalog (by either disallowing recursion or only allowing monotone aggregates), while several ways to integrate unrestricted aggregates evolved in the context of ASP. In this survey, we pick up at this point of development by presenting and comparing the main aggregate semantics that have been proposed for propositional ASP programs. We highlight crucial properties such as computational complexity and expressive power, and outline the capabilities and limitations of different approaches by illustrative examples. Under consideration in Theory and Practice of Logic Programming (TPLP)

[1]  Allen Van Gelder,et al.  The well-founded semantics of aggregation , 1992, PODS.

[2]  Georg Gottlob,et al.  Complexity and expressive power of logic programming , 2001, CSUR.

[3]  Adrian Walker,et al.  Towards a Theory of Declarative Knowledge , 1988, Foundations of Deductive Databases and Logic Programming..

[4]  David Pearce,et al.  Strongly equivalent logic programs , 2001, ACM Trans. Comput. Log..

[5]  E. F. Codd,et al.  Relational Completeness of Data Base Sublanguages , 1972, Research Report / RJ / IBM / San Jose, California.

[6]  Enrico Pontelli,et al.  An Unfolding-Based Semantics for Logic Programming with Aggregates , 2006, ArXiv.

[7]  Victor W. Marek,et al.  Ultimate approximation and its application in nonmonotonic knowledge representation systems , 2004, Inf. Comput..

[8]  Yuliya Lierler,et al.  On relation between constraint answer set programming and satisfiability modulo theories* , 2017, Theory and Practice of Logic Programming.

[9]  Martin Gebser,et al.  Conflict-driven answer set solving: From theory to practice , 2012, Artif. Intell..

[10]  Martin Gebser,et al.  On the Implementation of Weight Constraint Rules in Conflict-Driven ASP Solvers , 2009, ICLP.

[11]  Vladimir Lifschitz,et al.  Relating Two Dialects of Answer Set Programming , 2019, Theory Pract. Log. Program..

[12]  Jia-Huai You,et al.  Relating weight constraint and aggregate programs: Semantics and representation , 2011, Theory and Practice of Logic Programming.

[13]  Kewen Wang,et al.  FLP answer set semantics without circular justifications for general logic programs , 2014, Artif. Intell..

[14]  Enrico Pontelli,et al.  A Constructive semantic characterization of aggregates in answer set programming , 2007, Theory Pract. Log. Program..

[15]  Peter J. Stuckey,et al.  Semantics of Logic Programs with Aggregates , 1991, ISLP.

[16]  Kenneth A. Ross,et al.  Modular stratification and magic sets for Datalog programs with negation , 1994, JACM.

[17]  Gultekin Özsoyoglu,et al.  Extending relational algebra and relational calculus with set-valued attributes and aggregate functions , 1987, TODS.

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

[19]  Mario Alviano,et al.  Evaluation of Disjunctive Programs in WASP , 2019, LPNMR.

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

[21]  Vladimir Lifschitz,et al.  Answer set programming and plan generation , 2002, Artif. Intell..

[22]  Maurice Bruynooghe,et al.  Predicate logic as a modeling language: modeling and solving some machine learning and data mining problems with IDP3 , 2013, Theory and Practice of Logic Programming.

[23]  S. Sudarshan,et al.  Aggregation and Relevance in Deductive Databases , 1991, VLDB.

[24]  Wojciech Plandowski,et al.  On the Complexity of Pattern Matching for Highly Compressed Two-Dimensional Texts , 2002, J. Comput. Syst. Sci..

[25]  Mario Alviano,et al.  The ASP System DLV2 , 2017, LPNMR.

[26]  Martin Gebser,et al.  Grounding Recursive Aggregates: Preliminary Report , 2016, ArXiv.

[27]  Steffen Hölldobler,et al.  A Compact Encoding of Pseudo-Boolean Constraints into SAT , 2012, KI.

[28]  Antonius Weinzierl,et al.  Exploiting Partial Assignments for Efficient Evaluation of Answer Set Programs with External Source Access , 2016, IJCAI.

[29]  Mario Alviano,et al.  Shared aggregate sets in answer set programming , 2018, Theory and Practice of Logic Programming.

[30]  Ilkka Niemelä,et al.  Compact Translations of Non-disjunctive Answer Set Programs to Propositional Clauses , 2011, Logic Programming, Knowledge Representation, and Nonmonotonic Reasoning.

[31]  Martin Gebser,et al.  Answer Set Programming as SAT modulo Acyclicity , 2014, ECAI.

[32]  Michael Gelfond,et al.  Vicious circle principle, aggregates, and formation of sets in ASP based languages , 2019, Artif. Intell..

[33]  Olivier Roussel,et al.  New Encodings of Pseudo-Boolean Constraints into CNF , 2009, SAT.

[34]  Martin Gebser,et al.  Improving the Normalization of Weight Rules in Answer Set Programs , 2014, JELIA.

[35]  Antonius Weinzierl,et al.  Enhancing Lazy Grounding with Lazy Normalization in Answer-Set Programming , 2019, AAAI.

[36]  Joohyung Lee,et al.  On Reductive Semantics of Aggregates in Answer Set Programming , 2009, LPNMR.

[37]  Maurice Bruynooghe,et al.  Ultimate Well-Founded and Stable Semantics for Logic Programs with Aggregates , 2001, ICLP.

[38]  Martin Gebser,et al.  ASP-Core-2 Input Language Format , 2019, Theory and Practice of Logic Programming.

[39]  Raymond Reiter On Closed World Data Bases , 1977, Logic and Data Bases.

[40]  Anthony C. Klug Equivalence of Relational Algebra and Relational Calculus Query Languages Having Aggregate Functions , 1982, JACM.

[41]  Torsten Schaub,et al.  Clingo goes linear constraints over reals and integers* , 2017, Theory and Practice of Logic Programming.

[42]  Hamid Pirahesh,et al.  The Magic of Duplicates and Aggregates , 1990, VLDB.

[43]  Miroslaw Truszczynski,et al.  Logic programs with abstract constraint atoms: The role of computations , 2007, Artif. Intell..

[44]  Vladimir Lifschitz,et al.  Weight constraints as nested expressions , 2003, Theory and Practice of Logic Programming.

[45]  Georg Gottlob,et al.  On the computational cost of disjunctive logic programming: Propositional case , 1995, Annals of Mathematics and Artificial Intelligence.

[46]  Carlo Zaniolo,et al.  Fixpoint semantics and optimization of recursive Datalog programs with aggregates* , 2017, Theory and Practice of Logic Programming.

[47]  Rina Dechter,et al.  Propositional semantics for disjunctive logic programs , 1994, Annals of Mathematics and Artificial Intelligence.

[48]  Paolo Ferraris,et al.  Logic programs with propositional connectives and aggregates , 2008, TOCL.

[49]  Maurice Bruynooghe,et al.  Analyzing Semantics of Aggregate Answer Set Programming Using Approximation Fixpoint Theory , 2021, ArXiv.

[50]  Mario Alviano,et al.  Complexity and compilation of GZ-aggregates in answer set programming , 2015, Theory and Practice of Logic Programming.

[51]  Mario Alviano,et al.  The Complexity Boundary of Answer Set Programming with Generalized Atoms under the FLP Semantics , 2013, LPNMR.

[52]  Wolfgang Faber,et al.  Semantics and complexity of recursive aggregates in answer set programming , 2011, Artif. Intell..

[53]  Victor W. Marek,et al.  Autoepistemic logic , 1991, JACM.

[54]  Peter Schüller,et al.  Overcoming the Grounding Bottleneck Due to Constraints in ASP Solving: Constraints Become Propagators , 2020, IJCAI.

[55]  Vasco M. Manquinho,et al.  Pseudo-Boolean and Cardinality Constraints , 2021, Handbook of Satisfiability.

[56]  Martin Gebser,et al.  Abstract gringo , 2015, Theory Pract. Log. Program..

[57]  Miroslaw Truszczynski,et al.  Answer set programming at a glance , 2011, Commun. ACM.

[58]  J. Lloyd Foundations of Logic Programming , 1984, Symbolic Computation.

[59]  Gerald Pfeifer,et al.  Design and implementation of aggregate functions in the DLV system* , 2008, Theory and Practice of Logic Programming.

[60]  Mario Alviano,et al.  Chain Answer Sets for Logic Programs with Generalized Atoms , 2019, JELIA.

[61]  Ilkka Niemelä,et al.  Applying Visible Strong Equivalence in Answer-Set Program Transformations , 2020, Correct Reasoning.

[62]  Robert A. Kowalski,et al.  The Semantics of Predicate Logic as a Programming Language , 1976, JACM.

[63]  Mario Alviano,et al.  Rewriting recursive aggregates in answer set programming: back to monotonicity , 2015, Theory and Practice of Logic Programming.

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

[65]  G. Friedrich,et al.  Advancing Lazy-Grounding ASP Solving Techniques – Restarts, Phase Saving, Heuristics, and More , 2020, Theory and Practice of Logic Programming.

[66]  Victor W. Marek,et al.  Set Constraints in Logic Programming , 2004, LPNMR.

[67]  Maurice Bruynooghe,et al.  Translation of Aggregate Programs to Normal Logic Programs , 2003, Answer Set Programming.

[68]  Simona Perri,et al.  Efficiently Coupling the I-DLV Grounder with ASP Solvers , 2018, Theory and Practice of Logic Programming.

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

[70]  Victor W. Marek,et al.  Stable models and an alternative logic programming paradigm , 1998, The Logic Programming Paradigm.

[71]  David S. Johnson,et al.  Computers and Intractability: A Guide to the Theory of NP-Completeness , 1978 .

[72]  John S. Schlipf,et al.  The Expressive Powers of the Logic Programming Semantics , 1995, J. Comput. Syst. Sci..

[73]  Martin Gebser,et al.  Multi-shot ASP solving with clingo , 2017, Theory and Practice of Logic Programming.

[74]  Joohyung Lee,et al.  First-Order Semantics of Aggregates in Answer Set Programming Via Modified Circumscription , 2011, AAAI Spring Symposium: Logical Formalizations of Commonsense Reasoning.

[75]  Michael Gelfond,et al.  Logic programming and knowledge representation—The A-Prolog perspective , 2002 .

[76]  Miroslaw Truszczynski,et al.  Reducts of propositional theories, satisfiability relations, and generalizations of semantics of logic programs , 2009, Artif. Intell..

[77]  Carlo Zaniolo,et al.  Extending the power of datalog recursion , 2012, The VLDB Journal.

[78]  F. E.,et al.  A Relational Model of Data Large Shared Data Banks , 2000 .

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