<!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>Hybrid E L-Unification is NP-complete</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Franz Baader</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Oliver Fernández Gil</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Barbara Morawska?</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>baader</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>morawska}@tcs.inf.tu-dresden.de</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>olitof</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>@gmail.com</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Theoretical Computer Science</institution>
          ,
          <addr-line>TU Dresden</addr-line>
          ,
          <country country="DE">Germany</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Unification in Description Logics (DLs) has been proposed as an inference service that can, for example, be used to detect redundancies in ontologies. For the DL EL, which is used to define several large biomedical ontologies, unification is NP-complete. However, the unification algorithms for EL developed until recently could not deal with ontologies containing general concept inclusions (GCIs). In a series of recent papers we have made some progress towards addressing this problem, but the ontologies the developed unification algorithms can deal with need to satisfy a certain cycle restriction. In the present paper, we follow a different approach. Instead of restricting the input ontologies, we generalize the notion of unifiers to so-called hybrid unifiers. Whereas classical unifiers can be viewed as acyclic TBoxes, hybrid unifiers are cyclic TBoxes, which are interpreted together with the ontology of the input using a hybrid semantics that combines fixpoint and descriptive semantics. We show that hybrid unification in EL is NP-complete.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>
        The DL E L, which offers the constructors conjunction (u), existential restriction
(9r:C), and the top concept (&gt;), has recently drawn considerable attention since,
on the one hand, important inference problems such as the subsumption problem
are polynomial in E L, even in the presence of GCIs [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ]. On the other hand, though
quite inexpressive, E L can be used to define biomedical ontologies, such as the
large medical ontology SNOMED CT.1 From a semantic point of view, concept
names and concept descriptions represent sets of individuals, whereas role names
represent binary relations between individuals. For example, using the concept
names Head_injury and Severe, and the role names nding and status, we can
describe the concept of a patient with severe head injury as
      </p>
      <sec id="sec-1-1">
        <title>Patient u 9 nding:(Head_injury u 9status:Severe):</title>
        <p>(1)</p>
        <p>In a DL ontology, one can use concept definitions to introduce abbreviations
for concept descriptions. For example, we could use the definition Head_injury
Injury u 9 nding_site:Head to define Head_injury as an injury that is located at
? Supported by DFG under grant BA 1122/14-2
1 see http://www.ihtsdo.org/snomed-ct/
the head. More generally, GCIs can be used to require that certain inclusions
hold in all models of the ontology. For example,</p>
      </sec>
      <sec id="sec-1-2">
        <title>9 nding:9status:Severe v 9status:Emergency</title>
        <p>(2)
is a GCI that says that a severe finding entails an emergency status.</p>
        <p>Knowledge representation systems based on DLs provide their users with
various inference services that allow them to deduce implicit knowledge from
the explicitly represented knowledge. For instance, the subsumption algorithm
allows one to determine subconcept-superconcept relationships. For example,
the concept description (1) is subsumed by (i.e., is a subconcept of) the concept
description 9 nding:9status:Severe. With respect to the GCI (2), it is thus also
subsumed by 9status:Emergency, i.e., in all models of this GCI, patients with
severe head injury have an emergency status.</p>
        <p>
          Unification in DLs has been proposed in [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ] as a non-standard inference
service that can, for instance, be used to detect redundancies in ontologies. For
example, assume that one developer of a medical ontology describes the concept
of a patient with severe head injury using the concept description (1), whereas
another one represents it as
        </p>
      </sec>
      <sec id="sec-1-3">
        <title>Patient u 9 nding:(Severe_injury u 9 nding_site:Head):</title>
        <p>(3)
These two concept descriptions are not equivalent, but they are nevertheless
meant to represent the same concept. They can obviously be made equivalent
by introducing definitions for the concept names Head_injury and Severe_injury:
if we define Head_injury Injury u 9 nding_site:Head and Severe_injury
Injury u 9status:Severe, then the two concept descriptions (1) and (3) are
equivalent w.r.t. these definitions. If such definitions exist, we say that the descriptions
are unifiable, and call the TBox consisting of these definitions a unifier. In the
standard definition of unification in DLs, it is required that this TBox is acyclic,
i.e., there are no cyclic dependencies between the definitions.</p>
        <p>To motivate our interest in unification w.r.t. GCIs, assume that the second
developer uses the description</p>
      </sec>
      <sec id="sec-1-4">
        <title>Patient u 9status:Emergency u 9 nding:(Severe_injury u 9 nding_site:Head) (4)</title>
        <p>instead of (3). The descriptions (1) and (4) are not unifiable without additional
GCIs, but they are unifiable, with the same unifier as above, if the GCI (2) is
present in a background ontology.</p>
        <p>
          In [
          <xref ref-type="bibr" rid="ref6">6</xref>
          ], we were able to show that unification in the DL E L (without
background ontology) is NP-complete. In addition to a brute-force “guess and then
test” NP-algorithm [
          <xref ref-type="bibr" rid="ref6">6</xref>
          ], we have also developed a goal-oriented unification
