• Keine Ergebnisse gefunden

Deciding Unifiability and Computing Local Unifiers in the Description Logic EL without Top Constructor

N/A
N/A
Protected

Academic year: 2022

Aktie "Deciding Unifiability and Computing Local Unifiers in the Description Logic EL without Top Constructor"

Copied!
34
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Volume ??, Number ??,

Deciding Unifiability and Computing Local Unifiers in the Description Logic EL without Top Constructor

Franz Baader and Nguyen Thanh Binh and Stefan Borgwardt and Barbara Morawska

Abstract Unification in Description Logics has been proposed as a novel infer- ence service that can, for example, be used to detect redundancies in ontologies.

The inexpressive description logicELis of particular interest in this context since, on the one hand, several large biomedical ontologies are defined usingEL. On the other hand, unification inELhas been shown to be NP-complete, and thus of considerably lower complexity than unification in other description logics of similarly restricted expressive power.

However,ELallows the use of the top concept (>), which represents the whole interpretation domain, whereas the large medical ontology SNOMED CT makes no use of this feature. Surprisingly, removing the top concept fromEL makes the unification problem considerably harder. More precisely, we will show that unification inELwithout the top concept is PSPACE-complete. In addition to the decision problem, we also consider the problem of actually computing EL−>-unifiers.

1 Introduction

Description logics (DLs) [8] are a well-investigated family of logic-based knowledge representation formalisms. They can be used to represent the relevant concepts of an application domain using concept terms, which are built from concept names and role names using certain concept constructors. The DLELoffers the constructors conjunction (u), existential restriction (∃r.C), and the top concept (>). From a semantic point of view, concept names and concept terms represent sets of individuals, whereas roles represent binary relations between individuals. The top concept is interpreted as the set of all individuals. For example, using the concept namesMale, Female,Personand the role nameschild,job, the concept ofpersons having a son, a daughter, and a jobcan be represented by theEL-concept term

Personu ∃child.Maleu ∃child.Femaleu ∃job.>.

Keywords: unification, description logics

1

(2)

2

In this example, the availability of the top concept inELallows us to state that the person has some job, without specifying any further to which concept this job belongs.

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 term

∃job.>subsumes (i.e., is a superconcept of) the concept term∃job.Boring since anyone that has a boring job at least has some job. Two concept terms are called equivalentif they subsume each other, i.e., if they are always interpreted as the same set of individuals.

The DLEL has recently drawn considerable attention since, on the one hand, important inference problems such as the subsumption problem are polynomial inEL [1,9]. On the other hand, though quite inexpressive,ELis used to define biomedical ontologies. For example, the large medical ontology SNOMED CT1can be expressed inEL. Actually, if one takes a closer look at the concept definitions in SNOMED CT, then one sees that they do not contain the top concept.

Unification in DLs has been proposed in [6] as a novel inference service that can, for instance, be used to detect redundancies in ontologies. For example, assume that one knowledge engineer defines the concept offemale professorsas

PersonuFemaleu ∃job.Professor,

whereas another knowledge engineer represents this notion in a somewhat different way, e.g., by using the concept term

Womanu ∃job.(TeacheruResearcher).

While these two concept terms are not equivalent, they are nevertheless meant to represent the same concept. They can obviously be made equivalent by substituting the concept nameProfessorby the concept termTeacheruResearcherand the concept nameWomanby the concept termPersonuFemale.

In general, unification is the problem of making two concept terms equivalent by allowing some of the concept names, which are designated variables, to be replaced by other concept terms. We call a substitution that makes two concept terms equivalent a unifierof the two terms. Such a unifier proposes definitions for the concept names that are used as variables. In our example, we know that, if we defineWomanas PersonuFemaleandProfessorasTeacheruResearcher, then the two concept terms from above are equivalent w.r.t. these definitions.

In [6] it was shown that, for the DL FL0, which differs fromEL by offering value restrictions (∀r.C) in place of existential restrictions, deciding unifiability is an EXPTIME-complete problem. In [3], we were able to show that unification inELis of considerably lower complexity: the decision problem is “only” NP-complete. The original unification algorithm forELintroduced in [3] was a brutal “guess and then test” NP-algorithm, but we have since then also developed more practical algorithms.

On the one hand, in [4] we describe a goal-oriented unification algorithm forEL, in which nondeterministic decisions are only made if they are triggered by “unsolved parts” of the unification problem. On the other hand, in [5], we present an algorithm that is based on a reduction to satisfiability in propositional logic (SAT), and thus

(3)

allows us to employ highly optimized state-of-the-art SAT solvers for implementing anEL-unification algorithm.

One can additionally allow background knowledge of the application domain to be encoded using so-called general concept inclusions (GCIs), which restrict one concept to be a subconcept of another concept. For instance, we can use the GCI Woman v Female to express the fact that every woman is female. Since equivalence of concept terms is evaluated w.r.t. to this background knowledge, this changes the unification problem considerably. We were able to show that unification remains in NP if the GCIs satisfy a certain cycle restriction. For example, the cyclic GCI∃child.Human v Humansatisfies this restriction, whereas the cyclic GCIHumanv ∃parent.Humandoes not. We again developed three algorithms that generalize the ones forELwithout GCIs [12,13,14]. These algorithms even decide unification in the extensionELHR+ofELthat allows to specify additional domain knowledge in the form of a role hierarchy (H) and transitive roles (R+).

In contrast to the above works, we here consider a DL that is even less expressive thanEL. The motivation for this is that, as mentioned above, SNOMED CT is not formulated inEL, but rather in its sub-logic EL−>, which differs fromELin that the use of the top concept is disallowed. We also do not consider GCIs since the knowledge in SNOMED CT is expressed by so-calledacyclic concept definitions, which can be expressed in the unification problem itself [4], thereby eliminating the need to take into account any background knowledge. If we employEL-unification to detect redundancies in (extensions of) SNOMED CT, then a unifier may introduce concept terms that contain the top concept, and thus propose definitions for concept names that are of a form that is not used in SNOMED CT.

Apart from this practical motivation for investigating unification inEL−>, we also found it interesting to see how such a small change in the syntax of the logic influences the unification problem. It turned out that the complexity of the problem increases considerably (from NP to PSPACE). In addition, compared toEL-unification, quite different methods had to be developed to actually solveEL−>-unification problems.

In particular, we will show that—similar to the case ofFL0-unification—EL−>- unification can be reduced to solving certain language equations. In contrast to the case ofFL0-unification, these language equations can be solved in PSPACErather than EXPTIME, which we show by a reduction to the emptiness problem for alternating automata on finite words.

