<!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 />
    <article-meta>
      <title-group>
        <article-title>On the of Limits of Decision: the Adjacent Fragment of First-Order Logic (Extended Abstract)</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Bartosz Bednarczyk</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff3">3</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Daumantas Kojelis</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Ian Pratt-Hartmann</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Computational Logic Group, Technische Universität Dresden</institution>
          ,
          <country country="DE">Germany</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Department of Computer Science, University of Manchester</institution>
          ,
          <country country="UK">UK</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>Institute of Computer Science, University of Opole</institution>
          ,
          <country country="PL">Poland</country>
        </aff>
        <aff id="aff3">
          <label>3</label>
          <institution>Institute of Computer Science, University of Wrocław</institution>
          ,
          <country country="PL">Poland</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>We define the adjacent fragment ℱ of first-order logic, obtained by restricting the sequences of variables occurring as arguments in atomic formulas. The adjacent fragment generalizes (after a routine renaming) two-variable logic as well as the fluted fragment. We show that the adjacent fragment has the finite model property, and that its satisfiability problem is no harder than for the fluted fragment (and hence is Tower-complete). We further show that any relaxation of the adjacency condition on the allowed order of variables in argument sequences yields a logic whose satisfiability and finite satisfiability problems are undecidable. Finally, we study the efect of the adjacency requirement on the well-known guarded fragment (ℱ ) of first-order logic. We show that the satisfiability problem for the guarded adjacent fragment ( ) remains 2ExpTime-hard, thus strengthening the known lower bound for ℱ .</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;decidability</kwd>
        <kwd>satisfiability</kwd>
        <kwd>variable-ordered logics</kwd>
        <kwd>complexity</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        binding +1. By re-indexing variables, any first-order formula can easily be written as a logically
equivalent index-normal formula. In the fluted fragment , denoted ℱ ℒ, as defined by W. Purdy [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ],
we confine attention to index-normal formulas, but additionally insist that any atom occurring in a
context in which  is quantified have the form
(− +1 · · · ), i.e. (¯) with ¯ a sufix
of 1 · · · .
forward fragment [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ], we insist only that ¯ be an infix
      </p>
    </sec>
    <sec id="sec-2">
      <title>In the ordered fragment, due to A. Herzig [8], by contrast, we insist that ¯ be a prefix of 1 · · · . In the</title>
      <p>the sub-fragment of ℱ ℒ involving at most  variables (free or bound), the satisfiability problem for
 is known to be in (− 2)-NExpTime for all  ≥</p>
    </sec>
    <sec id="sec-3">
      <title>3, and ⌊/2⌋-NExpTime-hard for all  ≥</title>
      <sec id="sec-3-1">
        <title>Thus, satisfiability for the whole fluted fragment is</title>
      </sec>
      <sec id="sec-3-2">
        <title>Tower-complete, in the system of trans-elementary complexity classes due to [11]. By contrast, the satisfiability problem for ordered fragment is known to be PSpace-complete [8, 12]. On the other hand, the apparent liberalization aforded by the forward</title>
        <p>of 1 · · · .
fragment yields no diference in expressive power [13].</p>
        <p>Say that a word ¯ over the alphabet {1, . . . , } ( ≥
letters difer by at most 1. For example, 321222343 is adjacent, but 132 is not. The
adjacent fragment, denoted ℱ , is analogous to the fluted, ordered and forward fragments, but we
allow any atom (¯) to occur in a context where  is available for quantification as long as ¯ is an
adjacent word over {1, . . . , }. As a simple example, the formula
0) is adjacent if the indices of neighbouring
∀1∀2∀3∃4∀5 (︀ (1232345) → (1234345))︀
lfuted, ordered and forward fragments; the inclusion is strict, since the formulas
is a validity of ℱ , as can be seen by assigning 4 the same value as 2. Evidently, ℱ includes the
∀1 (11),
∀12(︀ (12) → (21))︀ ,
expressing transitivity; i.e.
stating that  is reflexive and symmetric, respectively, are in ℱ . It is worth noting that the formula
∀123
︁( (︀ (12) ∧ (23))︀
→ (13) ,
︁)
︁(</p>
        <p>︁(
is not in ℱ as the variable 2 is skipped in the atom (13).</p>
        <p>To further aid intuition, we provide the following (possible) translations of english sentences into
ℱ . “Every student taking a programming course also takes some maths course” can be written as:
∀12 Prog(1) ∧ Stud(2) ∧ Takes(2, 1) → ∃3(︀ Math(3) ∧ Takes(2, 3))︀
“Every languages student either recommends Norwegian to their peers or is recommended Norwegian
by someone” may be written as:
∀12 Stud(1) ∧ Nor(2) → ︀( ∀3 Rec(1, 2, 3))︀ ∨
︀( ∃3 Rec(3, 2, 1))︀ .</p>
      </sec>
      <sec id="sec-3-3">
        <title>In the sequel we will define the fragment formally.</title>
        <p>Let  and  be non-negative integers. For any integers  and , we write [, ] to denote the set of
integers ℎ such that  ≤</p>
        <p>
          ℎ ≤ . A function  : [1, ] → [1, ] is adjacent if | ( + 1)−  ()| ≤
 (1 ≤  &lt; ). We write A to denote the set of adjacent functions  : [1, ] → [1, ]. Since [
          <xref ref-type="bibr" rid="ref1">1, 0</xref>
          ] = ∅,
we have A0 = {∅}, and A0 = ∅ if  &gt; 0. Let  be a non-empty set. A word ¯ over the alphabet 
is simply a tuple of elements from . Accordingly,  denotes the set of words over  having length
1 for all
exactly , and * is the set of all finite words over . Any function  : [1, ] → [1, ] (adjacent or
not) induces a natural map from  to  defined by ¯ = (1) · · · (), where ¯ = 1 · · · . If
 ∈ A (i.e. if  is adjacent), we may think of ¯ as the result of a ‘walk’ on the tuple ¯, starting at
the element (1), and moving left, right, or remaining stationary according to the sequence of values
︁)
︁)
a
b
f
e
d
a
b
c
¯
¯
a b c b a a a d e f e d a d e f b a b f
 ( + 1)−  () (1 ≤  &lt; ). We may picture a walk as a piecewise linear function, with the generated
