How to Build Your Own ASP-based System?!
Theory and Practice of Logic Programming · 2023-01 · 23 (1) · 299-361
DOI: 10.1017/s1471068421000508 ↗Kurz gefasst
Fachartikel in der Zeitschrift Theory and Practice of Logic Programming, online erschienen am 13.12.2021. Verfasst von ROLAND KAMINSKI und 3 weiteren Autor:innen. Die Arbeit wurde bisher 42-mal zitiert (Crossref) und nennt 91 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0).
Abstract (Originalsprache)
Answer Set Programming, or ASP for short, has become a popular and sophisticated approach to declarative problem solving. Its popularity is due to its attractive modeling-grounding-solving workflow that provides an easy approach to problem solving, even for laypersons outside computer science. However, in contrast to ASP’s ease of use, the high degree of sophistication of the underlying technology makes it even hard for ASP experts to put ideas into practice whenever this involves modifying ASP’s machinery. For addressing this issue, this tutorial aims at enabling users to build their own ASP-based systems. More precisely, we show how the ASP system clingo can be used for extending ASP and for implementing customized special-purpose systems. To this end, we propose two alternatives. We begin with a traditional AI technique and show how metaprogramming can be used for extending ASP. This is a rather light approach that relies on clingo ’s reification feature to use ASP itself for expressing new functionalities. The second part of this tutorial uses traditional programming (in Python) for manipulating clingo via its application programming interface. This approach allows for changing and controlling the entire model-ground-solve workflow of ASP. Central to this is clingo ’s new Application class that allows us to draw on clingo ’s infrastructure by customizing processes similar to the one in clingo . For instance, we may apply manipulations to programs’ abstract syntax trees, control various forms of multi-shot solving, and set up theory propagators for foreign inferences. A cross-sectional structure, spanning meta as well as application programming, is clingo ’s intermediate format, aspif , that specifies the interface among the underlying grounder and solver. We illustrate the aforementioned concepts and techniques throughout this tutorial by means of examples and several nontrivial case studies. In particular, we show how clingo can be extended by difference constraints and how guess-and-check programming can be implemented with both meta and application programming.
Zitieren
APA
KAMINSKI, R., ROMERO, J., SCHAUB, T., & WANKO, P. (2023). How to Build Your Own ASP-based System?!. Theory and Practice of Logic Programming, 23(1), 299-361. https://doi.org/10.1017/s1471068421000508
Vancouver
KAMINSKI R, ROMERO J, SCHAUB T, WANKO P. How to Build Your Own ASP-based System?!. Theory and Practice of Logic Programming. 2023;23(1):299-361. doi:10.1017/s1471068421000508
BibTeX
@article{KAMINSKI2023,
author = {KAMINSKI, ROLAND and ROMERO, JAVIER and SCHAUB, TORSTEN and WANKO, PHILIPP},
title = {How to Build Your Own ASP-based System?!},
journal = {Theory and Practice of Logic Programming},
year = {2023},
volume = {23},
number = {1},
pages = {299--361},
doi = {10.1017/s1471068421000508}
}
EUVIMED