The Power of Negation in Higher-Order Datalog

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Charalambidis, Angelos, Kostopoulos, Babis, Nomikos, Christos, Rondogiannis, Panos
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866912821046935552
author Charalambidis, Angelos
Kostopoulos, Babis
Nomikos, Christos
Rondogiannis, Panos
author_facet Charalambidis, Angelos
Kostopoulos, Babis
Nomikos, Christos
Rondogiannis, Panos
contents 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-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 co-(k-NEXP) using cautious reasoning and k-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 programming: increasing the order of programs under the well-founded semantics can surpass the expressive power of lower-order programs under the stable model semantics.
format Preprint
id arxiv_https___arxiv_org_abs_2507_20251
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle The Power of Negation in Higher-Order Datalog
Charalambidis, Angelos
Kostopoulos, Babis
Nomikos, Christos
Rondogiannis, Panos
Programming Languages
Computational Complexity
Databases
Logic in Computer Science
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-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 co-(k-NEXP) using cautious reasoning and k-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 programming: increasing the order of programs under the well-founded semantics can surpass the expressive power of lower-order programs under the stable model semantics.
title The Power of Negation in Higher-Order Datalog
topic Programming Languages
Computational Complexity
Databases
Logic in Computer Science
url https://arxiv.org/abs/2507.20251