Algorithm Search⌘K

Theoremadvanced

PSPACE-completeness of ALC concept satisfiability

Also called Schmidt-Schauss-Smolka complexity theorem.

Satisfiability of ALC concepts with no TBox is PSPACE-complete, by a depth-first tableau and a reduction from QBF.

Schmidt-Schauß and Smolka proved in 1991 that it is PSPACE-complete to decide whether an ALC concept is satisfiable when there is no TBox. The upper bound comes from a tableau that explores a tree model depth first and keeps only one branch in memory. The lower bound is a reduction from the truth of quantified Boolean formulas. The same bound holds for subsumption, and it is the bound of the modal logic K that Ladner proved in 1977.

Statement

ALC concepts are built from concept names, ⊤\top and ⊥\bot with negation ¬\neg, conjunction ⊓\sqcap, disjunction ⊔\sqcup, existential restriction ∃r.C\exists r.C and universal restriction ∀r.C\forall r.C, for role names rr. The size ∣C∣|C| of a concept is the number of symbols in it. The constructors have no numbers, so there is no question of unary or binary coding. The TBox is empty: CC is satisfiable if CI≠∅C^I \neq \emptyset for some interpretation II, and C⊑DC \sqsubseteq D if CI⊆DIC^I \subseteq D^I for every II.

Theorem. The following problems are PSPACE-complete under polynomial-time many-one reductions.

  1. Given an ALC concept CC, decide whether CC is satisfiable.
  2. Given ALC concepts CC and DD, decide whether C⊑DC \sqsubseteq D.

Both problems are PSPACE-hard already when there is only one role name. Satisfiability is decided in O(∣C∣2)O(|C|^2) space.

The upper bound stays true for satisfiability with respect to an acyclic TBox, in which every concept name is defined at most once and no name depends on itself (Lutz 1999). This extension is not proved here. With a general TBox the problem is EXPTIME-complete; see the general TBox theorem.

In plain words

To check whether an ALC concept can be true of anything, you build a tree of objects that the concept forces to exist. That tree can be very large, but its depth is at most the nesting depth of the concept. You can explore it one path at a time and forget each path when you are done, so the memory you need grows only with the depth. In the other direction, any puzzle about formulas of the form "for every x there is a y such that ..." can be written as one ALC concept. So ALC is exactly as hard as those puzzles, which are believed to need more than polynomial time.

Proof

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

