REVIEW
Causal Resolution of Undefined Answers in Datalog with Negation
Databases · Submitted 9 Nov 2026 · 44 references
Pith's verdict: Thorough extension of database causality to undefined answers under WFS, with clean characterizations and complexity bounds; the tractable algorithm is a nice bonus but limited by a strong structural condition.
Why Pith says this
Highlight any text to comment on it.
Referee report
The paper
The paper claims
Pairing win-loss certificates characterizes all minimum contingencies for Datalog queries with negation under the well-founded semantics.
The reading
What carries the argument
The key machinery is a game normal form that maps every intervention instance to a win–move game, preserving query values and Hamming distances between states. Central to the characterization are certificates: a triple (W+, W−, ρ) that certifies a win or loss at a position, and a pair (Z, R) that certifies a draw. Pairing a certificate for the observed state with a flipped certificate for the target state gives a term (a conjunction of literals on mutable moves) whose cost equals the minimum contingency size. The propagation theorem (Theorem 19) shows that when one update resolves a draw, the newly winning and losing vertices form a spanning in-arborescence rooted at the source of the update, with alternating membership.
Extended reading notes
Core claim
The paper establishes a complete characterization of minimum contingency sets for each of the six ordered transitions between truth values (true to false, true to undefined, false to true, false to undefined, undefined to true, undefined to false) in the context of Boolean Datalog queries with recursion through negation under the well-founded semantics. The characterization pairs a certificate for the observed answer with a certificate for the target answer, imposing consistent conditions on all other mutable facts. This yields a formula for the minimum size and a description of all minimizers. The paper also proves that whenever a single insertion or deletion resolves a draw at the query, the newly winning and losing positions are connected by a directed alternating tree rooted at the source of the changed move.
Load-bearing premise
The polynomial‑time algorithm (Theorem 24) requires that the support hypergraph of prime implicants for undefinedness is a subtree hypergraph—a strong structural condition whose verification is coNP‑complete (Proposition 51).
Editorial extensions
If this is right
- Database causality for well-founded semantics now has a complete characterization for all six transitions among true, false, and undefined.
- The complexity results (NP-complete decision, FPNP[log]-complete optimization, #P-hard counting) set fundamental limits for causal reasoning in recursive Datalog.
- The polynomial-time algorithm for the subtree hypergraph case gives a tractable fragment for practical intervention design when the conditions hold.
- The propagation theorem provides a structural explanation for how a single update resolves a draw, which may aid in debugging unexpected query answers.
Reading between the lines
- The subtree hypergraph condition—only one determinate value reachable, prime implicants covering all undefined states, and supports forming connected subgraphs of a common tree—is quite restrictive; future work could identify syntactic database constraints (e.g., acyclic foreign keys) that guarantee this condition.
- The game representation may extend to other non‑monotonic semantics beyond the well‑founded semantics, such as stable model semantics, though the draw region would differ.
- The hardness already for the one‑rule win–move program suggests that practical causal tools for recursive Datalog will require heuristics or further domain restrictions, as even minimal recursive rules make these problems NP‑complete.
Original 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 $\mathrm{NP}$-complete for each transition, even on bounded-degree graphs. Computing the minimum size is $\mathrm{FP}^{\mathrm{NP}[\log]}$-complete, and counting minimum contingencies is $\#\mathrm{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.
The compiled record
The paper's own sentences, arranged, kept beside the review and separate from it. Each label is drawn from a closed vocabulary; the number beside it is the probability the classifier gave that label. Numbers in the tables are the authors', checked by code. No sentence in this record was written by a model.
The abstract, sentence by sentence
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 $\mathrm{NP}$-complete for each transition, even on bounded-degree graphs. Computing the minimum size is $\mathrm{FP}^{\mathrm{NP}[\log]}$-complete, and counting minimum contingencies is $\#\mathrm{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.
background contribution method result interpretation main claim
| # | sentence | role | the authors' own work | states the main conclusion | strength |
|---|---|---|---|---|---|
| s0 | Unstratified negation may leave the answer to a Boolean Datalog query undefined under the well-founded semantics. | background 1.00 | 0.05 | 0.03 | hedged possibility 1.00 |
| s1 | 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. | contribution 0.99 | 0.79 | 0.07 | asserted 0.84 |
| s2 | Such a set of changes to other facts is a contingency for the designated fact and the prescribed transition. | contribution 0.52 | 0.30 | 0.05 | asserted 0.99 |
| s3 | Our game representation assigns one shared move to each mutable fact and preserves query values and intervention distances. | method 0.97 | 0.92 | 0.07 | asserted 1.00 |
| s4 | Pairing source and target certificates characterizes all minimum contingencies for the six transitions among true, false, and undefined. | result 0.83 | 0.93 | 0.24 | asserted 1.00 |
| s5 | 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. | method 0.82 | 0.87 | 0.09 | asserted 1.00 |
| s6 | For the fixed one-rule win--move program, deciding whether a contingency of size at most $k$ exists is $\mathrm{NP}$-complete for each transition, even on bounded-degree graphs. | result 1.00 | 0.88 | 0.18 | asserted 1.00 |
| s7 | Computing the minimum size is $\mathrm{FP}^{\mathrm{NP}[\log]}$-complete, and counting minimum contingencies is $\#\mathrm{P}$-hard under polynomial-time Turing reductions. | result 1.00 | 0.86 | 0.17 | asserted 1.00 |
| s8 | 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. | result 0.81 | 0.92 | 0.21 | asserted 1.00 |
| s9 | From the explicit tree and these implicants, we construct an equally large family of disjoint supports, certifying optimality. | method 0.48 | 0.94 | 0.12 | asserted 1.00 |
What was examined, and what was not
- arXiv listing abstract v1
- full text
- figures and tables
- references and citing sentences
- relations to other papers
- P abstract
- S sections
- T body sentences
- C citations
- R cross-paper relations
Figures
Figures reproduced from arXiv:2611.11756 by the authors.
References
Discussion
Disagree with the review, or know something it missed? Leave a comment, highlight any passage above to comment on it, or challenge this review formally.