algorithm for E L, in which nondeterministic decisions are only made if they are
triggered by “unsolved parts” of the unification problem [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ]. In [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ] it was also shown
that these two approaches for unification of E L-concept descriptions (without
any background ontology) can easily be extended to the case of an acyclic TBox
as background ontology without really changing the algorithms or increasing
their complexity. For more general GCIs, such a simple solution is no longer
possible.
        </p>
        <p>
          In [
          <xref ref-type="bibr" rid="ref3">3</xref>
          ], we extended the brute-force “guess and then test” NP-algorithm from
[
          <xref ref-type="bibr" rid="ref6">6</xref>
          ] to the case of GCIs. Unfortunately, the algorithm is complete only for
ontologies that satisfy a certain restriction on cycles, which, however, does not prevent
all cycles. For example, the cyclic GCI 9child:Human v Human satisfies this
restriction, whereas the cyclic GCI Human v 9parent:Human does not. In [
          <xref ref-type="bibr" rid="ref4">4</xref>
          ], we
introduced a more practical, goal-oriented unification algorithm that can also
deal with role hierarchies and transitive roles, but still needs the ontology (now
consisting of GCIs and role axioms) to be cycle-restricted. At the moment, it is
not clear how similar brute-force or goal-oriented algorithms could be obtained
for the general case without cycle-restriction.
        </p>
        <p>
          In this paper, we follow another line of attack on this problem. Instead of
restricting the input ontology, we allow cyclic TBoxes to be used as unifiers.
Subsumption w.r.t. cyclic TBoxes in E L has been investigated in detail in [
          <xref ref-type="bibr" rid="ref1">1</xref>
          ].
In addition to the classical descriptive semantics, it also makes sense to use
greatest fixpoint semantics (gfp-semantics) for such TBoxes. For example, w.r.t.
this semantics, the definition X 9parent:X describes exactly those domain
elements that are the origin of an infinite parent-chain, whereas descriptive
semantics would also allow the empty set to be an interpretation of X, even if
there are infinite parent-chains. Hybrid semantics deals with the case where a
TBox interpreted with gfp-semantics is combined with GCIs that are interpreted
with descriptive semantics [
          <xref ref-type="bibr" rid="ref10 ref12">10,12</xref>
          ]. Its introduction was originally motivated by
the fact that the least common subsumer (lcs) w.r.t. a set of GCIs interpreted
with descriptive semantics need not exist. For example, w.r.t. the GCIs
        </p>
      </sec>
      <sec id="sec-1-5">
        <title>Human v 9parent:Human and Horse v 9parent:Horse;</title>
        <p>
          (5)
there is no least concept description (w.r.t. subsumption) that subsumes both
Human and Horse. What elements of these two concepts have in common is that
they are the origin of an infinite parent-chain, and thus the concept X with
definition X 9parent:X is their lcs, if we interpret this definition with
gfpsemantics, but the GCIs (5) still with descriptive semantics. A hybrid unifier is
a cyclic TBox that, together with the background ontology consisting of GCIs,
entails the unification problem w.r.t. hybrid semantics. We will show that hybrid
unification in E L, i.e., the problem of testing whether a hybrid unifier exists, is
NP-complete. The proofs, which can be found in [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ], are based on the proof
system for hybrid subsumption introduced in [
          <xref ref-type="bibr" rid="ref12">12</xref>
          ].
2
        </p>
        <sec id="sec-1-5-1">
          <title>The Description Logic E L</title>
          <p>The expressiveness of a DL is determined both by the formalism for describing
concepts (the concept description language) and the terminological formalism,
which can be used to state additional constraints on the interpretation of
concepts in a so-called ontology.</p>
          <p>The concept description language The concept description language
considered in this paper is called E L. Starting with a finite set NC of concept names
and a finite set NR of role names, E L-concept descriptions are built from concept
names using the constructors conjunction (C u D), existential restriction (9r:C
for every r 2 NR), and top (&gt;). Since in this paper we only consider E L-concept
descriptions, we will usually dispense with the prefix E L.</p>
          <p>On the semantic side, concept descriptions are interpreted as sets. To be
more precise, an interpretation I = ( I ; I ) consists of a non-empty domain I
and an interpretation function I that maps concept names to subsets of I and
role names to binary relations over I . This function is inductively extended to
concept descriptions as follows:
&gt;I :=</p>
          <p>I ; (C u D)I := CI \ DI ; (9r:C)I := fx j 9y : (x; y) 2 rI ^ y 2 CI g
Classical ontologies and subsumption A concept definition is an expression
of the form X C where X is a concept name and C is a concept description,
and a general concept inclusion (GCI) is an expression of the form C v D,
where C; D are concept descriptions. An interpretation I is a model of this
concept definition (this GCI) if it satisfies XI = CI (CI DI ). This semantics
for GCIs and concept definitions is usually called descriptive semantics.</p>
          <p>A TBox is a finite set T of concept definitions that does not contain multiple
