Skip to main content Accessibility help
×
Home

Constraint Answer Set Programming without Grounding

  • JOAQUIN ARIAS (a1), MANUEL CARRO (a1), ELMER SALAZAR (a2), KYLE MARPLE (a2) and GOPAL GUPTA (a2)...

Abstract

Extending ASP with constraints (CASP) enhances its expressiveness and performance. This extension is not straightforward as the grounding phase, present in most ASP systems, removes variables and the links among them, and also causes a combinatorial explosion in the size of the program. Several methods to overcome this issue have been devised: restricting the constraint domains (e.g., discrete instead of dense), or the type (or number) of models that can be returned. In this paper we propose to incorporate constraints into s(ASP), a goal-directed, top-down execution model which implements ASP while retaining logical variables both during execution and in the answer sets. The resulting model, s(CASP), can constrain variables that, as in CLP, are kept during the execution and in the answer sets. s(CASP) inherits and generalizes the execution model of s(ASP) and is parametric w.r.t. the constraint solver. We describe this novel execution model and show through several examples the enhanced expressiveness of s(CASP) w.r.t. ASP, CLP, and other CASP systems. We also report improved performance w.r.t. other very mature, highly optimized ASP systems in some benchmarks.

    • Send article to Kindle

      To send this article to your Kindle, first ensure no-reply@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about sending to your Kindle. Find out more about sending to your Kindle.

      Note you can select to send to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be sent to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

      Find out more about the Kindle Personal Document Service.

      Constraint Answer Set Programming without Grounding
      Available formats
      ×

      Send article to Dropbox

      To send this article to your Dropbox account, please select one or more formats and confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your <service> account. Find out more about sending content to Dropbox.

      Constraint Answer Set Programming without Grounding
      Available formats
      ×

      Send article to Google Drive

      To send this article to your Google Drive account, please select one or more formats and confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your <service> account. Find out more about sending content to Google Drive.

      Constraint Answer Set Programming without Grounding
      Available formats
      ×

Copyright

Footnotes

Hide All