This article extends the original conference paper [10] by providing detailed proofs of all results and describing their relevance for the fields of unification modulo equational theories and unification in modal logics. It also incorporates additional results on the complexity of actually computing unifiers inEL−>originally published in the workshop paper [11]. To determine unifiability inEL, it is enough to consider local unifiers since every solvableEL-unification problem has a local unifier. Although local unifiers may be of size exponential in the input unification problem, they can be represented by an acyclic TBox (i.e., an acyclic collection of concept definitions) of polynomial size [3]. ForEL−>, we have to extend the definition of local unifiers in order to ensure that every solvable unification problem has a local unifier. We will show that, with respect to this new notion of locality, we can effectively compute local unifiers for solvable unification problems, but these unifiers may be of exponential size even if we use acyclic TBoxes in order to represent them.

(4)

4

Table 1 Syntax and semantics ofELandEL−>

Name Syntax Semantics EL EL−>

concept name A AI ⊆ DI x x

role name r rI⊆ DI× DI x x

top-concept > >I=DI x

conjunction CuD (CuD)I=CIDI x x

existential restriction ∃r.C (∃r.C)I={x| ∃y: (x, y)rIyCI} x x

subsumption CvD CIDI x x

equivalence CD CI=DI x x

2 The Description LogicsELandEL−>

Description logics [8] are logic-based formalisms used to represent the knowledge of an application domain in a structured way. Concepts of the domain are described throughconcept termsthat are built from atomic concepts (basically, unary predicates) and roles (binary relations) using concept constructors. In this paper, we are concerned with the description logicEL, which uses the constructorsconjunction(u),existential restriction(∃r.for every role r), andtop concept(>), and its fragmentEL−>, in which the top concept is disallowed.

More formally, letNCandNR be two disjoint sets ofconcept namesandrole names, respectively. The set ofEL-concept termsis the smallest set containingNC

such that:

• >is anEL-concept term;

• ifCandDareEL-concept terms, then so isCuD; and

• ifCis anEL-concept term andr∈NR, then∃r.Cis anEL-concept term.

The set ofEL−>-concept termsis defined in the same way, but using only the latter two rules. SinceEL−>-concept terms are specialEL-concept terms, many definitions and results transfer fromELtoEL−>, and thus we only formulate them forEL. We will explicitly mention it if this is not the case.

The semantics of concept terms is defined usinginterpretationsI = (DII), which consist of a nonempty domainDIand an interpretation function·Ithat assigns subsets ofDIto every concept name and binary relations overDIto every role name.

This function is extended toEL-concept terms as shown in the semantics column of Table1. The concept termCissubsumedby the concept termD(writtenCvD) iffCI ⊆DIholds for all interpretationsI; andCisequivalenttoD(C ≡D) iff CI=DIfor every interpretationI.

Aconcept definitionis an expression of the formA≡C, whereAis a concept name andCis an arbitraryEL−>-concept term. Anacyclic TBoxT is a set of concept definitions such that (i) every concept name occurs at most once on the left-hand side of a concept definition inT, and (ii) no concept name is defined in terms of itself, i.e., a concept nameAdoes not occur in its own definition (either directly or indirectly through other definitions). Theunfoldingof anEL−>-concept termC w.r.t. an acyclic TBoxT (denoted byCT) is theEL−>-concept term resulting from exhaustively replacing all defined concept names occurring inCby their definitions fromT.

(5)

2.1 Atoms For unification inEL, it suffices to look at unifiers that substitute variables by conjunctions of so-called flat atoms that occur in the unification problem. A concept term is called anatomiff it is a concept name A ∈ NC or an existential restriction∃r.D. Concept names and existential restrictions ∃r.D, whereD is a concept name or>, are calledflat atoms. The setAt(C)ofatoms of a concept term Cis defined as follows:

• IfC=>, thenAt(C) :=∅.

• IfCis a concept name, thenAt(C) :={C}.

• IfC=∃r.D, thenAt(C) :={C} ∪At(D).

• IfC=C1uC2, thenAt(C) := At(C1)∪At(C2).

For example, the concept term C = Au ∃r.(B u ∃r.>) has the set of atoms At(C) ={A,∃r.(Bu ∃r.>), B,∃r.>}.

Obviously, any concept termCis a conjunction of atomsC=C1u. . .uCn, where the empty conjunction is>and all conjuncts>are removed from this conjunction if it is nonempty. We callC1, . . . , Cnthetop-level atomsofC. The concept termCis calledflatif all its top-level atoms are flat.

The following lemma gives a recursive characterization of subsumption inELand EL−>and turned out to be very useful for solving unification in these description logics [4].

Lemma 1 Consider two concept termsC=A1u. . .uAku∃r1.C1u. . .u∃rm.Cm

andD =B1u. . .uBlu ∃s1.D1u. . .u ∃sn.Dn, whereA1, . . . , Ak, B1, . . . , Bl

are concept names. ThenCvDiff{B1, . . . , Bl} ⊆ {A1, . . . , Ak}and for every j∈ {1, . . . , n}there exists ani∈ {1, . . . , m}such thatri=sjandCivDj.

This means that we can check a subsumptionC v D by testing whether for every top-level atomD0 ofDthere is a top-level atomC0 ofCwithC0 vD0. A subsumptionC vD between two atomsC, D is then evaluated structurally, i.e., either (i) these atoms are the same concept name or (ii) they are of the formC=∃r.C0, D=∃r.D0for some role namerandC0vD0holds.

2.2 Particles For unification in EL−>, building unifiers from the flat atoms of a unification problem is not enough. It will turn out that one may need to add so-called particles to make sure that a variable is not substituted by the empty conjunction of atoms, which is>.

Modulo equivalence, the subsumption relation is a partial order on concept terms.

InEL, the top concept>is the greatest element w.r.t. this order. If we disallow>, however, there are many incomparable maximal concept terms. We will see below that these are exactly theEL−>-concept terms of the form∃r1.∃r2. . . .∃rn.Aforn≥0 role namesr1, . . . , rnand a concept nameA. We call such concept termsparticles.

The setPart(C)ofparticles of anEL−>-concept termCis defined as follows:

• IfCis a concept name, thenPart(C) :={C}.

• IfC=∃r.D, thenPart(C) :={∃r.M |M ∈Part(D)}.

• IfC=C1uC2, thenPart(C) := Part(C1)∪Part(C2).

For example, the particles of the conceptAu ∃r.(Bu ∃r.A), whereA, B∈NC

andr ∈ NR, areA,∃r.B, and∃r.∃r.A. The next lemma states that particles are indeed the maximal concept terms w.r.t. subsumption inEL−>, and that the particles subsuming anEL−>-concept termCare exactly the particles ofC.

(6)

6

Lemma 2 LetCbe anEL−>-concept term andBa particle.

1. IfBvC, thenB≡C.