definitions, i.e., fX C; X Dg T implies C = D. Note that we do not
prohibit cyclic dependencies among the concept definitions in a TBox, i.e., when
defining a concept X we may (directly or indirectly) refer to X. An acyclic TBox
is a TBox without cyclic dependencies. An ontology is a finite set of GCIs. The
interpretation I is a model of a TBox (ontology) iff it is a model of all concept
definitions (GCIs) contained in it.</p>
          <p>
            A concept description C is subsumed by a concept description D w.r.t. an
ontology O (written C vO D) if every model of O is also a model of the GCI
C v D. We say that C is equivalent to D w.r.t. O (C O D) if C vO D
and D vO C. As shown in [
            <xref ref-type="bibr" rid="ref9">9</xref>
            ], subsumption w.r.t. E L-ontologies is decidable in
polynomial time.
          </p>
          <p>Note that TBoxes can be seen as special kinds of ontologies since concept
definitions X C can of course be expressed by GCIs X v C; C v X. Thus, the
above definition of subsumption also applies to TBoxes. However, in our hybrid
ontologies we will interpret concept definitions using greatest fixpoint semantics
rather than descriptive semantics.</p>
          <p>Hybrid ontologies We assume in the following that the set of concept names
NC is partitioned into the set of primitive concepts Nprim and the set of defined
concepts Ndef . In a hybrid TBox, concept names occurring on the left-hand side
of a concept definition are required to come from the set Ndef , whereas GCIs
may not contain concept names from Ndef .</p>
          <p>Definition 1 (Hybrid E L-ontologies). A hybrid E L-ontology is a pair (O; T ),
where O is an E L-ontology containing only concept names from Nprim , and T is
a (possibly cyclic) E L-TBox such that X
C iff X 2 Ndef .</p>
          <p>C 2 T for some concept description
The idea underlying the definition of hybrid ontologies is the following: O can be
used to constrain the interpretation of the primitive concepts and roles, whereas
T tells us how to interpret the defined concepts occurring in it, once the
interpretation of the primitive concepts and roles is fixed.</p>
          <p>A primitive interpretation J is defined like an interpretation, with the only
difference that it does not provide an interpretation for the defined concepts. A
primitive interpretation can thus interpret concept descriptions built over Nprim
and NR, but it cannot interpret concept descriptions containing elements of
Ndef . Given a primitive interpretation J , we say that the (full) interpretation
I is based on J if it has the same domain as J and its interpretation function
coincides with J on Nprim and NR.</p>
          <p>Given two interpretations I1 and I2 based on the same primitive
interpretation J , we define I1 J I2 iff XI1 XI2 for all X 2 Ndef :</p>
          <p>
            It is easy to see that the relation J is a partial order on the set of
interpretations based on J . In [
            <xref ref-type="bibr" rid="ref1">1</xref>
            ] the following was shown: given an E L-TBox T and a
primitive interpretation J , there exists a unique model I of T such that
– I is based on J ;
– I0 J I for all models I0 of T that are based on J .
          </p>
          <p>We call such a model I a gfp-model of T .</p>
          <p>Definition 2 (Semantics of hybrid E L-ontologies). The interpretation I is
a hybrid model of the hybrid E L-ontology (O; T ) iff I is a gfp-model of T and
the primitive interpretation J it is based on is a model of O.</p>
          <p>It is well-known that gfp-semantics coincides with descriptive semantics for
