Hostname: page-component-77f85d65b8-pztms Total loading time: 0 Render date: 2026-03-28T14:10:36.977Z Has data issue: false hasContentIssue false

The Power of Negation in Higher-Order Datalog

Published online by Cambridge University Press:  27 August 2025

ANGELOS CHARALAMBIDIS
Affiliation:
Harokopio University of Athens, Athens, Greece (e-mails: acharal@hua.gr, kostbabis@hua.gr)
BABIS KOSTOPOULOS
Affiliation:
Harokopio University of Athens, Athens, Greece (e-mails: acharal@hua.gr, kostbabis@hua.gr)
CHRISTOS NOMIKOS
Affiliation:
University of Ioannina, Ioannina, Greece (e-mail: cnomikos@cs.uoi.gr)
PANOS RONDOGIANNIS
Affiliation:
National and Kapodistrian University of Athens, Athens, Greece (e-mail: prondo@di.uoa.gr)
Rights & Permissions [Opens in a new window]

Abstract

We investigate the expressive power of Higher-Order $Datalog^\neg$ under both the well-founded and the stable model semantics, establishing tight connections with complexity classes. We prove that under the well-founded semantics, for all $k\geq 1$, $(k+1)$-Order $Datalog^\neg$ captures $k-\textsf {EXP}$, a result that holds without explicit ordering of the input database. The proof of this fact can be performed either by using the powerful existential predicate variables of the language or by using partially applied relations and relation enumeration. Furthermore, we demonstrate that this expressive power is retained within a stratified fragment of the language. Under the stable model semantics, we show that $(k+1)$-Order $Datalog^\neg$ captures $\textsf {co}-(k-\textsf {NEXP})$ using cautious reasoning and $k-\textsf {NEXP}$ using brave reasoning, again with analogous results for the stratified fragment augmented with choice rules. Our results establish a hierarchy of expressive power, highlighting an interesting trade-off between order and non-determinism in the context of higher-order logic programing: increasing the order of programs under the well-founded semantics can surpass the expressive power of lower-order programs under the stable model semantics.

Information

Type
Original Article
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2025. Published by Cambridge University Press
Figure 0

Table 1. Expressive power of Higher-Order$Datalog^\neg$(with no ordering assumption)

Supplementary material: File

CHARALAMBIDIS et al. supplementary material

CHARALAMBIDIS et al. supplementary material
Download CHARALAMBIDIS et al. supplementary material(File)
File 389.4 KB