2. B∈Part(C)iffCvB.

Proof We show both claims by induction on the length ofB, i.e., the number of existential restrictions it contains.

1. IfBis a concept name andB vC, then Lemma1yields thatBis the only possible top-level atom ofC, which implies thatB≡C.

Otherwise,B =∃r.B0for a particleB0. Then every top-level atom ofC must be of the form∃r.C0 withB0 v C0. Since the particleB0 is shorter thanB, induction yieldsB0≡C0for every top-level atom∃r.C0ofC, which impliesB≡Cby Lemma1.

2. IfBis a concept name, thenB ∈Part(C)is equivalent to the fact thatBis a top-level atom ofC, which in turn is equivalent toCvBby Lemma1.

Otherwise,B =∃r.B0 for a particleB0. By definition,B ∈Part(C)iff there exists a top-level atom∃r.C0ofCwithB0∈Part(C0). By induction, this is equivalent to the existence of a top-level atom∃r.C0ofCwithC0vB0. By Lemma1, this is equivalent toCvB.

3 Unification inELandEL−>

To define unification inELandEL−>simultaneously, letL ∈ {EL,EL−>}. When defining unification inL, we assume that the set of concepts names is partitioned into a setNvof concept variables (which may be replaced by substitutions) and a setNcof concept constants (which must not be replaced by substitutions). AnL-substitutionσ is a mapping fromNvinto the set of allL-concept terms. This mapping is extended to concept terms in the usual way, i.e., by replacing all occurrences of variables in the term by theirσ-images. AnL-concept term is calledgroundif it contains no variables, and anL-substitutionσis calledgroundif the concept termsσ(X)are ground for all X ∈Nv.

Unification tries to make concept terms equivalent by applying a substitution.

Definition 3 AnL-unification problem is of the form Γ = {C1? D1, . . . , Cn?Dn}, whereC1, D1, . . . Cn, DnareL-concept terms. TheL-substitutionσis anL-unifierofΓiff it solves all the equationsCi?DiinΓ, i.e., iffσ(Ci)≡σ(Di) fori= 1, . . . , n. In this case,Γis calledL-unifiable.

We will often use the subsumptionCv?Das an abbreviation for the equation CuD≡?C. Obviously,σsolves this equation iffσ(C)vσ(D).

Clearly, everyEL−>-unification problem Γis also an EL-unification problem.

Whether Γ isL-unifiable or not may depend, however, on whetherL = EL or L=EL−>. As an example, consider the problemΓ :={Av?X, Bv?X}, where A, B are distinct concept constants andX is a concept variable. Obviously, the substitution that replacesX by>is anEL-unifier ofΓ. However,Γdoes not have an EL−>-unifier. In fact, for such a unifierσ, theEL−>-concept termσ(X)would need to satisfyAvσ(X)andB vσ(X). SinceAandBare particles, Lemma2would implyA≡σ(X)≡Band thusA≡B, which is not the case.

We may without loss of generality restrict our attention toflatL-unification prob- lems, i.e., L-unification problems in which the right- and left-hand sides of the equations are flatL-concept terms. Non-flatL-concept terms can be flattened by

(7)

introducing new variables as abbreviations for subterms [4]. Given a flat unification problemΓ, we denote byAt(Γ)the set of all atoms ofΓ, i.e., the union of all sets of atoms of the concept terms occurring inΓ. ByVar(Γ)we denote the variables that occur inΓand byNV(Γ) := At(Γ)\Var(Γ)the set of allnon-variable atomsofΓ.

Although arbitraryL-substitutionsσare used in the definition of anL-unifier, it is actually sufficient to consider groundL-substitutionsσsuch that allL-concept descriptionsσ(X)in the range ofσcontain only concept and role names occurring inΓ. It is an easy consequence of well-known results from unification theory [7], that anL-unification problemΓhas anL-unifier iff it has such a groundL-unifier.

Thus, for simplicity we will assume in the following thatNRis the set of role names occurring inΓandNcis the set of concept constants occurring inΓ. Since we are only interested in the substitution of variables occurring inΓ, we will also assume thatNv= Var(Γ).

3.1 Connection to other unification problems Unification was originally not intro- duced for Description Logics, but for equational theories [7]. In [26,4] it was shown that equivalence and unification inELare the same as the word problem and unifi- cation, respectively, in the equational theorybSLmOof bounded (meet-)semilattices with monotone operators. The signatureΣbSLmOof this equational theory consists of a binary function symbol∧, a constant symbol1, and finitely many unary function symbolsf1, . . . , fn. Terms can be built using these symbols and additional variable symbols and free constant symbols. The signatureΣSLmOis obtained fromΣbSLmOby dropping the constant1.

Definition 4 The equational theory ofbounded semilattices with monotone opera- torsis defined by the following identities:

bSLmO:={x∧(y∧z) = (x∧y)∧z, x∧y=y∧x, x∧x=x, x∧1 =x}

∪ {fi(x∧y)∧fi(y) =fi(x∧y)|1≤i≤n}

The equational theorySLmOofsemilattices with monotone operatorsis obtained from the above definition by dropping the identityx∧1 =x.

AnyEL-concept descriptionCusing only the rolesr1, . . . , rncan be translated into a termtCover the signatureΣbSLmOby replacing each concept constantAby a free constanta, each concept variableXby a variablex,>by1,uby∧, and∃ri

byfi. For example, theEL-concept descriptionC=Au ∃r1.> u ∃r3.(XuB)is translated intotC =a∧f1(1)∧f3(x∧b). Conversely, any termtover the signature ΣbSLmO can be translated back into anEL-concept descriptionCt. The same holds forEL−>-concept descriptions and terms overΣSLmO. As shown in [26], the word problem in the theorySLmOis the same as the equivalence problem forEL-concept descriptions. Again, a similar result holds forEL−>.

Lemma 5 LetC, DbeEL-concept descriptions using only the rolesr1, . . . , rn. ThenC≡Dholds ifftC =bSLmO tD. IfC, DareEL−>-concept descriptions, then this is also equivalent totC =SLmOtD.

As an immediate consequence of this lemma, everyEL- or EL−>-unification problem can be translated into a unification problem modulo the corresponding equational theory that, apart from the translation between concept descriptions and terms, has the same unifiers.

(8)

8

Thus, previous results for unification inELimply that unification modulobSLmO is NP-complete, even if a certain restricted form of ground equations is added to the equational theory (see [4,14] for details). Correspondingly, the results we present in this paper show that unification moduloSLmOis PSPACE-complete.

There is also a strong connection between description logics and modal logics, and therefore between unification in these formalisms. In the basic multi-modal logicKm, formulae are built from a set of propositional variables using the propositional connec- tives>,⊥,∧,∨,¬,→,↔, and two unary connectivesri and♦ri for each relation symbolrifrom a fixed set{r1, . . . , rn}[16].

