=Paper= {{Paper |id=Vol-3739/paper-11 |storemode=property |title=Interpolant Existence is Undecidable for Two-Variable First-Order Logic with Two Equivalence Relations |pdfUrl=https://ceur-ws.org/Vol-3739/paper-11.pdf |volume=Vol-3739 |authors=Frank Wolter,Michael Zakharyaschev |dblpUrl=https://dblp.org/rec/conf/dlog/WolterZ24 }} ==Interpolant Existence is Undecidable for Two-Variable First-Order Logic with Two Equivalence Relations== https://ceur-ws.org/Vol-3739/paper-11.pdf
                         Interpolant Existence is Undecidable for Two-Variable
                         First-Order Logic with Two Equivalence Relations
                         Frank Wolter1 , Michael Zakharyaschev2
                         1
                             University of Liverpool, Ashton Street, Liverpool L69 3BX, UK
                         3
                             Birkbeck, University of London, Malet Street, London WC1E 7HX, UK


                                        Abstract
                                        The interpolant existence problem (IEP) for a logic 𝐿 is to decide, given formulas πœ™ and πœ“, whether there exists a
                                        formula πœ„, built from the shared symbols of πœ™ and πœ“, such that πœ™ entails πœ„ and πœ„ entails πœ“ in 𝐿. If 𝐿 enjoys the Craig
                                        interpolation property (CIP), then the IEP reduces to validity in 𝐿. Recently, the IEP has been studied for logics
                                        without the CIP. The results obtained so far indicate that even though the IEP can be computationally harder than
                                        validity, it is decidable when 𝐿 is decidable. Here, we give the first examples of decidable fragments of first-order
                                        logic for which the IEP is undecidable. Namely, we show that the IEP is undecidable for the two-variable fragment
                                        with two equivalence relations and for the two-variable guarded fragment with individual constants and two
                                        equivalence relations. We also determine the corresponding decidable Boolean description logics for which the
                                        IEP is undecidable.

                                        Keywords
                                        Craig interpolant, interpolant existence problem, two-variable fragment of first-order logic.




                         1. Introduction
                         A first-order (FO) formula πœ„ is called a Craig interpolant for FO-formulas πœ™ and πœ“ if πœ™ |= πœ„ |= πœ“ and πœ„
                         is built from the shared non-logical symbols of πœ™ and πœ“. Interpolants have been applied in many areas
                         ranging from formal verification [1] and software specification [2] to theory combinations [3, 4, 5] and
                         query reformulation and rewriting in databases [6, 7].
                            For many fragments 𝐿 of FO, including many description logics (DLs), the existence of a Craig inter-
                         polant for πœ™ and πœ“ is guaranteed if πœ™ entails πœ“. This phenomenon is known as the Craig interpolation
                         property (CIP) of 𝐿. The CIP holds, for instance, for the DLs π’œβ„’π’ž, π’œβ„’π’žβ„, and π’œβ„’π’žπ’¬β„ [8], and also for
                         the guarded negation fragment of FO [9]. In this case, the problem to decide whether an interpolant for
                         πœ™ and πœ“ exists reduces to showing that πœ™ entails πœ“ in 𝐿, and so is not harder than entailment. Moreover,
                         interpolants can often be extracted from a proof of the entailment.
                            An important consequence of the CIP of a logic 𝐿 is the projective Beth definability property (BDP)
                         of 𝐿: if a relation is implicitly definable over a signature 𝜚 in 𝐿, then it is explicitly definable over
                         𝜚 in 𝐿. The BDP is used in ontology engineering for extracting explicit definitions of concepts or
                         nominals from ontologies [10, 8, 11], developing and maintaining ontology alignments [12], and for
                         robust modularisations and decompositions of ontologies [13, 14]. Explicit definitions are used in
                         ontology-based data management to equivalently rewrite ontology-mediated queries [15, 16, 17, 18, 19].
                            Unfortunately, there are many prominent fragments of FO that do not enjoy the CIP and BDP: for
                         example, DLs with nominals such as π’œβ„’π’žπ’ͺ and/or role inclusions such as π’œβ„’π’žβ„‹ [8], the guarded
                         and the two-variable fragment of FO [20, 21, 22]. To extend interpolation-based techniques to such
                         formalisms, it has recently been suggested to investigate the interpolant existence problem (IEP) for
                         logics 𝐿 without the CIP: given formulas πœ™ and πœ“ as an input, decide whether they have a Craig
                         interpolant in 𝐿. It has been shown that the IEP is decidable for many DLs with nominals and role
                         inclusions [23], Horn-DLs [24], the two-variable and guarded fragments of FO [25], and some decidable


                            DL 2024: 37th International Workshop on Description Logics, June 18–21, 2024, Bergen, Norway
                          $ wolter@liverpool.ac.uk (F. Wolter); m.zakharyaschev@bbk.ac.uk (M. Zakharyaschev)
                           0000-0002-4470-606X (F. Wolter); 0000-0002-2210-5183 (M. Zakharyaschev)
                                       Β© 2024 Copyright for this paper by its authors. Use permitted under Creative Commons License Attribution 4.0 International (CC BY 4.0).


CEUR
                  ceur-ws.org
Workshop      ISSN 1613-0073
Proceedings
fragments of first-order modal logics [26]. These positive results naturally lead to a conjecture that the
IEP for 𝐿 is decidable whenever the entailment in 𝐿 is decidable.
   In this paper, we disprove this conjecture by showing that the IEP is undecidable for the two-variable
FO with two equivalence relations and also for the two-variable guarded fragment of FO with constants
and two equivalence relations. In the realm of Description Logic, the former result means that interpolant
existence is undecidable for concept inclusions in π’œβ„’π’ž enriched with Boolean operators on roles and
the identity role. As a consequence, we also obtain the undecidability of the explicit definition existence
problem (EDEP) for each of these logics 𝐿, which is the problem of deciding, given formulas πœ™, πœ“ and a
signature 𝜚, whether there exists an explicit 𝜚-definition of πœ“ modulo πœ™ in 𝐿. (It is known [26] that the
IEP and EDEP are polynomially reducible to each other.)
   The paper is structured as follows. Section 2 introduces the fragments of FO we are interested in and
summarises the necessary technical tools and results. Section 3 proves the undecidability of the IEP for
the two-variable FO with two equivalence relations by reduction of the infinite Post Correspondence
Problem. Section 4 shows how this result can be adapted to the two-variable guarded fragment with
constants and two equivalence relations and to suitable description logics. Finally, Section 5 discusses a
few challenging open problems.


2. Preliminaries
Let 𝜎 be a signature of individual constants and unary and binary predicate symbols, including two
distinguished binary equivalence predicates 𝐸1 , 𝐸2 . Let var be a set comprising two individual variables.
We consider the following fragments of first-order logic FO(𝜎) over 𝜎:

FO2 2E(𝜎) is the set of constant-free FO-formulas constructed in the usual way from atoms π‘₯ = 𝑦 with
     π‘₯, 𝑦 ∈ var and 𝑅(π‘₯), for any 𝑛-ary predicate symbol 𝑅 ∈ 𝜎 and 𝑛-tuple π‘₯ of variables from var ;

GF2 2Ec (𝜎) admits variables in var and individual constants in atoms but restricts quantification to the
      patterns                (οΈ€                   )οΈ€        (οΈ€                   )οΈ€
                          βˆ€π‘¦ 𝛼(π‘₯, 𝑦) β†’ πœ™(π‘₯, 𝑦) ,         βˆƒπ‘¦ 𝛼(π‘₯, 𝑦) ∧ πœ™(π‘₯, 𝑦) ,
      where πœ™(π‘₯, 𝑦) is a GF2 2Ec -formula and 𝛼(π‘₯, 𝑦) is an atom with occurrences of π‘₯, 𝑦.

The signature sig(πœ“) of a formula πœ“ in any of these logics is the (οΈ€set of predicate and constant )οΈ€symbols
occurring in πœ“. Formulas are interpreted in 𝜎-structures A = dom(A), (𝑅A )π‘…βˆˆπœŽ , (𝑐A )π‘βˆˆπœŽ ) with a
domain dom(A) ΜΈ= βˆ…, relations 𝑅A on dom(A) of the same arity as predicates 𝑅 ∈ 𝜎, and 𝑐A ∈ dom(A).
It is always assumed that 𝐸1A and 𝐸2A are equivalence relations on dom(A). A pointed structure is a pair
A, π‘Ž with a tuple π‘Ž = (π‘Ž1 , . . . , π‘Žπ‘› ), 𝑛 ≀ 2, of elements from dom(A).
    The decision problems for FO2 2E and GF2 2Ec are known to be co2NExpTime- and 2ExpTime-
complete, respectively; see [27, 28] and references therein.

Definition 1. Let 𝐿 ∈ {FO2 2E, GF2 2Ec }, let πœ™(π‘₯) and πœ“(π‘₯) be 𝐿(𝜎)-formulas with the same free
variables π‘₯, and let 𝜚 = sig(πœ™) ∩ sig(πœ“). An 𝐿(𝜚)-formula πœ„(π‘₯) is called an 𝐿-interpolant for πœ™ and πœ“
if πœ™(π‘₯) |= πœ„(π‘₯) and πœ„(π‘₯) |= πœ“(π‘₯).

  Our concern here is the following 𝐿-interpolant existence problem (𝐿-IEP, for short):

(𝐿-IEP) given 𝐿-formulas πœ™(π‘₯) and πœ“(π‘₯), decide whether they have an 𝐿-interpolant πœ„(π‘₯).

   We remind the reader of a well-known criterion of interpolant existence in terms of appropriate
bisimulations. Let 𝜚 βŠ† 𝜎. Given pointed 𝜎-structures A, π‘Ž and B, 𝑏, we call A, π‘Ž and B, 𝑏 𝐿(𝜚)-
equivalent and write A, π‘Ž ≑𝐿,𝜚 B, 𝑏 if A |= πœ™(π‘Ž) iff B |= πœ™(𝑏), for all 𝐿(𝜚)-formulas πœ™.

Definition 2. A nonempty relation 𝛽 βŠ† dom(A)Γ—dom(B) is called an FO2 2E(𝜚)-bisimulation between
A and B if the following conditions are satisfied for all (π‘Ž, 𝑏) ∈ 𝛽:
   1. for every π‘Žβ€² ∈ dom(A), there is a 𝑏′ ∈ dom(B) such that (π‘Žβ€² , 𝑏′ ) ∈ 𝛽 and (π‘Ž, π‘Žβ€² ) ↦→ (𝑏, 𝑏′ ) is a
      partial 𝜚-isomorphism between A and B;
   2. for every 𝑏′ ∈ dom(B), there is a π‘Žβ€² ∈ dom(A) such that (π‘Žβ€² , 𝑏′ ) ∈ 𝛽 and (π‘Ž, π‘Žβ€² ) ↦→ (𝑏, 𝑏′ ) is a
      partial 𝜚-isomorphism between A and B.

  Observe that FO2 2E(𝜚)-bisimulations are global in the sense that dom(A) βŠ† {π‘Ž | (π‘Ž, 𝑏) ∈ 𝛽} and
dom(B) βŠ† {𝑏 | (π‘Ž, 𝑏) ∈ 𝛽}.

Definition 3. A global relation 𝛽 βŠ† dom(A) Γ— dom(B) is an GF2 2Ec (𝜚)-bisimulation between A and
B if (𝑐A , 𝑐B ) ∈ 𝛽 for all 𝑐 ∈ 𝜚 and the following conditions are satisfied for all (π‘Ž, 𝑏) ∈ 𝛽:
   1. for every π‘Žβ€² ∈ dom(A) such that either 𝑅A (π‘Ž, π‘Žβ€² ), for some binary 𝑅 ∈ 𝜚, or π‘Žβ€² = π‘Ž, condition 1
      of Definition 2 holds;
   2. for every 𝑏′ ∈ dom(B) such that either 𝑅B (𝑏, 𝑏′ ), for some binary 𝑅 ∈ 𝜚, or 𝑏′ = 𝑏, condition 2
      of Definition 2 holds.

  For tuples π‘Ž = (π‘Ž1 , . . . , π‘Žπ‘› ) and 𝑏 = (𝑏1 , . . . , 𝑏𝑛 ) with 𝑛 ≀ 2, we write A, π‘Ž ∼𝐿,𝜚 B, 𝑏 if π‘Ž ↦→ 𝑏 is a
partial 𝜚-isomorphism between A and B and there is an 𝐿(𝜚)-bisimulation 𝛽 between A and B such
that (π‘Žπ‘– , 𝑏𝑖 ) ∈ 𝛽, for all 𝑖 ≀ 𝑛. The following characterisation is well known; see, e.g., [29, 30, 28]:

Lemma 1. Let 𝐿 ∈ {FO2 2E, GF2 2Ec } and 𝜚 βŠ† 𝜎. For any pointed 𝜎-structures A, π‘Ž and B, 𝑏 with
|π‘Ž| = |𝑏|,
                        A, π‘Ž ∼𝐿,𝜚 B, 𝑏 implies A, π‘Ž ≑𝐿,𝜚 B, 𝑏
and, conversely, if structures A and B are πœ”-saturated [31], then

                               A, π‘Ž ≑𝐿,𝜚 B, 𝑏       implies    A, π‘Ž ∼𝐿,𝜚 B, 𝑏.

  Using this lemma, one can obtain the following variant of Robinson’s joint consistency criterion [32,
25]:

Lemma 2. Let 𝐿 ∈ {FO2 2E, GF2 2Ec }. Then 𝐿(𝜎)-formulas πœ™(π‘₯) and πœ“(π‘₯) do not have an 𝐿-interpolant
iff there exist pointed 𝐿(𝜎)-structures A, π‘Ž and B, 𝑏 such that

    β€’ A |= πœ™(π‘Ž),
    β€’ B |= Β¬πœ“(𝑏),
    β€’ A, π‘Ž ∼𝐿,𝜚 B, 𝑏, where 𝜚 = sig(πœ™) ∩ sig(πœ“).

Definition 4. Given formulas πœ™(π‘₯), πœ“(π‘₯) and a signature 𝜚, an explicit 𝜚-definition of πœ“(π‘₯) modulo
πœ™(π‘₯) in a logic 𝐿 is an 𝐿(𝜚)-formula πœ’(π‘₯) such that |= πœ™(π‘₯) β†’ (πœ“(π‘₯) ↔ πœ’(π‘₯)).

  The explicit 𝜚-definition existence problem (EDEP) for 𝐿 is formulated as follows:

(𝐿-EDEP) given 𝐿-formulas πœ™(π‘₯), πœ“(π‘₯) and a signature 𝜚, decide whether there exists an explicit
     𝜚-definition of πœ“(π‘₯) modulo πœ™(π‘₯) in 𝐿.

  The IEP and EDEP turn out to be closely related [33]. Here, we only need the following lemma whose
proof can be found in [26]:

Lemma 3. For any 𝐿 ∈ {FO2 2E, GF2 2Ec }, the 𝐿-IEP is polynomially reducible to the 𝐿-EDEP.
3. Undecidability of the FO2 2E-IEP
In this section, we prove the undecidability of the FO2 2E-IEP by a reduction of the undecidable
infinite Post Correspondence Problem (πœ”PCP) [34, 35], which is formulated as follows: given an alphabet
Ξ“ = {𝐴1 , . . . , 𝐴𝑛 }, 𝑛 β‰₯ 2, and a finite set 𝒫 of pairs (𝑣1 , 𝑀1 ), . . . , (π‘£π‘˜ , π‘€π‘˜ ) of non-empty words over
Ξ“, decide whether there exists an infinite sequence of indices 𝑖1 , 𝑖2 , . . . , for 1 ≀ 𝑖𝑗 ≀ π‘˜ and 𝑗 < πœ”, such
that the πœ”-words 𝑣𝑖1 𝑣𝑖2 . . . and 𝑀𝑖1 𝑀𝑖2 . . . coincide. If this is the case, the πœ”PCP instance 𝒫 is said to
have a solution.
   Suppose that an πœ”PCP instance 𝒫 is given. Our aim is to construct FO2 2E-formulas πœ™(π‘₯) and πœ“(π‘₯)
such that 𝒫 has a solution iff πœ™(π‘₯) and Β¬πœ“(π‘₯) are satisfied in FO2 2E(𝜌)-bisimilar pointed structures,
where 𝜚 is the shared signature of πœ™ and πœ“, and then apply Lemma 2. In our construction 𝜚 = {𝑅, 𝑆}βˆͺΞ“
with two binary predicates 𝑅, 𝑆 and the 𝐴𝑖 ∈ Ξ“ treated as unary predicates. The formula πœ™(π‘₯) is
defined by taking:
                               (οΈ€                  )οΈ€      [οΈ€                 (οΈ€                   )οΈ€]οΈ€
        πœ™(π‘₯) = 𝑋0 (π‘₯) ∧ βˆƒπ‘¦ 𝑅(π‘₯, 𝑦) ∧ 𝑋1 (𝑦) ∧ βˆ€π‘₯ 𝑋1 (π‘₯) β†’ βˆƒπ‘¦ 𝑅(π‘₯, 𝑦) ∧ 𝑋2 (𝑦) ∧
                      [οΈ€            (οΈ€                  )οΈ€]οΈ€          (οΈ€                                )οΈ€
                  βˆ€π‘₯ 𝑋2 (π‘₯) β†’ βˆƒπ‘¦ 𝑅(π‘₯, 𝑦) ∧ 𝑋0 (𝑦) ∧ βˆ€π‘₯, 𝑦 (𝑋0 (π‘₯) ∧ 𝑋0 (𝑦)) β†’ π‘₯ = 𝑦 ∧
                                                                   [οΈ€                ⋀︁ (οΈ€                 )οΈ€]οΈ€
                                                               βˆƒπ‘¦ 𝑆(π‘₯, 𝑦) ∧                𝐴𝑖 (𝑦) β†’ 𝐴𝑖 (𝑦) .
                                                                                       𝐴𝑖 βˆˆΞ“

The only purpose of πœ™(π‘₯) is to generate an 𝑅-cycle with three points: for any structure A, π‘Ž0 , if
A |= πœ™(π‘Ž0 ), then A contains a cycle 𝑅(π‘Ž0 , π‘Ž1 ), 𝑅(π‘Ž1 , π‘Ž2 ), 𝑅(π‘Ž2 , π‘Ž0 ). The last conjunct of πœ™ is needed
to ensure that sig(πœ™) ∩ sig(πœ“) = 𝜚.
   Before defining πœ“(π‘₯) formally, we explain the intuition behind Β¬πœ“(π‘₯). Suppose A, π‘Ž0 and B, 𝑏0
are such that A |= πœ™(π‘Ž0 ), B |= Β¬πœ“(𝑏0 ) and A, π‘Ž0 ∼𝐿,𝜚 B, 𝑏0 , for 𝐿 = FO2 2E. Then B contains an
𝑅-chain . . . π‘βˆ’3 , π‘βˆ’2 , π‘βˆ’1 , 𝑏0 , 𝑏1 , 𝑏2 , 𝑏3 , . . . such that A, π‘Ž0 ∼𝐿,𝜚 B, 𝑏3π‘š , for π‘š ∈ Z. The purpose of the
formula Β¬πœ“(π‘₯) is to generate an infinite 𝑆-chain 𝑣 starting from 𝑏0 , along which an infinite sequence
of words 𝑣𝑖 , 𝑖 < πœ”, is written, and also an infinite 𝑆-chain 𝑀 starting from 𝑏3 , along which a sequence
of words 𝑀𝑖 , 𝑖 < πœ”, is written. Using the equivalence relations 𝐸1 and 𝐸2 , the formula Β¬πœ“(π‘₯) ensures
that the respective pairs (𝑣𝑖 , 𝑀𝑖 ), 𝑖 < πœ”, are all in 𝒫. That the resulting πœ”-words coincide (and give a
solution to 𝒫) is ensured by A, π‘Ž0 ∼𝐿,𝜚 B, 𝑏0 . The intended models A, π‘Ž0 and B, 𝑏0 are illustrated in
Fig. 1.
   To define Β¬πœ“ formally, suppose 𝑣𝑗 = 𝐴𝑗1 . . . 𝐴𝑗𝑛𝑗 and 𝑀𝑗 = 𝐡1𝑗 . . . π΅π‘š            𝑗
                                                                                         𝑗 , for 1 ≀ 𝑗 ≀ π‘˜, 𝑛𝑗 β‰₯ 1, and
π‘šπ‘— β‰₯ 1. Along with the 𝐴𝑖 ∈ Ξ“, to generate unique 𝑆-chains 𝑣 and 𝑀, we require auxiliary unary
predicates 𝑃𝑣𝑙𝑗 , 𝑙 = 1, . . . , 𝑛𝑗 , and 𝑃𝑀𝑙 𝑗 , 𝑙 = 1, . . . , π‘šπ‘— , as well as 𝑍𝑖𝑣 and 𝑍𝑖𝑀 , for 𝑖 = 1, 2, and 𝑍 𝑣 , 𝑍 𝑀 .
Let 1Μ„ = 2, 2Μ„ = 1, π‘₯Β― = 𝑦, and 𝑦¯ = π‘₯.
   We define Β¬πœ“(π‘₯) to be a conjunction of the following four groups of formulas:

(generation) 𝑍1𝑣 (π‘₯) ∧ 𝑍 𝑣 (π‘₯), βˆ€π‘₯, 𝑦 𝑍 𝑒 (π‘₯) ∧ 𝑆(π‘₯, 𝑦) β†’ 𝑍 𝑒 (𝑦) , for 𝑒 ∈ {𝑣, 𝑀},
                                       (οΈ€                         )οΈ€

             βˆ€π‘₯ 𝑍𝑖𝑣 (π‘₯) β†’ π‘—β‰€π‘˜ πœˆπ‘–π‘— (π‘₯) , βˆ€π‘₯ 𝑍𝑖𝑀 (π‘₯) β†’ π‘—β‰€π‘˜ πœ”π‘–π‘— (π‘₯) , for 𝑖 = 1, 2,
                  (οΈ€         ⋁︀           )οΈ€    (οΈ€        ⋁︀            )οΈ€
                 (οΈ€                  )οΈ€      (οΈ€                         )οΈ€
             βˆ€π‘¦ 𝑅(π‘₯, 𝑦) β†’ π‘Œ1 (𝑦) , βˆ€π‘₯, 𝑦 π‘Œ1 (π‘₯) ∧ 𝑅(π‘₯, 𝑦) β†’    (οΈ€ π‘Œ2 (𝑦) ,
                                                         βˆ€π‘₯, 𝑦 π‘Œ2 (π‘₯) ∧ 𝑅(π‘₯, 𝑦) β†’ 𝑍1𝑀 (𝑦) ∧ 𝑍 𝑀 (𝑦) ,
                                                                                                   )οΈ€


where, the formula πœˆπ‘–π‘— generating the word 𝑣𝑗 , for 𝑖 = 1, 2, is defined recursively as

       πœˆπ‘–π‘— (π‘₯) = 𝛼𝑖,1
                  𝑗          𝑗
                      (π‘₯) ∧ 𝛽𝑖,1 (π‘₯),
        𝑗
                                              Β― ) ∧ 𝐴𝑗𝑙 (π‘₯
                                                         Β― ) ∧ 𝑃𝑣𝑙𝑗 (π‘₯        𝑗          )οΈ€
       𝛼𝑖,𝑙 (π‘₯) = βˆƒπ‘₯ Β― (𝑆(π‘₯, π‘₯  Β― ) ∧ 𝐸𝑖 (π‘₯, π‘₯                       Β― ) ∧ 𝛼𝑖,𝑙+1  (π‘₯ Β― ) , for 𝑙 = 1, . . . , 𝑛𝑗 βˆ’ 1,
        𝑗                                                            𝑛
                                                Β― ) ∧ 𝐴𝑗𝑛𝑗 (π‘₯            Β― ) ∧ 𝑍¯𝑖𝑣 (π‘₯
                          (οΈ€                                                              )οΈ€
       𝛼𝑖,𝑛  𝑗
               (π‘₯) = βˆƒπ‘₯
                      Β― 𝑆(π‘₯, π‘₯    Β― ) ∧ 𝐸𝑖 (π‘₯, π‘₯             Β― ) ∧ 𝑃𝑣𝑗𝑗 (π‘₯             Β―) ,
        𝑗
                                               Β― ) ∧ 𝐴𝑗𝑙 (π‘₯
                                                          Β― ) ∧ 𝑃𝑣𝑙𝑗 (π‘₯         𝑗
                       (οΈ€                                                                  )οΈ€
       𝛽𝑖,𝑙 (π‘₯) = βˆ€π‘₯ Β― 𝑆(π‘₯, π‘₯   Β― ) β†’ 𝐸𝑖 (π‘₯, π‘₯                        Β― ) ∧ 𝛽𝑖,𝑙+1     Β― ) , for 𝑙 = 1, . . . , 𝑛𝑗 βˆ’ 1,
                                                                                      (π‘₯
        𝑗                 (οΈ€                             𝑗            𝑛𝑗            𝑣
                                                                                            )οΈ€
       𝛽𝑖,𝑛 𝑗
               (π‘₯) = βˆ€π‘₯
                      Β―      𝑆(π‘₯, π‘₯
                                  Β― ) β†’  𝐸 𝑖 (π‘₯, π‘₯
                                                 Β― ) ∧ 𝐴 𝑛 𝑗
                                                             (π‘₯
                                                              Β― ) ∧ 𝑃 𝑣𝑗 (π‘₯
                                                                          Β― )  ∧  𝑍¯𝑖 (π‘₯Β― )    ,
                                                           ..                  ..                                 ..
                                                            .                   .                                  .
          ..                      ..                       ..                  ..                                 ..
           .                       .                        .                   .                                  .

                                                                                                                                    𝐸1

      𝑆                       𝑆                        𝑆                   𝑆                                  𝑆
                                                                πœ”1𝑖3                𝜈1𝑖3                               πœ”1𝑖3
 𝐴𝑖𝑛2𝑖2                  𝐴𝑖𝑛2𝑖2                    𝑍1𝑀                   𝑍1𝑣                              𝑍1𝑀
                                                                  π‘šπ‘–                   𝑛𝑖                                π‘šπ‘–
                                                                𝑃𝑀𝑖22               𝑃𝑣𝑖22                              𝑃𝑀𝑖22

          ..                      ..                       ..                  ..                                 ..
           .   𝑣𝑖2                 .   𝑣𝑖2                  .                   .                                  .
                                                                                                                                         𝐸2
   𝐴𝑖12                   𝐴𝑖12                                  𝑃𝑀1 𝑖2              𝑃𝑣1𝑖2                              𝑃𝑀1 𝑖2

      𝑆                       𝑆                        𝑆                   𝑆                                  𝑆
                                                                πœ”2𝑖2                𝜈2𝑖2                               πœ”2𝑖2
 𝐴𝑖𝑛1𝑖1                  𝐴𝑖𝑛1𝑖1                    𝑍2𝑀                   𝑍2𝑣                              𝑍2𝑀
                                                                  π‘šπ‘–                   𝑛𝑖                                π‘šπ‘–
                                                                𝑃𝑀𝑖11               𝑃𝑣𝑖11                              𝑃𝑀𝑖11

          ..                      ..                       ..                  ..                                 ..
           .                       .                        .                   .                                  .
               𝑣𝑖1                     𝑣𝑖1

   𝐴𝑖21                   𝐴𝑖21                                  𝑃𝑀2 𝑖1              𝑃𝑣2𝑖1                              𝑃𝑀2 𝑖1
                                                                                                                                    𝐸1
      𝑆                       𝑆                        𝑆                   𝑆                                  𝑆

   𝐴𝑖11                   𝐴𝑖11                                  𝑃𝑀1 𝑖1              𝑃𝑣1𝑖1                              𝑃𝑀1 𝑖1
                                                       𝑆                   𝑆                                  𝑆
      𝑆                       𝑆
                                                   𝑍1𝑀          πœ”1𝑖1     𝑍1𝑣        𝜈1𝑖1                  𝑍1𝑀 πœ”11
                                                                                                                        𝑖
                                             ...                                                                              ...
  𝑅            𝑅          𝑅       π‘Ž0   𝑅           𝑅
                                                       π‘βˆ’3 𝑅 π‘βˆ’2 𝑅 π‘βˆ’1 𝑅 𝑏0           𝑅
                                                                                            𝑏1   𝑅
                                                                                                     𝑏2   𝑅
                                                                                                                  𝑏3     𝑅

          𝑅
                     π‘Ž2                 π‘Ž1
                                  𝑅

                     A                                                         B
Figure 1: Intended models A, π‘Ž0 and B, 𝑏0 with A |= πœ™(π‘Ž0 ), B |= Β¬πœ“(𝑏0 ), and A, π‘Ž0 ∼𝐿,𝜚 B, 𝑏0 , where
𝜚-bisimilar points in the disjoint union of A and B are connected by dotted lines and 𝐸𝑖 -equivalence classes in
B, 𝑖 = 1, 2, are encircled by dashed lines. Model A contains two disjoint copies of a 3-point 𝑅-cycle followed by
an infinite 𝑆-chain. Model B has an infinite 𝑅-chain of points 𝑏𝑖 , for 𝑖 ∈ Z; each 𝑏6𝑖 starts an infinite 𝑆-chain for
the word 𝑣𝑖1 𝑣𝑖2 . . . , and each 𝑏6𝑖+3 starts an infinite 𝑆-chain for the word 𝑀𝑖1 𝑀𝑖2 . . . . These πœ”-words coincide
with the πœ”-word written on the 𝑆-chains in A.



and the formulas πœ”π‘–π‘— , generating the respective words 𝑀𝑗 , are defined analogously but with 𝐡𝑙𝑗 , 𝑃𝑀𝑙 𝑗
and π‘šπ‘— in place of 𝐴𝑗𝑙 , 𝑃𝑣𝑙𝑗 and 𝑛𝑗 , respectively.
(disjointness) βˆ€π‘₯ 𝑃 (π‘₯) β†’ ¬𝑃 β€² (π‘₯) , for any distinct 𝑃, 𝑃 β€² ∈ Ξ“, distinct 𝑃, 𝑃 β€² of the form 𝑃𝑣𝑙𝑗 , 𝑃𝑀𝑙 𝑗 ,
                    (οΈ€                   )οΈ€

      as well as for {𝑃, 𝑃 β€² } = {𝑍1𝑒 , 𝑍2𝑒 } with 𝑒 ∈ {𝑣, 𝑀}, and {𝑃, 𝑃 β€² } = {𝑍 𝑣 , 𝑍 𝑀 }.
                           (οΈ€                    )οΈ€
(coordination) βˆ€π‘₯, 𝑦 𝑅(π‘₯, 𝑦) β†’ 𝐸1 (π‘₯, 𝑦) ,
                  βˆ€π‘₯ 𝑍(︀𝑖𝑣 (π‘₯) ∧ πœˆπ‘–π‘— (π‘₯) β†’ βˆ€π‘¦ 𝐸𝑖 (π‘₯, 𝑦) ∧ 𝑍𝑖𝑀 (𝑦) β†’     πœ”π‘–π‘— (𝑦) , for 𝑖 = 1, 2, 𝑗 ≀ π‘˜,
                       [οΈ€                       (οΈ€                             )οΈ€]οΈ€

                  βˆ€π‘₯, 𝑦 𝐸𝑖 (π‘₯, 𝑦) ∧ 𝑍¯𝑖𝑣 (π‘₯) ∧ 𝑍¯𝑖𝑀 (𝑦) β†’ 𝐸¯𝑖 (π‘₯, 𝑦) , for 𝑖 = 1, 2.
                                                                    )οΈ€

(uniqueness) βˆ€π‘₯, 𝑦 𝑃 (π‘₯) ∧ 𝑃 (𝑦) ∧ 𝐸𝑖 (π‘₯, 𝑦) β†’ π‘₯ = 𝑦 , for 𝑃 of the form 𝑃𝑣𝑙𝑗 , 𝑃𝑀𝑙 𝑗 , 𝑖 = 1, 2.
                        (οΈ€                                  )οΈ€

Clearly 𝜚 = sig(πœ™) ∩ sig(πœ“) consists of 𝑅, 𝑆 and the predicates in Ξ“.
  We now show that the constructed FO2 2E-formulas πœ™ and πœ“ are as required:
Theorem 4. Let πœ™ and πœ“ be the FO2 2E-formulas defined above for a given πœ”PCP instance 𝒫. Then 𝒫 has a
solution iff there exist structures A, π‘Ž and B, 𝑏 such that A |= πœ™(π‘Ž), B |= Β¬πœ“(𝑏), and A, π‘Ž ∼FO2 2E,𝜚 B, 𝑏.
   Proof. (β‡’) Suppose that 𝑣𝑖1 𝑣𝑖2 Β· Β· Β· = 𝑀𝑖1 𝑀𝑖2 . . . is a solution to the given 𝒫. It is not hard to
check that, for the structures A and B shown in Fig. 1, we have A |= πœ™(π‘Ž0 ), B |= Β¬πœ“(𝑏0 ), and
A, π‘Ž0 ∼FO2 2E(𝜚) B, 𝑏0 . It is to be noted that a formula enforcing a 3-point cycle is needed as a 1- or
2-point cycle is not FO2 2E(𝜚)-bisimilar to a chain. Also note that two disjoint copies of a 3-point
𝑅-cycle followed by an 𝑆-chain in A are needed to ensure FO2 2E(𝜚)-bisimilarity between A, π‘Ž0 and
B, 𝑏0 . Indeed, suppose, for example, that π‘Ž and 𝑏 are the 𝑖th points in the 𝑆-chains starting from π‘Ž0
and 𝑏0 , respectively. Now, if we consider the (𝑖 + 1)th point 𝑏′ in the 𝑆-chain starting from 𝑏3 , then,
to obtain a partial 𝜚-isomorphism between (𝑏, 𝑏′ ) and some (π‘Ž, π‘Žβ€² ), we may need to take the (𝑖 + 1)th
point π‘Žβ€² from the second 𝑆-chain in A.
   (⇐) Suppose A |= πœ™(π‘Ž0 ), B |= Β¬πœ“(𝑏0 ), and A, π‘Ž0 ∼FO2 2E,𝜚 B, 𝑏0 . Consider first the pointed
structure B, 𝑏0 . As B |= Β¬πœ“(𝑏0 ), the axioms in the first two lines of (generation) give an infinite
sequence 𝑣 = 𝑣 𝑖1 𝑣 𝑖2 . . . depicted below.
                                                     𝐸2
                            𝐸1                                                 𝐸1
                         𝑖1    1      𝑖              𝐴𝑖𝑛1𝑖1      𝑖2    2        𝑖                    𝐴𝑖𝑛2𝑖2
                      𝑆 𝐴1 𝑆 𝐴2                               𝑆 𝐴1 𝑆 𝐴2
           𝑏0                             . 𝑆. .                                          . 𝑆. .                     ...   ...
                𝑍1𝑣    𝑃𝑣1𝑖1    𝑃𝑣2𝑖1
                                                     𝑛𝑖
                                                   𝑃𝑣𝑖11𝑍2𝑣    𝑃𝑣1𝑖2          𝑃𝑣2𝑖2
                                                                                                     𝑛𝑖
                                                                                                   𝑃𝑣𝑖22𝑍1𝑣


             𝑣 =               𝑣 𝑖1                                    𝑣 𝑖2                                   𝑣 𝑖3
We show that the πœ”-word 𝑣𝑖1 𝑣𝑖2 . . . over Ξ“, i.e.,

                                          𝐴𝑖11 𝐴𝑖21 . . . 𝐴𝑖𝑛1𝑖 𝐴𝑖12 𝐴𝑖22 . . . 𝐴𝑖𝑛2𝑖 . . .
                                                               1                     2
                                          ⏟         ⏞            ⏟        ⏞
                                                     𝑣𝑖1                            𝑣𝑖2

written on 𝑣 is unique. Indeed, by (disjointness) and (generation), all 𝑆-successors of𝑏0 carry the
same 𝑃𝑣1𝑖 , all of them are in the same 𝐸1 -equivalence class, and so must coincide by (uniqueness).
          1
Next we see that all of the 𝑆-successors of the 𝑃𝑣1𝑖 -point carry 𝑃𝑣2𝑖 , and so must coincide, etc. This
                                                             1                  1
gives us the word 𝑣𝑖1 carried by the segment 𝑣 𝑖1 sitting in the same 𝐸1 -equivalence class. The last point
in this segment carries 𝑍2𝑣 , which triggers the next segment 𝑣 𝑖2 sitting in the same 𝐸2 -equivalence
class, and so on. All of the points in 𝑣 carry 𝑍 𝑣 by the second formula in (generation). The points on
the boundaries between 𝑣 𝑖𝑗 and 𝑣 𝑖𝑗+1 belong to both 𝐸1 - and 𝐸2 -equivalence classes.
   As A, π‘Ž0 ∼𝐿,𝜚 B, 𝑏0 , 𝑅 ∈ 𝜚 and 𝑅(π‘Ž0 , π‘Ž1 ), 𝑅(π‘Ž1 , π‘Ž2 ), 𝑅(π‘Ž2 , π‘Ž0 ), Definition 2 gives points 𝑏𝑖 , 𝑖 > 0, in
B such that 𝑅(𝑏0 , 𝑏1 ), 𝑅(𝑏1 , 𝑏2 ), 𝑅(𝑏2 , 𝑏3 ) and 𝑏3 ∼𝐿,𝜚 𝑏0 . By the third and fourth lines in (generation),
we have 𝑍1𝑀 (𝑏3 ), 𝑍 𝑀 (𝑏3 ), and so, by (disjointness), 𝑏0 ΜΈ= 𝑏3 . By the first formula in (coordination),
we must have 𝐸1 (𝑏0 , 𝑏3 ).
   The same argument as for 𝑏0 above gives us an 𝑆-chain 𝑀 starting from 𝑏3 and disjoint from 𝑣 in
view of (disjointness) that defines uniquely an πœ”-word 𝑀𝑖′1 𝑀𝑖′2 . . . over Ξ“. The chain 𝑀 consists of
consecutive segments 𝑀𝑖′1 , 𝑀𝑖′2 , . . . such that 𝑀𝑖′1 sits in the same 𝐸1 -equivalence class as 𝑣 𝑖1 , 𝑀𝑖′2 sits
in an 𝐸2 -equivalence class, 𝑀𝑖′3 in an 𝐸1 -equivalence class, etc.
   By the second formula in (coordination), we have 𝑖1 = 𝑖′1 , and so (𝑣𝑖1 , 𝑀𝑖′1 ) ∈ 𝒫; by the third one,
the ends of 𝑣 𝑖1 and 𝑀𝑖1 are 𝐸2 -related, from which 𝑖2 = 𝑖′2 and (𝑣𝑖2 , 𝑀𝑖′2 ) ∈ 𝒫. The ends of 𝑣 𝑖2 and
𝑀𝑖2 are 𝐸1 -related, so 𝑖3 = 𝑖′3 and (𝑣𝑖3 , 𝑀𝑖′3 ) ∈ 𝒫, etc.
   Finally, let 𝑣 be 𝑆(𝑏0 , 𝑐0 ), 𝑆(𝑐0 , 𝑐1 ), . . . and let 𝑀 be 𝑆(𝑏3 , 𝑑0 ), 𝑆(𝑑0 , 𝑑1 ), . . . . Since these 𝑆-chains
are unique and 𝑏3 ∼𝐿,𝜚 𝑏0 , we must have 𝑐𝑖 ∼𝐿,𝜚 𝑑𝑖 , for all 𝑖 < πœ”. It follows that the Ξ“-symbols carried
by each pair 𝑐𝑖 and 𝑑𝑖 must coincide, which gives a solution to 𝒫.                                                    ⊣
  Since the πœ”PCP is undecidable, as an immediate consequence of Theorem 4 and Lemma 3 we obtain
our main result:
Theorem 5. The FO2 2E-IEP and FO2 2E-EDEP are both undecidable.
4. Undecidability of the IEP for Guarded and Description Logics
It is not hard to tweak the construction in the previous section to show that the GF2 2Ec -IEP is also
undecidable. Observe that the formula πœ“ defined above can be equivalently represented as a formula in
GF2 2Ec and that the FO2 2E(𝜚)-bisimulation between A and B is actually a GF2 2Ec (𝜚)-bisimulation
                                   (οΈ€ to have one copy of the 𝑅-cycle
(in this case, it is actually enough                            )οΈ€     with an 𝑆-chain in A). The only
unguarded conjunct of πœ™ is βˆ€π‘₯, 𝑦 (𝑋0 (π‘₯) ∧ 𝑋0 (𝑦)) β†’ π‘₯ = 𝑦 , which is needed to generate an 𝑅-cycle
with three points. The same result can be achieved using a guarded πœ™β€² with two individual constants 𝑐1
and 𝑐2 as follows:
                                                                       ⋀︁ (οΈ€
           πœ™β€² (π‘₯) = 𝑅(π‘₯, 𝑐1 ) ∧ 𝑅(𝑐1 , 𝑐2 ) ∧ 𝑅(𝑐2 , π‘₯) ∧ βˆƒπ‘¦ 𝑆(π‘₯, 𝑦) ∧
                                                            [οΈ€                              )οΈ€]οΈ€
                                                                             𝐴𝑖 (𝑦) β†’ 𝐴𝑖 (𝑦) .
                                                                      𝐴𝑖 βˆˆΞ“

We then obtain Theorem 4 with πœ™β€² and GF2 2Ec in place of πœ™ and FO2 2E, respectively, and, as an
immediate consequence, the following:

Theorem 6. The GF2 2Ec -IEP and GF2 2Ec -EDEP are both undecidable.

   These undecidability results can be interpreted as results about description logics with Boolean
operators on roles that correspond to the two-variable fragments [36, 37]. The crucial operators
required are role intersection, negation, and the identity role. Denote by π’œβ„’π’ž ∩,Β¬,id 2E the extension of
the basic description logic π’œβ„’π’ž with the operators ∩ and Β¬ on roles, the identity role id interpreted
as {(π‘Ž, π‘Ž) | π‘Ž ∈ dom(A)} in any structure A, and two equivalence relations. The interpolant existence
problem for π’œβ„’π’ž ∩,Β¬,id 2E (or π’œβ„’π’ž ∩,Β¬,id 2E-IEP, for short) is the problem to decide, given π’œβ„’π’ž ∩,Β¬,id 2E-
concepts 𝐢1 and 𝐢2 , whether there exists an π’œβ„’π’ž ∩,Β¬,id 2E-concept 𝐢 built from the shared concept
and role names from 𝐢1 and 𝐢2 such that 𝐢1 βŠ‘ 𝐢 and 𝐢 βŠ‘ 𝐢2 are valid concept inclusions. We then
obtain the following:

Theorem 7. The π’œβ„’π’ž ∩,Β¬,id 2E-IEP and π’œβ„’π’ž ∩,Β¬,id 2E-EDEP are both undecidable.

   To obtain a DL version of the undecidability for the GF2 2Ec -IEP, we can add nominals and the
universal role to π’œβ„’π’ž ∩,Β¬,id 2E and, to reflect guarded quantification, admit only Boolean combinations
of roles that contain at least one positive occurrence of a role name that is different from the universal
role.


5. Open Problems
This paper presents first examples of decidable fragments of first-order logic, for which the interpolant
existence problem and the explicit definition existence problem are undecidable. Numerous questions
remain open, including the following:

    β€’ Is the IEP decidable for FO2 1E, that is, FO2 with one equivalence relation? Note that the
      decidability and coNExpTime-completeness proofs for FO2 1E are significantly less involved than
      those for FO2 2E [28]. What happens if we extend FO2 with a single transitive (rather than
      equivalence) relation?
    β€’ Is the FO2 2E-IEP still undecidable if one drops equality from FO2 ? Note that, for FO2 without
      equivalence relations and without equality, the IEP is decidable and the known complexity bounds
      are the same as for the case with equality [26].
    β€’ Is the IEP decidable for π’œβ„’π’žπ’¬β„π’ͺ? What about C2 , that is, FO2 with counting quantifiers βˆƒβ‰₯π‘˜ π‘₯,
      π‘˜ ∈ N? A possible hint that the IEP for C2 might be undecidable is given by a recent result of [38]
      according to which the following related separation problem is undecidable: given two mutually
      exclusive C2 -formulas πœ™ and πœ“, decide whether there exists an FO2 -formula πœ’, called a separator
      for πœ™ and πœ“, such that πœ™ |= πœ’ and πœ’ |= Β¬πœ“.
References
 [1] K. L. McMillan, Interpolation and SAT-based model checking, in: Proceedings of the 15th
     International Conference on Computer Aided Verification, CAV 2003, Springer, 2003, pp. 1–13.
     URL: https://doi.org/10.1007/978-3-540-45069-6_1. doi:10.1007/978-3-540-45069-6\_1.
 [2] R. Diaconescu, Logical support for modularisation, Logical environments 83 (1993) 130.
 [3] A. Cimatti, A. Griggio, R. Sebastiani, Interpolant generation for UTVPI, in: Proceedings of the
     22nd International Conference on Automated Deduction, CADE 2022, Springer, 2009, pp. 167–182.
     URL: https://doi.org/10.1007/978-3-642-02959-2_15. doi:10.1007/978-3-642-02959-2\_15.
 [4] D. Calvanese, S. Ghilardi, A. Gianola, M. Montali, A. Rivkin, Combined covers and Beth definability,
     in: Automated Reasoning - 10th International Joint Conference, IJCAR 2020, Paris, France, July 1-4,
     2020, Proceedings, Part I, 2020, pp. 181–200. URL: https://doi.org/10.1007/978-3-030-51074-9_11.
     doi:10.1007/978-3-030-51074-9\_11.
 [5] D. Calvanese, S. Ghilardi, A. Gianola, M. Montali, A. Rivkin, Combination of uniform inter-
     polants via Beth definability, J. Autom. Reason. 66 (2022) 409–435. URL: https://doi.org/10.1007/
     s10817-022-09627-1. doi:10.1007/s10817-022-09627-1.
 [6] D. Toman, G. E. Weddell, Fundamentals of Physical Design and Query Compilation, Synthesis
     Lectures on Data Management, Morgan & Claypool Publishers, 2011.
 [7] M. Benedikt, J. Leblay, B. ten Cate, E. Tsamoura, Generating Plans from Proofs: The Interpolation-
     based Approach to Query Reformulation, Synthesis Lectures on Data Management, Morgan &
     Claypool Publishers, 2016.
 [8] B. ten Cate, E. Franconi, I. Seylan, Beth definability in expressive description logics, J. Artif. Intell.
     Res. 48 (2013) 347–414.
 [9] M. Benedikt, B. ten Cate, M. Vanden Boom, Effective interpolation and preservation in guarded
     logics, ACM Trans. Comput. Log. 17 (2016) 8. URL: https://doi.org/10.1145/2814570. doi:10.1145/
     2814570.
[10] B. ten Cate, W. Conradie, M. Marx, Y. Venema, Definitorially complete description logics, in: Proc.
     of KR, 2006, pp. 79–89.
[11] A. Artale, A. Mazzullo, A. Ozaki, F. Wolter, On free description logics with definite descriptions,
     in: Proceedings of the 18th International Conference on Principles of Knowledge Representation
     and Reasoning, KR 2021, 2021, pp. 63–73. URL: https://doi.org/10.24963/kr.2021/7. doi:10.24963/
     kr.2021/7.
[12] D. Geleta, T. R. Payne, V. A. M. Tamma, An investigation of definability in ontology alignment,
     in: E. Blomqvist, P. Ciancarini, F. Poggi, F. Vitali (Eds.), Knowledge Engineering and Knowledge
     Management - 20th International Conference, EKAW 2016, Bologna, Italy, November 19-23, 2016,
     Proceedings, volume 10024 of Lecture Notes in Computer Science, 2016, pp. 255–271. URL: https:
     //doi.org/10.1007/978-3-319-49004-5_17. doi:10.1007/978-3-319-49004-5\_17.
[13] B. Konev, C. Lutz, D. Walther, F. Wolter, Formal properties of modularisation, in: H. Stuckenschmidt,
     C. Parent, S. Spaccapietra (Eds.), Modular Ontologies: Concepts, Theories and Techniques for
     Knowledge Modularization, volume 5445 of Lecture Notes in Computer Science, Springer, 2009, pp.
     25–66. URL: https://doi.org/10.1007/978-3-642-01907-4_3. doi:10.1007/978-3-642-01907-4\
     _3.
[14] E. Botoeva, B. Konev, C. Lutz, V. Ryzhikov, F. Wolter, M. Zakharyaschev, Inseparability and
     conservative extensions of description logic ontologies: A survey, in: J. Z. Pan, D. Calvanese,
     T. Eiter, I. Horrocks, M. Kifer, F. Lin, Y. Zhao (Eds.), Reasoning Web: Logical Foundation of
     Knowledge Graph Construction and Query Answering - 12th International Summer School 2016,
     Aberdeen, UK, September 5-9, 2016, Tutorial Lectures, volume 9885 of Lecture Notes in Computer
     Science, Springer, 2016, pp. 27–89. URL: https://doi.org/10.1007/978-3-319-49493-7_2. doi:10.1007/
     978-3-319-49493-7\_2.
[15] I. Seylan, E. Franconi, J. de Bruijn, Effective query rewriting with ontologies over DBoxes, in:
     Proceedings of the 21st International Joint Conference on Artificial Intelligence, IJCAI 2009, 2009,
     pp. 923–925. URL: http://ijcai.org/Proceedings/09/Papers/157.pdf.
[16] D. Toman, G. E. Weddell, First order rewritability for ontology mediated querying in Horn-DLFD,
     in: Proceedings of the 33rd International Workshop on Description Logics (DL 2020) co-located
     with the 17th International Conference on Principles of Knowledge Representation and Reasoning
     (KR 2020), Online Event [Rhodes, Greece], September 12th to 14th, 2020, 2020.
[17] E. Franconi, V. Kerhet, N. Ngo, Exact query reformulation over databases with first-order and
     description logics ontologies, J. Artif. Intell. Res. 48 (2013) 885–922. URL: https://doi.org/10.1613/
     jair.4058. doi:10.1613/jair.4058.
[18] E. Franconi, V. Kerhet, Effective query answering with ontologies and DBoxes, in: Description
     Logic, Theory Combination, and All That, Springer, 2019, pp. 301–328.
[19] D. Toman, G. E. Weddell, FO Rewritability for OMQ using Beth Definability and Interpolation, in:
     Proceedings of the 34th International Workshop on Description Logics, DL 2021, CEUR-WS.org,
     2021. URL: http://ceur-ws.org/Vol-2954/paper-29.pdf.
[20] S. D. Comer, Classes without the amalgamation property., Pacific J. Math. 28 (1969) 309–318.
[21] D. Pigozzi, Amalgamation, congruence-extension, and interpolation properties in algebras, Algebra
     Univers. (1971) 269–349.
[22] M. Marx, C. Areces, Failure of interpolation in combined modal logics, Notre Dame J. Formal Log.
     39 (1998) 253–273.
[23] A. Artale, J. C. Jung, A. Mazzullo, A. Ozaki, F. Wolter, Living without Beth and Craig: Definitions
     and interpolants in description and modal logics with nominals and role inclusions, ACM Trans.
     Comput. Log. 24 (2023) 34:1–34:51. URL: https://doi.org/10.1145/3597301. doi:10.1145/3597301.
[24] M. Fortin, B. Konev, F. Wolter, Interpolants and explicit definitions in extensions of the description
     logic β„°β„’, in: Proceedings of the 19th International Conference on Principles of Knowledge
     Representation and Reasoning, KR 2022, 2022.
[25] J. C. Jung, F. Wolter, Living without Beth and Craig: Definitions and interpolants in the guarded
     and two-variable fragments, in: Proceedings of the 36th Annual ACM/IEEE Symposium on Logic
     in Computer Science, LICS 2021, IEEE, 2021, pp. 1–14. URL: https://doi.org/10.1109/LICS52264.
     2021.9470585. doi:10.1109/LICS52264.2021.9470585.
[26] A. Kurucz, F. Wolter, M. Zakharyaschev, Definitions and (uniform) interpolants in first-order
     modal logic, in: P. Marquis, T. C. Son, G. Kern-Isberner (Eds.), Proceedings of the 20th International
     Conference on Principles of Knowledge Representation and Reasoning, KR 2023, Rhodes, Greece,
     September 2-8, 2023, 2023, pp. 417–428. URL: https://doi.org/10.24963/kr.2023/41. doi:10.24963/
     KR.2023/41.
[27] E. Kieronski, J. Michaliszyn, I. Pratt-Hartmann, L. Tendera, Two-variable first-order logic with
     equivalence closure, SIAM J. Comput. 43 (2014) 1012–1063. URL: https://doi.org/10.1137/120900095.
     doi:10.1137/120900095.
[28] I. Pratt-Hartmann, Fragments of First-Order Logic, Oxford Logic Guides, Oxford University Press,
     United Kingdom, 2023.
[29] V. Goranko, M. Otto, Model theory of modal logic, in: Handbook of Modal Logic, Elsevier, 2007,
     pp. 249–329.
[30] E. GrΓ€del, M. Otto, The freedoms of (guarded) bisimulation, in: Johan van Benthem on Logic and
     Information Dynamics, Springer International Publishing, 2014, pp. 3–31.
[31] C. Chang, H. J. Keisler, Model Theory, Elsevier, 1998.
[32] A. Robinson, A result on consistency and its application to the theory of definition, Indagationes
     Mathematicae 18 (1956) 47–58.
[33] D. M. Gabbay, L. Maksimova, Interpolation and Definability: Modal and Intuitionistic Logics,
     Oxford, England: Oxford University Press UK, 2005.
[34] K. Ruohonen, Reversible machines and Post’s correspondence problem for biprefix morphisms, J.
     Inf. Process. Cybern. 21 (1985) 579–595.
[35] F. Gire, Two decidability problems for infinite words, Inf. Process. Lett. 22 (1986) 135–140. URL:
     https://doi.org/10.1016/0020-0190(86)90058-X. doi:10.1016/0020-0190(86)90058-X.
[36] C. Lutz, U. Sattler, F. Wolter, Description logics and the two-variable fragment, in: C. A.
     Goble, D. L. McGuinness, R. MΓΆller, P. F. Patel-Schneider (Eds.), Working Notes of the 2001
     International Description Logics Workshop (DL-2001), Stanford, CA, USA, August 1-3, 2001, vol-
     ume 49 of CEUR Workshop Proceedings, CEUR-WS.org, 2001. URL: https://ceur-ws.org/Vol-49/
     LutzSattlerWolter-66start.ps.
[37] C. Lutz, U. Sattler, F. Wolter, Modal logic and the two-variable fragment, in: L. Fribourg (Ed.),
     Computer Science Logic, 15th International Workshop, CSL 2001. 10th Annual Conference of
     the EACSL, Paris, France, September 10-13, 2001, Proceedings, volume 2142 of Lecture Notes in
     Computer Science, Springer, 2001, pp. 247–261. URL: https://doi.org/10.1007/3-540-44802-0_18.
     doi:10.1007/3-540-44802-0\_18.
[38] L. Kuijer, T. Tan, F. Wolter, M. Zakharyaschev, Separating counting from non-counting in fragments
     of two-variable first-order logic (extended abstract), in: Proceedings of the 37th International
     Workshop on Description Logics, CEUR Workshop Proceedings, CEUR-WS.org, 2024.