Algorithm Search⌘K

Theoremadvanced

EXPTIME-completeness of ALC with general TBoxes

Also called ALC general TBox complexity.

Concept satisfiability in ALC with respect to general concept inclusions is EXPTIME-complete.

Once a TBox may contain arbitrary inclusions C⊑DC \sqsubseteq D, deciding whether an ALC concept is satisfiable becomes EXPTIME-complete. Without a TBox the problem is in PSPACE (the PSPACE theorem). A cyclic inclusion such as A⊑∃r.AA \sqsubseteq \exists r.A forces infinite paths, so models no longer have bounded depth, and the problem can encode a machine that runs for exponentially many steps. The upper bound is an elimination of types in exponential time; the lower bound encodes an alternating Turing machine with polynomial space.

Statement

ALC concepts use concept names, ⊤\top, ⊥\bot, ¬\neg, ⊓\sqcap, ⊔\sqcup, ∃r.C\exists r.C and ∀r.C\forall r.C. A general TBox T\mathcal T is a finite set of general concept inclusions X⊑YX \sqsubseteq Y, where XX and YY are any ALC concepts, so cycles are allowed. The input size nn is the number of symbols of the concept and of all the inclusions. There are no number restrictions, so the coding of numbers does not matter. CC is satisfiable with respect to T\mathcal T if some model II of T\mathcal T has CI≠∅C^I \ne \emptyset.

Theorem. Each of the following problems is EXPTIME-complete under polynomial-time reductions.

  1. Given CC and a general TBox T\mathcal T, decide whether CC is satisfiable with respect to T\mathcal T.
  2. Given CC, DD and T\mathcal T, decide whether C⊑TDC \sqsubseteq_{\mathcal T} D, that is, CI⊆DIC^I \subseteq D^I in every model II of T\mathcal T.
  3. Given T\mathcal T, decide whether T\mathcal T has a model.

Satisfiability is decided in time 2O(n)2^{O(n)}. Hardness holds already when CC is a conjunction of concept names.

In plain words

A TBox with general rules can say things like "every person has a parent who is a person". Rules like this can force models that never end. The question is then much harder than without rules. An algorithm can still answer it in exponential time: it lists every possible kind of object, described by the set of subconcepts that the object makes true, and it throws away kinds that need a neighbor that does not exist, until nothing changes. On the other side, rules can describe the steps of a machine that branches and uses a polynomial amount of memory. Such machines can solve every problem that takes exponential time, so no faster general method is expected.

Proof

The full proof is in the proof file below. Here is its plan.

Upper bound. Let CTC_{\mathcal T} be the negation normal form of the conjunction of ¬X⊔Y\neg X \sqcup Y over the inclusions. A model of T\mathcal T is an interpretation in which every element is in CTC_{\mathcal T}. Let cl\mathrm{cl} be the subconcepts of CC and CTC_{\mathcal T}, closed under negation in normal form, so ∣cl∣=O(n)|\mathrm{cl}| = O(n). A type is a subset of cl\mathrm{cl} that contains CTC_{\mathcal T}, holds exactly one of each concept and its negation, and respects ⊓\sqcap and ⊔\sqcup. Start with all types, at most 2∣cl∣2^{|\mathrm{cl}|} of them. Remove, again and again, each type tt with some ∃r.D∈t\exists r.D \in t for which no remaining type contains DD and all EE with ∀r.E∈t\forall r.E \in t. Accept if a remaining type contains CC. There are at most 2∣cl∣2^{|\mathrm{cl}|} rounds of 2O(∣cl∣)2^{O(|\mathrm{cl}|)} steps each. The remaining types, with an rr-edge from tt to t′t' when t′t' contains every EE with ∀r.E∈t\forall r.E \in t, form a model of T\mathcal T in which each type is in exactly its own concepts. In the other direction, the set of concepts that hold at an element of a model is a type, and it is never removed, because the successors of the element give it its witnesses.

