• Keine Ergebnisse gefunden

Temporalising Tractable Description Logics

N/A
N/A
Protected

Academic year: 2022

Aktie "Temporalising Tractable Description Logics"

Copied!
12
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Temporalising Tractable Description Logics

A. Artale R. Kontchakov C. Lutz

Faculty of Computer Science School of CS and IS Department of Computer Science Free University of Bozen-Bolzano Birkbeck College Dresden University of Technology

I-39100 Bozen-Bolzano, Italy London WC1E 7HX, U.K. 01062 Dresden, Germany artale@inf.unibz.it roman@dcs.bbk.ac.uk lutz@tcs.inf.tu-dresden.de

F. Wolter M. Zakharyaschev

Department of Computer Science School of Comp. Sci. and Inf. Syst.

University of Liverpool Birkbeck College Liverpool L69 3BX, U.K. London WC1E 7HX, U.K.

frank@csc.liv.ac.uk michael@dcs.bbk.ac.uk

Abstract

It is known that for temporal languages, such as first- orderLT L, reasoning about constant (time-independent) relations is almost always undecidable. This applies to tem- poral description logics as well: constant binary relations together with general concept subsumptions in combina- tions ofLT Land the basic description logicALC cause undecidability. In this paper, we explore temporal exten- sions of two recently introduced families of ‘weak’ descrip- tion logics known as DL-Lite and EL. Our results are twofold: temporalisations of even rather expressive vari- ants of DL-Lite turn out to be decidable, while the tem- poralisation ofELwith general concept subsumptions and constant relations is undecidable.

1. Introduction

Over the last 15 years, many temporalised versions of description logics (DLs) have been suggested and investi- gated. We refer the reader to the survey papers and mono- graph [6, 14, 4] where the history of the development of both interval and point-based temporal extensions of DLs is discussed in full detail. Our main concern in this pa- per are extensions of DLs by point-based temporal logics, in particular the standard linear time temporal logicLT L (see [13] and references therein). The current state of the art in this field can be summarised as follows: it is gen- erally agreed that the semantics of combined temporal de- scription logics should be based on the Cartesian products

of the flow of time (the natural numbersNforLT L) and the domains of the DL interpretations. Thus, a model for the combined language consists of a flow of snapshots that rep- resent the domains of interest at various time points. This semantics corresponds to the semantics of first-order tem- poral logics (more precisely, to first-order temporal mod- els withconstant domains; varying and expanding domains have been considered as well in temporalised DLs, but they are not within the scope of this paper). In fact, the transla- tion of standard DLs into first-order logic can be extended to a translation of temporalised DLs into first-order tempo- ral logics. For this semantics, the expressivity and com- putational complexity of combinations of LT Land DLs extending the standard Boolean DLALC have been com- pletely classified [14, 4]. Instead of trying to summarise all the available results here, we only point out one of the main insights from this investigation:

• combinations ofLT LandALC, which allow general concept inclusions(GCIs)C1vC2, are decidable(in fact, usually EXPSPACE-complete)if, and only if, the temporal operators are not applied to binary relations (roles)and, more generally, no constraints are imposed on the binary relations.

In other words, as long as one only wants to reason about the temporal behaviour of axioms (corresponding to closed for- mulas) and concepts (corresponding to unary predicates), the resulting combination is likely to be decidable; but as soon as the combination allows reasoning about the tem- poral behaviour of binary relations it becomes undecidable.

This phenomenon is well understood and reflected in the de- finition of, e.g., the monodic fragments of first-order tempo-

(2)

ral logics [17, 12]. In particular, the undecidability results hold for the most important temporal constraint on binary relations, namely, that a role isconstant over time: even a single constant role results in an undecidable combina- tion ofALC andLT Lwith GCIs. Without GCIs, tempo- ral description logics may be decidable even with constant roles [14].

Unfortunately, many applications of temporal descrip- tion logics (say, temporal data modelling, which will be briefly discussed in Section 3, or dynamic ontologies) re- quire both GCIs and temporal constraints on roles, in par- ticular constant roles. It was this problem that motivated the research which resulted in this paper. More precisely, our main aim was to find out whether it is possible to de- sign useful combinations ofLT Land DLs with GCIs and constant roles that are still decidable.

Recent developments in description logic have opened a new path to follow in designing such languages. First, the recognition of the importance oftractablereasoning and, in particular, query answering over DL ontologies with GCIs has given rise to the investigation of the newDL-Lite family of DLs [10, 11, 2]. And second, the use of huge DL-based ontologies with GCIs in bio- and medical informatics has led to the introduction and investigation of ‘weak’ DLs (re- flecting the expressive power of existing ontologies) with tractable subsumption algorithms, namely, the EL-family of DLs [5, 7, 8]. Both families of DLs lack some of the expressive power ofALCbut have nevertheless proved ex- pressive enough for a number of applications. In this paper, we explore to which extent these new families of DLs can provide basis for useful and still decidable combinations of LT Land DLs with GCIs and constant roles.

The obtained results are twofold. On the one hand, we prove in Section 4 that the combination of one of the most expressive versionsDL-Litebool ofDL-LitewithLT Lis in- deed decidable (in EXPSPACE), even with GCIs and con- stant roles. Moreover, its Krom fragment turns out to be decidable in PSPACE. The proofs are based on an embed- ding into the one-variable fragment of first-order temporal logic. This means, in particular, that reasoning in temporal DL-Lite can be supported by available temporal provers;

see, e.g., [12]. On the other hand, we show in Section 7 that the corresponding combination ofELandLT Lis undecid- able. The meaning of these results is analysed in Section 8.

2. Temporal extension of DL-Lite

bool

We begin by introducing the temporal extension TDL-Litebool of one of the most expressive description log- icsDL-Litebool of theDL-Litefamily [2]. It combines the temporal operatorsofLT L,(‘at the next moment’) and U (‘until’), with the language ofDL-Litebool in a straight- forward manner by applying them to concepts and Boolean