These formulae are interpreted over so-called Kripke models, which consist of a set of worlds that are connected by binary relations corresponding to the symbols r1, . . . , rn. Validity of a formulaφin a worldwof such a model is defined inductively on the structure ofφ, where the validity of the atomic propositions in a world is fixed by the given model. The definition of validity is extended to the propositional connectives in the usual way. A formula of the formriφis said to be valid in a given worldwifφis valid in all worlds connected towvia the binary relation associated tori. Dually,♦riφis valid inwifφis valid in at least one world connected tow byri.

It was first observed in [25] thatKmis a notational variant of the description logic ALC. There is a bijective translation of formulae ofKmintoALC-concept descrip- tions and Kripke models can be characterized as description logic interpretations. In this setting, the description logicELcorresponds to the syntactic fragment ofKmthat is restricted to the connectives>,∧, and♦ri. EveryEL-concept descriptionCcan be translated into a modal formulaφCby replacing every concept name by a proposi- tional variable,uby∧, and∃riby♦ri. On the other hand, every modal formulaφ in this fragment ofKm can be translated back into anEL-concept descriptionCφ by applying the inverse transformation. In the same way,EL−>corresponds to the

∧-♦ri-fragment ofKm.

It is an easy consequence of the results of [25] that twoEL-concept descriptions CandDare equivalent if their translationsφCandφDare valid in the same Kripke models. InKm, this is usually expressed as the validity ofφC↔φDin every Kripke model. Note, however, that in the sub-Boolean fragments ofKm corresponding toELandEL−>this bi-implication cannot be expressed. In particular, inELthere are no constructors directly corresponding to negation, disjunction, implication, or bi-implication.

Traditionally, unification in modal logics is the problem of finding, for a given modal formulaφ, a substitutionσof the propositional variables by modal formulae such thatσ(φ)becomes valid in all Kripke models [16,2]. A famous open problem is the decidability of unification inK, the uni-modal version ofKmwith only one relation symbol. Unification in several extensions ofKhas been shown to be undecidable in [29]. For an overview of known results about unification in modal logics, see [2].

Following the translations between concepts and modal formulae described above, unifiability of a set{C1?D1, . . . , Cm?Dm}of equations over concept descrip- tions in some DL is equivalent to the unifiability ofφC1↔φD1∧ · · · ∧φCm ↔φDm in the corresponding modal logic [2]. Note that some of the propositional variables in the translated formula have to be viewed asconstants, which are not allowed to be replaced by substitutions. Again, forELandEL−>this results in a formula which in general cannot be expressed in the fragments ofKmmentioned above. To the best of

(9)

our knowledge, unification in such sub-Boolean modal logics has not been considered in the modal logic literature.

On the other hand, a modal formulaφis unifiable if{Cφ?>}is unifiable in the corresponding DL. Consider now the>-∧-♦ri-fragment ofKm, which corresponds toEL. According to Lemma1, we know thatφis unifiable iff it is a conjunction of variables or>: ifφis of this form, it can be made valid by substituting every variable by>; otherwise, for any substitutionσthe concept descriptionσ(Cφ)must contain at least one atom, which cannot be contained in>. Thus, unification in the

>-∧-♦ri-fragment ofKmis trivial. In the∧-♦ri-fragment ofKm, unification is even more absurd sinceσ(Cφ)must always contain at least one atom, regardless of the form ofφ. This means that this modal logic does not have unifiable formulae.

This shows that in the above fragments ofKmit does not make sense to consider unification in the modal logic sense. If we consider instead theequationalvariant of modal unification that corresponds to Definition3, then unification in the>-∧-♦ri- fragment ofKmis NP-complete [4], and it is PSPACE-complete in the∧-♦ri-fragment, as we show in this article.

3.2 Locality ofEL-unification The NP-algorithm for unification inELintroduced in [3] is based on the fact that every unifiableEL-unification problemΓhas a so- calledlocalEL-unifier, which we define in the following.

Given anEL-unification problemΓ, anassignmentis a functionSmapping each variableX ∈Var(Γ)to a setS(X)⊆NV(Γ). Such an assignmentS induces the following relation>S, which is the transitive closure of thedepends onrelation

{(X, Y)∈Var(Γ)×Var(Γ)|Y occurs in an element ofS(X)}.

We call the assignmentSacyclicif>Sis irreflexive (and thus a strict partial order).

Any acyclic assignmentSinduces a unique substitutionγS, which can be defined by induction along>S:

• IfXis a minimal element ofVar(Γ)w.r.t.>S, thenγS(X)is the conjunction of the elements ofS(X), where the empty conjunction is>.

• AssumeγS(Y)is defined for allY <S X. IfS(X) ={D1, . . . , Dn}, then γS(X) :=γS(D1)u. . .uγS(Dn).

A unifierγofΓis called alocalEL-unifierofΓif it is of the above form, i.e., if there is an acyclic assignmentSsuch thatγ=γS (see Example6).

In [3] it was shown that every unifiableEL-unification problem Γ has a local EL-unifier. This gives rise to a simple NP-algorithm for deciding unification inEL:

First, guess an assignmentSin polynomial time, and then check whetherSis acyclic and whether the induced substitutionγSsolves the unification problem. The former property can clearly be tested in polynomial time in the size ofS.

However, the substitutionγSmay be exponential in the size ofS, which is basically due to the fact that subterms are copied if variables occur several times in a setS(X).

In [4], this problem was solved by representingγSby the acyclic TBox TS :={X≡D1u · · · uDn|X∈Var(Γ), S(X) ={D1, . . . , Dn}}, which has the same size asS. It is easy to see thatγS(X) =XTS, i.e., the substitution of a variableX ∈Var(Γ)underγSis simply the unfolding ofXw.r.t.TS. Thus, to check whetherγS solves an equationC ≡?DfromΓ, we have to decide whether

(10)

10

CTS is equivalent toDTS. It has been shown that this problem can be solved in polynomial time for any acyclic TBox inEL[1].

This shows that the second test, i.e., whetherγS solvesΓ, can also be done in polynomial time, which yields an NP-algorithm for deciding unification inEL.

3.3 Why this does not work forEL−> TheEL-unifiers returned by the algorithm sketched above need not beEL−>-unifiers since some of the setsS(X)in the guessed assignment may be empty, in which caseγS(X) =>. This suggests the following simple modification of the above algorithm: require that the guessed assignment is such that all setsS(X)are nonempty. If such an assignmentSis acyclic, then the induced substitutionγSis actually anEL−>-substitution, and thus the substitutions returned by the modified algorithm are indeedEL−>-unifiers. However, this modified algorithm does not always detectEL−>-unifiability, i.e., it may return no substitution although the input problem isEL−>-unifiable.

