Property Testing for Recursive Query Languages
Isolde Adler, Carsten Lutz, Quentin Manière, Marcin Przybyłko, Lukas Schulze
Key points
From the paper's conclusion- In this article, we initiate the study of property testing for recursive query languages, focusing on two-way regular path queries (2RPQs) and monadic Datalog.
Abstract
In the context of database querying, property testing provides a framework for testing query answers with high confidence while inspecting only a sublinear part of the database, through completion queries and size queries. A fundamental result of Chen and Yoshida (2019) states that non-satisfaction of a Boolean conjunctive query $q$ is testable with a constant number of such queries and one-sided error if and only if $q$ is equivalent to an $α$-acyclic query. In this article, we initiate the study of property testing for recursive query languages, focusing on two-way regular path queries (2RPQs) and monadic Datalog. One of our main results is positive: non-answers to any 2RPQ are constant query testable with one-sided error. We extend this slightly to a certain class of monadic Datalog programs in which recursion is restricted to be linear and rule bodies must be $α$-acyclic. Turning towards unrestricted monadic Datalog, we next show that if a monadic Datalog program $Π$ is not equivalent to an $α$-acyclic program, then falsity of $Π$ is not constant query testable with one-sided error. This is under the assumption that all rule-bodies are self-join free. We leave open the case of monadic Datalog programs with $α$-acyclic rule bodies that are not restricted to linear recursion, but observe as a first step that there exist $α$-acyclic programs that are mildly non-linear and constant query testable with one-sided error.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Testability of Homomorphism Inadmissibility: Property Testing Meets Database TheoryarXiv · 2026
- Resilience for Regular Path Queries: Towards a Complexity ClassificationACM Transactions on Database Systems · 2026
- Near-Optimal Bounds for Testing Residual-String Equality and Parenthesis LanguagesarXiv · 2026
- Approximate Counting and the Provability of Combinatorial PrinciplesarXiv · 2026
- Near-Linear Lower Bounds for Testing Directed AcyclicityarXiv · 2026
- First-Order Model Checking on Monadically Dependent Graph ClassesarXiv · 2026