*Work partially supported by EIT Digital (https://eitdigital.eu), MINECO project TIN2015-67522-C3-1-R (TRACES), Comunidad de Madrid project S2013/ICE-2731 N-Greens Software, NSF IIS 1718945, and NSF IIS 1423419.

Footnotes

References

Hide All
Alferes, J. J., Pereira, L. M., and Swift, T. 2004. Abduction in Well-Founded Semantics and Generalized Stable Models via Tabled Dual Programs. Theory and Practice of Logic Programming 4, 4, 383428.
Alviano, M., Faber, W., Greco, G., and Leone, N. 2012. Magic Sets for Disjunctive Datalog Programs. Artificial Intelligence 187, 156192.
Arias, J. 2016. Tabled CLP for Reasoning over Stream Data. In Technical Communications of the 32nd Int'l Conference on Logic Programming (ICLP'16). Vol. 52. OASIcs, 1–8. Doctoral Consortium.
Arias, J. and Carro, M. 2016. Description and Evaluation of a Generic Design to Integrate CLP and Tabled Execution. In 18th Int'l. ACM SIGPLAN Symposium on Principles and Practice of Declarative Programming (PPDP'16). ACM Press, 10–23.
Balduccini, M. and Lierler, Y. 2017. Constraint Answer Set Solver EZCSP and why Integration Schemas Matter. Theory and Practice of Logic Programming 17, 4, 462515.
Banbara, M., Kaufmann, B., Ostrowski, M., and Schaub, T. 2017. Clingcon: The Next Generation. Theory and Practice of Logic Programming 17, 4, 408461.
Baselice, S. and Bonatti, P. A. 2010. A Decidable Subclass of Finitary Programs. Theory and Practice of Logic Programming 10, 4–6, 481496.
Baselice, S., Bonatti, P. A., and Criscuolo, G. 2009. On Finitely Recursive Programs. Theory and Practice of Logic Programming 9, 2, 213238.
Brewka, G., Eiter, T., and Truszczyński, M. 2011. Answer Set Programming at a Glance. Communications of the ACM 54, 12, 92103.
Calimeri, F., Cozza, S., and Ianni, G. 2007. External Sources of Knowledge and Value Invention in Logic Programming. Annals of Mathematics and Artificial Intelligence 50, 3–4, 333361.
Clark, K. L. 1978. Negation as Failure. In Logic and Data Bases, Gallaire, H. and Minker, J., Eds. Plenum.
Dal Palù, A., Dovier, A., Pontelli, E., and Rossi, G. 2009. GASP: Answer Set Programming with Lazy Grounding. Fundamenta Informaticae 96, 3, 297322.
Dovier, A., Formisano, A., and Pontelli, E. 2005. A Comparison of CLP(FD) and ASP Solutions to NP-Complete Problems. In International Conference on Logic Programming. Springer, 6782.
Gabbrielli, M. and Levi, G. 1991. Modeling Answer Constraints in Constraint Logic Programs. In Proc. Eighth Int'l Conf. on Logic Programming.
Gebser, M., Kaminski, R., Kaufmann, B., Ostrowski, M., Schaub, T., and Thiele, S. 2008. A User's Guide to gringo, clasp, clingo, and iclingo.
Gelfond, M. and Lifschitz, V. 1988. The Stable Model Semantics for Logic Programming. In International Conference on Logic Programming 1988. 1070–1080.
Gelfond, M. and Lifschitz, V. 1991. Classical Negation in Logic Programs and Disjunctive Databases. New Generation Computing 9, 3/4, 365386.
Gupta, G., Bansal, A., Min, R., Simon, L., and Mallya, A. 2007. Coinductive Logic Programming and its Applications. Logic Programming, 27–44.
Hermenegildo, M. V., Bueno, F., Carro, M., López, P., Mera, E., Morales, J., and Puebla, G. 2012. An Overview of Ciao and its Design Philosophy. Theory and Practice of Logic Programming 12, 1–2 (January), 219–252. http://arxiv.org/abs/1102.5497.
Hölldobler, S. and Schweizer, L. 2014. Answer Set Programming and clasp, a Tutorial. In Young Scientists' International Workshop on Trends in Information Processing (YSIP). 77.
Holzbaur, C. 1995. OFAI CLP(Q,R) Manual, Edition 1.3.3. Tech. Rep. TR-95-09, Austrian Research Institute for Artificial Intelligence, Vienna.
Jaffar, J. and Maher, M. 1994. Constraint Logic Programming: A Survey. Journal of Logic Programming 19/20, 503581.
Janhunen, T., Kaminski, R., Ostrowski, M., Schellhorn, S., Wanko, P., and Schaub, T. 2017. Clingo goes Linear Constraints over Reals and Integers. TPLP 17, 5–6, 872888.
Ji, J., Wan, H., Wang, K., Wang, Z., Zhang, C., and Xu, J. 2016. Eliminating Disjunctions in Answer Set Programming by Restricted Unfolding. In IJCAI. 1130–1137.
Marple, K., Salazar, E., Chen, Z., and Gupta, G. 2017a. The s(ASP) Predicate Answer Set Programming System. The Association for Logic Programming Newsletter.
Marple, K., Salazar, E., and Gupta, G. 2017b. Computing Stable Models of Normal Logic Programs Without Grounding. CoRR abs/1709.00501.
Revesz, P. Z. 1993. A Closed-Form Evaluation for Datalog Queries with Integer (Gap)-Order Constraints. Theoretical Computer Science 116, 1, 117149.
Type Description Title
PDF
Supplementary materials

Arias et al. supplementary material
Online Appendix

 PDF (208 KB)
208 KB

Constraint Answer Set Programming without Grounding

  • JOAQUIN ARIAS (a1), MANUEL CARRO (a1), ELMER SALAZAR (a2), KYLE MARPLE (a2) and GOPAL GUPTA (a2)...

Metrics

Full text views

Total number of HTML views: 0
Total number of PDF views: 0 *
Loading metrics...

Abstract views

Total abstract views: 0 *
Loading metrics...

* Views captured on Cambridge Core between <date>. This data will be updated every 24 hours.

Usage data cannot currently be displayed