Example 6 Consider the flatEL-unification problem Γthat contains the three equations

X ≡?Y uA, Y u ∃r.X≡?∃r.X, Zu ∃r.X≡?∃r.X.

The substitutions

σ0:={X7→A, Y 7→ >, Z7→ >}, σ1:={X7→A, Y 7→ >, Z7→ ∃r.A}

are the only localEL-unifiers ofΓ. In fact, we haveNV(Γ) = {A,∃r.X}, and thus the only possible image forXin a local unifierσisA(since having∃r.Xin S(X)would make the assignmentSacyclic). Since the first equation implies that A=σ(X)vσ(Y), we know thatσ(Y)can only be>orA. However, the second equation prevents the second possibility. Finally, the third equation ensures thatσ(Z) is>or∃r.A.

Note thatΓcan also be seen as anEL−>-unification problem, butσ0andσ1both contain>, and thus are notEL−>-unifiers. This shows thatΓdoes not have anEL−>- unifier that is a localEL-unifier. Nevertheless,ΓhasEL−>-unifiers. For example, the substitutionγ1:={X 7→Au ∃r.A, Y 7→ ∃r.A, Z7→ ∃r.∃r.A}is such a unifier.

In this example, the top-level atoms ofγ1(X),γ1(Y),γ1(Z)that are not of the formγ(D)for someD ∈ NV(Γ)are all particles ofγ(D)for someD ∈NV(Γ).

This motivates the following modified definition of locality forEL−>.

Definition 7 TheEL−>-unifierγofΓis alocalEL−>-unifierofΓif, for every variableX, each top-level atom ofγ(X)is

• of the formγ(D)for someD∈NV(Γ)or

• a particle ofγ(D)for someD∈NV(Γ).

Note that this definition becomes equivalent to locality inELif the second option is left out. Since there are at most polynomially many assignmentsS for a given EL-unification problem, there can only be polynomially many localEL-unifiers. In EL−>, however, it is possible that there exist infinitely many local unifiers, as the next example illustrates.

(11)

Example 8 Consider the unification problemΓfrom Example6and the following EL−>-substitutionsγn:

γn(X) :=Au ∃r.Au · · · u ∃rn.A, γn(Y) :=∃r.Au · · · u ∃rn.A, γn(Z) :=∃rn+1.A,

where ∃rn.Ais short for the concept term ∃r. . . .∃r.Awith nnested existential restrictions.

It is easy to verify that eachγnis anEL−>-unifier ofΓ. Furthermore, every top- level atom ofγn(X),γn(Y), andγn(Z)is eitherAor a particle ofγn(∃r.X). Note that bothAand∃r.Xare non-variable atoms ofΓ. Thus,Γhas infinitely many local EL−>-unifiers.

These unifiers are even incomparable w.r.t. the subsumption order on unifiers, i.e., for no twon, m∈Nwithn6=mit holds thatγn(W)vγm(W)for all variablesW. This is the case since the particlesγn(Z) =∃rn+1.Aare incomparable.

In Section4, we consider two problems: How to decide unifiability inEL−>and how to actually compute anEL−>-unifier. It will turn out that, similarly toEL, it actually suffices to search for localEL−>-unifiers. We will present an algorithm that decidesEL−>-unification in PSPACEand can be used to compute localEL−>-unifiers of at most exponential size. The main idea underlying the algorithm is that one starts with anEL-unifier, and then conjoins “appropriate” particles to the images of the variables that are replaced by>by this unifier. It is, however, not so easy to decide which particles can be added this way without turning theEL-unifier into an EL−>-substitution that no longer solves the unification problem.

In Section5, we will then provide corresponding hardness results. First, we show that decidingEL−>-unification is PSPACE-hard and then present a series of EL−>-unification problems whose local unifiers are always of exponential size.

4 OurEL−>-unification algorithm

For the remainder of this section, let Γbe a flat EL−>-unification problem. We assume without loss of generality that Γ is a set of flat subsumptions of the formC1u. . .uCn v? D, whereC1, . . . , Cn, D are flat atoms. Every equation C1u. . .uCn?D1u. . .uDminΓcan equivalently be expressed byn+msuch subsumptions.

4.1 Step 1: Guessing anEL-unifier The first step of the algorithm is to guess anEL- unifier that is the starting point for constructing anEL−>-unifier. Recall that, ifSis an acyclic assignment, thenD∈S(X)implies that the subsumptionγS(X)vγS(D) holds for the substitution γS induced by S. Thus, guessing the sets S(X) can be seen as guessing subsumptions between variables and non-variable atoms ofΓ.

In addition to guessing these subsumptions, ourEL−>-unification algorithm also guesses subsumptions between all other atoms ofΓ. To be more precise, it guesses a mappingτ: At(Γ)2→ {0,1}, which specifies which subsumptions between atoms ofΓshould hold for theEL−>-unifier that it tries to generate: ifτ(D1, D2) = 1for D1, D2 ∈At(Γ), then this means that the search for a unifier is restricted (in this

(12)

12

branch of the search tree) to substitutionsγsatisfyingγ(D1)vγ(D2). Any such mappingτalso yields an assignment

Sτ(X) :={D∈NV(Γ)|τ(X, D) = 1},

and we require that this assignment is acyclic and induces anEL-unifier ofΓ.

Definition 9 The mappingτ: At(Γ)2→ {0,1}is called asubsumption mapping forΓif it satisfies the following three conditions:

1. It respects the properties of subsumption inEL:

(a) τ(D, D) = 1for eachD∈At(Γ).

(b) τ(A1, A2) = 0for distinct concept constantsA1, A2∈At(Γ).

(c) τ(∃r.C1,∃s.C2) = 0for distinctr, s∈NRwith∃r.C1,∃s.C2∈At(Γ).

(d) τ(A,∃r.C) =τ(∃r.C, A) = 0for each constantA∈At(Γ), role name rand variable or constantCwith∃r.C∈At(Γ).

(e) If∃r.C1,∃r.C2∈At(Γ), thenτ(∃r.C1,∃r.C2) =τ(C1, C2).

(f) For all atomsD1, D2, D3 ∈ At(Γ), if τ(D1, D2) = τ(D2, D3) = 1, thenτ(D1, D3) = 1.

2. It induces an EL-substitution, i.e., the assignment Sτ is acyclic and thus induces a substitutionγSτ, which we will simply denote byγτ.

3. It represents a unifier ofΓ, i.e., it satisfies the following conditions for each subsumptionC1u. . .uCnv?DinΓ:

(a) If D is a non-variable atom, then there is at least one Ci such that τ(Ci, D) = 1.

(b) IfDis a variable andτ(D, C) = 1for a non-variable atomC∈NV(Γ), then there is at least oneCiwithτ(Ci, C) = 1.

Though it is not necessary for the proof of correctness of ourEL−>-unification algorithm, it can be shown that the substitutionγτinduced by a subsumption mapping τforΓis indeed anEL-unifier ofΓ.2It should be noted thatγτneed not be anEL−>- unifier ofΓ. In addition,γτ need not agree withτon every subsumption between atoms ofΓ. The reason for this is thatτspecifies subsumptions which should hold in theEL−>-unifier ofΓto be constructed. To turnγτinto such anEL−>-unifier, we may have to add certain particles, and these additions may invalidate subsumptions that hold forγτ. However, we will ensure that no subsumption claimed byτis invalidated.

It is clear that guessingτand checking the above conditions can be done in NP.

4.2 Step 2: Simplifying the unification problem In this step, we use the guessed subsumption mappingτto turnΓinto a unification problem that has only variables on the right-hand sides of subsumptions. More precisely, we define∆Γ,τ := ∆Γ∪∆τ, where

Γ:={C1u. . .uCn v?X ∈Γ|X is a variable ofΓ},

τ:={Cv?X|Xis a variable andCan atom ofΓwithτ(C, X) = 1}.

Before we can formulate the connection betweenEL−>-unifiability ofΓand of∆Γ,τ, we need to introduce some notation and show an auxiliary result. For an arbitrary EL−>-substitutionσ, we will in the following writeSτ ≤Sσif

Sτ(X)⊆Sσ(X) :={D∈NV(Γ)|σ(X)vσ(D)}

(13)

holds for every variableX. We now show that under some conditions on theEL−>- substitution σ (most importantlySτ ≤ Sσ), we can inferσ(C) v σ(D)from τ(C, D) = 1forC∈At(Γ)andD∈NV(Γ).

Lemma 10 Letτ be a subsumption mapping forΓandσanEL−>-substitution withSτ ≤Sσ. For all atomsC∈At(Γ)andD∈NV(Γ), the following holds:

1. IfDis ground, thenτ(C, D) = 1impliesσ(C)vσ(D).

2. IfD =∃r.Y for a variableY andσsatisfies all subsumptions of the form C0v?Y in∆τ, thenτ(C, D) = 1impliesσ(C)vσ(D).

Proof IfCis a variable, thenτ(C, D) = 1impliesD ∈Sτ(C) ⊆Sσ(C), and thusσ(C)vσ(D)by the definition ofSσ, regardless of the form ofD. Otherwise, we consider the structure ofD.

1. IfDis a constant, then the Conditions 1(b) and 1(d) of Definition9yield C=D, and the subsumption is clearly satisfied.

IfDis of the form∃r.D0for a constantD0, then by the Conditions 1(c)–(e) of Definition9,Cmust be of the form∃r.C0andτ(C0, D0) = 1. It remains to show thatσ(C0)v σ(D0)holds. SinceD0 is a constant, we know that eitherC0=D0, in which case we immediately haveσ(C0)vσ(D0), orC0is a variable andD0∈Sτ(C0)⊆Sσ(C0). In the latter case, the claim follows from the definition ofSσ.

2. If D = ∃r.Y for a variable Y, then againC must be of the form∃r.C0 andτ(C0, Y) = 1. But thenC0 vY is a subsumption in∆τ and we have σ(C0)vσ(Y), and thusσ(C)vσ(D), by assumption.

We can now show the following connection between the two unification problemsΓ and∆Γ,τ.

Lemma 11 The following statements are equivalent:

• ΓisEL−>-unifiable.

• There is a subsumption mappingτforΓsuch that∆Γ,τ has anEL−>-unifier σwithSτ ≤Sσ.

Proof IfΓhas a groundEL−>-unifierσ, we can defineτasτ(D1, D2) = 1iff σ(D1)vσ(D2)holds forD1, D2 ∈At(Γ). It is easy to see thatσsatisfies all the subsumptions in∆Γ,τ, andSτ ≤Sσ. Additionally,τis a subsumption mapping:

• Conditions 1(a)–(f) of Definition9are obviously satisfied by the subsumption relation.

• Conditions 3(a) and 3(b) of Definition9are satisfied, sinceσis a unifier ofΓ and Lemma1holds.

• To show that Condition 2 holds, assume that there is a sequenceX1, . . . , Xn

(n > 1) of variables such thatX1 = Xn andσ(Xi) v σ(∃ri.Xi+1) for each i ∈ {1, . . . , n−1}. By the properties of subsumption, this would implyσ(X1) v σ(∃r1. . . .∃rn−1.X1) = ∃r1. . . .∃rn−1.σ(X1), which is impossible. Thus, Condition 2 of Definition9is also satisfied.

Conversely, letτ : At(Γ)2 → {0,1}be a subsumption mapping forΓ andσ be anEL−>-unifier of∆Γ,τ withSτ ≤Sσ. We have to show thatσalso satisfies all discarded subsumptions of the formC1u. . .uCn v? D ∈ Γ, whereDis a non-variable atom ofΓ.

(14)

14

By Condition 3(a) of Definition 9, there is an index i ∈ {1, . . . , n} with τ(Ci, D) = 1. Sinceσsatisfies all the subsumptions in∆τ, we can apply Lemma10 and getσ(Ci)vσ(D). Thus,σsatisfies all subsumptions ofΓ.

For the problem of actually computing localEL−>-unifiers ofΓ, we also need to consider locality of the unifiers of∆Γ,τ. Fortunately, it can easily be seen from the second part of the proof of Lemma11that any localEL−>-unifierσof∆Γ,τ with Sτ ≤Sσis also a localEL−>-unifier ofΓsince every non-variable atom in∆Γ,τ must also occur inΓ.

Lemma 12 Letτbe a subsumption mapping forΓandσa localEL−>-unifier of

Γ,τwithSτ≤Sσ. Thenσis also a localEL−>-unifier ofΓ.

The converse of this lemma does not hold. However, our aim is not to construct localEL−>-unifiers of∆Γ,τ from localEL−>-unifiers ofΓ, but only the other way around. Thus, in the following we need to solve the problem of computing local EL−>-unifiersσof∆Γ,τ that satisfy the additional conditionSτ ≤ Sσ. For the following steps, we fix a subsumption mappingτforΓ.

4.3 Step 3: Translating to linear language inclusions In this step, we characterize which particles can be added in order to turnγτ into anEL−>-unifierσof∆Γ,τ