word superimposed on the abscissa and the generating word on the ordinate, c.f. Figure 1.
        </p>
        <p>For any  ≥ 0, denote by x the fixed word 1 · · ·  (if  = 0, this is the empty word). A -atom is
an expression (x ), where  is a predicate of some arity  ≥ 0, and  : [1, ] → [1, ]. Thus, in a
-atom, each argument is a variable chosen from x. If  is adjacent, we speak of an adjacent -atom.</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Thus, in an adjacent -atom, the indices of neighbouring arguments difer by at most one. When  ≤ 2,</title>
      <p>the adjacency requirement is vacuous, and in this case we prefer to speak simply of -atoms. Proposition
letters (predicates of arity  = 0) count as (adjacent) -atoms for all  ≥ 0, taking  to be the empty
function. When  = 0, we perforce have  = 0, since otherwise, there are no functions from [1, ]
to [1, ]; thus the 0-atoms are precisely the proposition letters.</p>
      <sec id="sec-4-1">
        <title>We define the sets of first-order formulas ℱ [] by simultaneous structural induction:</title>
      </sec>
      <sec id="sec-4-2">
        <title>1. every adjacent -atom is in ℱ [];</title>
      </sec>
      <sec id="sec-4-3">
        <title>2. ℱ [] is closed under Boolean combinations;</title>
        <p>3. if  is in ℱ [+1], ∃+1  and ∀+1  are in ℱ [].</p>
        <p>Formally, we call ℱ = ⋃︀≥ 0 ℱ [] the adjacent fragment. Note that formulas of ℱ contain no
individual constants, function symbols or equality.</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>As every word over {1, 2} is adjacent, we may transform any formula of the two-variable fragment</title>
      <p>without equality, FO2, in polynomial time, to a logically equivalent formula of ℱ . The converse is true
over signatures with predicates of arity at most two. Since the system of basic multimodal propositional
logic is, under the standard translation to first-order logic, included within FO2, this logic is similarly
subsumed by ℱ , as indeed is its notational variant, the description logic ℒ (see, e.g. [14]).</p>
      <sec id="sec-5-1">
        <title>We show that the satisfiability problem for the restriction of the adjacent fragment to formulas</title>
        <p>involving at most  variables (free or bound) is in (− 2)-NExpTime for all  ≥ 3—and hence no more
dificult than the -variable fluted fragment, which it properly contains. The critical step in our analysis
is [15, Theorem 3.1]–a theorem on the combinatorics of strings, which may be of independent interest.</p>
      </sec>
      <sec id="sec-5-2">
        <title>We also consider minimal relaxations of adjacency involving the fragment with just three variables,</title>
        <p>and show that, in all cases of interest, the satisfiability and finite satisfiability problems for the resulting
logics are undecidable. Thus, adjacency is as far as we can go in seeking decidable fragments based on
straightforward argument ordering restrictions of the type envisaged by Quine.</p>
      </sec>
      <sec id="sec-5-3">
        <title>The adjacent fragment is incomparable in expressive power to the guarded fragment. Moreover, the</title>
        <p>satisfiability problem for the union of ℱ and ℱ is undecidable, as one can use adjacent formulas to
