Tabling is a powerful resolution mechanism for logic programs that captures their least fixed point semantics more faithfully than plain Prolog. In many tabling applications, we are not interested in the set of all answers to a goal, but only require an aggregation of those answers. Several works have studied efficient techniques, such as lattice-based answer subsumption and mode-directed tabling, to do so for various forms of aggregation. While much attention has been paid to expressivity and efficient implementation of the different approaches, soundness has not been considered. This paper shows that the different implementations indeed fail to produce least fixed points for some programs. As a remedy, we provide a formal framework that generalises the existing approaches and we establish a soundness criterion that explains for which programs the approach is sound.
@article{iclp2016b,
author = {Alexander Vandenbroucke and Maciej Piróg and Benoit Desouter and Tom Schrijvers},
title = {Tabling with Sound Answer Subsumption},
year = {2016},
publisher = {Cambridge University Press},
journal = {Theory and Practice of Logic Programming (TPLP)},
note = {Proceedings of the International Conference on Logic Programming (ICLP)},
url = {/Research/papers/iclp2016b.pdf},
abstract = {Tabling is a powerful resolution mechanism for logic programs that captures
their least fixed point semantics more faithfully than plain Prolog. In many
tabling applications, we are not interested in the set of all answers to a
goal, but only require an aggregation of those answers. Several works have
studied efficient techniques, such as lattice-based answer subsumption and
mode-directed tabling, to do so for various forms of aggregation.
While much attention has been paid to expressivity and efficient implementation
of the different approaches, soundness has not been considered. This paper
shows that the different implementations indeed fail to produce least fixed
points for some programs. As a remedy, we provide a formal framework that
generalises the existing approaches and we establish a soundness criterion
that explains for which programs the approach is sound.
},
}