acyclic TBoxes. Thus, if T is actually acyclic, then I is a hybrid model of (O; T )
according to the semantics introduced in Definition 2 iff it is a model of T [ O
w.r.t. descriptive semantics, i.e., iff I is a model of every GCI in O and of every
concept definition in T .</p>
          <p>
            Subsumption w.r.t. hybrid EL-ontologies Let (O; T ) be a hybrid E
Lontology and C; D E L-concept descriptions. Then C is subsumed by D w.r.t.
(O; T ) (written C vgfp;O;T D) iff every hybrid model of (O; T ) is also a model
of the GCI C v D. As shown in [
            <xref ref-type="bibr" rid="ref10 ref12">10,12</xref>
            ], subsumption w.r.t. hybrid E L-ontologies
is also decidable in polynomial time.
          </p>
          <p>
            Here, we sketch the proof-theoretic approach for deciding subsumption from
[
            <xref ref-type="bibr" rid="ref12">12</xref>
            ] since our algorithms for hybrid unification in E L are based on it. The proof
calculus is parametrized with a hybrid E L-ontology (O; T ) and a finite set of
GCIs for which we want to decide subsumption. A sequent for (O; T ) and
is of the form C vn D, where C; D are sub-descriptions of concept descriptions
occurring in O, T , and , and n 0. If (O; T ) and are clear from the context,
we will sometimes simply say sequent without specifying (O; T ) and explicitly.
          </p>
          <p>C vn C</p>
          <p>C vn E
C u D vn E
(Refl)</p>
          <p>C vn &gt;
(Top)</p>
          <p>D vn E
(AndL1) C u D vn E
(AndL2)</p>
          <p>C vn D C vn E</p>
          <p>C vn D u E
C vn D
X vn D
for X</p>
          <p>C 2 T
(DefL)</p>
          <p>C vn D
9r:C vn 9r:D (Ex)</p>
          <p>D vn C
D vn+1 X
for X</p>
          <p>C 2 T
(DefR)</p>
          <p>C vn E F vn D</p>
          <p>C vn D
for E v F 2 O
(Start)
(AndR)
(GCI)</p>
          <p>The rules of the Hybrid E L-ontology Calculus HC(O; T ; ) are depicted in
Fig. 1. Again, if (O; T ) and are clear from the context, we will sometimes
dispense with specifying them explicitly and just talk about the calculus HC.
The rules of this calculus can be used to derive new sequents from sequents that
have already been derived. For example, the sequents in the first row of the figure
can always be derived without any prerequisites, using the rules (Refl), (Top),
and (Start), respectively. Using the rule (AndR), the sequent C vn D u E can
be derived in case both C vn D and C vn E have already been derived. Note
that the rule Start applies only for n = 0. Also note that, in the rule (DefR),
the index is incremented when going from the prerequisite to the consequent.</p>
          <p>
            A derivation in HC(O; T ; ) can be represented in an obvious way by a proof
tree whose nodes are sequents: a proof tree for C vn D has this sequent as its
root, instances of the rules Refl, Top, and Start as leaves, and each parent-child
relation corresponds to an instance of a rule of HC other than Refl, Top, and
Start (see [
            <xref ref-type="bibr" rid="ref12">12</xref>
            ] for more details)
Definition 3. Let C; D be sub-descriptions of concept descriptions occurring in
O; T , and . Then we say that C v1 D can be derived in HC(O; T ; ) if all
sequents C vn D for n 0 can be derived using the rules of HC(O; T ; ).
The calculus HC is sound and complete for subsumption w.r.t. hybrid E
Lontologies in the following sense.
          </p>
          <p>Theorem 4 (Soundness and Completeness of HC). Let (O; T ) be a hybrid
E L-TBox, a finite set of GCIs, and C; D sub-descriptions of concept
descriptions occurring in O; T , and . Then C vgfp;O;T D iff C v1 D can be derived
in HC(O; T ; ).</p>
          <p>
            In [
            <xref ref-type="bibr" rid="ref12">12</xref>
            ], soundness and completeness of HC is actually formulated for a restricted
setting where is empty and C; D are elements of Ndef that occur as left-hand
sides in T . It is, however, easy to see that the proof given in [
            <xref ref-type="bibr" rid="ref12">12</xref>
            ] generalizes to
the above theorem.
          </p>
          <p>
            For n 2 N[f1g, we collect the GCIs C v D such that C vn D is derivable in
HC(O; T ; ) in the set Dn(O; T ; ). Obviously, D0(O; T ; ) consists of all GCIs
built from sub-descriptions of concept descriptions occurring in O; T , and , and
it is not hard to show that Dn+1(O; T ; ) Dn(O; T ; ) holds for all n 0 [
            <xref ref-type="bibr" rid="ref12">12</xref>
            ].
Thus, to compute D1(O; T ; ), one can start with D0(O; T ; ), and then
compute D1(O; T ; ); D2(O; T ; ); : : :, until Dm+1(O; T ; ) = Dm(O; T ; ) holds
for some m 0, and thus Dm(O; T ; ) = D1(O; T ; ). Since the cardinality
of the set of sub-descriptions is polynomial in the size of the input O; T , and
, the computation of each set Dn(O; T ; ) can be done in polynomial time,
and we can be sure that only polynomially many such sets need to be computed
until an m with Dm+1(O; T ; ) = Dm(O; T ; ) is reached. This shows that the
calculus HC(O; T ; ) indeed yields a polynomial-time subsumption algorithm
(see [
            <xref ref-type="bibr" rid="ref12">12</xref>
            ] for details).
3
          </p>
        </sec>
        <sec id="sec-1-5-2">
          <title>Hybrid unification in E L</title>
          <p>
            We will first introduce the new notion of hybrid unification and then relate it to
the notion of unification in E L w.r.t. background ontologies considered in [
            <xref ref-type="bibr" rid="ref3 ref4">3,4</xref>
            ].
Definition 5. Let O be an E L-ontology containing only concept names from
Nprim . An E L-unification problem w.r.t. O is a finite set of GCIs = fC1 v
D1; : : : ; Cn v Dng (which may also contain concept names from Ndef ). The
TBox T is a hybrid unifier of w.r.t. O if (O; T ) is a hybrid E L-ontology that
entails all the GCIs in , i.e. , C1 vgfp;O;T D1; : : : ; Cn vgfp;O;T Dn. We call
such a TBox T a classical unifier of w.r.t. O if it is acyclic.
          </p>
          <p>
            It is easy to see that the notion of a classical unifier indeed corresponds to
the notion of a unifier introduced in [
            <xref ref-type="bibr" rid="ref3 ref4">3,4</xref>
            ]. In fact, Nprim and Ndef respectively
correspond to the sets of concept constants and concept variables in previous
papers on unification in DLs. Using acyclic TBoxes rather than substitutions as
unifiers is also not a relevant difference. As explained in [
            <xref ref-type="bibr" rid="ref2">2</xref>
            ], by unfolding concept
definitions, the acyclic TBox T can be transformed into a substitution T such
that Ci vT [O Di iff T (Ci) vO T (Di). Conversely, replacements X 7! E of a
substitution can be expressed as concept definitions X E in a corresponding
acyclic TBox. In contrast, hybrid unifiers cannot be translated into substitutions
since the unfolding process would not terminate for a cyclic TBox.
          </p>
          <p>
            Obviously, any classical unifier is a hybrid unifier, but the converse need
not hold. The following is an example of an E L-unification problem w.r.t. a
background ontology that has a hybrid unifier, but no classical unifier.
Example 6. Let O be the ontology consisting of the GCIs (5), and
:= fHuman v X; Horse v X; X v 9parent:Xg;
where X 2 Ndef and Human; Horse 2 Nprim . Intuitively, this unification problem
asks for a concept such that all horses and humans belong to this concept and
every element of it has a parent also belonging to it. It is easy to see that
T := fX 9parent:Xg is a hybrid unifier of w.r.t. O. In fact, we have already
mentioned in the introduction that X is then the lcs of Human and Horse, and
obviously the hybrid ontology (O; T ) also entails the third GCI in . It is also
not hard to show that this unification problem does not have a classical unifier,
basically for the same reasons that Human and Horse do not have an E L-concept
description as lcs (see [
            <xref ref-type="bibr" rid="ref5">5</xref>
            ] for details).
          </p>
          <p>Flat unification problems To simplify the technical development, it is
convenient to normalize the unification problem appropriately. To introduce this
normal form, we need the notion of an atom. An atom is a concept name or
an existential restriction. Obviously, every E L-concept description C is a finite
conjunction of atoms, where &gt; is considered to be the empty conjunction. An
atom is called flat if it is a concept name or an existential restriction of the form
9r:A for a concept name A.</p>
          <p>The GCI C v D is called flat if C is a conjunction of n 0 flat atoms and
D is a flat atom. The unification problem w.r.t. the ontology O is called flat
if both and O consist of flat GCIs.</p>
          <p>
            Given a unification problem w.r.t. an ontology O, we can compute in
polynomial time (see [
            <xref ref-type="bibr" rid="ref5">5</xref>
            ]) a flat ontology O0 and a flat unification problem 0
such that has a (hybrid or classical) unifier w.r.t. O iff 0 has a (hybrid or
classical) unifier w.r.t. O0. For this reason, we will assume in the following that
all unification problems are flat.
          </p>
          <p>Local unifiers The main reason why E L-unification without background
ontologies is in NP is that any unification problem that has a unifier also has a
local unifier. For classical unification w.r.t. background ontologies this is only
true if the background ontology is cycle-restricted.</p>
          <p>Given a flat unification problem w.r.t. an ontology O, we denote by At
the set of atoms occurring as sub-descriptions in GCIs in or O. The set of
non-variable atoms is defined as by Atnv := At n Ndef . Though the elements of
Atnv cannot be defined concepts, they may contain defined concepts if they are
of the form 9r:X for some role r and a concept name X 2 Ndef .</p>
          <p>In order to define local unifiers, we consider assignments of subsets X of
Atnv to defined concepts X 2 Ndef . Such an assignment induces a TBox
T := fX</p>
          <p>l
D2 X</p>
          <p>D j X 2 Ndef g:
We call such a TBox local. The (hybrid or classical) unifier T of w.r.t. O is
called local unifier if T is local, i.e., there is an assignment such that T = T .</p>
          <p>
            As shown in [
            <xref ref-type="bibr" rid="ref3">3</xref>
            ], there are unification problems that have a classical unifier,
but no local classical unifier.
          </p>
          <p>Example 7. Let O = fB v 9s:D; D v Bg and consider the unification problem
:= fA1 u B v Y1; Y1 v A1 u B; A2 u B v Y2; Y2 v A2 u B;</p>
          <p>
            9s:Y1 v X; 9s:Y2 v X; X v 9s:Xg;
where A1; A2; B 2 Nprim and X; Y1; Y2 2 Ndef . This problem has the classical
unifier T := fY1 A1 u B; Y2 A2 u B; X 9s:Bg, which is not local since it
uses the atom 9s:B. As shown in [
            <xref ref-type="bibr" rid="ref3">3</xref>
            ], actually does not have a local classical
unifier w.r.t. O. However, it is easy to see that T := fY1 A1 u B; Y2
A2 u B; X 9s:Xg is a local hybrid unifier of T . In fact, gfp-semantics applied
to T ensures that X consists of exactly those domain elements that are the origin
of an infinite s-chain, and O ensures that any element of B (and thus also of
9s:B) is the origin of an infinite s-chain.
          </p>
          <p>
            To overcome the problem of missing local unifiers, the notion of a
cyclerestricted ontology was introduced in [
            <xref ref-type="bibr" rid="ref3">3</xref>
            ]: the E L-ontology O is called
cyclerestricted if there is no nonempty sequence r1; : : : ; rn of role names and E
Lconcept description C such that C vO 9r1: 9rn:C. Note that the ontology O
of Example 7 is not cycle-restricted since B vO 9s:B.
          </p>
          <p>
            The main technical result shown in [
            <xref ref-type="bibr" rid="ref3">3</xref>
            ] is that any E L-unification problem
that has a classical unifier w.r.t. the cycle-restricted ontology O also has a
local classical unifier. This yields the following brute-force algorithm for classical
E L-unification w.r.t. cycle-restricted ontologies: first guess an acyclic local TBox
T , and then check whether T is indeed a unifier of w.r.t. O. As shown in [
            <xref ref-type="bibr" rid="ref3">3</xref>
            ],
this algorithm runs in nondeterministic polynomial time. NP-hardness follows
from the fact that already classical unification in E L w.r.t. the empty ontology
is NP-hard [
            <xref ref-type="bibr" rid="ref6">6</xref>
            ].
4
          </p>
        </sec>
        <sec id="sec-1-5-3">
          <title>Hybrid E L-unification is NP-complete</title>
          <p>The fact that hybrid E L-unification w.r.t. arbitrary E L-ontologies is in NP is an
easy consequence of the following proposition.</p>
          <p>Proposition 8. Consider a flat E L-unification problem w.r.t. an E L-ontology
O. If has a hybrid unifier w.r.t. O then it has a local hybrid unifier w.r.t. O.
In fact, the NP-algorithm simply guesses a local TBox and then checks (using
the polynomial-time algorithm for hybrid subsumption) whether it is a hybrid
unifier.</p>
          <p>To prove the proposition, we assume that T is a hybrid unifier of w.r.t. O.
We use this unifier to define an assignment T as follows:</p>
          <p>XT := fD 2 Atnv j X vgfp;O;T Dg:
Let T 0 be the TBox induced by this assignment. To show that T 0 is indeed a
hybrid unifier of w.r.t. O, we consider the set of GCIs</p>
          <p>:= fC1 u : : : u Cm v D j C1; : : : ; Cm; D 2 Atg;
and prove that, for any GCI C1 u : : : u Cm v D 2 , derivability of C1 u : : : u
Cm v1 D in HC(O; T ; ) implies derivability of C1 u : : : u Cm v1 D also in
HC(O; T 0; ). Soundness and completeness of HC, together with the facts that
and T is a hybrid unifier of w.r.t. O, then imply that T 0 is also a
hybrid unifier of w.r.t. O. Thus, to complete the proof of Proposition 8, it is
enough to prove the following lemma.</p>
          <p>Lemma 9. Let C1 u : : : u Cm v D 2 . If C1 u : : : u Cm v1 D is derivable
in HC(O; T ; ), then C1 u : : : u Cm vn D is derivable in HC(O; T 0; ) for all
n 0.</p>
          <p>Proof. We prove derivability of C1 u: : :uCm vn D in HC(O; T 0; ) by induction
on n. The base case is trivial due to the rule (Start).</p>
          <p>
            Induction Step: We assume that the statement of the lemma holds for n
1, and show that it then also holds for n. Let ` be such that D`(O; T ; ) =
D1(O; T ; ). We know that there exists a proof tree P for C1 u : : : u Cm v` D
in HC(O; T ; ). Consider the subtree of P that is obtained from it by cutting
branches at the nodes obtained by an application of one of the rules (DefL) or
(DefR). The tree obtained this way contains only sequents with index ` and has
as its leaves
– instances of the rules (Refl), (Top), or (Start),
– consequences E1 v` E2 of instances of the rules (DefL) or (DefR).
In order to show that C1 u : : : u Cm vn D is derivable in HC(O; T 0; ), it is
sufficient to show that, for leaves E1 v` E2 of the second kind, E1 vn E2 is
derivable in HC(O; T 0; ) (see [
            <xref ref-type="bibr" rid="ref5">5</xref>
            ] for details).
          </p>
          <p>First, assume that E1 v` E2 was obtained by an application of (DefR).
Then E2 2 Ndef . Assume that ET2 = fF1; : : : ; Fqg. By the definition of T ,
we have E2 vgfp;O;T Fi for all i; 1 i q. In addition, by our choice of `,
derivability of E1 v` E2 in HC(O; T ; ) (using the subtree of P with this node
as root) yields E1 vgfp;O;T E2, and thus E1 vgfp;O;T Fi for all i; 1 i q.
Consequently, E1 v1 Fi is derivable in HC(O; T ; ) for all i; 1 i q. Since
E1 is a conjunction of elements of At and F1; : : : ; Fq 2 At, induction yields
that E1 vn 1 Fi is derivable in HC(O; T 0; ) for all i; 1 i q. Performing
q 1 applications of (AndR) thus allows us to derive E1 vn 1 F1 u : : : u Fq in
HC(O; T 0; ). Since T 0 contains the definition E2 F1 u : : : u Fq, an application
of (DefR) shows that E1 vn E2 is derivable in HC(O; T 0; ).</p>
          <p>Second, assume that E1 v` E2 was obtained by an application of (DefL).
Then E1 2 Ndef and E2 = F1 u : : : u Fq for elements F1; : : : ; Fq of At. By
our choice of ` we have E1 vgfp;O;T E2, and thus E1 vgfp;O;T Fi for all i; 1
i q. It is sufficient to show, for all i; 1 i q, that E1 vn Fi is derivable
in HC(O; T 0; ) since q 1 applications of (AndR) then yield derivability of
E1 vn E2 in HC(O; T 0; ).</p>
          <p>If Fi does not belong to Ndef , then it is an element of Atnv. The definition
of T thus yields Fi 2 ET1 . Consequently, Fi occurs as a conjunct on the
righthand side of the definition of E1 in T 0. This implies E1 vgfp;O;T 0 Fi, and thus
E1 vn Fi is derivable in HC(O; T 0; ).</p>
          <p>If Fi 2 Ndef , then E1 vgfp;O;T Fi implies that FTi ET1 . Consequently, every
conjunct on the right-hand side of the definition of Fi in T 0 is also a conjunct on
the right-hand side of the definition of E1 in T 0. This implies E1 vgfp;O;T 0 Fi,
and thus E1 vn Fi is derivable in HC(O; T 0; ). tu</p>
          <p>This finishes the proof of Proposition 8, and thus shows that hybrid E
Lunification w.r.t. arbitrary E L-ontologies is in NP. NP-hardness does not follow
directly from NP-hardness of classical E L-unification. In fact, as we have seen in
Example 6, an E L-unification problem that does not have a classical unifier may
well have a hybrid unifier. Instead, we reduce E L-matching modulo equivalence
to hybrid E L-unification.</p>
          <p>
            Using the notions introduced in this paper, E L-matching modulo equivalence
can be defined as follows. An E L-matching problem modulo equivalence is an E
Lunification problem of the form fC v D; D v Cg such that D does not contain
elements of Ndef . A matcher of such a problem is a classical unifier of it. As
shown in [
            <xref ref-type="bibr" rid="ref11">11</xref>
            ], testing whether a matching problem modulo equivalence has a
matcher or not is an NP-complete problem. Thus, NP-hardness of hybrid E
Lunification w.r.t. E L-ontologies is an immediate consequence of the following
lemma, whose (non-trivial) proof can be found in [
            <xref ref-type="bibr" rid="ref5">5</xref>
            ].
          </p>
          <p>Lemma 10. If an E L-matching problem modulo equivalence has a hybrid unifier
w.r.t. the empty ontology, then it also has a matcher.</p>
          <p>To sum up, we have thus determine the exact worst-case complexity of hybrid
E L-unification.</p>
          <p>Theorem 11. The problem of testing whether an E L-unification problem w.r.t.
an arbitrary E L-ontology has a hybrid unifier or not is NP-complete.
5</p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-2">
      <title>Conclusions</title>
      <p>
        In this paper, we have proved that hybrid E L-unification w.r.t. arbitrary E
Lontologies is in NP. The proof of NP-hardness of this problem as well as a more
practical goal-oriented algorithm for hybrid E L-unification that is better than
the brute-force “guess and then test” algorithm sketched above can be found in
[
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. As illustrated by Example 6, computing hybrid unifiers rather than classical
ones may be appropriate in some situations. Nevertheless, the decidability and
complexity of classical E L-unification w.r.t. arbitrary E L-ontologies is an
important topic for future research. We hope that hybrid unification may also be
helpful in this context. Basically, given a hybrid unifier T of w.r.t. O, we can
try to obtain a classical unifier of w.r.t. O by finding an acyclic TBox S such
that O [ S entails all the GCIs that (O; T ) entails w.r.t. hybrid semantics, i.e.
C vgfp;O;T D implies C vO[S D for all (relevant) concept descriptions C; D.
      </p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Baader</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          :
          <article-title>Terminological cycles in a description logic with existential restrictions</article-title>
          . In: Gottlob,
          <string-name>
            <given-names>G.</given-names>
            ,
            <surname>Walsh</surname>
          </string-name>
          , T. (eds.)
          <source>Proc. of the 18th Int. Joint Conf. on Artificial Intelligence (IJCAI</source>
          <year>2003</year>
          ). pp.
          <fpage>325</fpage>
          -
          <lpage>330</lpage>
          . Morgan Kaufmann, Los Altos, Acapulco, Mexico (
          <year>2003</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Baader</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Borgwardt</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Morawska</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          :
          <article-title>Unification in the description logic EL w</article-title>
          .r.t. cycle
          <article-title>-restricted TBoxes</article-title>
          .
          <source>LTCS-Report 11-05</source>
          , Chair for Automata Theory, Institute for Theoretical Computer Science, Technische Universität Dresden, Dresden, Germany (
          <year>2011</year>
          ), see http://lat.inf.tu-dresden.de/research/reports.html.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Baader</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Borgwardt</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Morawska</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          :
          <article-title>Extending unification in EL towards general TBoxes</article-title>
          .
          <source>In: Proc. of the 13th Int. Conf. on Principles of Knowledge Representation and Reasoning (KR</source>
          <year>2012</year>
          ). pp.
          <fpage>568</fpage>
          -
          <lpage>572</lpage>
          . AAAI Press/The MIT Press (
          <year>2012</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Baader</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Borgwardt</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Morawska</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          :
          <article-title>A goal-oriented algorithm for unification in ELHR+ w</article-title>
          .r.t. cycle
          <article-title>-restricted ontologies</article-title>
          . In: Thielscher,
          <string-name>
            <given-names>M.</given-names>
            ,
            <surname>Zhang</surname>
          </string-name>
          , D. (eds.)
          <source>Pro. of 25th Australasian Joint Conf. on Artificial Intelligence (AI'12). Lecture Notes in Artificial Intelligence</source>
          , vol.
          <volume>7691</volume>
          , pp.
          <fpage>493</fpage>
          -
          <lpage>504</lpage>
          . Springer-Verlag (
          <year>2012</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Baader</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Fernández Gil</surname>
            ,
            <given-names>O.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Morawska</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          :
          <article-title>Hybrid unification in the description logic EL</article-title>
          .
          <source>LTCS-Report 13-07</source>
          , Chair for Automata Theory, Institute for Theoretical Computer Science, Technische Universität Dresden, Dresden, Germany (
          <year>2013</year>
          ), see http://lat.inf.tu-dresden.de/research/reports.html.
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Baader</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Morawska</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          :
          <article-title>Unification in the description logic EL</article-title>
          . In: Treinen,
          <string-name>
            <surname>R</surname>
          </string-name>
          . (ed.)
          <source>Proc. of the 20th Int. Conf. on Rewriting Techniques and Applications (RTA</source>
          <year>2009</year>
          ).
          <source>Lecture Notes in Computer Science</source>
          , vol.
          <volume>5595</volume>
          , pp.
          <fpage>350</fpage>
          -
          <lpage>364</lpage>
          . Springer-Verlag (
          <year>2009</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Baader</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Morawska</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          :
          <article-title>Unification in the description logic EL</article-title>
          .
          <source>Logical Methods in Computer Science</source>
          <volume>6</volume>
          (
          <issue>3</issue>
          ) (
          <year>2010</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Baader</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Narendran</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          :
          <article-title>Unification of concept terms in description logics</article-title>
          .
          <source>J. of Symbolic Computation</source>
          <volume>31</volume>
          (
          <issue>3</issue>
          ),
          <fpage>277</fpage>
          -
          <lpage>305</lpage>
          (
          <year>2001</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Brandt</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          :
          <article-title>Polynomial time reasoning in a description logic with existential restrictions, GCI axioms, and-what else</article-title>
          ? In: de Mántaras,
          <string-name>
            <given-names>R.L.</given-names>
            ,
            <surname>Saitta</surname>
          </string-name>
          ,
          <string-name>
            <surname>L</surname>
          </string-name>
          . (eds.)
          <source>Proc. of the 16th Eur. Conf. on Artificial Intelligence (ECAI</source>
          <year>2004</year>
          ). pp.
          <fpage>298</fpage>
          -
          <lpage>302</lpage>
          (
          <year>2004</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Brandt</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Model</surname>
            ,
            <given-names>J.:</given-names>
          </string-name>
          <article-title>Subsumption in EL w</article-title>
          .r.t. hybrid tboxes.
          <source>In: Proc. of the 28th German Annual Conf. on Artificial Intelligence (KI'05)</source>
          . pp.
          <fpage>34</fpage>
          -
          <lpage>48</lpage>
          .
          <source>Lecture Notes in Artificial Intelligence</source>
          , Springer-Verlag (
          <year>2005</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Küsters</surname>
          </string-name>
          , R.:
          <source>Non-standard Inferences in Description Logics, Lecture Notes in Artificial Intelligence</source>
          , vol.
          <volume>2100</volume>
          . Springer-Verlag (
          <year>2001</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Novakovic</surname>
          </string-name>
          , N.:
          <article-title>A proof-theoretic approach to deciding subsumption and computing least common subsumer in w</article-title>
          .r.t. hybrid TBoxes. In: Hölldobler,
          <string-name>
            <given-names>S.</given-names>
            ,
            <surname>Lutz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            ,
            <surname>Wansing</surname>
          </string-name>
          , H. (eds.)
          <source>Proc. of the 11th Eur. Conf. on Logics in Artificial Intelligence (JELIA'2004). Lecture Notes in Computer Science</source>
          , vol.
          <volume>5293</volume>
          , pp.
          <fpage>311</fpage>
          -
          <lpage>323</lpage>
          . Springer-Verlag (
          <year>2008</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>