Hostname: page-component-89b8bd64d-dvtzq Total loading time: 0 Render date: 2026-05-06T13:46:35.306Z Has data issue: false hasContentIssue false

ASP-Based Multi-Shot Reasoning via DLV2 with Incremental Grounding

Published online by Cambridge University Press:  21 May 2025

FRANCESCO CALIMERI
Affiliation:
Università della Calabria, Rende, Italy (e-mails: francesco.calimeri@unical.it, giovambattista.ianni@unical.it, pacenza@mat.unical.it, simona.perri@unical.it, zangari@mat.unical.it)
GIOVAMBATTISTA IANNI
Affiliation:
Università della Calabria, Rende, Italy (e-mails: francesco.calimeri@unical.it, giovambattista.ianni@unical.it, pacenza@mat.unical.it, simona.perri@unical.it, zangari@mat.unical.it)
FRANCESCO PACENZA
Affiliation:
Università della Calabria, Rende, Italy (e-mails: francesco.calimeri@unical.it, giovambattista.ianni@unical.it, pacenza@mat.unical.it, simona.perri@unical.it, zangari@mat.unical.it)
SIMONA PERRI
Affiliation:
Università della Calabria, Rende, Italy (e-mails: francesco.calimeri@unical.it, giovambattista.ianni@unical.it, pacenza@mat.unical.it, simona.perri@unical.it, zangari@mat.unical.it)
JESSICA ZANGARI
Affiliation:
Università della Calabria, Rende, Italy (e-mails: francesco.calimeri@unical.it, giovambattista.ianni@unical.it, pacenza@mat.unical.it, simona.perri@unical.it, zangari@mat.unical.it)
Rights & Permissions [Opens in a new window]

Abstract

DLV2 is an AI tool for knowledge representation and reasoning that supports answer set programming (ASP) – a logic-based declarative formalism, successfully used in both academic and industrial applications. Given a logic program modeling a computational problem, an execution of DLV2 produces the so-called answer sets that correspond one-to-one to the solutions to the problem at hand. The computational process of DLV2 relies on the typical ground & solve approach, where the grounding step transforms the input program into a new, equivalent ground program, and the subsequent solving step applies propositional algorithms to search for the answer sets. Recently, emerging applications in contexts such as stream reasoning and event processing created a demand for multi-shot reasoning: here, the system is expected to be reactive while repeatedly executed over rapidly changing data. In this work, we present a new incremental reasoner obtained from the evolution of DLV2 toward iterated reasoning. Rather than restarting the computation from scratch, the system remains alive across repeated shots, and it incrementally handles the internal grounding process. At each shot, the system reuses previous computations for building and maintaining a large, more general ground program, from which a smaller yet equivalent portion is determined and used for computing answer sets. Notably, the incremental process is performed in a completely transparent fashion for the user. We describe the system, its usage, its applicability, and performance in some practically relevant domains.

Information

Type
Original Article
Creative Commons
Creative Common License - CCCreative Common License - BYCreative Common License - NCCreative Common License - ND
This is an Open Access article, distributed under the terms of the Creative Commons Attribution-NonCommercial-NoDerivatives licence (https://creativecommons.org/licenses/by-nc-nd/4.0/), which permits non-commercial re-use, distribution, and reproduction in any medium, provided that no alterations are made and the original article is properly cited. The written permission of Cambridge University Press must be obtained prior to any commercial use and/or adaptation of the article.
Copyright
© The Author(s), 2025. Published by Cambridge University Press
Figure 0

Fig 1. Incremental-DLV2 architecture.

Figure 1

Fig 2. Simplified version of the incremental algorithm IncrInst.

Figure 2

Fig 3. An example of multi-shot reasoning task based on Incremental-DLV2: compute 3-coloring for graphs featuring a structure that changes over time.

Figure 3

Fig 4. Incremental-DLV2 against DLV2: performance in multi-shot contexts.