introduce any -ary universal relations, which makes ℱ as expressive as first-order logic. Therefore,
we study the efect of the adjacency restriction on ℱ . We investigate the complexity of satisfiability for
the guarded adjacent fragment , showing that the problem is 2ExpTime-complete, thus sharpening
the existing 2ExpTime-hardness proof for ℱ [16].</p>
        <sec id="sec-5-3-1">
          <title>Denoting ℱ ℓ for the ℓ-variable adjacent fragment we establish the following results using a variable</title>
          <p>reduction technique similar to that as for the fluted fragment.
Theorem 1. The (finite) satisfiability problem for
hard.
ℱ ℓ is in (ℓ − 2) − NExpTime and ⌊ℓ/2⌋ −
NExpTime</p>
        </sec>
      </sec>
      <sec id="sec-5-4">
        <title>This allows us to conclude the following about the whole fragment.</title>
        <p>Theorem 2. The (finite) satisfiability problem for
ℱ is Tower-complete.</p>
      </sec>
      <sec id="sec-5-5">
        <title>We also sharpen existing lower bounds for the (finite) satisfiability of the guarded fragment by encoding an alternating turing machine running in exponential space in an adjacent way thus establishing the following.</title>
        <p>Theorem 3. The (finite) satisfiability problem for
 is 2ExpTime-complete.</p>
      </sec>
      <sec id="sec-5-6">
        <title>The full paper is published in the proceedings of the 50th International Colloquium on Automata,</title>
      </sec>
      <sec id="sec-5-7">
        <title>Languages, and Programming (ICALP 2023) [15]. The accompanying technical report with detailed proofs is available on arxiv [17].</title>
        <p>Acknowledgments</p>
      </sec>
      <sec id="sec-5-8">
        <title>Bartosz Bednarczyk is supported by the ERC Consolidator Grant No. 771779 (DeciGUT). Daumantas</title>
      </sec>
      <sec id="sec-5-9">
        <title>Kojelis and Ian Pratt-Hartmann are supported by the NCN grant 2018/31/B/ST6/03662.</title>
        <p>[12] R. Jaakkola, Ordered fragments of first-order logic, in: F. Bonchi, S. J. Puglisi (Eds.), 46th
International Symposium on Mathematical Foundations of Computer Science, MFCS 2021, August 23-27,
2021, Tallinn, Estonia, volume 202 of LIPIcs, Schloss Dagstuhl - Leibniz-Zentrum für Informatik,
2021, pp. 62:1–62:14. URL: https://doi.org/10.4230/LIPIcs.MFCS.2021.62. doi:10.4230/LIPIcs.</p>
        <p>MFCS.2021.62.
[13] B. Bednarczyk, R. Jaakkola, Towards a model theory of ordered logics: Expressivity and
interpolation, in: S. Szeider, R. Ganian, A. Silva (Eds.), 47th International Symposium on Mathematical
Foundations of Computer Science, MFCS 2022, August 22-26, 2022, Vienna, Austria, volume
241 of LIPIcs, Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2022, pp. 15:1–15:14. URL:
https://doi.org/10.4230/LIPIcs.MFCS.2022.15. doi:10.4230/LIPIcs.MFCS.2022.15.
[14] U. Hustadt, R. A. Schmidt, L. Georgieva, A survey of decidable first-order fragments and description
logics, Journal of Relational Methods in Computer Science 1 (2004) 251–276.
[15] B. Bednarczyk, D. Kojelis, I. Pratt-Hartmann, On the Limits of Decision: the Adjacent Fragment
of First-Order Logic, in: K. Etessami, U. Feige, G. Puppis (Eds.), 50th International Colloquium
on Automata, Languages, and Programming (ICALP 2023), volume 261 of Leibniz International</p>
      </sec>
      <sec id="sec-5-10">
        <title>Proceedings in Informatics (LIPIcs), Schloss Dagstuhl – Leibniz-Zentrum für Informatik, Dagstuhl,</title>
      </sec>
      <sec id="sec-5-11">
        <title>Germany, 2023, pp. 111:1–111:21. URL: https://drops-dev.dagstuhl.de/entities/document/10.4230/</title>
        <p>LIPIcs.ICALP.2023.111. doi:10.4230/LIPIcs.ICALP.2023.111.
[16] E. Grädel, On the restraining power of guards, The Journal of Symbolic Logic 64 (1999) 1719–1742.</p>
      </sec>
      <sec id="sec-5-12">
        <title>URL: http://www.jstor.org/stable/2586808.</title>
        <p>[17] B. Bednarczyk, D. Kojelis, I. Pratt-Hartmann, On the limits of decision: the adjacent fragment of
