Causal Resolution of Undefined Answers in Datalog with Negation
Ratan Bahadur Thapa
Abstract
Unstratified negation may leave the answer to a Boolean Datalog query undefined under the well-founded semantics. We study database causality in this setting by asking which fact insertions and deletions realize a prescribed transition and which other changes preserve the observed query answer while making a designated fact pivotal. Such a set of changes to other facts is a contingency for the designated fact and the prescribed transition. Our game representation assigns one shared move to each mutable fact and preserves query values and intervention distances. Pairing source and target certificates characterizes all minimum contingencies for the six transitions among true, false, and undefined. When inserting or deleting a move resolves a draw, a directed tree traces the newly winning and losing positions along alternating paths to the source of that move. For the fixed one-rule win--move program, deciding whether a contingency of size at most k exists is NP-complete for each transition, even on bounded-degree graphs. Computing the minimum size is FPNP[]-complete, and counting minimum contingencies is \#P-hard under polynomial-time Turing reductions. When only one of true and false is reachable, the prime implicants of undefinedness satisfied at the observation cover every undefined state, and their supports induce nonempty subtrees of a common tree, we compute a minimum resolving intervention in polynomial time from the game instance. From the explicit tree and these implicants, we construct an equally large family of disjoint supports, certifying optimality.
Create a lesson
Related papers
Beyond Symmetry: Asymmetric Matching with Transformers for Collective Entity Resolution
Shared title terminology · Andrei Olar
Answering Conjunctive Queries over Linear Existential Rules with Transitivity
Shared title terminology · Cristina Feier, Tomasz Gogacz, Filip Murlak
Samyama-SDG: A Declarative GraphQL @count and Regex/Ontology Synthetic Data Compiler with O(1)-Memory Referential Integrity and Causal Ground Truth
Shared title terminology · Madhulatha Mandarapu, Sandeep Kunkunuru
Diverse Why-Provenance for Datalog Queries
Shared title terminology · Marco Calautti, Mostafa Milani, Andreas Pieris
Same Query, Different Answer: Run-to-Run Variance in Semantic Query Processing
Shared title terminology · Oktie Hassanzadeh, Dharmashankar Subramanian
Distributed Datalog at Scale with Worst-Case Optimal Joins
Shared title terminology · Kunting Qi, Yihao Sun, Kristopher Micinski et al.