satisfyingSτ ≤Sσ. Recall that particles are of the form∃r1.· · · ∃rn.Aforn≥0 role namesr1, . . . , rn and a concept nameA. We write such a particle as∃w.A, wherew=r1· · ·rnis viewed as a word over the alphabetNRof all role names, i.e., an element ofNR. Ifn= 0, thenwis the empty wordεand∃ε.Ais justA.

Admissible words (particles) are determined by solutions of a system of linear language inclusions.

Definition 13 Let{X1, . . . , Xn}be a finite set ofindeterminates. Alinear lan- guage inclusionover these indeterminates is an expression of the form

Xi⊆L0∪L1X1∪. . .∪LnXn, (1) wherei∈ {1, . . . , n}and eachLj(j∈ {0, . . . , n}) is a subset ofNR∪{ε}. Asolution θof such an inclusion assigns sets of wordsθ(Xi)⊆NRto the indeterminatesXi

such thatθ(Xi)⊆L0∪L1θ(X1)∪. . .∪Lnθ(Xn).

We will often use the abbreviationsθ(LiXi) :=Liθ(Xi)andθ(L0) :=L0. The unification problem∆Γ,τ induces a finite systemIΓ,τ of such inclusions. The indeterminates ofIΓ,τ are of the formXA, whereX ∈NvandA ∈Nc. For each constantA∈Ncand each subsumptionsof the formC1u. . .uCnv?Xin∆Γ,τ, we add the following linear inclusionIA(s)toIΓ,τ:

XA⊆fA(C1)∪. . .∪fA(Cn), where

fA(C) :=





{r}fA(C0) ifC=∃r.C0 YA ifC=Y ∈Nv

{ε} ifC=A

∅ ifC∈Nc\ {A}

All the inclusionsIA(s)fors∈∆Γ,τ are linear language inclusions since∆Γ,τ

only contains flat atoms. For example, the subsumption

∃s.AuBu ∃r.XuY uAv?X

(15)

for constantsA, B, role names r, sand variablesX, Y is translated into the two inclusions

XA⊆ {ε, s} ∪ {r}XA∪YAand XB⊆ {ε} ∪ {r}XB∪YB

ifAandBare the only constants that occur inΓ.

We call a solutionθofIΓ,τ admissibleif, for every variableX ∈Nv, there is a constantA∈Ncsuch thatθ(XA)is nonempty. This condition will ensure that we can add enough particles to turnγτ into anEL−>-substitution. In order to obtain a substitution at all, only finitely many particles can be added. Thus, we are interested infinitesolutions ofIΓ,τ, i.e., solutionsθsuch that all the setsθ(XA)are finite.

Theorem 14Γ,τ has an EL−>-unifierσ withSτ ≤ Sσ iff IΓ,τ has a finite, admissible solution.

We prove the two directions of this equivalence separately.

Lemma 15 If∆Γ,τ has anEL−>-unifierσwithSτ ≤Sσ, thenIΓ,τ has a finite, admissible solution.

Proof Letσbe a groundEL−>-unifier of∆Γ,τwithSτ≤Sσ. We define a solution θofIΓ,τ as follows: for each variableXand constantA, we set

θ(XA) :={w∈NR | ∃w.A∈Part(σ(X))}.

To check thatθis a solution ofIΓ,τ, consider the inclusionIA(s)for somesof the formC1u. . .uCn v?Xin∆Γ,τand a wordw∈θ(XA). By Lemma2, we have σ(X)v ∃w.A, and thus Lemma1implies that there is aCisuch thatσ(Ci)v ∃w.A.

Hence,∃w.Ais a particle ofσ(Ci). We show that this implies thatw∈θ(fA(Ci)) by considering the structure ofCi.

• IfCiis a constant, then it must beA, since∃w.Ais one of its particles. Then w=εand thus,w∈fA(Ci) ={ε}=θ(fA(Ci)).

• IfCi =Y is a variable, thenw∈θ(YA) =θ(fA(Ci))by definition.

• IfCiis of the form∃r.C0 for a role namerand a constant or variableC0, thenwmust be of the formrw0forw0∈NRand∃w0.Amust be a particle of σ(C0). Applying the considerations from cases (i) and (ii) toC0andw0yields w0∈θ(fA(C0))and thus,w=rw0∈ {r}θ(fA(C0)) =θ(fA(Ci)).

In all of the above cases, we havew∈θ(fA(Ci)), which implies thatθsatisfiesIA(s) sincewwas an arbitrary element ofθ(XA). Furthermore,θis finite, sinceσ(X)can have only finitely many particles. Additionally, sinceσis a groundEL−>-substitution, for every variableX there is at least one particle∃w.A ∈ Part(σ(X))for some constantAand wordw, and thusθ(XA)is nonempty. This shows that θis also admissible.

It remains to show the other direction of Theorem 14, i.e., how to construct an EL−>-unifier of∆Γ,τ from a solution ofIΓ,τ. Recall that we want to computelocal EL−>-unifiers of∆Γ,τ. For this reason, we will prove a stronger result, which uses a corresponding notion of locality for solutions ofIΓ,τ.

Definition 16 LetIbe a finite set of linear language inclusions over the indeter- minatesX1, . . . , Xn. A solutionθofIis calledlocalif for alli∈ {1, . . . , n}and

(16)

16

all wordsw∈θ(Xi)\ {ε}there is an inclusionY ⊆L0∪L1X1∪. . .∪LnXninI such thatw∈L0orw∈(Lj\ {ε})θ(Xj)for somej∈ {1, . . . , n}.

Note that in a solutionθofIany wordwthat violates this condition can safely be removed fromθ. Thus, wheneverIhas a finite, admissible solution, then it also has a local one.

Lemma 17 IfIΓ,τ has a finite, local, admissible solution, then∆Γ,τ has a local EL−>-unifierσwithSτ ≤Sσ.

Proof Letθbe a finite, local, admissible solution ofIΓ,τ. We now define anEL−>- substitutionσby induction on the dependency order>:=>Sτ induced bySτ (see Sections3.2and4.1). LetX be a variable and assume thatσ(Y)has already been defined for all variablesY withX > Y. We set

σ(X) := l

D∈Sτ(X)

σ(D)u l

A∈Nc

l

w∈θ(XA)

∃w.A.

Sinceθis finite and admissible,σis actually anEL−>-substitution. The property Sτ ≤ Sσ follows from the fact that, for eachD ∈ Sτ(X), the atomσ(D)is a top-level atom ofσ(X), and thusσ(X)vσ(D)holds. It remains to show thatσis a localEL−>-unifier of∆Γ,τ.