Lower bound. By the theorem of Chandra, Kozen and Stockmeyer, every language in EXPTIME is decided by an alternating machine MM in polynomial space p(n)p(n), and we may assume that every branch halts. For an input ww, concept names SqS_q, HiH_i and Ti,aT_{i,a} describe the state, the head position and the content of each of the p(n)p(n) cells, and a role rμr_\mu stands for each move μ\mu. The TBox says that each element is one configuration, that an existential configuration has a successor for some applicable move and a universal one for every applicable move, that each move changes the state, the head and the cell under it as μ\mu says, that the other cells keep their contents, and that the rejecting state is empty. A model of the TBox that contains the initial configuration contains an accepting computation tree, by induction on the height of the computation from each configuration. In the other direction, the set of accepting configurations is a model. The TBox has O(p(n)2)O(p(n)^2) axioms of size O(p(n))O(p(n)).

Subsumption and consistency. C⊑TDC \sqsubseteq_{\mathcal T} D if and only if C⊓¬DC \sqcap \neg D is unsatisfiable with respect to T\mathcal T. CC is satisfiable with respect to T\mathcal T if and only if T∪{⊤⊑∃u.C}\mathcal T \cup \{\top \sqsubseteq \exists u.C\} has a model, for a new role name uu.

For example, take T={A1⊑∃r.A2, A2⊑∃r.A3, A3⊑⊥}\mathcal T = \{A_1 \sqsubseteq \exists r.A_2,\ A_2 \sqsubseteq \exists r.A_3,\ A_3 \sqsubseteq \bot\} and C=A1C = A_1. A type is fixed by its choice of A1A_1, A2A_2, A3A_3, ∃r.A2\exists r.A_2 and ∃r.A3\exists r.A_3, and the inclusions leave 9 types, none with A3A_3. The first round removes the 6 types that contain ∃r.A3\exists r.A_3, among them every type with A2A_2. The second round removes the 2 types that contain ∃r.A2\exists r.A_2, among them every type with A1A_1. One type is left, with none of the five concepts, and A1A_1 is unsatisfiable.

Consequences

  • Tableau algorithms. The ALC tableau with blocking is a decision procedure for general TBoxes, but its standard worst-case bound is doubly exponential, so it is not optimal. Tableaux that reach the EXPTIME bound cache the results of node labels that were seen before; see Donini and Massacci (2000) and the global caching of Goré and Nguyen (2013). Practical reasoners, for example those based on the hypertableau calculus, put their effort into the cases that occur in real ontologies.
  • Classification. Subsumption between all pairs of names, and so classification of a TBox, takes exponential time in the worst case.
  • Tractable fragments. The hardness shows why tractable description logics restrict the constructors. In EL subsumption with respect to general TBoxes is in polynomial time.
  • Modal logic. By Schild's correspondence, the theorem is the same as the EXPTIME-completeness of multimodal K with the universal modality.

Tightness

  • Acyclic TBoxes. If the TBox only defines concept names, without cycles, the problem stays in PSPACE (Lutz 1999), so general inclusions are what raise the complexity.
  • Bound. The time bound 2O(n)2^{O(n)} cannot be improved to a polynomial, because P is a proper subset of EXPTIME by the time hierarchy theorem.
  • Larger logics. Some extensions of ALC are harder. For example, SROIQ, the logic of OWL 2 DL, is N2EXPTIME-complete (Kazakov 2008).
Proof: ALC concept satisfiability with respect to general TBoxes is EXPTIME-completefull

ALC concepts are built from concept names, ⊤\top and ⊥\bot with ¬\neg, ⊓\sqcap, ⊔\sqcup, ∃r\exists r and ∀r\forall r. A general TBox T\mathcal T is a finite set of inclusions X⊑YX \sqsubseteq Y between arbitrary concepts. An interpretation II is a model of T\mathcal T if XI⊆YIX^I \subseteq Y^I for each inclusion. CC is satisfiable with respect to T\mathcal T if CI≠∅C^I \ne \emptyset for some model II of T\mathcal T. The input size nn is ∣C∣|C| plus the sum of the sizes of the inclusions.