combinations of GCIs and ABox assertions. Moreover, we will distinguish between local and global role names.

Thus,TDL-Litebool containsobject namesa0, a1, . . .,con- cept namesA0, A1, . . ., local role namesP0, P1, . . ., and global role namesT0, T1, . . .. RolesR,basic conceptsB andconceptsCofTDL-Litebool are defined as follows:

R ::= Pi | Pi | Ti | Ti, B ::= ⊥ | Ai | ≥q R, C ::= B | ¬C | C1uC2 |

C | C1UC2,

whereq ≥ 1 is a natural number (note that the results of this paper do not depend on whetherqis given in unary or in binary). TDL-Litebool formulasare built from atoms of the form

C1vC2, C(ai), R(ai, aj)

with the help of the Boolean connectives (say,¬and∧) and the temporal operatorsandU. The atomsC1 vC2are often called general concept inclusions (GCIs), while the atomsC(ai)andR(ai, aj)are calledABox assertions.

ATDL-Litebool interpretationIis a function

I(n) = ∆, aI(n)0 , . . . , AI(n)0 , . . . , P0I(n), . . . , T0I(n), . . . ,

where∆is a nonempty set,n∈N,aI(n)i ∈∆,AI(n)i ⊆∆, PiI(n) ⊆ ∆×∆,TiI(n) ⊆ ∆×∆, withaI(n)i = aI(m)i andTiI(n) =TiI(m), for alln, m∈N, andaI(n)i 6=aI(n)j , for all i 6= j and all n ∈ N(the last condition means the unique name assumption, which standard in DL). The role and concept formation constructors are interpreted inI as follows (whereRiis either a local or global role name):

(Ri )I(n) =

(y, x)|(x, y)∈RI(n)i ,

I(n) = ∅, (≥q R)I(n) =

x∈∆|]{y|(x, y)∈RI(n)} ≥q , (¬C)I(n) = ∆\CI(n),

(C1uC2)I(n) = C1I(n)∩C2I(n), (C)I(n) = CI(n+1),

