Hostname: page-component-77c89778f8-fv566 Total loading time: 0 Render date: 2024-07-17T08:05:25.508Z Has data issue: false hasContentIssue false

Aggregate Semantics for Propositional Answer Set Programs

Published online by Cambridge University Press:  23 February 2022

MARIO ALVIANO
Affiliation:
University of Calabria, Rende, Italy (e-mail: alviano@mat.unical.it)
WOLFGANG FABER
Affiliation:
University of Klagenfurt, Klagenfurt, Austria (e-mail: wolfgang.faber@aau.at)
MARTIN GEBSER
Affiliation:
University of Klagenfurt, Klagenfurt, Austria Graz University of Technology, Graz, Austria (e-mail: martin.gebser@aau.at@aau.at)

Abstract

Answer set programming (ASP) emerged in the late 1990s 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 long-standing 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.

Type
Survey Article
Copyright
© The Author(s), 2022. Published by Cambridge University Press

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Footnotes

*

The work of Mario Alviano was partially supported by projects PRIN “Declarative Reasoning over Streams” (CUP: H24I17000080001), PON-MISE MAP4ID “Multipurpose Analytics Platform 4 Industrial Data” (CUP: B21B19000650008), lab LAIA (part of SILA), and GNCS-INdAM. Martin Gebser was partially supported by KWF project 28472, cms electronics GmbH, FunderMax GmbH, Hirsch Armbänder GmbH, incubed IT GmbH, Infineon Technologies Austria AG, Isovolta AG, Kostwein Holding GmbH, and Privatstiftung Kärntner Sparkasse. We are grateful to the reviewers for valuable and constructive comments helping to improve this paper.

References

