Inlining External Sources in Answer Set Programs

08/02/2018
by   Christoph Redl, et al.
0

HEX-programs are an extension of answer set programs (ASP) with external sources. To this end, external atoms provide a bidirectional interface between the program and an external source. The traditional evaluation algorithm for HEX-programs is based on guessing truth values of external atoms and verifying them by explicit calls of the external source. The approach was optimized by techniques that reduce the number of necessary verification calls or speed them up, but the remaining external calls are still expensive. In this paper we present an alternative evaluation approach based on inlining of external atoms, motivated by existing but less general approaches for specialized formalisms such as DL-programs. External atoms are then compiled away such that no verification calls are necessary. The approach is implemented in the dlvhex reasoner. Experiments show a significant performance gain. Besides performance improvements, we further exploit inlining for extending previous (semantic) characterizations of program equivalence from ASP to HEX-programs, including those of strong equivalence, uniform equivalence and H, B -equivalence. Finally, based on these equivalence criteria, we characterize also inconsistency of programs wrt. extensions. Since well-known ASP extensions (such as constraint ASP) are special cases of HEX, the results are interesting beyond the particular formalism. Under consideration in Theory and Practice of Logic Programming (TPLP).

READ FULL TEXT

page 1

page 2

page 3

page 4

research
05/31/2018

Technical Report: Inconsistency in Answer Set Programs and Extensions

Answer Set Programming (ASP) is a well-known problem solving approach ba...
research
08/29/2011

Nested HEX-Programs

Answer-Set Programming (ASP) is an established declarative programming p...
research
10/05/2012

Conflict-driven ASP Solving with External Sources

Answer Set Programming (ASP) is a well-known problem solving approach ba...
research
05/07/2019

Integrated Algorithms for HEX-Programs and Applications in Machine Learning

This paper summarizes my doctoral research on evaluation algorithms for ...
research
07/29/2016

The DLVHEX System for Knowledge Representation: Recent Advances (System Description)

The DLVHEX system implements the HEX-semantics, which integrates answer ...
research
11/05/2018

The External Interface for Extending WASP

Answer set programming (ASP) is a successful declarative formalism for k...
research
01/08/2013

Eliminating Unfounded Set Checking for HEX-Programs

HEX-programs are an extension of the Answer Set Programming (ASP) paradi...

Please sign up or login with your details

Forgot password? Click here to reset