<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta>
      <journal-title-group>
        <journal-title>DL</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>Restricted Chase Termination: You Want More than Fairness (Extended Abstract)</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>David Carral</string-name>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Lukas Gerlach</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Lucas Larroque</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Michaël Thomazo</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Inria, DI ENS, ENS, CNRS, PSL University</institution>
          ,
          <addr-line>Paris</addr-line>
          ,
          <country country="FR">France</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Knowledge-Based Systems Group, TU Dresden</institution>
          ,
          <country country="DE">Germany</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>LIRMM, Inria, University of Montpellier</institution>
          ,
          <addr-line>CNRS, Montpellier</addr-line>
          ,
          <country country="FR">France</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2025</year>
      </pub-date>
      <volume>38</volume>
      <fpage>3</fpage>
      <lpage>6</lpage>
      <abstract>
        <p>The chase is a fundamental algorithm with ubiquitous uses in database theory. Given a database and a set of existential rules (aka tuple-generating dependencies), it iteratively extends the database to ensure that the rules are satisfied in a most general way. This process may not terminate, and a major problem is to decide whether it does. This problem has been studied for many chase variants, which difer by the conditions under which a rule is applied to extend the database. Surprisingly, the complexity of the universal termination of the restricted (aka standard) chase is not fully understood. We close this gap by placing universal restricted chase termination in the analytical hierarchy. This higher hardness is due to the fairness condition, and we propose an alternative to reduce the hardness of universal termination.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Existential Rules</kwd>
        <kwd>Tuple-Generating Dependencies</kwd>
        <kwd>Restricted Chase</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>∀, .HasPart(, ) → IsPartOf(, )
∀, .IsPartOf(, ) → HasPart(, )
B:1</p>
      <p>IP:3
B:1</p>
      <p>IP:6 HP:7</p>
      <p>IP:5
B:3</p>
      <p>B:1</p>
      <p>IP:4 HP:6</p>
      <p>IP:8 HP:10
B:3</p>
      <p>
        B:7
Our main contribution is to show that both classes are Π11-complete, a surprising result given that these
are significantly harder than the corresponding classes for other chase variants [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ].
      </p>
      <p>The restricted chase difers from other variants in that it introduces new terms to satisfy existential
quantifiers in rules only if these are not already satisfied by existing terms. Because of this, the order
of rule applications impacts termination. The KB 1 from Example 1 admits both finite and infinite
restricted chase sequences; some of these are represented in Fig. 1, where atoms are numbered to denote
the step at which they were introduced.</p>
      <p>
        CTKrest has been claimed to be recursively enumerable (RE) in [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ], probably with the following
∀
procedure in mind: given an input KB, compute all of its restricted chase sequences in parallel, and halt
and accept if all of them are finite. Alas, this strategy does not work as there are terminating input KBs
that admit infinitely many finite sequences that are of increasing length.
      </p>
      <p>Example 2. Consider the KB 2 = ⟨Σ, ⟩ where  is the database {Real(), E(, ), E(, ), Real(),
E(, ), Brake()} and Σ is the rule set that contains all of the following:
∀, , .Real() ∧ E(, ) ∧ Real() ∧ Brake() → ∃.E(, ) ∧ E(, ) ∧ Real()
∀.Brake() → Real()
For any  ≥ 1, there is a restricted chase sequence of 2 that yields the (finite) universal model  ∪
{E(, 1)} ∪ {E(, +1) |  &lt; } ∪ {E(, ), Real() |  ≤ } ∪ {Real()} of 2. Such a sequence is
obtained by applying the first rule  consecutive times and then applying the second one once to derive
Real(). After this application, the first rule is satisfied and the restricted chase halts.</p>
      <p>The KB 2 in the previous example is in CTKrest because of fairness. This is a built-in condition in
∀
the definition of all chase variants that guarantees that the chase yields a model of the KB by requiring
that, if a rule is applicable at some point during the computation of a sequence, then this rule must be
eventually satisfied. Hence, the second rule in 2 must sooner or later be applied in all restricted chase
sequences and thus, all such sequences are finite.</p>
      <p>An issue with fairness is that it is not finitely verifiable , i.e. we cannot see if fairness is violated after
a finite number of steps, intuitively because a necessary rule application might still occur later. With
a stronger condition, e.g., demanding that possible rule applications are performed in a breadth-first
manner, we could detect violations after a finite number of steps. In fact, in [ 1, Section 6], we show that
such a condition lands CTKrest in RE by computing chase sequences in parallel as sketched above.</p>
      <p>
        The KB in Example 2 uses∀a technique called the emergency brake, initially proposed by Krötzsch et al.