Upper bound. Put CC in negation normal form. A completion of a set SS of subconcepts of CC is a superset that contains both conjuncts of each conjunction in it, one disjunct of each disjunction in it, and no clash (⊥\bot, or AA together with ¬A\neg A). The procedure SAT(S)\mathrm{SAT}(S) tries every completion S′S' of SS. For each ∃r.D∈S′\exists r.D \in S' it calls itself on the successor set {D}∪{E:∀r.E∈S′}\{D\} \cup \{E : \forall r.E \in S'\}, and it accepts S′S' if all these calls accept. A successor set has smaller role depth than SS, so the recursion has at most ∣C∣+1|C| + 1 levels. Each level stores one completion as a bit vector over the at most 2∣C∣2|C| subconcepts, which also counts the loop, and the position of the current existential restriction. This gives O(∣C∣2)O(|C|^2) space. Soundness builds a tree model from the accepting calls: a new root with an rr-edge to the model of each successor set. Completeness reads the completion off a model: the set of subconcepts that hold at an element is a completion, and each rr-witness of an existential restriction is in every concept of the successor set.

Lower bound. Let φ=Q1p1⋯Qmpm. ψ\varphi = Q_1 p_1 \cdots Q_m p_m.\, \psi be a closed quantified Boolean formula with ψ\psi propositional. With one role rr and concept names P1,…,PmP_1, \ldots, P_m, the concept CφC_\varphi says, for each depth i<mi < m along rr:

  • if Qi+1=∀Q_{i+1} = \forall, there is an rr-successor in Pi+1P_{i+1} and one in ¬Pi+1\neg P_{i+1}; if Qi+1=∃Q_{i+1} = \exists, there is an rr-successor;
  • every rr-successor keeps the values of P1,…,PiP_1, \ldots, P_i;

and at depth mm, the concept ψ′\psi' obtained from ψ\psi by reading pjp_j as PjP_j holds. Each condition at depth ii is put under ii nested ∀r\forall r. There are O(m2)O(m^2) conjuncts of size O(m+∣ψ∣)O(m + |\psi|). A winning strategy for the existential player in φ\varphi gives a tree model of CφC_\varphi. Conversely, in any model of CφC_\varphi, induction from depth mm up to the root shows that the formula that remains after the first ii quantifiers is true under the values at any element at depth ii. So φ\varphi is true if and only if CφC_\varphi is satisfiable.

Subsumption. C⊑DC \sqsubseteq D holds if and only if C⊓¬DC \sqcap \neg D is unsatisfiable, and CC is satisfiable if and only if C⋢⊥C \not\sqsubseteq \bot. PSPACE is closed under complement, so the two problems have the same complexity.

For example, ∀p1∃p2. (p1∨p2)∧(¬p1∨¬p2)\forall p_1 \exists p_2.\, (p_1 \vee p_2) \wedge (\neg p_1 \vee \neg p_2) is true, because p2p_2 can be chosen as the negation of p1p_1. Its concept has four conjuncts:

(∃r.P1⊓∃r.¬P1)  ⊓  ∀r.∃r.⊤  ⊓  ∀r.((¬P1⊔∀r.P1)⊓(P1⊔∀r.¬P1))  ⊓  ∀r.∀r.((P1⊔P2)⊓(¬P1⊔¬P2)).(\exists r.P_1 \sqcap \exists r.\neg P_1) \;\sqcap\; \forall r.\exists r.\top \;\sqcap\; \forall r.\big((\neg P_1 \sqcup \forall r.P_1) \sqcap (P_1 \sqcup \forall r.\neg P_1)\big) \;\sqcap\; \forall r.\forall r.\big((P_1 \sqcup P_2) \sqcap (\neg P_1 \sqcup \neg P_2)\big).

A model has five elements: a root, a child aa in P1P_1 with a child a′a' in P1P_1 and not in P2P_2, and a child bb not in P1P_1 with a child b′b' in P2P_2 only. If the two quantifiers are both ∀\forall, or are swapped to ∃p1∀p2\exists p_1 \forall p_2, the formula is false and the concept is unsatisfiable.

Consequences

  • Subsumption, equivalence and disjointness of ALC concepts without a TBox are PSPACE-complete, by the reductions above.
  • ALC is a notational variant of the multimodal logic Km\mathrm{K}_m (Schild's correspondence). The theorem is the description logic form of Ladner's result that satisfiability in K is PSPACE-complete, and either proof gives the other.
  • A satisfiable ALC concept can need a model of exponential size. When all quantifiers of φ\varphi are ∀\forall, the elements at depth mm of any model of CφC_\varphi realize all 2m2^m assignments, and elements with different assignments are different. The upper bound avoids this size because it never keeps more than one path of the tree.
  • The procedure is deterministic and uses polynomial space. A nondeterministic version that guesses one completion per level also works, and Savitch's theorem turns it into a deterministic one, but this is not needed here.

Tightness

  • General TBoxes. With a general TBox the problem is EXPTIME-complete, so it is not in PSPACE unless PSPACE = EXPTIME. A cyclic inclusion such as A⊑∃r.AA \sqsubseteq \exists r.A removes the bound on the depth of the models.
  • Bounded role depth. If the role depth of the input is at most a fixed kk, the tree model built in the upper bound has at most ∑i≤k∣C∣i\sum_{i \le k} |C|^i nodes, a polynomial. A nondeterministic machine can guess it and check it, so the problem is in NP. It is NP-hard already for k=0k = 0, which is propositional satisfiability, so it is NP-complete.
  • Fewer constructors. The hardness proof uses disjunction, both kinds of restriction and negation of names. Donini and coauthors classified the sublanguages of ALC. For example, ALE has existential and universal restrictions but no disjunction, and its satisfiability problem is in coNP. ALU has disjunction but only the unqualified restriction ∃r.⊤\exists r.\top, and its satisfiability problem is in NP. So neither is PSPACE-hard unless NP = PSPACE. The handbook chapter by Donini gives the full table.
  • One role is enough. The reduction uses a single role name, so the hardness does not come from having many roles.
Proof: ALC concept satisfiability without a TBox is PSPACE-completefull

ALC concepts are built from concept names AA, ⊤\top and ⊥\bot with ¬\neg, ⊓\sqcap, ⊔\sqcup, ∃r\exists r and ∀r\forall r for role names rr. The size ∣C∣|C| is the number of symbols. There is no TBox. A concept is satisfiable if CI≠∅C^I \ne \emptyset in some interpretation II.

Upper bound

Put CC in negation normal form; this is linear time and at most doubles the size. Let sub(C)\mathrm{sub}(C) be its set of subconcepts, so ∣sub(C)∣≤2∣C∣|\mathrm{sub}(C)| \le 2|C|. For a set S⊆sub(C)S \subseteq \mathrm{sub}(C), a completion of SS is a set S′S' with S⊆S′⊆sub(C)S \subseteq S' \subseteq \mathrm{sub}(C) such that

  • D⊓E∈S′D \sqcap E \in S' implies D∈S′D \in S' and E∈S′E \in S';
  • D⊔E∈S′D \sqcup E \in S' implies D∈S′D \in S' or E∈S′E \in S';
  • ⊥∉S′\bot \notin S', and there is no name AA with both AA and ¬A\neg A in S′S'.

For ∃r.D∈S′\exists r.D \in S', the successor set is succ(S′,∃r.D)={D}∪{E:∀r.E∈S′}\mathrm{succ}(S', \exists r.D) = \{D\} \cup \{E : \forall r.E \in S'\}. The procedure is

SAT(S): for each completion S' of S, in a fixed order:
            if SAT(succ(S', ∃r.D)) holds for every ∃r.D in S', return true
        return false

Every concept of a successor set has smaller role depth than the existential or value restriction it came from, so the recursion depth is at most the role depth of CC plus one, and SAT stops.

Lemma 1 (soundness). If SAT(S)(S) returns true, some interpretation has an element in every concept of SS.

Proof. By induction on the largest role depth kk in SS. Let S′S' be the completion that succeeded, and for each ∃r.D∈S′\exists r.D \in S' let Ir,DI_{r,D} be an interpretation with an element er,De_{r,D} in every concept of the successor set, given by induction. Take the disjoint union of the Ir,DI_{r,D}, add a new element dd, put dd in AA exactly when A∈S′A \in S', and add the edges (d,er,D)(d, e_{r,D}) to rr. Then d∈EId \in E^I for every E∈S′E \in S', by induction on EE. A name A∈S′A \in S' holds at dd by construction; for ¬A∈S′\neg A \in S', A∉S′A \notin S' because S′S' has no clash, so d∉AId \notin A^I. Conjunctions and disjunctions follow from the first two conditions. For ∃r.D∈S′\exists r.D \in S' the element er,De_{r,D} is an rr-successor in DD. For ∀r.E∈S′\forall r.E \in S', the rr-successors of dd are exactly the elements er,De_{r,D}, and each of them is in EE because EE is in its successor set. The concepts of the parts Ir,DI_{r,D} do not change in the union, because dd has no incoming edges. □\square

Lemma 2 (completeness). If some interpretation II has an element dd in every concept of SS, then SAT(S)(S) returns true.

Proof. By induction on the largest role depth in SS. The set S′={E∈sub(C):d∈EI}S' = \{E \in \mathrm{sub}(C) : d \in E^I\} is a completion of SS: it contains SS, it satisfies the two closure conditions by the semantics of ⊓\sqcap and ⊔\sqcup, and it has no clash. The loop reaches S′S' unless an earlier completion succeeds. For ∃r.D∈S′\exists r.D \in S', dd has an rr-successor e∈DIe \in D^I, and e∈EIe \in E^I for every ∀r.E∈S′\forall r.E \in S', so ee is in every concept of the successor set, and by induction SAT returns true on it. □\square

By the two lemmas, CC is satisfiable if and only if SAT({C})(\{C\}) returns true.

Space. A call keeps its current completion as a bit vector of length ∣sub(C)∣|\mathrm{sub}(C)|, which also serves as the counter of the loop over all subsets, and the position of the current existential restriction. That is O(∣C∣)O(|C|) bits for each of the at most ∣C∣+1|C| + 1 active calls, so the procedure runs in O(∣C∣2)O(|C|^2) space. The problem is in PSPACE.

Lower bound

We reduce the truth of quantified Boolean formulas, which is PSPACE-complete, to concept satisfiability. Let φ=Q1p1…Qmpm. ψ\varphi = Q_1 p_1 \dots Q_m p_m.\, \psi with Qi∈{∀,∃}Q_i \in \{\forall, \exists\} and ψ\psi propositional over p1,…,pmp_1, \dots, p_m. Use one role rr, concept names P1,…,PmP_1, \dots, P_m, and write ∀ri.E\forall r^i.E for EE under ii nested ∀r\forall r. Let CφC_\varphi be the conjunction of

  1. ∀ri.(∃r.Pi+1⊓∃r.¬Pi+1)\forall r^{i}.(\exists r.P_{i+1} \sqcap \exists r.\neg P_{i+1}) for each i<mi < m with Qi+1=∀Q_{i+1} = \forall, and ∀ri.∃r.⊤\forall r^{i}.\exists r.\top for each i<mi < m with Qi+1=∃Q_{i+1} = \exists;
  2. ∀ri.((¬Pj⊔∀r.Pj)⊓(Pj⊔∀r.¬Pj))\forall r^{i}.\big((\neg P_j \sqcup \forall r.P_j) \sqcap (P_j \sqcup \forall r.\neg P_j)\big) for each i<mi < m and each j≤ij \le i;
  3. ∀rm.ψ′\forall r^{m}.\psi', where ψ′\psi' is ψ\psi with each pjp_j replaced by PjP_j, ∧\wedge by ⊓\sqcap, ∨\vee by ⊔\sqcup and negation by ¬\neg.

There are O(m2)O(m^2) conjuncts of size O(m+∣ψ∣)O(m + |\psi|), so CφC_\varphi is built in polynomial time.

Lemma 3. φ\varphi is true if and only if CφC_\varphi is satisfiable.

Proof. Suppose φ\varphi is true. Build a tree of depth mm in which a node at depth ii stands for an assignment to p1,…,pip_1, \dots, p_i under which the rest of the formula, Qi+1pi+1…Qmpm. ψQ_{i+1} p_{i+1} \dots Q_m p_m.\, \psi, is true. The root stands for the empty assignment. A node at depth i<mi < m gets two children, with pi+1p_{i+1} true and false, when Qi+1=∀Q_{i+1} = \forall, and one child with a value of pi+1p_{i+1} that keeps the rest true when Qi+1=∃Q_{i+1} = \exists; edges are in rr. Put a node in PjP_j when its assignment makes pjp_j true. The root is in every conjunct: the nodes at depth ii have the children that item 1 asks for, children keep the values of the parent as item 2 asks, and the leaves satisfy ψ\psi, which is item 3.

Conversely, let d∈CφId \in C_\varphi^I. Say that ee is at depth ii if some rr-path of length ii leads from dd to ee; then ee satisfies every concept EE for which ∀ri.E\forall r^i.E is a conjunct. For ee at depth ii, let αe\alpha_e assign to pjp_j, j≤ij \le i, the value of e∈PjIe \in P_j^I. We show by induction on m−im - i that Qi+1pi+1…Qmpm. ψQ_{i+1} p_{i+1} \dots Q_m p_m.\, \psi is true under αe\alpha_e. For i=mi = m, e∈ψ′Ie \in \psi'^I, so ψ\psi is true under αe\alpha_e. For i<mi < m, every rr-successor e′e' of ee is at depth i+1i + 1, and by item 2 at ee it agrees with ee on P1,…,PiP_1, \dots, P_i, so αe′\alpha_{e'} extends αe\alpha_e. If Qi+1=∀Q_{i+1} = \forall, item 1 gives successors with pi+1p_{i+1} true and with pi+1p_{i+1} false, and the formula is true under both extensions by induction. If Qi+1=∃Q_{i+1} = \exists, item 1 gives one successor, and the formula is true under its extension. At i=0i = 0, e=de = d and φ\varphi is true. □\square

So concept satisfiability is PSPACE-hard, already with a single role name.

Subsumption

C⊑DC \sqsubseteq D holds if and only if C⊓¬DC \sqcap \neg D is unsatisfiable, and CC is satisfiable if and only if C⋢⊥C \not\sqsubseteq \bot. These are polynomial reductions both ways between satisfiability and the complement of subsumption. PSPACE is closed under complement, so subsumption is PSPACE-complete too. ■\blacksquare

History

Schmidt-Schauß and Smolka introduced ALC in their journal paper of 1991. They gave a tableau-style calculus for it and proved that satisfiability and subsumption are PSPACE-complete. Ladner had proved in 1977 that satisfiability in the modal logics K, T and S4 is PSPACE-complete. Schild observed in 1991 that ALC is a syntactic variant of multimodal K, so Ladner's results apply directly. Lutz showed in 1999 that acyclic TBoxes do not raise the complexity, if the algorithm expands defined names lazily instead of unfolding the TBox first. The textbook of Baader, Horrocks, Lutz and Sattler (2017) gives the upper bound and a lower bound by reduction from QBF.

References

  1. Manfred Schmidt-Schauß and Gert Smolka, Attributive concept descriptions with complements, Artificial Intelligence 48(1), 1991, pages 1 to 26 (the tableau calculus for ALC, and the proof that satisfiability and subsumption are PSPACE-complete)
  2. Richard E. Ladner, The computational complexity of provability in systems of modal propositional logic, SIAM Journal on Computing 6(3), 1977, pages 467 to 480 (satisfiability in the modal logic K is PSPACE-complete)
  3. 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)
  4. Franz Baader, Ian Horrocks, Carsten Lutz and Ulrike Sattler, An Introduction to Description Logic, Cambridge University Press, 2017, Chapter 5 (the complexity of ALC concept satisfiability without a TBox, the PSPACE upper bound and the lower bound)
  5. Franz Baader, Diego Calvanese, Deborah L. McGuinness, Daniele Nardi and Peter F. Patel-Schneider (eds.), The Description Logic Handbook, second edition, Cambridge University Press, 2007, Chapter 3, Complexity of Reasoning, by Francesco M. Donini (the complexity of ALC and of its sublanguages, general locator)

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/VX9NF7/text.yaml