Rule Rewriting Revisited: A Fresh Look at Static Filtering for Datalog and ASP

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Hanisch, Philipp, Krötzsch, Markus
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866918285466927104
author Hanisch, Philipp
Krötzsch, Markus
author_facet Hanisch, Philipp
Krötzsch, Markus
contents Static filtering is a data-independent optimisation method for Datalog, which generalises algebraic query rewriting techniques from relational databases. In spite of its early discovery by Kifer and Lozinskii in 1986, the method has been overlooked in recent research and system development, and special cases are being rediscovered independently. We therefore recall the original approach, using updated terminology and more general filter predicates that capture features of modern systems, and we show how to extend its applicability to answer set programming (ASP). The outcome is strictly more general but also more complex than the classical approach: double exponential in general and single exponential even for predicates of bounded arity. As a solution, we propose tractable approximations of the algorithm that can still yield much improved logic programs in typical cases, e.g., it can improve the performance of rule systems over real-world data in the order of magnitude.
format Preprint
id arxiv_https___arxiv_org_abs_2601_05108
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Rule Rewriting Revisited: A Fresh Look at Static Filtering for Datalog and ASP
Hanisch, Philipp
Krötzsch, Markus
Databases
Logic in Computer Science
Static filtering is a data-independent optimisation method for Datalog, which generalises algebraic query rewriting techniques from relational databases. In spite of its early discovery by Kifer and Lozinskii in 1986, the method has been overlooked in recent research and system development, and special cases are being rediscovered independently. We therefore recall the original approach, using updated terminology and more general filter predicates that capture features of modern systems, and we show how to extend its applicability to answer set programming (ASP). The outcome is strictly more general but also more complex than the classical approach: double exponential in general and single exponential even for predicates of bounded arity. As a solution, we propose tractable approximations of the algorithm that can still yield much improved logic programs in typical cases, e.g., it can improve the performance of rule systems over real-world data in the order of magnitude.
title Rule Rewriting Revisited: A Fresh Look at Static Filtering for Datalog and ASP
topic Databases
Logic in Computer Science
url https://arxiv.org/abs/2601.05108