in [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ]. The idea is to connect every term in the chase to a special term (the constant  in this example)
that is not “Real” and acts as a “Brake”. Eventually, this term becomes “Real” because of fairness, all
existential restrictions are satisfied, and the restricted chase halts. The emergency brake allows to grow
the chase for an arbitrary number of steps whilst guaranteeing its termination. By activating infinite
sequences of emergency brakes, we emulate the eternal recurrence often displayed by Π11-complete
problems and thus define the reductions that lead to our main results.
      </p>
    </sec>
    <sec id="sec-2">
      <title>2. Summary of Levels of Undecidability for Chase Termination</title>
      <p>All decision problems related to chase termination are undecidable. However, these are complete for
diferent classes within the arithmetical and analytical hierarchies, as summarised in Table 1.</p>
      <sec id="sec-2-1">
        <title>Oblivious</title>
      </sec>
      <sec id="sec-2-2">
        <title>Restricted</title>
      </sec>
      <sec id="sec-2-3">
        <title>Core KB</title>
      </sec>
      <sec id="sec-2-4">
        <title>Sometimes Always</title>
        <p>
          RE-complete [
          <xref ref-type="bibr" rid="ref6">6</xref>
          ]
RE-complete [
          <xref ref-type="bibr" rid="ref6">6</xref>
          ] Π11-complete
RE-complete [
          <xref ref-type="bibr" rid="ref6">6</xref>
          ]
        </p>
      </sec>
      <sec id="sec-2-5">
        <title>Rule Set</title>
      </sec>
      <sec id="sec-2-6">
        <title>Sometimes Always</title>
        <p>
          RE-complete [
          <xref ref-type="bibr" rid="ref3 ref5">3, 5</xref>
          ]
Π02-complete [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ] Π11-complete
Π02-complete [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ]
        </p>
        <p>
          For the oblivious chase, application order is irrelevant, therefore CTKobl = CTKobl and CTRobl =
CTRobl. For the core chase, by Deutsch et al., CTKcore = CTKcore and CTRcor∃e = CTRcor∀e. To understand
∃
why ∀CTKobl (resp. CTKrest or CTKcore) is recursivel∃y enumerab∀le (RE), cons∃ider the fo∀llowing procedure:
given som∃e input KB, c∃ompute all∃of its oblivious (resp. restricted or core) chase sequences in parallel
and accept as soon as you find a finite one. Deutsch et al. proved that CTKrest is RE-hard. More precisely,
they defined a reduction that takes a machine  as input and produces a∃KB  as output such that 
halts on the empty word if and only  is in CTKrest; see Theorem 1 in [
          <xref ref-type="bibr" rid="ref6">6</xref>
          ].
        </p>
        <p>
          ∃
Deutsch et al. also proved that CTKcore is RE-hard. More precisely, they showed that checking if a KB
∃
admits a universal model is undecidable; see Theorem 6 in [
          <xref ref-type="bibr" rid="ref6">6</xref>
          ]. Moreover, they proved that the core
chase is a procedure that halts and yields a finite universal model for an input KB if this theory admits
one; see Theorem 7 of the same paper. Therefore, the core chase can be applied as a semi-decision
procedure for checking if a KB admits a finite universal model.
        </p>
        <p>
          Marnette proved that CTRobl is in RE. More precisely, he showed that a rule set Σ is in CTRobl if and
∃ ∃
only if the KB ⟨Σ, Σ⋆⟩ is in CTKobl where Σ⋆ = {P(⋆, . . . , ⋆) | P ∈ Preds(Σ)} is the critical instance
∃
and ⋆ is a special fresh constant; see Theorem 2 in [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ].
        </p>
        <p>
          Gogacz and Marcinkowski proved that CTRobl is RE-hard. More precisely, they presented a reduction
∃
that takes a 3-counter machine  as input and produces a rule set Σ such that  halts on  if and
only if ⟨Σ, Σ⋆⟩ is in CTKobl; see Lemma 6 in [
          <xref ref-type="bibr" rid="ref3">3</xref>
          ]. Hence,  halts on the  and only if Σ is in CTRobl
∃ ∃
by Theorem 2 in [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ]. Furthermore, Bednarczyk et al. showed that this hardness result holds even over
single-head binary rule sets; see Theorem 1.1 in [
          <xref ref-type="bibr" rid="ref2">2</xref>
          ].
        </p>
        <p>
          CTRrest is in Π02, since we can give semi-decision procedure when equipped with an oracle for CTKrest
∃ ∃
by iterating over all databases. The argument for CTRcore being in Π02 is analogous. Grahne and Onet
proved that CTRrest and CTRcore are Π02-hard by reduci∃ng from the universal termination problem of
word rewriting sy∃stems. ∃
Our Contribution In [1, Section 4], we argue that CTKrest is Π11-complete. This contradicts
Theo∀
rem 5.1 in [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ], which states that CTKrest is RE-complete. Specifically, it is claimed that this theorem
∀
follows from results in [
          <xref ref-type="bibr" rid="ref6">6</xref>
          ], but the authors of that paper only demonstrate that CTKrest is