ifrst-order logic, ArXiV abs/2305.03133 (2023). arXiv:2305.03133.</p>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>D.</given-names>
            <surname>Hilbert</surname>
          </string-name>
          , W. Ackerman, Grundzüge der theoretischen Logik, Springer, Berlin,
          <year>1928</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>D.</given-names>
            <surname>Hilbert</surname>
          </string-name>
          , W. Ackerman, Principles of Mathematical Logic, Chelsea, New York,
          <year>1950</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>E.</given-names>
            <surname>Börger</surname>
          </string-name>
          , E. Grädel,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Gurevich</surname>
          </string-name>
          ,
          <source>The Classical Decision Problem, Perspectives in Mathematical Logic</source>
          , Springer,
          <year>1997</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>L.</given-names>
            <surname>Henkin</surname>
          </string-name>
          ,
          <source>Logical Systems Containing Only a Finite Number of Symbols</source>
          , Séminaire de mathématiques supérieures, Presses de l'Université de Montréal,
          <year>1967</year>
          . URL: https://books.google.pl/books? id=0jPQAAAAMAAJ.
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>H.</given-names>
            <surname>Andréka</surname>
          </string-name>
          ,
          <string-name>
            <surname>I. Németi</surname>
          </string-name>
          ,
          <string-name>
            <surname>J. van Benthem</surname>
          </string-name>
          ,
          <article-title>Modal languages and bounded fragments of predicate logic</article-title>
          ,
          <source>Journal of Philosophical Logic</source>
          <volume>27</volume>
          (
          <year>1998</year>
          )
          <fpage>217</fpage>
          -
          <lpage>274</lpage>
          . doi:
          <volume>10</volume>
          .1023/a:
          <fpage>1004275029985</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>W. V. O.</given-names>
            <surname>Quine</surname>
          </string-name>
          ,
          <article-title>On the limits of decision</article-title>
          ,
          <source>in: Proceedings of the 14th International Congress of Philosophy</source>
          , volume III, University of Vienna,
          <year>1969</year>
          , pp.
          <fpage>57</fpage>
          -
          <lpage>62</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>W. C.</given-names>
            <surname>Purdy</surname>
          </string-name>
          ,
          <article-title>Fluted formulas and the limits of decidability</article-title>
          ,
          <source>The Journal of Symbolic Logic</source>
          <volume>61</volume>
          (
          <year>1996</year>
          )
          <fpage>608</fpage>
          -
          <lpage>620</lpage>
          . URL: http://www.jstor.org/stable/2275678.
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>A.</given-names>
            <surname>Herzig</surname>
          </string-name>
          ,
          <article-title>A new decidable fragment of first order logic, in: Abstracts of the 3rd Logical Biennial Summer School</article-title>
          and Conference in honour of S. C. Kleene, Varna, Bulgaria,
          <year>1990</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>B.</given-names>
            <surname>Bednarczyk</surname>
          </string-name>
          ,
          <article-title>Exploiting forwardness: Satisfiability and query-entailment in forward guarded fragment</article-title>
          , in: W. Faber, G. Friedrich,
          <string-name>
            <given-names>M.</given-names>
            <surname>Gebser</surname>
          </string-name>
          , M. Morak (Eds.),
          <source>Logics in Artificial Intelligence - 17th European Conference, JELIA</source>
          <year>2021</year>
          ,
          <string-name>
            <given-names>Virtual</given-names>
            <surname>Event</surname>
          </string-name>
          , May
          <volume>17</volume>
          -20,
          <year>2021</year>
          , Proceedings, volume
          <volume>12678</volume>
          of Lecture Notes in Computer Science, Springer,
          <year>2021</year>
          , pp.
          <fpage>179</fpage>
          -
          <lpage>193</lpage>
          . URL: https://doi.org/10. 1007/978-3-
          <fpage>030</fpage>
          -75775-5_
          <fpage>13</fpage>
          . doi:
          <volume>10</volume>
          .1007/978-3-
          <fpage>030</fpage>
          -75775-5\_
          <fpage>13</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>I.</given-names>
            <surname>Pratt-Hartmann</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W.</given-names>
            <surname>Szwast</surname>
          </string-name>
          ,
          <string-name>
            <surname>L. Tendera,</surname>
          </string-name>
          <article-title>The fluted fragment revisited</article-title>
          ,
          <source>Journal of Symbolic Logic</source>
          <volume>84</volume>
          (
          <year>2019</year>
          )
          <fpage>1020</fpage>
          -
          <lpage>1048</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>S.</given-names>
            <surname>Schmitz</surname>
          </string-name>
          ,
          <article-title>Complexity hierarchies beyond elementary</article-title>
          ,
          <source>ACM Transactions on Computational Logic</source>
          <volume>8</volume>
          (
          <year>2016</year>
          ). URL: https://doi.org/10.1145/2858784. doi:
          <volume>10</volume>
          .1145/2858784.
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>