For a concept DD in negation normal form (NNF), write ¬˙D\dot\neg D for the NNF of ¬D\neg D. Let CTC_{\mathcal T} be the NNF of the conjunction of the concepts ¬X⊔Y\neg X \sqcup Y for X⊑YX \sqsubseteq Y in T\mathcal T, and CT=⊤C_{\mathcal T} = \top when T\mathcal T is empty. A model of T\mathcal T is the same as an interpretation in which every element is in CTC_{\mathcal T}.

Upper bound by type elimination

Let cl\mathrm{cl} be the smallest set that contains the NNF of CC and CTC_{\mathcal T} and is closed under subconcepts and under ¬˙\dot\neg. Since ¬˙\dot\neg maps the subconcepts of DD to the subconcepts of ¬˙D\dot\neg D, ∣cl∣=O(n)|\mathrm{cl}| = O(n).

A type is a set t⊆clt \subseteq \mathrm{cl} such that

  • CT∈tC_{\mathcal T} \in t and ⊥∉t\bot \notin t, and ⊤∈t\top \in t when ⊤∈cl\top \in \mathrm{cl};
  • for every D∈clD \in \mathrm{cl}, exactly one of DD and ¬˙D\dot\neg D is in tt;
  • D⊓E∈tD \sqcap E \in t if and only if D∈tD \in t and E∈tE \in t;
  • D⊔E∈tD \sqcup E \in t if and only if D∈tD \in t or E∈tE \in t.

There are at most 2∣cl∣2^{|\mathrm{cl}|} types. For a type tt and a role rr, let t/r={E:∀r.E∈t}t/r = \{E : \forall r.E \in t\}. Given a set SS of types, a type t∈St \in S is bad in SS if some ∃r.D∈t\exists r.D \in t has no t′∈St' \in S with {D}∪t/r⊆t′\{D\} \cup t/r \subseteq t'. The algorithm is

S := the set of all types
while some type is bad in S: remove all bad types from S
accept if the NNF of C is in some type of S

Each round removes at least one type, so there are at most 2∣cl∣2^{|\mathrm{cl}|} rounds. A round looks at each pair of types and each existential restriction, which is 2O(∣cl∣)2^{O(|\mathrm{cl}|)} steps. The total time is 2O(n)2^{O(n)}.

Lemma 1 (soundness). Let SS be the final set. Define II with domain SS, AI={t:A∈t}A^I = \{t : A \in t\}, and (t,t′)∈rI(t, t') \in r^I if and only if t/r⊆t′t/r \subseteq t'. Then t∈DIt \in D^I if and only if D∈tD \in t, for every t∈St \in S and D∈clD \in \mathrm{cl}.

Proof. By induction on DD. For AA it is the definition. For ¬A\neg A, t∈(¬A)It \in (\neg A)^I if and only if A∉tA \notin t, if and only if ¬A∈t\neg A \in t by the second condition. The cases ⊤\top, ⊥\bot, ⊓\sqcap and ⊔\sqcup follow from the conditions on types.

∃r.D\exists r.D: if ∃r.D∈t\exists r.D \in t, then tt is not bad in SS, so some t′∈St' \in S has D∈t′D \in t' and t/r⊆t′t/r \subseteq t'. Then (t,t′)∈rI(t, t') \in r^I, and t′∈DIt' \in D^I by induction. Conversely, let (t,t′)∈rI(t, t') \in r^I with t′∈DIt' \in D^I, so D∈t′D \in t' by induction. If ∃r.D∉t\exists r.D \notin t, then ∀r.¬˙D∈t\forall r.\dot\neg D \in t, so ¬˙D∈t/r⊆t′\dot\neg D \in t/r \subseteq t', which is impossible together with D∈t′D \in t'.