undecid∀
able without proving that it is in RE. Before our completeness result, the tightest lower bound was
proven by Carral et al., who proved that this class is Π02-hard; see Proposition 42 in [
          <xref ref-type="bibr" rid="ref4">4</xref>
          ]. We obtain
Π11-completeness by reduction to and from the following complete problem based on [9]: Decide if a
given non-deterministic Turing machine (NTM)  is non-recurring through  on some word ⃗, i.e., if
every non-deterministic run of  on ⃗ features  only finitely often. The high level intuition is that
recurrence of  resembles the fairness condition from the chase. For membership, we compute the
chase with a NTM keeping track of possible rule applications for each step  in . We keep a counter 
and visit  whenever  is satisfied and increase  in this case. For hardness, we construct a rule set
based on a given NTM and enforce termination with the emergency brake technique except in cases
where  is visited recurringly by always creating a new brake when  is visited.
        </p>
        <p>
          We also show in [1, Section 5] that CTRrest is Π11-complete using similar reductions as for the CTKrest
case. This contradicts Theorem 5.16 in [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ],∀where it is stated that this class is Π02-complete. The error∀in
the upper-bound of this theorem arose from the assumption that CTKrest is in RE, which, as previously
∀
discussed, is not the case. Regarding the lower bound, they consider an extended version of this class
of rule sets where they allow the inclusion of a single “denial constraint”; i.e. an implication with an
empty head that halts the chase if the body is satisfied during the computation of a chase sequence.
They prove that the always restricted halting problem for rule sets is Π02-hard if one such constraint is
allowed. Our results imply that we do not need to consider such an extension to obtain a higher lower
bound.
        </p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Acknowledgments</title>
      <p>On TU Dresden side, this work is partly supported by DFG in project 389792660 (TRR 248, Center for
Perspicuous Systems), by the BMBF in the Center for Scalable Data Analytics and Artificial
Intelligence (project SCADS25B, ScaDS.AI), and by BMBF and DAAD in project 57616814 (SECAI, School of
Embedded and Composite AI).</p>
    </sec>
    <sec id="sec-4">
      <title>Declaration on Generative AI</title>
      <p>During the preparation of this work, the authors used Chat GPT in order to do grammar and spelling
