Datalog with negation and monotonicity

Bas Ketsman, Christoph Koch

Research output: Chapter in Book/Report/Conference proceedingConference paper

2 Citations (Scopus)

Abstract

Positive Datalog has several nice properties that are lost when the language is extended with negation. One example is that fixpoints of positive Datalog programs are robust w.r.t. the order in which facts are inserted, which facilitates efficient evaluation of such programs in distributed environments. A natural question to ask, given a (stratified) Datalog program with negation, is whether an equivalent positive Datalog program exists. In this context, it is known that positive Datalog can express only a strict subset of the monotone queries, yet the exact relationship between the positive and monotone fragments of semi-positive and stratified Datalog was previously left open. In this paper, we complete the picture by showing that monotone queries expressible in semi-positive Datalog exist which are not expressible in positive Datalog. To provide additional insight into this gap, we also characterize a large class of semi-positive Datalog programs for which the dichotomy 'monotone if and only if rewritable to positive Datalog' holds. Finally, we give best-effort techniques to reduce the amount of negation that is exhibited by a program, even if the program is not monotone.

Original languageEnglish
Title of host publication23rd International Conference on Database Theory, ICDT 2020
EditorsCarsten Lutz, Jean Christoph Jung
Place of PublicationDagstuhl, Germany
PublisherSchloss Dagstuhl- Leibniz-Zentrum fur Informatik GmbH, Dagstuhl Publishing
Number of pages18
ISBN (Electronic)9783959771399
DOIs
Publication statusPublished - Mar 2020
Event23rd International Conference on Database Theory - Copenhagen, Denmark
Duration: 30 Mar 20202 Apr 2020

Publication series

NameLeibniz International Proceedings in Informatics, LIPIcs
Volume155
ISSN (Print)1868-8969

Conference

Conference23rd International Conference on Database Theory
Abbreviated titleICDT 2020
Country/TerritoryDenmark
CityCopenhagen
Period30/03/202/04/20

Keywords

  • Datalog
  • Monotonicity

Cite this