Algebraic answer set programming

Non-monotonic reasoning is an essential part of human intelligence prominently formalized in artificial intelligence research via answer set programming. Describing complex objects as the composition of elementary ones is a common strategy in computer science and science in general. This paper contributes to the foundations of answer set programming and artificial intelligence by introducing and studying the sequential composition of answer set programs. Specifically, we show that the notion of composition gives rise to a family of finite monoids and seminearrings, baptized ASP monoids and ASP seminearrings in this paper. Particularly, we show that the combination of composition and union yields the structure of a finite idempotent seminearring. We also show that the restricted class of proper Krom-Horn programs, which only contain rules with exactly one body atom, yields a finite idempotent semiring. On the semantic side, we show that the van Emden-Kowalski immediate consequence operator of a program can be represented via composition, which allows us to compute the least model semantics of Horn programs without any explicit reference to operators. As a result, we characterize answer sets algebraically, which bridges the conceptual gap between the syntax and semantics of an answer set program in a mathematically satisfactory way, and which provides an algebraic characterization of strong and uniform equivalence. Moreover, it gives rise to an algebraic meta-calculus for answer set programs. In a broader sense, this paper is a further step towards an algebra of rule-based logical theories and in the future we plan to adapt and generalize the methods of this paper to wider classes of formalisms, most importantly to first-order and disjunctive answer set programs and extensions thereof.

[1]  Michael Kifer,et al.  HILOG: A Foundation for Higher-Order Logic Programming , 1993, J. Log. Program..

[2]  Christian Antic Finite Horn Monoids via Propositional Horn Theory Composition , 2020 .

[3]  Georg Gottlob,et al.  Disjunctive datalog , 1997, TODS.

[4]  Miroslaw Truszczynski,et al.  Strong and uniform equivalence of nonmonotonic theories – an algebraic approach , 2006, Annals of Mathematics and Artificial Intelligence.

[5]  Maurice Bruynooghe,et al.  Approximation Fixpoint Theory and the Semantics of Logic and Answers Set Programs , 2012, Correct Reasoning.

[6]  M. Krom The Decision Problem for a Class of First‐Order Formulas in Which all Disjunctions are Binary , 1967 .

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

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

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

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

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

[12]  Wolfgang Faber,et al.  Recursive Aggregates in Disjunctive Logic Programs: Semantics and Complexity , 2004, JELIA.

[13]  Ilkka Niemelä,et al.  Stable Model Semantics of Weight Constraint Rules , 1999, LPNMR.

[14]  Christian Anti'c,et al.  Fixed Point Semantics for Stream Reasoning , 2020, Artif. Intell..

[15]  Emilia Oikarinen,et al.  Modular Answer Set Programming , 2007, ICLP.

[16]  Hans Tompits,et al.  Combining answer set programming with description logics for the Semantic Web , 2004, Artif. Intell..

[17]  Hans Tompits,et al.  A Uniform Integration of Higher-Order Reasoning and External Evaluations in Answer-Set Programming , 2005, IJCAI.

[18]  Wolfgang Faber Answer Set Programming , 2013, Reasoning Web.

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

[20]  Thomas Eiter,et al.  Answer Set Programming: A Primer , 2009, Reasoning Web.

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

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

[23]  Melvin Fitting,et al.  Fixpoint Semantics for Logic Programming a Survey , 2001, Theor. Comput. Sci..

[24]  J. van Leeuwen,et al.  Logic Programming , 2002, Lecture Notes in Computer Science.

[25]  Thomas Eiter,et al.  Uniform Equivalence of Logic Programs under the Stable Model Semantics , 2003, ICLP.

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

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

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

[29]  Kenneth A. Ross,et al.  The well-founded semantics for general logic programs , 1991, JACM.

[30]  John W. Lloyd,et al.  Foundations of Logic Programming, 1st Edition , 1984 .

[31]  J. A. Green,et al.  On the Structure of Semigroups , 1951 .

[32]  Alwen Tiu,et al.  Programming in Higher-Order Logic , 2009 .

[33]  Georg Karner Continuous monoids and semirings , 2004, Theor. Comput. Sci..

[34]  Jack Minker,et al.  Logic and Data Bases , 1978, Springer US.

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

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

[37]  Thomas Eiter,et al.  Hex Semantics via Approximation Fixpoint Theory , 2013, LPNMR.

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

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

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