checks. After using this tool, the authors reviewed and edited the content as needed and take full
responsibility for the publication’s content.
[9] D. Harel, Efective transformations on infinite trees, with applications to high undecidability,
dominoes, and fairness, J. ACM 33 (1986) 224–248. URL: https://doi.org/10.1145/4904.4993. doi:10.
1145/4904.4993.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>D.</given-names>
            <surname>Carral</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Gerlach</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Larroque</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Thomazo</surname>
          </string-name>
          ,
          <article-title>Restricted chase termination: You want more than fairness</article-title>
          ,
          <source>Proc. ACM Manag. Data</source>
          <volume>3</volume>
          (
          <year>2025</year>
          ). doi:
          <volume>10</volume>
          .1145/3725246.
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>B.</given-names>
            <surname>Bednarczyk</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Ferens</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Ostropolski-Nalewaja</surname>
          </string-name>
          ,
          <article-title>All-instances oblivious chase termination is undecidable for single-head binary tgds</article-title>
          , in: C.
          <string-name>
            <surname>Bessiere</surname>
          </string-name>
          (Ed.),
          <source>Proceedings of the Twenty-Ninth International Joint Conference on Artificial Intelligence, IJCAI</source>
          <year>2020</year>
          ,
          <article-title>ijcai</article-title>
          .org,
          <year>2020</year>
          , pp.
          <fpage>1719</fpage>
          -
          <lpage>1725</lpage>
          . URL: https://doi.org/10.24963/ijcai.
          <year>2020</year>
          /238. doi:
          <volume>10</volume>
          .24963/IJCAI.
          <year>2020</year>
          /238.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>T.</given-names>
            <surname>Gogacz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Marcinkowski</surname>
          </string-name>
          ,
          <article-title>All-instances termination of chase is undecidable</article-title>
          , in: J.
          <string-name>
            <surname>Esparza</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          <string-name>
            <surname>Fraigniaud</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          <string-name>
            <surname>Husfeldt</surname>
          </string-name>
          , E. Koutsoupias (Eds.), Automata, Languages, and Programming - 41st
          <source>International Colloquium, ICALP</source>
          <year>2014</year>
          , Copenhagen, Denmark, July 8-
          <issue>11</issue>
          ,
          <year>2014</year>
          , Proceedings,
          <string-name>
            <surname>Part</surname>
            <given-names>II</given-names>
          </string-name>
          , volume
          <volume>8573</volume>
          of Lecture Notes in Computer Science, Springer,
          <year>2014</year>
          , pp.
          <fpage>293</fpage>
          -
          <lpage>304</lpage>
          . URL: https: //doi.org/10.1007/978-3-
          <fpage>662</fpage>
          -43951-7_
          <fpage>25</fpage>
          . doi:
          <volume>10</volume>
          .1007/978-3-
          <fpage>662</fpage>
          -43951-7\_
          <fpage>25</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>D.</given-names>
            <surname>Carral</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Larroque</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Mugnier</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Thomazo</surname>
          </string-name>
          ,
          <article-title>Normalisations of existential rules: Not so innocuous!</article-title>
          , in: G.
          <string-name>
            <surname>Kern-Isberner</surname>
          </string-name>
          , G. Lakemeyer, T. Meyer (Eds.),
          <source>Proceedings of the 19th International Conference on Principles of Knowledge Representation and Reasoning</source>
          , KR 2022, Haifa, Israel,
          <source>July 31 - August 5</source>
          ,
          <year>2022</year>
          ,
          <year>2022</year>
          . URL: https://proceedings.kr.org/
          <year>2022</year>
          /11/.
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>B.</given-names>
            <surname>Marnette</surname>
          </string-name>
          ,
          <article-title>Generalized schema-mappings: from termination to tractability</article-title>
          , in: J.
          <string-name>
            <surname>Paredaens</surname>
          </string-name>
          , J. Su (Eds.),
          <source>Proceedings of the Twenty-Eigth ACM SIGMOD-SIGACT-SIGART Symposium on Principles of Database Systems, PODS 2009, June 19 - July 1</source>
          ,
          <year>2009</year>
          , Providence, Rhode Island, USA, ACM,
          <year>2009</year>
          , pp.
          <fpage>13</fpage>
          -
          <lpage>22</lpage>
          . URL: https://doi.org/10.1145/1559795.1559799. doi:
          <volume>10</volume>
          .1145/1559795.1559799.
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>A.</given-names>
            <surname>Deutsch</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Nash</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. B.</given-names>
            <surname>Remmel</surname>
          </string-name>
          ,
          <article-title>The chase revisited</article-title>
          , in: M.
          <string-name>
            <surname>Lenzerini</surname>
          </string-name>
          , D. Lembo (Eds.),
          <source>Proceedings of the Twenty-Seventh ACM SIGMOD-SIGACT-SIGART Symposium on Principles of Database Systems, PODS</source>
          <year>2008</year>
          , June 9-11,
          <year>2008</year>
          , Vancouver, BC, Canada,
          <string-name>
            <surname>ACM</surname>
          </string-name>
          ,
          <year>2008</year>
          , pp.
          <fpage>149</fpage>
          -
          <lpage>158</lpage>
          . URL: https://doi.org/10.1145/1376916.1376938. doi:
          <volume>10</volume>
          .1145/1376916.1376938.
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>G.</given-names>
            <surname>Grahne</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Onet</surname>
          </string-name>
          ,
          <article-title>Anatomy of the chase</article-title>
          ,
          <source>Fundam. Informaticae</source>
          <volume>157</volume>
          (
          <year>2018</year>
          )
          <fpage>221</fpage>
          -
          <lpage>270</lpage>
          . URL: https://doi.org/10.3233/FI-2018-1627. doi:
          <volume>10</volume>
          .3233/FI-2018-1627.
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>M.</given-names>
            <surname>Krötzsch</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Marx</surname>
          </string-name>
          ,
          <string-name>
            <surname>S. Rudolph,</surname>
          </string-name>
          <article-title>The power of the terminating chase (invited talk)</article-title>
          , in: P. Barceló, M. Calautti (Eds.),
          <source>22nd International Conference on Database Theory, ICDT 2019, March 26-28</source>
          ,
          <year>2019</year>
          , Lisbon, Portugal, volume
          <volume>127</volume>
          of LIPIcs,
          <source>Schloss Dagstuhl - Leibniz-Zentrum für Informatik</source>
          ,
          <year>2019</year>
          , pp.
          <volume>3</volume>
          :
          <fpage>1</fpage>
          -
          <lpage>3</lpage>
          :
          <fpage>17</fpage>
          . URL: https://doi.org/10.4230/LIPIcs.ICDT.
          <year>2019</year>
          .
          <article-title>3</article-title>
          . doi:
          <volume>10</volume>
          .4230/LIPICS.ICDT.
          <year>2019</year>
          .
          <volume>3</volume>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>