(C1U C2)I(n) = [

k>n

C2I(k)∩ \

n<m<k

C1I(m) .

The standard abbreviations > ≡ ¬⊥, ∃R ≡ (≥1R), C1 t C2 ≡ ¬(¬C1 u ¬C2), ≤q R ≡ ¬(≥q+ 1R), (=q R) ≡ (≤qR)u(≥q R), 3FC ≡ > U C (‘some time in the future’) and2FC ≡ ¬3F¬C (‘always in the future’) we need in what follows are self-explanatory and correspond to the intended semantics.

(3)

Thesatisfaction relation(I, n)|=ϕ, for aTDL-Litebool

formulaϕ, is defined inductively:

(I, n)|=C1vC2 iff C1I(n)⊆C2I(n), (I, n)|=C(ai) iff aI(n)i ∈CI(n),

(I, n)|=R(ai, aj) iff (aI(n)i , aI(n)j )∈RI(n), (I, n)|=¬ϕ iff (I, n)6|=ϕ,

(I, n)|=ϕ1∧ϕ2 iff (I, n)|=ϕ1and(I, n)|=ϕ2, (I, n)|=ϕ iff (I, n+ 1)|=ϕ,

(I, n)|=ϕ12 iff there isk > nwith(I, k)|=ϕ2

and(I, m)|=ϕ1for alln < m < k.

We will also freely use the Booleans→and∨and the tem- poral operators2F and3F for formulas. A formulaϕis satisfiableif there is an interpretationIand a time pointn such that(I, n)|=ϕ.

Observe that the interpretation of object names and global role names is time-independent, while the interpre- tation of local role names and concepts is allowed to vary over time. Time-independent concepts can be introduced by means of the axioms2+F AvA

and2+F AvA , where2+Fϕ≡ϕ∧2Fϕ.

At first sight one might think that the satisfiability prob- lem for this logic is undecidable because using a single global functional role T (functionality can be ensured by the axiom≥2T v ⊥) with functional T one can easily enforce the existence of aN×Ngrid, which could possibly be used to encode the undecidableN×Ntiling problem.

However, the language is not capable of expressing the re- quirements on colour matching in the domain ‘dimension,’

i.e., that if(x, y)∈TI(n)then the colours of tiles covering xandymatch (which can be easily expressed with the qual- ified existential quantifier ∃T.C). In fact, as we shall see in the next section, TDL-Litebool can be embedded in the one-variable fragment of first-order temporal logic, which is known to be decidable, actually, EXPSPACE-complete;

see, e.g., [14]. Note that satisfiability inDL-Litebool is NP- complete [2].

3. Temporal data modelling with TDL-Lite

bool

Here we briefly discuss howTDL-Litebool can be used for temporal data modelling. It was argued in [10] that the underlying DL DL-Litebool can represent atemporal con- ceptual data models like UML class diagrams and Entity- Relationship models. For example, one maps entities E, denoting sets of abstract objects, into concept names AE. Then one can represent the subclass relation (ISA) and disjointness between E1 and E2 by AE1 v AE2 and AE1 v ¬AE2, respectively, and to express thatE iscov- eredbyE1, . . . , En one can useAE v AE1t · · · tAEn

andAE1 vAE, . . . , AEn vAE. To capture ann-ary re- lationshipRover entitiesE1, . . . , En, onereifiesthe rela- tionship. First, take a concept nameARandnrole names R1, . . . , Rn. The GCIsAR v(= 1Ri)ensure that every instance ofARgives rise to a unique tuple inR; the GCIs

∃Ri v AEi guarantee that only instances of E1, . . . , En may be connected by R. Participation constraints are captured by cardinality restrictions AEi v (≥k Ri )and AEi v(≤m Ri ). An attributeP of an entityE, associat- ing values of a concrete domainDto instances ofE, is con- sidered as a binary relationship linkingEwithD: this can be captured by a conceptAP and a pair of functional roles P1andP2with the GCIsAP v(= 1P1),AP v(= 1P2),

∃P1 vAEand∃P2vD.

In the temporal context, we can express all those con- straints using 2+F(C1 v C2) instead of the atemporal C1 v C2. Below we writeC1 v C2for2+F(C1 v C2).

However, even at this basic level, global roles are already required: when reifying relationships, to ensure that every instance ofARrepresents the same tuple at different times, the rolesRi should be global; similarly, the rolesP1 and P2 introduced for an attributeP should be global. More- over, concrete domains should be constant and disjoint: this is captured by(D vD)∧(D v D), for allD, and Dv¬D0, for all distinct concrete domainsD, D0.

In addition, the temporal constructors of TDL-Litebool

are able to represent dynamic aspects of conceptual mod- els. Timestampingis the basic temporal constraint used to model the temporal behaviour of entities, relationships and attributes [18, 3]. It is implemented either by marking enti- ties, relationships and attributes assnapshotortemporary, or leaving them unmarked. An object belongs to a snap- shot entity either never or at all times, no object may belong to a temporary entity at all times, and there are no tempo- ral assumptions about instances of unmarked entities. The meaning of timestamps for relationships and attributes is analogous. In TDL-Litebool timestamps are expressed by the following formulas: (AE vAE)∧(AE v AE) for asnapshot/global entityand(> v3+F¬AE)for atem- porary entity. Timestamping formulas for a relationshipR involve the concept nameAR that reifies the relationship;

then we need (AR vAR)∧(AR v AR)for the snapshot/global relationship, and(> v 3+F¬AR)for the temporary relationship. Attributes are treated similarly.

Finally, TDL-Litebool is capable of capturing dynamic transitionsbetween entities where objects of a source entity, E1, migrate to a target entity,E2, with the help of the GCI AE1 v3FAE2.

It was observed in [1] that temporal conceptual models with timestamping and evolution constraints can be trans- lated into the DLDLRU Sand that reasoning with temporal models with both timestamping and dynamic constraints is undecidable. The main difference here is thatTDL-Litebool

(4)

lacks the ability to represent sub-relationships which is an essential part in the undecidability proof.

4. TDL-Lite

bool

is E

XP

S

PACE

-complete

This result is proved by providing a satisfiability pre- serving translation ofTDL-Litebool formulas into theone- variable fragmentQT L1of first-order temporal logic with- out function symbols and equality. To define the syntax of QT L1, fix one variablex. Then the formulas ofQT L1are constructed from unary predicatesP(x)andP(ai)(where ai is a constant) and propositional variables pusing the standard connectives of first-order logic (with quantifiers

∀xand∃x) and the temporal operatorsandU. QT L1- models and the satisfaction relation between formulas and time points are defined in the obvious way by modifying the definition ofTDL-Liteboolinterpretations (however, there is no unique name assumption in this case); for details we re- fer the reader to [14], where the following is also shown:

Theorem 1. The satisfiability problem forQT L1-formulas isEXPSPACE-complete.

Now we define a translation· ofTDL-Litebool formu- las into QT L1. Let ϕbe a TDL-Litebool formula. De- note byrole(ϕ)the set of both local and global role names occurring in ϕ, by g-role(ϕ)the set of global role names in ϕ, and by ob(ϕ) the set of object names in ϕ. Let role±(ϕ) = {R, R | R ∈ role(ϕ)} andg-role±(ϕ) = {T, T | T ∈ g-role(ϕ)}. Denote byqϕ the maximum numerical parameter inϕ.

With every object nameai ∈ob(ϕ)we associate the in- dividual constantaiofQT L1and with every concept name Aithe unary predicateAi(x)from the signature ofQT L1. For eachR ∈ role±(ϕ), we also introduceqϕfresh unary predicatesEqR(x), for1 ≤q ≤qϕ. Intuitively, for each n,E1R(x)andE1R(x)represent the domain and range of R at momentn (i.e.,E1R(x)andE1R(x)are inter- preted by the sets of points withat least oneR-successor andat least oneR-predecessor at momentn, respectively), while EqR(x)and EqR(x) represent the sets of points with at least q distinct R-successors and at least q dis- tinctR-predecessors at moment n. Additionally, for each pairai, aj ∈ ob(ϕ)and each roleR ∈ role±(ϕ), we take a freshpropositional variableRaiaj of QT L1 to encode R(ai, aj).

By induction on the construction of aTDL-Litebool con- ceptCwe define theQT L1- formulaC:

=⊥,

(A)=A(x), (≥q R)=EqR(x), (¬C)=¬C(x), (C1uC2)=C1(x)∧C2(x), (C)=C(x), (C1UC2)=C1(x)UC2(x),

whereAis a concept name andRa role. Next, we extend this translation toTDL-Litebool-formulas:

(C1vC2)=∀x(C1(x)→C2(x)),

(C(ai))=C(ai), (R(ai, aj))=Raiaj, (¬ψ)=¬ψ, (ψ1∧ψ2)1∧ψ2, (ψ)=ψ, (ψ12)12,

where C, C1, C2 are concepts, R is a role and ai, aj are object names.

The following formulas express some natural properties of the role domains and ranges. For everyR ∈ role±(ϕ), we need twoQT L1-sentences:

ε(R) = ∃x E1R(x) → ∃xinv(E1R)(x), (1) δ(R) =

qϕ−1

^

q=1

∀x Eq+1R(x)→EqR(x) , (2)

where inv(E1R) is the predicate E1Rk if R = Rk and E1Rk if R = Rk. Sentence (1) says that if the domain ofRis not empty then its range is not empty either.

We also need formulas representing the relation of the Raiaj with the unary predicates for the role domain and range. For a roleR∈role±(ϕ), let

ω(R) =

qϕ

^

q=1

^

a∈ob(ϕ) aj1,...,ajq∈ob(ϕ)

ji6=ji0fori6=i0

^q

i=1

Raaji→EqR(a) , (3)

ι(R) = ^

ai,aj∈ob(ϕ)

Raiaj →inv(R)ajai

, (4)

whereinv(R)ajai is the propositional variable Rkajai if R=RkandRkajaiifR=Rk.

For every global roleT ∈g-role±(ϕ)we need two addi- tional sentences:

γ1(T) =

qϕ

^

q=1

∀x EqT(x)↔EqT(x)

, (5) γ2(T) = ^

ai,aj∈ob(ϕ)

(T aiajT aiaj). (6)

Finally, we set ϕ = ϕ ∧ ^

R∈role±(ϕ)

2+F ε(R)∧δ(R)∧ω(R)∧ι(R)

∧ ^

T∈g-role±(ϕ)

2+F γ1(T)∧γ2(T) .

Theorem 2. ATDL-Litebool formulaϕis satisfiable iffϕ is satisfiable.

(5)

Proof. (⇐)LetMbe a first-order temporal model with a countabledomainDand let(M,0) |=ϕ. We denote the interpretation of unary predicatesP and propositional vari- ablespinMat momentnbyPM,nandpM,n. The inter- pretation of constantsainMis denoted byaM. Let

W0=

aM |a∈ob(ϕ) ⊆D.

Without loss of generality we may assume that all theaM are distinct.

We are going to construct aTDL-Litebool interpretation Isatisfyingϕthat is based on the domain

∆ =W0 ∪ (D×N).

The interpretations of object names inIare given by their interpretations inM: aI(n) = aM ∈ W0. The interpreta- tionsAI(n)of concept namesAinIare defined by taking

AI(n)=

w∈∆|(M, n)|=A[cp(w)] , (7) where the functioncp: ∆→Dis defined as follows:

cp(w) =

(w, ifw∈W0,

d, ifw= (d, n)∈D×N. (8) We will callwacopyofcp(w). Now, for eachR∈role(ϕ) and eachn∈N, we introduce inductively the interpretation RI(n). (For globalRthis can be done for some fixedn, say 0, and then copied for all othern.)RI(n)will be defined as the union

RI(n)=

[

m=0

Rn,m,

where, for allm≥0,Rn,m⊆WRn,m×WRn,m, WRn,m⊆WRn,m+1 and

[

m=0

WRn,m= ∆.

We start withWRn,0 =W0. The setWRn,m\WRn,m−1, for m ≥0, will be denoted byVRn,m; for convenience, we let WRn,−1=∅, so thatVRn,0=W0.

First we define therequiredR-rankrn(R, d)ofd∈ D at momentn:

rn(R, d) =









0, if(M, n)|=¬E1R[d],

q, if(M, n)|=EqR∧ ¬Eq+1R[d], for1≤q < qϕ, qϕ, if(M, n)|=EqϕR[d].

It follows from (2) that rn(R, d)is a function and that if d∈Dandrn(R, d) =qthen(M, n)|=Eq0R[d]whenever 1 ≤ q0 ≤ q, and(M, n) |= ¬Eq0R[d]forq < q0 ≤ qϕ.

We also define theactual R-rankrnm(R, w)ofw ∈ ∆ at momentnand stepmby taking

rnm(R, w) =





q, ifw∈ ≥q Rn,m.∆\≥q+ 1Rn,m.∆, for0≤q < qϕ, qϕ, ifw∈ ≥qϕRn,m.∆,

where≥q S.∆ =

x∈∆|]{y|(x, y)∈S} ≥q , for a binary relationS.

For the basis of induction we set Rn,0=

(aMi , aMj )∈W0×W0|(M, n)|=Raiaj . (9) By (3) and (4), for bothRandR(whereR−− =R) and allw∈W0,

r0n(R, w) ≤ rn(R,cp(w)). (10) Suppose that the WRn,mand Rn,m have already been de- fined form ≥ 0. If we had rnm(R, w) = rn(R,cp(w)), for bothRandRand allw∈WRn,m, then the interpreta- tionRn,mwe need forRI(n)would have been constructed.

However, in general this is not the case because there may be some ‘defects’ in the sense that the actual rank of some points is smaller than the required rank. Consider the fol- lowing two sets of defects inRn,m:

Λn,mR =

w∈VRn,m|rnm(R, w)< rn(R,cp(w)) , Λn,mR =

w∈VRn,m|rnm(R, w)< rn(R,cp(w)) . The purpose of, say, Λn,mR is to identify those ‘defective’

pointsw ∈ VRn,mfrom which preciselyrn(R,cp(w))dis- tinctR-arrows should start (according toM), but some ar- rows are still missing (onlyrmn(R, w)many arrows exist).

To ‘cure’ these defects, we extendWRn,mtoWRn,m+1 and Rn,mtoRn,m+1according to the following rules:

n,mR ) Letw ∈Λn,mR . Denoteq=rn(R, d)−rmn(R, w) andd = cp(w). Then(M, n) |= Eq0R[d]for some q0 ≥ q > 0. By (2), (M, n) |= E1R[d]and, by (1), there is d0 ∈ D such that(M, n) |= E1R[d0]. In this case we take q fresh copies w01, . . . , w0q of d0, i.e., w10, . . . , w0q ∈ ({d0} ×N)\WRn,m, add them to WRn,m+1 and add the pairs(w, wi0), 1 ≤ i ≤ q, to Rn,m+1.

n,mR) Letw∈Λn,m−R . Denoteq=rn(R, d)−rmn(R, w) andd =cp(w). Then(M, n)|=Eq0R[d]for some q0 ≥ q > 0. By (2), (M, n) |= E1R[d] and, by (1), there is d0 ∈ D with (M, n) |= E1R[d0].

In this case we takeqfresh copiesw01, . . . , w0q of d0, i.e., w10, . . . , w0q ∈ ({d0} ×N)\WRn,m, add them to WRn,m+1 and add the pairs(w0i, w), 1 ≤ i ≤ q, to Rn,m+1.

(6)

(Ω) Finally, if all defects for R in WRn,m have already been cured we take, for every d ∈ D, a fresh copy (d, l)∈({d} ×N)\WRn,mwith minimalland add it toWRn,m+1.

It should be clear that the rule (Ω) guarantees that S

m=0WRn,m = ∆. Now we observe the following im- portant property of the construction: for allm0 ≥ 0 and w∈VRn,m0,

rmn(R, w) =









0, ifm < m0,

q, ifm=m0, for some

q≤rn(R,cp(w)), rn(R,cp(w)), ifm > m0.

(11)

To prove this property, consider all possible cases. If m < m0 then w has not been added to WRn,m yet, i.e., w /∈ WRn,m, and so rnm(R, w) = 0. If m = m0 and m0= 0thenrmn(R, w)≤rn(R,cp(w))follows from (10).

If m = m0 andm0 > 0 thenw was added at step m0

either to cure a defect of some point w0 ∈ WRn,m0−1 or by(Ω). In the latter case we clearly havernm(R, w) = 0, and sornm(R, w)≤ rn(R,cp(w)). In the former case this means that either(w0, w) ∈ Rn,m0 andw0 ∈ Λn,mR 0−1or (w, w0)∈Rn,m0andw0∈Λn,mR0−1. In the first case

(M, n)|=E1R[cp(w)]. (12) Sincefresh witnessesware picked up every time the rule (Λn,mR 0−1) is applied and those witnesses satisfy (12), we obtain rmn0(R, w) = 0, rnm0(R, w) = 1 and rn(R,cp(w)) ≥ 1. The second case is similar. If m=m0+ 1then all defects ofware cured at stepm0+ 1 by applying the rules (Λn,mR 0) and (Λn,mR0). Therefore, rnm0+1(R, w) = rn(R,cp(w)). Ifm > m0+ 1then (11) follows from the observation that new arrows involvingw can only be added at stepm0+ 1, that is, for allm≥0,

Rn,m+1\Rn,m

VRn,m×VRn,m+1 ∪ VRn,m+1×VRn,m. (13) Finally, recall that if R is global then, by (5) and (6), the above inductive procedure does not depend onn and RI(n)=RI(m), for alln, m∈N.

It follows that, for allR∈role±(ϕ),1≤q≤qϕ,n∈N andw∈∆,

(M, n)|=EqR[cp(w)] iff w∈ ≥q RI(n).∆. (14) Indeed, if (M, n) |= EqR[cp(w)] then, by definition, rn(R,cp(w)) ≥ q. Let w ∈ VRn,m0. Then, by (11), rnm(R, w) = rn(R,cp(w)) ≥ q, for all m > m0. It follows from the definition of rnm(R, w) and RI(n) that w ∈ ≥q RI(n).∆. Conversely, letw ∈ ≥q RI(n).∆and

w ∈ VRn,m0. Then, by (11), we have q ≤ rmn(R, w) = rn(R,cp(w)), for all m > m0. So, by the definition of rn(R,cp(w))and (2), we have(M, n)|=EqR[cp(w)].

Now we show by induction on the construction of con- ceptsCinϕthat, for alln∈Nandw∈∆,

(M, n)|=C[cp(w)] iff w∈CI(n). (15) The basis of induction is trivial for B = ⊥ and follows from (7) ifB =Aiand (14) ifB =≥q R. The induction step for the Booleans (C=¬C1andC=C1uC2) and the temporal operators (C =C1andC =C1U C2) follows from the induction hypothesis.

Finally, we show that for each subformulaψofϕ, (M, n)|=ψ iff (I, n)|=ψ. (16) Forψ=C1 vC2andψ=C(ai), this follows from (15).

For ψ = Rk(ai, aj), (aIi, aIj) ∈ RI(n)k iff, by (13), (aIi, aIj) ∈ Rn,0k iff, by (9),(M, n) |= Rkaiaj. The case ψ = Rk(ai, aj) is similar. The induction step for the Booleans (ψ = ¬ψ1 andψ = ψ1∧ψ2) and the tempo- ral operators (ψ=ψ1andψ=ψ12) follows from the induction hypothesis.

Thus, we obtain (I,0) |= ϕ. The implication(⇒) is straightforward.

The translationϕofϕis obviously too lengthy to pro- vide us with reasonably low complexity results. However, it follows from the proof above that in fact a lot of information in this translation is redundant and can be safely omitted.

We define now a more concise translation ofϕintoQT L1. ForR ∈ role±(ϕ), let QRϕ be the set of natural numbers containing1and all the numerical parametersqfor which

≥q Roccurs inϕ. Then we set ϕ[ ∧ ^

R∈role±(ϕ)

2+F ε(R)∧δ[(R)∧ω[(R)∧ι(R)

∧ ^

T∈g-role±(ϕ)

2+F γ1[(T)∧γ2(T) ,

whereε(R),ι(R)andγ2(T)are as before (see (1), (4) and (6), respectively),

δ[(R) = ^

q,q0∈QRϕ, q0>q q0>q00>qfor noq00∈QRϕ

∀x Eq0R(x)→EqR(x)

, (17)

ω[(R) = ^

q∈QRϕ

^

a∈ob(ϕ) aj1,...,ajq∈ob(ϕ)

ji6=ji0fori6=i0

q

^

i=1

Raaji →EqR(a) , (18)

γ[1(T) = ^

q∈QTϕ

∀x EqT(x)↔EqT(x)

. (19)

(7)

Corollary 3. ATDL-Litebool formulaϕis satisfiable iff the QT L1-sentenceϕ[is satisfiable.

Proof. Follows from the fact thatϕis satisfiable iffϕ[ is satisfiable. Indeed, if (M,0) |= ϕ then (M,0) |= ϕ[. Conversely, if(M,0) |= ϕ[then one can construct a new modelM0based on the same domainDasMby taking

• AM0,n=AM,n, for all concept namesAandn∈N;

• EqRM0,n=Eq0RM,n, forR∈role±(ϕ),1≤q≤qϕ

andn∈N, whereq0is the maximum number fromQRϕ withq0≤q;

• Raiaj to be true inM0 atniff(M, n)|=Raiaj, for allR∈role±(ϕ), allai, aj∈ob(ϕ)and alln∈N;

• aM0 =aM, for alla∈ob(ϕ).

It follows immediately from the definition that we have (M0,0) |=ϕ. (For example,(M0,0) |=ϕ follows from the fact that for every concept (≥q R) from ϕ we have EqRM0,n=EqRM,n, for alln∈N.)

This observation makes it possible to prove the following result:

Theorem 4. The satisfiability problem forTDL-Litebool is EXPSPACE-complete.

Proof. As we know, satisfiability forQT L1is EXPSPACE- complete. However, we cannot use this result directly be- cause the size of ϕ[ is exponential in the number of ob- ject names (in fact, double exponential, if qϕ is given in binary): |ϕ[| ≤const· |ϕ|+|ob(ϕ)|qϕ+1. Instead, we use the EXPSPACEalgorithm presented in [14, Theorem 11.30]

(see also [16]) which, given aQT L1-sentenceψ, decides whetherψis satisfiable or not by guessing an ultimately pe- riodical quasimodel such that the lengths of its prefix and its period are bounded by some numbersl1andl2, respec- tively. In general, bothl1andl2are double exponential in the length|ψ|of ψ. Hence, the algorithm requires single exponential space to write down the two numbers. The al- gorithm also requires exponential space to store at most 3 state candidates. Clearly, every realisable state candidateC forϕ[is uniquely determined by the following parameters:

• the set of propositional variables and the set of closed subformulas of the form ∀x χ(x) that belong to the types ofC;

• for every type inC, the set of all open subformulas that belong to this type.

It is easy to compute thatϕ[contains|role±(ϕ)| · |ob(ϕ)|2 propositional variables and|ϕ|+3·|role±(ϕ)|closed subfor- mulas of the form∀x χ(x). Therefore, the ‘propositional’

part of a state candidate can be stored in space bounded

byp1(|ϕ|), wherep1is a polynomial. Next, for each type forϕ[, the number of open subformulas that belong to this type is bounded by |ϕ|, and the number of types in every state candidate is bounded by 2|ϕ|. Therefore, the ‘type’

part of a state candidate can be stored in space bounded by 2|ϕ|· |ϕ|, and so the overall space required to store a state candidate forϕ[is bounded by2p2(|ϕ|), for some polyno- mialp2. Now, [14, Theorem 11.26] provides more precise upper bounds onl1andl2:

l1≤](ϕ[) and l2≤kϕ[·](ϕ[)·[2[) +](ϕ[), where](ϕ[)is the number of distinct state candidates,[(ϕ[) the number of distinct types, andkϕ[ the number of ‘even- tualities,’ i.e., subformulas ofϕ[ of the formχ1U χ2. It follows from the above argument that](ϕ[)≤22p2 (|ϕ|)and [(ϕ[) ≤ 2p1(|ϕ|)·2|ϕ|(every type for ϕ[ is uniquely de- termined by its ‘propositional’ part and the subset of open subformulas that belong to it). Finally, the numberkϕ[ of

‘eventualities’ is bounded by|ϕ|+2·|role±(ϕ)|. This shows that although the length ofϕ[is (double) exponential in|ϕ|, the numbers l1 andl2 are only double exponential in |ϕ|

(not triple exponential as one would expect). Therefore, the algorithm of [14, Theorem 11.30] runs in EXPSPACE.

The EXPSPACE lower bound follows from the fact that there is a satisfiability preserving polynomial translation from QT L1 toTDL-Litebool. First, by introducing new unary predicates one can transform, in a satisfiability pre- serving way, each QT L1-formula into aQT L1-sentence containing neither ∃xnor nested ∀x. Such a sentence ϕ can be translated intoTDL-Liteboolby first associating with every unary predicateP(x)a concept name(P(x))=AP. For every subformulaψofϕwith freex, we obtain a con- ceptψ by distributing the translation· over the connec- tives,U,¬and∧, e.g.,(ψ1∧ψ2)12. For each subformula of the form ∀x ψ, set(∀x ψ) = (> v ψ).

Now, forQT L1-sentences, the translation· again distrib- utes over the connectives,U,¬and∧. It is easily seen thatϕis satisfiable iffϕis satisfiable.

The same lower bound follows also from Theorem 10 below.

5. TDL-Lite

krom

is PS

PACE

-complete

Consider now the Krom fragment TDL-Litekrom of TDL-Litebool with atomic formulas of the form

D1vD2, ¬D1vD2, D1v ¬D2, D(ai), R(ai, aj),

where conceptsD1, D2are formed from basic conceptsB by means ofonly:

D ::= B | D. (20)

(8)

We can still apply all temporal operators and the Booleans to formulas. (Note that spatio-temporal logics of a similar kind were considered in [15] and [9]. Note also that satisfi- ability for the underlying DLDL-Litekromis NLOGSPACE- complete [2].)

It is readily seen that the·[-translations ofTDL-Litekrom formulas can be transformed in a satisfiability preserving way (by introducing abbreviations for nestedoperators) to formulas of the following fragmentQT L1kromofQT L1:

Q(x) ::= Pi(x) | ¬Pi(x), L(x) ::= Q(x) | Q(x),

ϕ ::= ∀x L1(x)∨L2(x)

| L(aj) |

¬ϕ | ϕ1∧ϕ2 | ϕ | ϕ12,

where the Pi are unary predicate symbols and the aj are constants. PredicatesPi(x)and their negations¬Pi(x)will be calledliterals; literalsQ(x)and-prefixed literals will be calledtemporal literals.

In this section we establish (using the quasimodel tech- nique from [14]) a PSPACEupper bound for satisfiability of QT L1kromformulas from which we obtain the following re- sult (using Lemma 8 and an argument similar to the proof of Theorem 4):

Theorem 5. The satisfiability problem forTDL-Litekrom

formulas isPSPACE-complete.

We denote by¬L(x)˙ the formula equivalent to¬L(x) in the above restricted syntax, e.g., ¬˙Pi(x)is¬Pi(x) and¬˙¬Pi(x)isPi(x). For every formula of the form

Q(x), we reserve a unary predicateQ0(x)called thesur- rogateof Q(x). Note that we introduce surrogates only for temporal literals (unlike ‘standard’ quasimodels, here we do not need to explicitly introduce surrogates for other temporal subformulas). Given a formulaψ, denote byψthe result of replacing all subformulas ofψof the formQ(x) by their surrogates.

For a QT L1krom sentence ϕ, let clϕ be the union of sub0ϕ,Σϕand theΞaϕ, fora∈conϕ, wheresub0ϕis the set ofclosedsubformulas ofϕ,conϕthe set of all constants inϕ, and

Λϕ=

Pi(x), ¬Pi(x), Pi(x), ¬Pi(x) |

Pi(x)a predicate inϕ , Σϕ=

∀x(L1(x)∨L2(x)) | L1(x), L2(x)∈Λϕ , Ξaϕ=

L(a) | L(x)∈Λϕ , fora∈conϕ.

Astate candidateCforϕis any subset ofclϕsatisfying the properties

(qs0K) χC=V

ψ∈C∩Σϕψ is satisfiable;

(qs1K) for everyψ∈Σϕ, if χC|=ψ then ψ∈C;

(qs0c) for everyL(a)∈Ξaϕ, ¬L(a)˙ ∈C iff L(a)∈/C;

(qs1c) for everyL1(a), L2(a)∈Ξaϕ,

ifL1(a), L2(a)∈Cthen∀x( ˙¬L1(x)∨¬L˙ 2(x))6∈C;

(qs¬) for every¬ψ∈sub0ϕ, ¬ψ∈C iff ψ /∈C;

(qs) for everyψ1∧ψ2∈sub0ϕ,

ψ1∧ψ2∈C iff ψ1, ψ2∈C.

Let q be a map associating with everyw ∈ Na state candidateq(w)forϕ. We callqaquasimodelforϕif the following conditions hold:

(qm0) ϕ∈q(w0), for somew0≥0;

(qm1) for every∀x(Q1(x)∨Q2(x))∈Σϕ,

∀x(Q1(x)∨Q2(x))∈q(w)

iff ∀x(Q1(x)∨Q2(x))∈q(w+ 1);

(qm2) for everyQ(a)∈Ξaϕ,

Q(a)∈q(w) iff Q(a)∈q(w+ 1);

(qm3) for everyψ∈sub0ϕ,

ψ∈q(w) iff ψ∈q(w+ 1);

(qm4) for every ψ1 U ψ2 ∈ sub0ϕ, ψ1U ψ2 ∈ q(w) iff there is k > 0 such that ψ2 ∈ q(w+k) and ψ1∈q(w+n), for all0< n < k.

Lemma 6. AQT L1kromsentenceϕis satisfiable iff there is a quasimodel forϕ.

Proof. Suppose(M, w0)|=ϕ. Then q(w) =

ψ∈clϕ|(M, w)|=ψ

defines a quasimodel forϕ. Conversely, suppose thatqis a quasimodel forϕ.

Claim 7. If {L1(x), . . . , Lk(x)} ⊆ Λϕ and C is a state candidate forϕ, then

χC ∧ ∃x L1(x)∧ · · · ∧Lk(x)

(21) is satisfiable iff there are no 1 ≤ i, j ≤ k such that

∀x( ˙¬Li(x)∨¬L˙ j(x))∈C.

Proof of claim. As formula (21) is a conjunction of the form∀x χ1(x)∧ ∃x χ2(x), it is satisfiable iff the formula χ1[a]∧χ2[a]is satisfiable, whereais a constant symbol.

Now, if χ1[a]∧χ2[a] is satisfiable then there are no i, j such that∀x( ˙¬Li(x)∨¬L˙ j(x))∈C. Conversely, suppose that there are no suchi, j, butχ1[a]∧χ2[a]is not satisfi- able. Thenχ1[a]|=¬χ2[a]. By(qs0K),χ1[a]is satisfiable.

Moreover as it is a 2-CNF,

χ1[a]|=¬L1[a]∨ · · · ∨ ¬Lk[a]

implies that there are i, j withχ1[a] |= ¬Li[a]∨ ¬Lj[a].

It follows from(qs1K)that¬Li[a]∨ ¬Lj[a]is a conjunct of χ1[a], contrary to our assumption.

(9)

Say thatt⊆Λϕis atypefor a state candidateCif

• L(x)∈t iff ¬L(x)˙ ∈/ t, for everyL(x)∈Λϕ;

• ifL1(x), L2(x)∈tthen∀x( ˙¬L1(x)∨¬L˙ 2(x))6∈C, for everyL1(x), L2(x)∈Λϕ.

By Claim 7, iftis a type forCthenχC∧∃xV

tis satisfiable.

Denote byTwthe set of all types forq(w). A pair of types (t,t0)is calledsuitableifQ(x)∈tiffQ(x)∈t0. Then the following two properties hold:

(succ) for eacht∈Twthere ist0 ∈Tw+1such that(t,t0) is a suitable pair;

(pred) for eacht0 ∈Tw+1there ist∈Twsuch that(t,t0) is a suitable pair.

To show (succ), suppose that t ∈ Tw, but there is no t0 ∈ Tw+1 such that (t,t0) is a suitable pair. Let

Q1(x), . . . ,Qk(x)be all temporal literals of the form

Q(x)int. Then

χq(w+1)∧ ∃x Q1(x)∧ · · · ∧Qk(x)

is not satisfiable. By Claim 7, there are i, j such that

∀x( ˙¬Qi(x)∨ ¬Q˙ j(x)) ∈ q(w+ 1). Then, by (qm1),

∀x( ˙¬Qi(x)∨¬˙Qj(x)) ∈ q(w), and so, by Claim 7, the formulaχq(w)∧ ∃x Q1(x)∧ · · · ∧Qk(x)

is not satisfiable, contrary to our assumption. Property(pred)is proved analogously.

Now we define a setRof ‘runs’ throughqby taking all r∈Q

w∈NTw

such that(r(w), r(w+ 1))is a suitable pair for everyw. By (succ)and(pred), for everywand every typet∈Twthere isr∈Rsuch thatr(w) =t.

Fora∈conϕandw∈N, let twa =

L(x)∈Λϕ|L(a)∈q(w) .

It follows from(qs0c)and(qs1c)that thetwa are types. More- over, by(qm2),(twa,tw+1a )is a suitable pair for every w.

Thus, there isra∈Rwithra(w) =twa, for everyw.

Consider the model M = R, aM0 , . . . , P0M,w, . . . , whereaMj = raj andPiM,w =

r ∈ R | Pi ∈ r(w) . It is readily checked that(M, w0)|=ϕ.

Lemma 8. A QT L1krom-sentence ϕis satisfiable iff there is an ultimately periodical quasimodel q for ϕsuch that q(l1+w) =q(l1+l2+w), for everyw ∈ Nand some l1, l2withl1≤](ϕ)andl2≤kϕ·](ϕ) +](ϕ), where](ϕ) is the number of distinct state candidates forϕandkϕthe number of eventualities inϕ.

Proof. Similar to the proof of [14, Theorem 11.26].

Theorem 9. The satisfiability problem for QT L1krom is PSPACE-complete.

Proof. The upper bound follows from Lemma 8 using an algorithm that first guessesl1 andl2and then tries to con- struct an ultimately periodical quasimodel (see [14, The- orem 11.30]). The lower bound follows from PSPACE- hardness ofLT L(which is a fragment ofQT L1krom).

6. TDL-Lite

horn

is E

XP

S

PACE

-complete

Consider the Horn fragment TDL-Litehorn of TDL-Litebool whose atomic formulas are of the form

D1u · · · uDkvD, D(ai), R(ai, aj), whereD, D1, . . . , Dkare formed from basic conceptsBby means ofonly as in (20). Again we can apply all tempo- ral operators and the Booleans to formulas. (Note that sat- isfiability for the underlying DLDL-Litehornis P-complete [2].)

Theorem 10. The satisfiability problem forTDL-Litehorn

isEXPSPACE-complete.

Proof. The upper bound follows from Theorem 4. The lower one is proved by reduction of theN×2n corridor tiling problem that is known to be EXPSPACE-complete (for details see, e.g., [19, 16]): given an instance(T, τ0, n), whereTis a finite set of tile types,τ0∈Tis a tile type, and n∈Nis given in unary, decide whetherTtiles theN×2n- corridor{(x, y)|x∈N, 0≤y <2n}in such a way that τ0 is placed at(0,0)and the top and bottom sides of the corridor are of some fixed colour, say,white. We construct aTDL-Litehorn formulaϕT ,τ0,n such that (i) its length is polynomial in|T|andn, and (ii)Ttiles theN×2ncorridor (withτ0on(0,0)and with white top and bottom sides) iff ϕT ,τ0,nis satisfiable.

The formulaϕT ,τ0,nwill be constructed in a number of steps. To explain the meaning of its subformulas, let us fix some interpretationIwith some domain∆.

LetSτ, forτ ∈ T, be role names and suppose that the following formula holds inIat 0:

2+F _

τ∈T

> v ∃Sτ

∧ ^

τ6=τ0

2+F ∃Sτu ∃Sτ0 v ⊥ . (22) Then there is a uniquely determined sequenceτ0, τ1, . . . of tile types such that∃SI(m)τm = ∆and(∃Sτm)I(m)6=∅, for everym∈N; see Fig. 1.

Suppose also that the following formulas hold inIat 0:

^

τ∈T

2+F ∃Sτ v ln

j=1Qj u N

, (23)

^

τ∈T

2+F ∃SτuNv ⊥

, (24)

2+F NvN

. (25)

Referenzen

ÄHNLICHE DOKUMENTE

If two or more containers are used per diet per enclosure, containers shall be presented in pairs (one of bait .and one of field rodent challenge diet),

Con be used with o single oddress to chonge sign of field Product in low-order. ions of

If a single protection domain is not established, then any user who does not have an account on a particular remote machine running TRFS can nonetheless access

These notes describe how to preserve and restore commonly customized system configuration files and directories so that the new system operates as expected.. Note that a

If seQ TCP/IP is not installed, if you already have this maintenance supplement on your system, or if you are not in system maintenance mode, custom tenninates at this

Just as classical description logics, fuzzy DLs are based on concept descriptions built from the mutually disjoint sets N C , N R and N I of concept names, role names, and

Peñaloza, Are fuzzy description logics with general concept inclusion axioms decidable?, in: Proceedings of the 2011 IEEE International Conference on Fuzzy Systems (FUZZ-IEEE’11),

Even though our motivation are context DLs that are decidable in the presence of rigid roles, we still analyze the complexity of deciding consistency in all three cases (i.e.