We first show thatσsatisfies all subsumptions in∆Γ,τusing induction on the strict partial order>on the variables. LetXbe a variable and letσsatisfy all subsumptions D1u. . .uDm v? Y in∆Γ,τ for all variablesY withX > Y. We consider an arbitrary subsumptionsof the formC1u. . .uCn v?X in∆Γ,τ. This of course includes the subsumptions from∆τ, but in that case we always haven= 1. We have to show that every top-level atom ofσ(X)subsumes someσ(Ci). Recall that there are two kinds of top-level atoms ofσ(X).

If D ∈ Sτ(X), then τ(X, D) = 1 and σ(D) is a top-level atom of σ(X).

If s ∈ ∆Γ, then Condition 3(b) of Definition 9implies that there is a Ci with τ(Ci, D) = 1. But also in the case thats ∈ ∆τ, we know thatsis of the form C1vX andτ(C1, X) = 1holds. By Condition 1(f), we deduce thatτ(Ci, D) = 1 holds fori = 1. By definition of the order>, the non-variable atomD can only contain a variableY withX > Y. By the induction hypothesis,σsatisfies all sub- sumptions from∆τ having variables smaller thanXw.r.t.>on the right-hand side.

Thus, we can apply Lemma10to conclude thatσ(Ci)vσ(D)holds.

The other top-level atoms ofσ(X)that we have to consider are of the form∃w.A forA∈Ncandw∈θ(XA). Sinceθis a solution ofIΓ,τ, it satisfies the inclusion IA(s), which implies that there is aCisuch thatw∈θ(fA(Ci)). We consider the following cases:

1. IfCiis a concept constant, then it must beAsince otherwise we would have w∈θ(∅) =∅. Thus, we havew∈θ({ε}) ={ε}, i.e.,w=ε, which implies thatσ(Ci) =A=∃w.A.

2. In the case thatCi=Y is a variable, we havew∈θ(YA). Thus,∃w.Ais a top-level atom ofσ(Y) =σ(Ci), which impliesσ(Ci)v ∃w.A.

3. In the remaining case that Ci = ∃r.C0 for a role name rand a variable or constant C0, we have w ∈ θ({r}fA(C0)). Thus, w is of the form rw0 forw0 ∈ θ(fA(C0)). Applying the considerations from cases 1 and 2 to C0 and w0 yields the subsumption σ(C0) v ∃w0.A, which implies σ(Ci) =∃r.σ(C0)v ∃r.∃w0.A=∃w.A.

(17)

Finally, to show thatσis alocalEL−>-unifier, we again consider all top-level atoms ofσ(X), for each variableX. For the top-level atoms of the formσ(D)for D ∈ Sτ(X), we immediately have D ∈ NV(Γ)since Sτ(X) ⊆ NV(Γ). Now consider a top-level particle∃w.Aofσ(X). Ifw=ε, thenAis a non-variable atom ofΓsince we assumed that all elements ofNcoccur inΓ. Otherwise,w∈θ(XA)\{ε}

and, by locality ofθ, there is a subsumption of the formC1u. . .uCnv?Xin∆Γ,τ

and an indexi∈ {1, . . . , n}such thatw∈ θ(fA(Ci))andCiis neither a variable nor a constant.

Thus,Ciis of the form∃r.C0, whereC0is either the constantAor a variable. Con- sequently, eitherw∈ {r}orw∈ {r}θ(CA0 ). In the former case,∃w.A=∃r.A=Ci

is a ground atom ofΓ. In the latter case, we havew=rw0 for somew0 ∈θ(CA0 ).

By definition ofσ, this impliesσ(C0)v ∃w0.A, which yieldsσ(Ci)v ∃w.A. By Lemma2,∃w.Ais a particle ofσ(Ci). SinceCi∈NV(Γ), the particle∃w.Afulfills the condition for locality ofσ.

This concludes the proof of Theorem14, which shows that solvability of∆Γ,τwith a unifierσthat satisfiesSτ≤Sσcan be reduced to solvability ofIΓ,τ with a finite, admissible solutionθ. However, we are also interested in the size of the computed unifierσin terms of the size of the solutionθ. We will denote thesizeof something byk · k, which is basically the number of symbols it takes to write it down, where we assume that every role namer∈NRis of size1and auxiliary symbols like(,}, and

∃are of size0.

For a solutionθofIΓ,τ, we define kθk:= X

A∈Nc

X

X∈Nv

X

w∈θ(XA)

(|w|+ 1),

where |w|is the length of a wordw ∈ NR. Similarly, we measure the sizekCk of anEL−>-concept termCby the number of distinct occurrences of concept and role names inCand the size of a set of concept terms is the sum of the sizes of its elements. The size ofΓ ={C1v?D1, . . . , Cn v? Dn}is the sum of the sizes of C1, D1, . . . , Cn, Dn. Finally, the sizekσkof a substitutionσis the sum of the sizes ofσ(X)for allX ∈Nv.

To analyze the size of the unifier constructed in Lemma17, we need another auxiliary definition. For a variable X ∈ Var(Γ), we consider all sequences X =Xn>· · ·> X1whereX1is minimal w.r.t.>:=>Sτ. The length of such a sequence is the number of variables it contains, i.e.,n. TheheightofX is defined as the maximal length of all these sequences. This means that the height of a minimal variable is1and the height is bounded by|Var(Γ)|sinceSτis acyclic.

Lemma 18 Letθbe a finite, local, admissible solution ofIΓ,τ andσbe the local EL−>-unifier constructed fromθas described in Lemma17. Then for everyX ∈Nv

of heightnwe have

kσ(X)k ≤nkΓkn+kθk

n−1

X

i=0

kΓki

! .

Proof We prove the claim by induction on>. LetXbe a minimal variable w.r.t.>.

Since all non-variable atoms inSτ(X)are ground and occur inΓ, the size ofσ(X)is bounded bykSτ(X)k+kθk ≤ kΓk+kθk.

Referenzen

ÄHNLICHE DOKUMENTE

While decidability of the solvability of general EL -disunification problems remains an open problem, we obtain NP -completeness results for two interest- ing special cases:

The problem is how to extend the unification in EL to such unification with a background ontology in the form of a set of definitions of some concept names occuring in the

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

A hybrid unifier is a cyclic TBox that, together with the background ontology consisting of GCIs, entails the unification problem w.r.t.. We will show that hybrid unification in

The main idea underlying the EL −&gt; -unification algorithm introduced in the next section is that one starts with an EL-unifier, and then conjoins “appro- priate” particles to

Given a solvable EL −&gt; -unification problem Γ, we can construct a local EL −&gt; -unifier of Γ of at most exponential size in time exponential in the size of

In addition, it is known that, for a given natural number n 0 and finite sets of concept names N con and role names N role , there are, up to equivalence, only finitely many

Starting with a set N con of concept names and a set N role of role names, EL-concept terms are built using the concept constructors top concept (&gt;), conjunction (u), and