---
title: Guarded Disjunctive Existential Rules
url: https://www.emergentmind.com/topics/guarded-disjunctive-existential-rules
type: topic
---

# Guarded Disjunctive Existential Rules

Searching arXiv for recent and foundational papers on guarded disjunctive existential rules, DTGDs, and related finite axiomatizability/reasoning complexity.
Guarded disjunctive existential rules are a syntactically restricted class of disjunctive existential rules in which the rule body is empty or contains an atom that mentions all universally quantified variables. In the database literature, disjunctive existential rules are also called disjunctive tuple-generating dependencies, and they extend existential-rule languages by allowing a disjunctive head rather than a single existentially quantified consequence. Recent work gives an exact model-theoretic characterization of finite axiomatizability for the guarded fragment in terms of criticality, closure under repairable direct products, and guarded-diagrammatic compatibility, and also studies when guarded rule sets can be rewritten into equivalent linear ones [2508.11946]. Earlier work on reasoning established that guardedness preserves decidability in the presence of head disjunction, but that query answering incurs a substantial complexity increase, reaching \(2\)EXPTIME-completeness in combined complexity for guarded disjunctive tuple-generating dependencies [1405.5109].

## 1. Formal definition and syntactic position

A disjunctive existential rule over a schema \({\mathcal S}\) is defined as a constant-free first-order sentence of the form
\[
\forall \bar x \forall \bar y \left(\phi(\bar x,\bar y)\ \ \bigvee_{i=1}^{k} \exists \bar z_i\, \psi_i(\bar x_i,\bar z_i)\right),
\]
where \(k > 0\), \(\bar x,\bar y,\bar x_1,\ldots,\bar x_k,\bar z_1,\ldots,\bar z_k\) are tuples of variables, each variable of \(\bar x_i\) occurs in \(\bar x\), each variable of \(\bar x\) occurs in some \(\bar x_i\), \(\phi(\bar x,\bar y)\) is a possibly empty conjunction of atoms, and each \(\psi_i(\bar x_i,\bar z_i)\) is a non-empty conjunction of atoms [2508.11946]. The body is \(body(\sigma)=\phi(\bar x,\bar y)\), and the head is \(head(\sigma)=\bigvee_{i=1}^{k}\exists \bar z_i\,\psi_i(\bar x_i,\bar z_i)\) [2508.11946].

Semantically, \(I\models \sigma\) means that whenever the body is matched in \(I\), at least one disjunct in the head can be satisfied by extending the match [2508.11946]. In the alternative notation used for disjunctive tuple-generating dependencies,
\[
\sigma:\quad \forall X\,\varphi(X)\to \bigvee_{i=1}^{n}\exists Y\,\psi_i(X,Y), \qquad n\ge 1,
\]
the same idea is emphasized: one body match forces a choice among several existential consequences [1405.5109].

A disjunctive existential rule is guarded if its body is empty or has an atom that mentions all the universally quantified variables [2508.11946]. In the guarded-tuple-generating-dependency presentation, this body atom is called the guard, and guardedness is the standard structural condition requiring that the body contain an atom with all universally quantified variables of the rule [1405.5109]. Linear rules form a closely related subclass: they are explicitly described as another main member of the guarded family of disjunctive existential rules [2508.11946].

This guardedness condition is purely syntactic, but it has substantial semantic and algorithmic consequences. The 2025 characterization work treats guarded rules as a robust specialization of the general disjunctive existential-rule framework [2508.11946], while the 2014 reasoning study treats guarded disjunctive tuple-generating dependencies as one of the central decidable Datalog\(^+\!\!/-\) fragments after disjunction is added [1405.5109].

## 2. Semantics, model classes, and query answering

The model-theoretic viewpoint studies classes \({\mathcal C}\) of relational structures and asks when such a class is exactly the set of models of a finite set of guarded disjunctive existential rules [2508.11946]. This shifts attention from derivational procedures to semantic invariants of model classes. The main result for the guarded setting is a finite-axiomatizability theorem parameterized by bounds on the numbers of universal variables, existential variables, and head disjuncts [2508.11946].