Alviano, M., Amendola, G., Dodaro, C., Leone, N., Maratea, M. and Ricca, F. 2019. Evaluation of disjunctive programs in WASP. In Proceedings of the Fifteenth International Conference on Logic Programming and Nonmonotonic Reasoning (LPNMR’19), Balduccini, M., Lierler, Y. and Woltran, S., Eds. Lecture Notes in Artificial Intelligence, vol. 11481. Springer-Verlag, 241–255.Google Scholar
Alviano, M., Calimeri, F., Dodaro, C., FuscÀ, D., Leone, N., Perri, S., Ricca, F., Veltri, P. and Zangari, J. 2017. The ASP system DLV2. In Proceedings of the Fourteenth International Conference on Logic Programming and Nonmonotonic Reasoning (LPNMR’17), Balduccini, M. and Janhunen, T., Eds. Lecture Notes in Artificial Intelligence, vol. 10377. Springer-Verlag, 215–221.Google Scholar
Alviano, M., Dodaro, C. and Maratea, M. 2018. Shared aggregate sets in answer set programming. Theory and Practice of Logic Programming 18, 3-4, 301318.CrossRefGoogle Scholar
Alviano, M. and Faber, W. 2013. The complexity boundary of answer set programming with generalized atoms under the FLP semantics. In Proceedings of the Twelfth International Conference on Logic Programming and Nonmonotonic Reasoning (LPNMR’13), Cabalar, P. and Son, T., Eds. Lecture Notes in Artificial Intelligence, vol. 8148. Springer-Verlag, 67–72.Google Scholar
Alviano, M. and Faber, W. 2019. Chain answer sets for logic programs with generalized atoms. In Proceedings of the Sixteenth European Conference on Logics in Artificial Intelligence (JELIA’19), Calimeri, F., Leone, N. and Manna, M., Eds. Lecture Notes in Computer Science, vol. 11468. Springer-Verlag, 462–478.Google Scholar
Alviano, M., Faber, W. and Gebser, M. 2015. Rewriting recursive aggregates in answer set programming: Back to monotonicity. Theory and Practice of Logic Programming 15, 4-5, 559573.CrossRefGoogle Scholar
Alviano, M. and Leone, N. 2015. Complexity and compilation of GZ-aggregates in answer set programming. Theory and Practice of Logic Programming 15, 4-5, 574587.CrossRefGoogle Scholar
Apt, K., Blair, H. and Walker, A. 1987. Towards a theory of declarative knowledge. In Foundations of Deductive Databases and Logic Programming, J. Minker, Ed. Morgan Kaufmann Publishers, Chapter 2, 89–148.Google Scholar
Bailleux, O., Boufkhad, Y. and Roussel, O. 2009. New encodings of pseudo-Boolean constraints into CNF. In Proceedings of the Twelfth International Conference on Theory and Applications of Satisfiability Testing (SAT'09), O. Kullmann, Ed. Notes, Lecture in Computer Science, vol. 5584. Springer-Verlag, 181–194.Google Scholar
Bartholomew, M., Lee, J. and Meng, Y. 2011. First-order semantics of aggregates in answer set programming via modified circumscription. In Proceedings of the AAAI Spring Symposium on Logical Formalizations of Commonsense Reasoning, E. Davis, P. Doherty and E. Erdem, Eds. AAAI Press, 1622.Google Scholar
Ben-Eliyahu, R. and Dechter, R. 1994. Propositional semantics for disjunctive logic programs. Annals of Mathematics and Artificial Intelligence 12, 1-2, 5387.CrossRefGoogle Scholar
Berman, P., Karpinski, M., Larmore, L., Plandowski, W. and Rytter, W. 2002. On the complexity of pattern matching for highly compressed two-dimensional texts. Journal of Computer and System Sciences 65, 2, 332350.CrossRefGoogle Scholar
Bomanson, J., Gebser, M. and Janhunen, T. 2014. Improving the normalization of weight rules in answer set programs. In Proceedings of the Fourteenth European Conference on Logics in Artificial Intelligence (JELIA’14), FermÉ, E. and Leite, J., Eds. Lecture Notes in Artificial Intelligence, vol. 8761. Springer-Verlag, 166–180.Google Scholar
Bomanson, J., Janhunen, T. and NiemelÄ, I. 2020. Applying visible strong equivalence in answer-set program transformations. ACM Transactions on Computational Logic 4, 21, 33:1–33:41.Google Scholar
Bomanson, J., Janhunen, T. and Weinzierl, A. 2019. Enhancing lazy grounding with lazy normalization in answer-set programming. In Proceedings of the Thirty-third National Conference on Artificial Intelligence (AAAI’19), Van Hentenryck, P. and Zhou, Z., Eds. AAAI Press, 26942702.Google Scholar
Brewka, G., Eiter, T. and TruszczyŃski, M. 2011. Answer set programming at a glance. Communications of the ACM 54, 12, 92103.CrossRefGoogle Scholar
Bruynooghe, M., Blockeel, H., Bogaerts, B., De Cat, B., De Pooter, S., Jansen, J., Labarre, A., Ramon, J., Denecker, M. and Verwer, S. 2015. Predicate logic as a modeling language: Modeling and solving some machine learning and data mining problems with IDP3. Theory and Practice of Logic Programming 15, 6, 783817.CrossRefGoogle Scholar
Calimeri, F., Dodaro, C., FuscÀ, D., Perri, S. and Zangari, J. 2020. Efficiently coupling the I-DLV grounder with ASP solvers. Theory and Practice of Logic Programming 20, 2, 205224.CrossRefGoogle Scholar
Calimeri, F., Faber, W., Gebser, M., Ianni, G., Kaminski, R., Krennwallner, T., Leone, N., Maratea, M., Ricca, F. and Schaub, T. 2019. ASP-Core-2 input language format. Theory and Practice of Logic Programming 20, 2, 294309.Google Scholar
Codd, E. 1970. A relational model of data for large shared data banks. Communications of the ACM 13, 6, 377387.CrossRefGoogle Scholar
Codd, E. 1972. Relational completeness of data base sublanguages. Research Report/RJ/IBM/San Jose, California RJ987.Google Scholar
Cuteri, B., Dodaro, C., Ricca, F. and SchÜller, P. 2020. Overcoming the grounding bottleneck due to constraints in ASP solving: Constraints become propagators. In Proceedings of the Twenty-Ninth International Joint Conference on Artificial Intelligence (IJCAI’20), C. Bessiere, Ed. ijcai.org, 1688–1694.Google Scholar
Dantsin, E., Eiter, T., Gottlob, G. and Voronkov, A. 2001. Complexity and expressive power of logic programming. ACM Computing Surveys 33, 3, 374425.CrossRefGoogle Scholar
Denecker, M., Marek, V. and TruszczyŃski, M. 2004. Ultimate approximation and its application in nonmonotonic knowledge representation systems. Information and Computation 192, 1, 84121.CrossRefGoogle Scholar
Denecker, M., Pelov, N. and Bruynooghe, M. 2001. Ultimate well-founded and stable semantics for logic programs with aggregates. In Proceedings of the Seventeenth International Conference on Logic Programming (ICLP’01), P. Codognet, Ed. Notes, Lecture in Computer Science, vol. 2237. Springer-Verlag, 212–226.Google Scholar
Eiter, T. and Gottlob, G. 1995. On the computational cost of disjunctive logic programming: Propositional case. Annals of Mathematics and Artificial Intelligence 15, 3-4, 289323.CrossRefGoogle Scholar
Eiter, T., Kaminski, T., Redl, C. and Weinzierl, A. 2018. Exploiting partial assignments for efficient evaluation of answer set programs with external source access. Journal of Artificial Intelligence Research 62, 665727.CrossRefGoogle Scholar
Elkabani, I., Pontelli, E. and Son, T. 2004. Smodels with CLP and its applications: A simple and effective approach to aggregates in ASP. In Proceedings of the Twentieth International Conference on Logic Programming (ICLP’04), Demoen, B. and Lifschitz, V., Eds. Lecture Notes in Computer Science, vol. 3132. Springer-Verlag, 73–89.Google Scholar
Faber, W., Pfeifer, G. and Leone, N. 2011. Semantics and complexity of recursive aggregates in answer set programming. Artificial Intelligence 175, 1, 278298.CrossRefGoogle Scholar
Faber, W., Pfeifer, G., Leone, N., Dell’Armi, T. and Ielpa, G. 2008. Design and implementation of aggregate functions in the DLV system. Theory and Practice of Logic Programming 8, 5-6, 545580.CrossRefGoogle Scholar
Ferraris, P. 2011. Logic programs with propositional connectives and aggregates. ACM Transactions on Computational Logic 12, 4, 25:1–25:40.Google Scholar
Ferraris, P. and Lifschitz, V. 2005. Weight constraints as nested expressions. Theory and Practice of Logic Programming 5, 1-2, 4574.CrossRefGoogle Scholar
Ganguly, S., Greco, S. and Zaniolo, C. 1995. Extrema predicates in deductive databases. Journal of Computer and System Sciences 51, 2, 244259.CrossRefGoogle Scholar
Garey, M. and Johnson, D. 1979. Computers and Intractability: A Guide to the Theory of NP-Completeness. W. Freeman and Co., New York.Google Scholar
Gebser, M., Harrison, A., Kaminski, R., Lifschitz, V. and Schaub, T. 2015a. Abstract Gringo. Theory and Practice of Logic Programming 15, 4-5, 449463.CrossRefGoogle Scholar
Gebser, M., Janhunen, T. and Rintanen, J. 2014. Answer set programming as SAT modulo acyclicity. In Proceedings of the Twenty-first European Conference on Artificial Intelligence (ECAI’14), Schaub, T., Friedrich, G. , and O’Sullivan, B., Eds. IOS Press, 351356.Google Scholar
Gebser, M., Kaminski, R., Kaufmann, B. and Schaub, T. 2009. On the implementation of weight constraint rules in conflict-driven ASP solvers. In Proceedings of the Twenty-fifth International Conference on Logic Programming (ICLP’09), Hill, P. and Warren, D., Eds. Lecture Notes in Computer Science, vol. 5649. Springer-Verlag, 250–264.Google Scholar
Gebser, M., Kaminski, R., Kaufmann, B. and Schaub, T. 2019. Multi-shot ASP solving with clingo. Theory and Practice of Logic Programming 19, 1, 2782.CrossRefGoogle Scholar
Gebser, M., Kaminski, R. and Schaub, T. 2015b. Grounding recursive aggregates: Preliminary report. In Proceedings of the Third Workshop on Grounding, Transforming, and Modularizing Theories with Variables (GTTV’15), Denecker, M. and Janhunen, T., Eds.Google Scholar
Gebser, M., Kaufmann, B. and Schaub, T. 2012. Conflict-driven answer set solving: From theory to practice. Artificial Intelligence 187-188, 52–89.Google Scholar
Gelfond, M. and Leone, N. 2002. Logic programming and knowledge representation — the A-Prolog perspective. Artificial Intelligence 138, 1-2, 338.CrossRefGoogle Scholar
Gelfond, M. and Lifschitz, V. 1988. The stable model semantics for logic programming. In Proceedings of the Fifth International Conference and Symposium of Logic Programming (ICLP’88), Kowalski, R. and Bowen, K., Eds. MIT Press, 10701080.Google Scholar
Gelfond, M. and Lifschitz, V. 1991. Classical negation in logic programs and disjunctive databases. New Generation Computing 9, 365385.CrossRefGoogle Scholar
Gelfond, M. and Zhang, Y. 2019. Vicious circle principle, aggregates, and formation of sets in ASP based languages. Artificial Intelligence 275, 2877.CrossRefGoogle Scholar
Harrison, A. and Lifschitz, V. 2019. Relating two dialects of answer set programming. Theory and Practice of Logic Programming 19, 5-6, 10061020.CrossRefGoogle Scholar
HÖlldobler, S., Manthey, N. and Steinke, P. 2012. A compact encoding of pseudo-Boolean constraints into SAT. In Proceedings of the Thirty-fifth Annual German Conference on Artificial Intelligence (KI’12), Glimm, B. and KrÜger, A., Eds. Lecture Notes in Computer Science, vol. 7526. Springer-Verlag, 107–118.Google Scholar
Janhunen, T., Kaminski, R., Ostrowski, M., Schaub, T., Schellhorn, S. and Wanko, P. 2017. Clingo goes linear constraints over reals and integers. Theory and Practice of Logic Programming 17, 5-6, 872888.CrossRefGoogle Scholar
Janhunen, T. and NiemelÄ, I. 2011. Compact translations of non-disjunctive answer set programs to propositional clauses. In Logic Programming, Knowledge Representation, and Nonmonotonic Reasoning: Essays Dedicated to Michael Gelfond on the Occasion of his 65th Birthday, Balduccini, M. and Son, T., Eds. Lecture Notes in Computer Science, vol. 6565. Springer-Verlag, 111–130.Google Scholar
Kemp, D. and Stuckey, P. 1991. Semantics of logic programs with aggregates. In Proceedings of the 1991 International Symposium on Logic Programming (ISLP’91), Saraswat, V. and Ueda, K., Eds. MIT Press, 387401.Google Scholar
Klug, A. 1982. Equivalence of relational algebra and relational calculus query languages having aggregate functions. Journal of the ACM 29, 3, 699717.Google Scholar
Lee, J. and Meng, Y. 2009. On reductive semantics of aggregates in answer set programming. In Proceedings of the Tenth International Conference on Logic Programming and Nonmonotonic Reasoning (LPNMR’09), Erdem, E., Lin, F. and Schaub, T., Eds. Lecture Notes in Artificial Intelligence, vol. 5753. Springer-Verlag, 182–195.Google Scholar
Lierler, Y. and Susman, B. 2017. On relation between constraint answer set programming and satisfiability modulo theories. Theory and Practice of Logic Programming 17, 4, 559590.CrossRefGoogle Scholar
Lifschitz, V. 2002. Answer set programming and plan generation. Artificial Intelligence 138, 1-2, 3954.CrossRefGoogle Scholar
Lifschitz, V., Pearce, D. and Valverde, A. 2001. Strongly equivalent logic programs. ACM Transactions on Computational Logic 2, 4, 526541.CrossRefGoogle Scholar
Liu, G. and You, J. 2013. Relating weight constraint and aggregate programs: Semantics and representation. Theory and Practice of Logic Programming 13, 1, 131.Google Scholar
Liu, L., Pontelli, E., Son, T. and TruszczyŃski, M. 2010. Logic programs with abstract constraint atoms: The role of computations. Artificial Intelligence 174, 3-4, 295315.CrossRefGoogle Scholar
Liu, L. and TruszczyŃski, M. 2006. Properties and applications of programs with monotone and convex constraints. Journal of Artificial Intelligence Research 27, 299334.CrossRefGoogle Scholar
Lloyd, J. 1987. Foundations of Logic Programming. Springer-Verlag.CrossRefGoogle Scholar
Marek, V. and Remmel, J. 2004. Set constraints in logic programming. In Proceedings of the Seventh International Conference on Logic Programming and Nonmonotonic Reasoning (LPNMR’04), Lifschitz, V. and NiemelÄ, I., Eds. Lecture Notes in Artificial Intelligence, vol. 2923. Springer-Verlag, 167–179.Google Scholar
Marek, V. and TruszczyŃski, M. 1991. Autoepistemic logic. Journal of the ACM 38, 3, 588619.Google Scholar
Marek, V. and TruszczyŃski, M. 1999. Stable models and an alternative logic programming paradigm. In The Logic Programming Paradigm: A 25-Year Perspective, Apt, K., Marek, V., TruszczyŃski, M. and Warren, D., Eds. Springer-Verlag, 375398.CrossRefGoogle Scholar
Mazuran, M., Serra, E. and Zaniolo, C. 2013. Extending the power of Datalog recursion. Journal on Very Large Data Bases 22, 4, 471493.CrossRefGoogle Scholar
Mumick, I., Pirahesh, H. and Ramakrishnan, R. 1990. The magic of duplicates and aggregates. In Proceedings of the Sixteenth International Conference on Very Large Data Bases (VLDB’90), McLeod, D., Sacks-Davis, R. and Schek, H., Eds. Morgan Kaufmann Publishers, 264277.Google Scholar
NiemelÄ, I. 1999. Logic programs with stable model semantics as a constraint programming paradigm. Annals of Mathematics and Artificial Intelligence 25, 3-4, 241273.CrossRefGoogle Scholar
Özsoyoglu, G., Özsoyoglu, Z. and Matos, V. 1987. Extending relational algebra and relational calculus with set-valued attributes and aggregate functions. ACM Transactions on Database Systems 12, 4, 566592.CrossRefGoogle Scholar
Pelov, N., Denecker, M. and Bruynooghe, M. 2003. Translation of aggregate programs to normal logic programs. In Proceedings of the Second International Workshop on Answer Set Programming (ASP’03), de Vos, M. and Provetti, A., Eds. CEUR Workshop Proceedings (CEUR-WS.org), 29–42.Google Scholar
Pelov, N., Denecker, M. and Bruynooghe, M. 2007. Well-founded and stable semantics of logic programs with aggregates. Theory and Practice of Logic Programming 7, 3, 301353.CrossRefGoogle Scholar
Reiter, R. 1977. On closed world data bases. In Proceedings of Workshop on Logic and Databases, Gallaire, H. and Minker, J., Eds. Plenum Press, 119140.Google Scholar
Ross, K. 1994. Modular stratification and magic sets for Datalog programs with negation. Journal of the ACM 41, 6, 12161266.CrossRefGoogle Scholar
Roussel, O. and Manquinho, V. 2009. Pseudo-Boolean and cardinality constraints. In Handbook of Satisfiability, Biere, A., Heule, M., van Maaren, H. and Walsh, T., Eds. IOS Press, Chapter 22, 695–733.Google Scholar
Schlipf, J. 1995. The expressive powers of the logic programming semantics. Journal of Computer and System Sciences 51, 6486.CrossRefGoogle Scholar
Shen, Y., Wang, K., Eiter, T., Fink, M., Redl, C., Krennwallner, T. and Deng, J. 2014. FLP answer set semantics without circular justifications for general logic programs. Artificial Intelligence 213, 141.Google Scholar
Simons, P., NiemelÄ, I. and Soininen, T. 2002. Extending and implementing the stable model semantics. Artificial Intelligence 138, 1-2, 181234.CrossRefGoogle Scholar
Son, T. and Pontelli, E. 2007. A constructive semantic characterization of aggregates in answer set programming. Theory and Practice of Logic Programming 7, 3, 355375.CrossRefGoogle Scholar
Son, T., Pontelli, E. and Elkabani, I. 2006. An unfolding-based semantics for logic programming with aggregates. CoRR abs/cs/0605038.Google Scholar
Sudarshan, S. and Ramakrishnan, R. 1991. Aggregation and relevance in deductive databases. In Proceedings of the Seventeenth International Conference on Very Large Data Bases (VLDB’91), Lohman, G., Sernadas, A. and Camps, R., Eds. Morgan Kaufmann Publishers, 501511.Google Scholar
SyrjÄnen, T. 2001. Lparse 1.0 user’s manual. www.tcs.hut.fi/Software/smodels/.Google Scholar
TruszczyŃski, M. 2010. Reducts of propositional theories, satisfiability relations, and generalizations of semantics of logic programs. Artificial Intelligence 174, 16-17, 12851306.CrossRefGoogle Scholar
Vanbesien, L., Bruynooghe, M. and Denecker, M. 2021. Analyzing semantics of aggregate answer set programming using approximation fixpoint theory. CoRR abs/2104.14789.Google Scholar
van Emden, M. and Kowalski, R. 1976. The semantics of predicate logic as a programming language. Journal of the ACM 23, 4, 733742.CrossRefGoogle Scholar
Van Gelder, A. 1992. The well-founded semantics of aggregation. In Proceedings of the Eleventh ACM SIGACT-SIGMOD-SIGART Symposium on Principles of Database Systems (PODS’92), Vardi, M. and Kanellakis, P., Eds. ACM Press, 127138.Google Scholar
Weinzierl, A., Taupe, R. and Friedrich, G. 2020. Advancing lazy-grounding ASP solving techniques — restarts, phase saving, heuristics, and more. Theory and Practice of Logic Programming 20, 5, 609624.CrossRefGoogle Scholar
Zaniolo, C., Yang, M., Das, A., Shkapsky, A., Condie, T. and Interlandi, M. 2017. Fixpoint semantics and optimization of recursive Datalog programs with aggregates. Theory and Practice of Logic Programming 17, 5-6, 10481065.CrossRefGoogle Scholar