Hostname: page-component-76d6cb85b7-vdhp9 Total loading time: 0 Render date: 2026-07-10T17:19:09.843Z Has data issue: false hasContentIssue false

From Time to Space: The Impact of Linearity in Higher-Order Datalog

Published online by Cambridge University Press:  03 July 2026

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

Abstract

We consider a fragment of Higher-Order Datalog with negation and argue that it generalizes the familiar and important fragment of Linear Datalog. We investigate the expressive power of this fragment, establishing a tight connection with the hierarchy of space complexity classes. In particular, we demonstrate that for all $k \ge 1$, the $(k+1)$-order fragment of Stratified Linear Higher-Order Datalog$^\neg$ captures $(k-1)-\textsf {EXPSPACE}$. This result suggests that restricting programs to linear recursion shifts the expressive power of the corresponding fragments from time to space, generalizing the classical result that (Stratified) Linear Datalog captures NL. Unlike the first-order setting where an ordering assumption is required to capture $\mathsf{NL}$, our results hold without any such assumption on the input database. The proof relies on simulating space-bounded Turing machines using Stratified Linear Higher-Order Datalog$^\neg$ programs and providing a space-efficient evaluation of the query program. We argue that identifying such computationally well-behaved fragments is a crucial step toward paving the way for practical implementations of Higher-Order Datalog.

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), 2026. Published by Cambridge University Press
Figure 0

Table 1. Expressive power results (entries with a “$*$” use the ordering assumption)

Supplementary material: File

Charalambidis et al. supplementary material

Charalambidis et al. supplementary material
Download Charalambidis et al. supplementary material(File)
File 343.8 KB