The query-answering viewpoint starts from a database \(D\) and a theory \(\Sigma\), and uses certain-answer semantics:
\[
\mathrm{ans}(q,D,\Sigma)= \{\langle a_1,\dots,a_k\rangle \mid \forall M\in \mathrm{Mod}(D,\Sigma): M\models q(a_1,\dots,a_k)\}.
\]
For boolean conjunctive queries, the decision problem is whether \(D\cup \Sigma \models q\) [1405.5109]. Under this semantics, disjunction in the rule head is significant because it creates branching in the model space: instead of a single existential consequence, at least one of several alternatives must hold [1405.5109].

To capture that branching operationally, the disjunctive setting uses a disjunctive chase. A disjunctive tuple-generating dependency \(\sigma\) is applicable to an instance \(I\) if the body matches under some homomorphism \(h\), but none of the disjuncts is already satisfied under an extension \(h'\). Applying \(\sigma\) yields a set of successor instances,
\[
I \#_{\sigma,h} \{I_1,\dots,I_n\},
\]
where each \(I_i\) is obtained by adding the \(i\)-th disjunct with fresh nulls [1405.5109]. Repeated fair applications generate a disjunctive chase tree whose leaves define \(\mathrm{dchase}(D,\Sigma)\), and this set of leaves is a universal set model: for every model \(M\in \mathrm{Mod}(D,\Sigma)\), there exists \(I\in \mathrm{dchase}(D,\Sigma)\) and a homomorphism \(h_I\) such that \(h_I(I)\subseteq M\) [1405.5109]. Consequently,
\[
D\cup \Sigma \models q \quad\Longleftrightarrow\quad I\models q \text{ for every } I\in \mathrm{dchase}(D,\Sigma)
\]
for conjunctive query answering [1405.5109].

This division between semantic model classes and operational branching semantics is central to the topic. The former explains which classes can be axiomatized by finite guarded disjunctive rule sets; the latter explains why even guarded reasoning becomes substantially harder once head disjunction is present.

## 3. Finite axiomatizability and the guarded characterization

The central semantic theorem for guarded disjunctive existential rules states that for a collection \({\mathcal C}\) of structures and \(n,m \geq 0\), with \(n+m > 0\), and \(\ell > 0\), the following are equivalent:
1. \({\mathcal C}\) is finitely axiomatizable by guarded \((n,m,\ell)\)-dexrs.
2. \({\mathcal C}\) is critical, closed under repairable direct products, and guarded-diagrammatically \((n,m,\ell)\)-compatible [2508.11946].

This is an exact semantic characterization of finite axiomatizability by finite sets of guarded disjunctive existential rules with bounded numbers of universal variables, existential variables, and head disjuncts [2508.11946]. The theorem is a guarded refinement of a more general characterization for unrestricted disjunctive existential rules, and the paper presents it as evidence for the robustness of the diagrammatic-compatibility method [2508.11946].

Three ingredients are indispensable. First, criticality is inherited from the unrestricted setting. A structure \(I\) is \(\kappa\)-critical if \(|dom(I)|=\kappa\) and every relation is full, i.e. \(R_i^I = dom(I)^{ar(R_i)}\). A collection \({\mathcal C}\) is critical if it contains a \(\kappa\)-critical structure for every \(\kappa>0\). The relevant lemma states that a collection of structures finitely axiomatizable by disjunctive existential rules is critical [2508.11946].

Second, the appropriate product closure is not ordinary direct-product closure but closure under repairable direct products. Given \(I,J\), their direct product \(I\otimes J\) is defined as usual. A structure \(L\) is a repairable direct product of \(I\) and \(J\) if \(I\otimes J \subseteq L\) and the projective homomorphism \(\pi_{I\otimes J}\) extends to a homomorphism \(L\to I\) [2508.11946]. A corresponding lemma states that any class finitely axiomatizable by disjunctive existential rules is closed under repairable direct products [2508.11946].

Third, the new ingredient is guarded-diagrammatic compatibility. The general notion of diagrammatic compatibility is based on \((m,\ell)\)-diagrams \(\Delta_{K,G}^I\) for finite substructures \(K\subseteq I\), and roughly ensures that if a structure \(I\) violates a bounded disjunctive existential rule, then the collection \({\mathcal C}\) contains some structure witnessing the same violation [2508.11946]. In the guarded case, the notion is specialized to guarded local configurations. A structure \(J\) is guarded if either \(facts(J)=\emptyset\), or there is \(R(c_1,\ldots,c_r)\in facts(J)\) such that \(adom(J)=\{c_1,\ldots,c_r\}\) [2508.11946]. Then \({\mathcal C}\) is guarded-diagrammatically \((n,m,\ell)\)-compatible with \(I\) if, for every guarded substructure \(K\) of \(I\) with \(dom(K)=adom(K)\) and \(|dom(K)|\le n\), and every \((m,\ell)\)-diagram \(\Delta_{K,G}^I\) of \(K\) relative to \(I\), there exists \(J\in{\mathcal C}\) such that \(J\models \Delta_{K,G}^I\) [2508.11946].

The paper explicitly notes that guarded-diagrammatic \((n,m,\ell)\)-compatibility implies diagrammatic \((n,m,\ell)\)-compatibility [2508.11946]. The guarded variant is therefore stronger and more specialized: it restricts the local tests to substructures whose active domain is covered by a single fact, matching the syntactic role of the guard in rule bodies [2508.11946]. This suggests that guardedness is reflected semantically not through a different global closure principle, but through a filtered notion of local configurational simulation.

## 4. Closure phenomena, locality, and why repairable products are needed

Ordinary direct products are insufficient for disjunctive existential rules. The paper gives a counterexample using the disjunctive existential rule
\[
R(x)\ \ S(x) \vee T(x).
\]
Let \(I_1\) have facts \(\{R(a),S(a)\}\), and \(I_2\) have facts \(\{R(a),T(a)\}\). Then both \(I_1\models \Sigma\) and \(I_2\models \Sigma\), but
\[
facts(I_1\otimes I_2)=\{R(aa)\}
\]
and \(I_1\otimes I_2 \not\models \Sigma\) [2508.11946]. This example motivates the replacement of standard direct-product closure by closure under repairable direct products [2508.11946].

The same example also clarifies the distinctive semantic burden introduced by disjunction. Each factor satisfies the rule by realizing a different disjunct, but the direct product need not realize any one disjunct coherently. A plausible implication is that the model-theoretic behavior of guarded disjunctive existential rules is governed not just by local guardedness, but also by how alternative head realizations interact under products.

The 2025 paper also situates diagrammatic compatibility with respect to older locality notions. It proves that diagrammatic \((n,m,\ell)\)-compatibility implies \((n,m)\)-locality [2508.11946]. The inclusion is strict in informational terms, because diagrammatic compatibility tracks the number of head disjuncts \(\ell\), while locality does not [2508.11946]. The same rule \(R(x)\to S(x)\vee T(x)\) is used to illustrate the distinction: if \({\mathcal C}\) is its model class, then \({\mathcal C}\) is finitely axiomatizable by \((1,0,2)\)-disjunctive existential rules, hence diagrammatically \((1,0,2)\)-compatible and \((1,0)\)-local, but it is not finitely axiomatizable by \((1,0,1)\)-disjunctive existential rules [2508.11946]. This shows that locality alone cannot distinguish one-disjunct from two-disjunct classes, whereas diagrammatic compatibility can [2508.11946].

For the guarded fragment, the same lesson persists with the restriction to guarded substructures. The guarded characterization does not merely inherit unrestricted semantic criteria; it sharpens the local compatibility condition so that it respects the guard atom’s coverage of universal variables [2508.11946].

## 5. Reasoning complexity for guarded disjunctive tuple-generating dependencies

The main complexity result for guarded disjunctive tuple-generating dependencies is that disjunction does not destroy decidability for guarded theories, but it causes a significant complexity jump [1405.5109]. For guarded theories with disjunction, the paper states a strong \(2\)EXPTIME lower bound in combined complexity, even for very restricted formalisms such as fixed sets of disjunctive inclusion dependencies [1405.5109]. Its later summary reports for guarded DTGDs that combined complexity is \(2\)EXPTIME-complete and data complexity is co-complete for arbitrary queries; for atomic queries, guarded DTGDs remain \(2\)EXPTIME-complete in combined complexity and co-complete in data complexity [1405.5109].

The guardedness notion used there is the standard one: a rule is guarded if the body contains an atom mentioning all universally quantified variables, and that atom is the guard [1405.5109]. Linear TGDs and inclusion dependencies are noted to be trivially guarded because they have only one body atom [1405.5109]. Guarded DTGDs therefore inherit the same structural discipline as ordinary guarded existential rules, but the presence of disjunctive heads changes the complexity landscape dramatically.

The lower bound is robust under strong syntactic simplification. The paper states that the \(2\)EXPTIME lower bound already holds for fixed sets of disjunctive inclusion dependencies, with either fixed sets of DIDs of arity at most \(3\), or non-fixed sets of DIDs of arity at most \(2\) [1405.5109]. This shows that the complexity blow-up is not due to elaborate body syntax. Rather, it is caused by branching choice in the rule head [1405.5109].

The proof ideas described in the research summary align with this interpretation. For arbitrary queries, the \(2\)EXPTIME lower bound is obtained via a Büchi tree automaton simulation [1405.5109]. The upper bounds for guarded DTGDs are connected to expressive fragments of first-order logic such as the Guarded Fragment and Guarded-Negation First-Order Logic [1405.5109]. This suggests that guarded disjunctive existential rules occupy a boundary where guarded tree-likeness is still sufficient for decidability, but no longer sufficient for moderate combined complexity.

## 6. Rewriting guarded rules into equivalent linear rules

The 2025 paper studies a specific transformation problem for guarded disjunctive existential rules: whether a finite guarded rule set can be rewritten into an equivalent finite set of linear disjunctive existential rules [2508.11946]. It defines the problem \(\mathsf{G\text{-}to\text{-}L}\) as follows: the input is a finite set \(\Sigma\) of guarded dexrs, and the output is a finite set \(\Sigma'\) of linear dexrs such that \(\Sigma \equiv \Sigma'\), if one exists; otherwise \(\mathsf{fail}\) [2508.11946].

The main theorem states that \(\mathsf{G\text{-}to\text{-}L}\) is computable in elementary time [2508.11946]. The key technical tool is the Bounded Linearization Lemma. If a collection \({\mathcal C}\) of structures over a schema \({\mathcal S}\) is finitely axiomatizable by \((n,m,\ell)\)-dexrs and
\[
\ell' = \ell \cdot |{\mathcal S}| \cdot (n+m+1)^{m \cdot ar({\mathcal S})},
\]
then the following are equivalent:
1. \({\mathcal C}\) is finitely axiomatizable by linear dexrs.
2. \({\mathcal C}\) is linear-diagrammatically \((n,m,\ell')\)-compatible [2508.11946].

This bounded characterization makes an exhaustive search possible. The algorithm \(\mathsf{Rewrite}\) computes the bound \(\ell'\), enumerates all linear \((n,m,\ell')\)-dexrs entailed by the input guarded set, and returns them if they are non-empty and entail the input; otherwise it returns \(\mathsf{fail}\) [2508.11946]. The paper states that the algorithm runs in elementary time and refines this to triple-exponential time; it also remarks that an optimal double-exponential bound would follow from a stronger polynomial bound on the number of disjuncts, but this remains open [2508.11946].

The significance of this result is methodological. The guarded fragment is strictly more general syntactically than the linear fragment, but not every guarded theory needs genuinely guarded interaction in its body. The rewriting theorem provides an exact algorithmic route for detecting when guardedness is eliminable in favor of linearity [2508.11946]. A plausible implication is that the semantic notion of guarded-diagrammatic compatibility is not only classificatory, but also constructive enough to support rule synthesis.

## 7. Related semantics with negation and inconsistency handling

A related line of work studies guarded existential rules under stable model semantics with inconsistency handled by repairing the rule set rather than the database [1602.05699]. This setting does not use head disjunction in the same formal sense as disjunctive tuple-generating dependencies; the rules are normal existential rules with possibly multiple head atoms, but not head disjunction [1602.05699]. Nevertheless, it is relevant to the broader guarded existential-rule landscape because it shows how guardedness continues to control complexity when nonmonotonicity and inconsistency management are added.

In that framework, a normal rule is guarded if one positive body atom contains all universally quantified variables of the rule [1602.05699]. A preferred rule repair is a subset \(S\subseteq \Sigma\) such that \(D\cup S\) has at least one stable model and every strictly preferred superset has none [1602.05699]. Query answering under repair semantics requires a query to hold under all preferred rule repairs [1602.05699].

For guarded and stratified rule sets, and preferences \(\preceq\in\{\subseteq,\le,\subseteq_P,\le_P,\le_w\}\), deciding whether \(\langle D,O\rangle\models Q\) for a covered NBCQ \(Q\) is PTime-complete for data complexity and \(2\)ExpTime-complete for combined complexity [1602.05699]. If \(\Sigma\) is guarded with full negation, then for a covered NBCQ \(Q\), query answering is in BH for data complexity and \(2\)ExpTime-complete for combined complexity [1602.05699]. The paper’s stated message is that rule repair semantics does not increase complexity beyond the baseline guarded query-answering problem in these cases [1602.05699].

This line of work should not be conflated with guarded disjunctive existential rules in the strict sense. The formal language differs, because the “disjunctive” aspect there is not explicit head disjunction [1602.05699]. Even so, the comparison is instructive. It suggests that guardedness is a robust structural discipline across several extensions of existential rules, but the source of hardness differs: in guarded DTGDs, branching is induced directly by head disjunction [1405.5109], whereas in stable-model repair semantics it is induced by nonmonotonicity and repair selection [1602.05699].

## 8. Conceptual significance and common points of confusion

A recurring misconception is that guardedness by itself keeps reasoning low-complexity. The guarded-disjunctive results show otherwise. Guardedness preserves decidability in the presence of disjunction, but combined complexity still rises to \(2\)EXPTIME, and this hardness already appears in fixed sets of disjunctive inclusion dependencies [1405.5109]. The correct conclusion is therefore more limited: guardedness is a safeguard against undecidability in this setting, not a guarantee of modest complexity.

A second point of confusion concerns products. For many rule languages, closure under direct products is a natural semantic invariant. For disjunctive existential rules, ordinary direct products fail, and the correct invariant is closure under repairable direct products [2508.11946]. This refinement is not technical ornamentation; it is forced by the semantics of disjunctive heads.

A third point concerns the relationship between guardedness and locality. The 2025 characterization makes clear that locality is too coarse because it does not encode the number of head disjuncts, whereas diagrammatic compatibility does [2508.11946]. In the guarded case, the appropriate notion is not general diagrammatic compatibility but guarded-diagrammatic compatibility, which restricts attention to guarded substructures [2508.11946].

Taken together, these results place guarded disjunctive existential rules at the intersection of finite axiomatizability theory, guarded-fragment model theory, and high-complexity ontology-based reasoning. Their defining syntactic restriction is simple: one body atom must guard all universal variables, or the body is empty [2508.11946]. Yet the resulting theory is rich enough to require specialized semantic invariants, a branching chase semantics, exact finite-axiomatizability theorems, and nontrivial rewriting algorithms [2508.11946; 1405.5109].

Source: https://www.emergentmind.com/topics/guarded-disjunctive-existential-rules