∀r.E\forall r.E: if ∀r.E∈t\forall r.E \in t, every rr-successor t′t' of tt has E∈t/r⊆t′E \in t/r \subseteq t', so t′∈EIt' \in E^I by induction. If ∀r.E∉t\forall r.E \notin t, then ∃r.¬˙E∈t\exists r.\dot\neg E \in t, and as above there is t′∈St' \in S with (t,t′)∈rI(t, t') \in r^I and ¬˙E∈t′\dot\neg E \in t'. Then E∉t′E \notin t', so t′∉EIt' \notin E^I by induction, and t∉(∀r.E)It \notin (\forall r.E)^I. □\square

Every type contains CTC_{\mathcal T}, so by Lemma 1 every element of II is in CTIC_{\mathcal T}^I and II is a model of T\mathcal T. If the algorithm accepts, some t∈St \in S contains CC and t∈CIt \in C^I.

Lemma 2 (completeness). Let JJ be a model of T\mathcal T. For each element ee, the set tp(e)={D∈cl:e∈DJ}\mathrm{tp}(e) = \{D \in \mathrm{cl} : e \in D^J\} is a type, and it is never removed.

Proof. tp(e)\mathrm{tp}(e) satisfies the conditions on types by the semantics, and it contains CTC_{\mathcal T} because JJ is a model of T\mathcal T. Suppose that before some round every tp(e)\mathrm{tp}(e) is in SS. If ∃r.D∈tp(e)\exists r.D \in \mathrm{tp}(e), then ee has an rr-successor e′e' in DJD^J, and e′e' is in EJE^J for every ∀r.E∈tp(e)\forall r.E \in \mathrm{tp}(e). So {D}∪tp(e)/r⊆tp(e′)∈S\{D\} \cup \mathrm{tp}(e)/r \subseteq \mathrm{tp}(e') \in S, and tp(e)\mathrm{tp}(e) is not bad. By induction on the rounds no tp(e)\mathrm{tp}(e) is removed. □\square

If CC is satisfiable with respect to T\mathcal T in a model JJ with d∈CJd \in C^J, then tp(d)\mathrm{tp}(d) stays in SS and contains CC, so the algorithm accepts. Together with Lemma 1, the algorithm decides satisfiability with respect to T\mathcal T in time 2O(n)2^{O(n)}.

Lower bound by alternating machines

By the theorem of Chandra, Kozen and Stockmeyer, alternating polynomial space equals EXPTIME. Fix a language L∈L \in EXPTIME and an alternating Turing machine MM that decides LL in space p(n)p(n). We use these standard assumptions on MM:

  • its states are existential states, universal states, and the halting states qaq_a (accept) and qrq_r (reject);
  • for each state qq that does not halt and each symbol aa, the set δ(q,a)\delta(q, a) of moves μ=(q′,b,d)\mu = (q', b, d), with new state q′q', written symbol bb and head step d∈{−1,+1}d \in \{-1, +1\}, is not empty;
  • the head stays on the cells 0,…,p(n)−10, \ldots, p(n) - 1;
  • every branch of every computation halts.

The last assumption costs nothing. A configuration that has an accepting computation tree has one in which no configuration repeats on a branch, so its depth is below the number 2O(p(n))2^{O(p(n))} of configurations. A binary counter of O(p(n))O(p(n)) cells can stop each branch at that depth and reject.

For an input ww of length nn, write p=p(n)p = p(n). Use the concept names SqS_q (the state is qq), HiH_i (the head is on cell ii) and Ti,aT_{i,a} (cell ii holds aa), and one role name rμr_\mu for each move μ\mu. The TBox Tw\mathcal T_w contains, for all qq, aa, i<pi < p and moves μ\mu:

  1. axioms that say that exactly one SqS_q, exactly one HiH_i, and for each ii exactly one Ti,aT_{i,a} hold at each element, such as ⊤⊑⨆qSq\top \sqsubseteq \bigsqcup_q S_q and Sq⊓Sq′⊑⊥S_q \sqcap S_{q'} \sqsubseteq \bot for q≠q′q \ne q';
  2. Sqr⊑⊥S_{q_r} \sqsubseteq \bot;
  3. Sq⊓Hi⊓Ti,a⊑⨆μ∈δ(q,a)∃rμ.⊤S_q \sqcap H_i \sqcap T_{i,a} \sqsubseteq \bigsqcup_{\mu \in \delta(q,a)} \exists r_\mu.\top for existential qq, and the same with ⊓\mathop{\large\sqcap} for universal qq;
  4. Sq⊓Hi⊓Ti,a⊑∀rμ.(Sq′⊓Hi+d⊓Ti,b)S_q \sqcap H_i \sqcap T_{i,a} \sqsubseteq \forall r_\mu.(S_{q'} \sqcap H_{i+d} \sqcap T_{i,b}) for each μ=(q′,b,d)∈δ(q,a)\mu = (q', b, d) \in \delta(q, a);
  5. Hj⊓Ti,a⊑∀rμ.Ti,aH_j \sqcap T_{i,a} \sqsubseteq \forall r_\mu.T_{i,a} for j≠ij \ne i.

The concept CwC_w is Sq0⊓H0⊓⊓i<pTi,wiS_{q_0} \sqcap H_0 \sqcap \mathop{\large\sqcap}_{i<p} T_{i,w_i}, with the blank symbol for i≥ni \ge n. MM is fixed, so Tw\mathcal T_w has O(p2)O(p^2) axioms of size O(p)O(p), and Tw\mathcal T_w and CwC_w are built in polynomial time.

An element ee encodes the configuration with state qq, head position ii and tape c0⋯cp−1c_0 \cdots c_{p-1} if e∈Sq⊓Hi⊓⊓jTj,cje \in S_q \sqcap H_i \sqcap \mathop{\large\sqcap}_j T_{j,c_j}. In a model of Tw\mathcal T_w each element encodes exactly one configuration, by item 1. For a configuration cc and a move μ\mu that applies to it, write cμc_\mu for the configuration that μ\mu produces.

Lemma 3. If II is a model of Tw\mathcal T_w and ee encodes cc, then cc is accepting.

Proof. All branches from cc halt and each configuration has finitely many successors, so by König's lemma the computation tree from cc has a finite height h(c)h(c). We use induction on h(c)h(c). If h(c)=0h(c) = 0, cc halts. Its state is not qrq_r by item 2, so it is qaq_a, and cc accepts. Otherwise let qq, ii and aa be the state, the head position and the symbol under the head. If ee has an rμr_\mu-successor e′e' for some μ∈δ(q,a)\mu \in \delta(q, a), then e′e' encodes cμc_\mu, by item 4 for the changed cell, state and head, and by item 5 for the other cells. If qq is existential, item 3 gives such a successor for some μ\mu; cμc_\mu accepts by induction, so cc accepts. If qq is universal, item 3 gives one for each μ∈δ(q,a)\mu \in \delta(q, a); all cμc_\mu accept, so cc accepts. □\square

Lemma 4. If MM accepts ww, then CwC_w is satisfiable with respect to Tw\mathcal T_w.

Proof. Let the domain of II be the set of accepting configurations, interpret SqS_q, HiH_i and Ti,aT_{i,a} by reading them off, and put (c,cμ)∈rμI(c, c_\mu) \in r_\mu^I when cc does not halt, μ\mu applies to cc, and cμc_\mu accepts. Item 1 holds by construction, and item 2 because no accepting configuration is in state qrq_r. An accepting existential configuration has an accepting successor, and all successors of an accepting universal configuration accept, so item 3 holds. Each rμr_\mu-edge goes from cc to cμc_\mu, so items 4 and 5 hold. The initial configuration accepts and is in CwIC_w^I. □\square

By Lemmas 3 and 4, w∈Lw \in L if and only if CwC_w is satisfiable with respect to Tw\mathcal T_w. So the problem is EXPTIME-hard.

Subsumption and consistency

C⊑TDC \sqsubseteq_{\mathcal T} D holds if and only if C⊓¬DC \sqcap \neg D is unsatisfiable with respect to T\mathcal T, and CC is satisfiable with respect to T\mathcal T if and only if C̸⊑T⊥C \not\sqsubseteq_{\mathcal T} \bot. EXPTIME is closed under complement, so subsumption with respect to general TBoxes is EXPTIME-complete. T\mathcal T has a model if and only if ⊤\top is satisfiable with respect to T\mathcal T, which is in EXPTIME. Conversely, for a role name uu that does not occur in T\mathcal T or CC, CC is satisfiable with respect to T\mathcal T if and only if T∪{⊤⊑∃u.C}\mathcal T \cup \{\top \sqsubseteq \exists u.C\} has a model: from a model of T\mathcal T with an element d∈CId \in C^I, add the edge (e,d)(e, d) to uu for every element ee. So consistency of a general TBox is EXPTIME-complete too. ■\blacksquare

History

Fischer and Ladner proved in 1979 that propositional dynamic logic (PDL) is EXPTIME-hard, by an encoding of alternating machines with linear space. In the same year Pratt gave a decision procedure for PDL in exponential time, by eliminating Hintikka sets that cannot be satisfied. Chandra, Kozen and Stockmeyer published the theory of alternation in 1981. Schild showed in 1991 that ALC is a notational variant of multimodal K and that terminological logics with general inclusions can be translated into PDL, so these bounds apply. The textbook of Baader, Horrocks, Lutz and Sattler (2017) proves the theorem directly for ALC. Optimal tableau procedures came later, from Donini and Massacci in 2000 and from Goré and Nguyen with global caching.

References

  1. Michael J. Fischer and Richard E. Ladner, Propositional dynamic logic of regular programs, Journal of Computer and System Sciences 18(2), 1979, pages 194 to 211 (the EXPTIME lower bound for propositional dynamic logic)
  2. Vaughan R. Pratt, Models of program logics, Proceedings of the 20th Annual Symposium on Foundations of Computer Science (FOCS), 1979, pages 115 to 122 (an exponential time decision procedure for propositional dynamic logic)
  3. Ashok K. Chandra, Dexter C. Kozen and Larry J. Stockmeyer, Alternation, Journal of the ACM 28(1) (1981), pp. 114 to 133 (alternating polynomial space equals deterministic exponential time)
  4. Klaus Schild, A correspondence theory for terminological logics: preliminary report, Proceedings of the 12th International Joint Conference on Artificial Intelligence (IJCAI), 1991, the translation of terminological logics into propositional dynamic logic and the complexity results that follow (general locator)
  5. Francesco M. Donini and Fabio Massacci, EXPTIME tableaux for ALC, Artificial Intelligence 124(1), 2000, pages 87 to 138, tableau calculi for ALC with general TBoxes that run in exponential time
  6. Rajeev Goré and Linh Anh Nguyen, ExpTime tableaux for ALC using sound global caching, Journal of Automated Reasoning 50(4), 2013, pages 355 to 381 (global caching of node labels, and the exponential time bound)
  7. Carsten Lutz, Complexity of terminological reasoning revisited, Proceedings of the 6th International Conference on Logic for Programming and Automated Reasoning (LPAR'99), LNAI 1705, Springer, 1999, ALC satisfiability with respect to acyclic TBoxes stays in PSPACE (general locator)
  8. Yevgeny Kazakov, RIQ and SROIQ are harder than SHOIQ, Proceedings of the 11th International Conference on Principles of Knowledge Representation and Reasoning (KR), 2008, pages 274 to 284 (SROIQ is N2EXPTIME-complete)
  9. Franz Baader, Ian Horrocks, Carsten Lutz and Ulrike Sattler, An Introduction to Description Logic, Cambridge University Press, 2017, Chapter 5 (the complexity of ALC with and without TBoxes)

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH1 sketch
  • a full proof of correctness
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/7HWPD2/text.yaml