Algorithm Search⌘K

Theoremresearch

Sigma2P-completeness of default logic

Also called Gottlob default logic complexity.

Deciding whether a propositional default theory has an extension, or credulous entailment, is Sigma2P-complete.

Reasoning with defaults is harder than classical reasoning by exactly one level of the polynomial hierarchy. Gottlob (1992) proved that, for finite propositional default theories, deciding whether an extension exists and deciding whether a formula is in some extension are Σ2p\Sigma_2^p-complete, and deciding whether a formula is in every extension is Π2p\Pi_2^p-complete. The upper bound comes from guessing which defaults fire and checking the guess with polynomially many calls to a SAT oracle. The lower bound encodes a quantified Boolean formula ∃X∀Yψ\exists X \forall Y \psi with one pair of defaults per variable of XX.

Statement

A finite propositional default theory is a pair (W,D)(W, D) of a finite set WW of propositional formulas and a finite set DD of defaults α:β1,…,βn/γ\alpha : \beta_1, \ldots, \beta_n / \gamma over finitely many atoms. The input size is the total length of WW, DD and the query φ\varphi.

Theorem (Gottlob 1992). For finite propositional default theories:

  1. EXT, deciding whether (W,D)(W, D) has an extension, is Σ2p\Sigma_2^p-complete.
  2. CRED, deciding whether φ\varphi is in some extension of (W,D)(W, D), is Σ2p\Sigma_2^p-complete.
  3. SKEP, deciding whether φ\varphi is in every extension of (W,D)(W, D), is Π2p\Pi_2^p-complete.

CRED and SKEP are already hard for theories with W=∅W = \emptyset and only normal, prerequisite-free defaults. EXT is already hard for such theories plus one default that is not normal. Hardness is under polynomial-time many-one reductions.

In plain words

A default reasoner has to do two things. It must choose which rules with exceptions to use, and for each choice it must check, with ordinary logic, that the choice is stable: every rule used is allowed and every rule left out is really blocked. The choosing is like an NP search, and each check is a set of satisfiability tests. Gottlob showed that this "search over choices, each checked with a SAT solver" pattern is not only enough but needed: unless the polynomial hierarchy collapses, no method can turn default reasoning into a single SAT problem of polynomial size.

Proof

Write Th(S)\mathrm{Th}(S) for the classical consequences of SS, cons(G)\mathrm{cons}(G) for the conclusions of a set GG of defaults, and for G⊆DG \subseteq D let EG=Th(W∪cons(G))E_G = \mathrm{Th}(W \cup \mathrm{cons}(G)).

Lemma. For a set EE, define G0=∅G_0 = \emptyset and Gi+1={d∈D:pre(d)∈Th(W∪cons(Gi)), ¬β∉E for each justification β of d}G_{i+1} = \{d \in D : \mathrm{pre}(d) \in \mathrm{Th}(W \cup \mathrm{cons}(G_i)),\ \neg\beta \notin E \text{ for each justification } \beta \text{ of } d\}. The sets grow, so they become constant at some G∗=G∣D∣G^* = G_{|D|}. Then Γ(E)=Th(W∪cons(G∗))\Gamma(E) = \mathrm{Th}(W \cup \mathrm{cons}(G^*)).

Proof. Let T=Th(W∪cons(G∗))T = \mathrm{Th}(W \cup \mathrm{cons}(G^*)). It contains WW and is closed. If a default has its prerequisite in TT and its justifications consistent with EE, it is in G∣D∣+1=G∗G_{|D|+1} = G^*, so its conclusion is in TT. As Γ(E)\Gamma(E) is the least such set, Γ(E)⊆T\Gamma(E) \subseteq T. Conversely, by induction on ii, every conclusion of GiG_i is in Γ(E)\Gamma(E): a default of Gi+1G_{i+1} has its prerequisite in Th(W∪cons(Gi))⊆Γ(E)\mathrm{Th}(W \cup \mathrm{cons}(G_i)) \subseteq \Gamma(E) and passes the justification test, so its conclusion is in Γ(E)\Gamma(E). Hence T⊆Γ(E)T \subseteq \Gamma(E). □\square

So every extension EE equals EG∗E_{G^*} for a subset G∗G^* of DD.

Membership. For EXT, guess G⊆DG \subseteq D and accept when EGE_G is an extension. To check this, compute G∗G^* for E=EGE = E_G by the iteration of the lemma. Each round makes at most ∣D∣|D| tests "W∪cons(Gi)⊨pre(d)W \cup \mathrm{cons}(G_i) \models \mathrm{pre}(d)" (one coNP question) and one test "W∪cons(G)∪{β}W \cup \mathrm{cons}(G) \cup \{\beta\} is satisfiable" (one NP question) for each justification β\beta in DD, and there are at most ∣D∣|D| rounds. Then test Th(W∪cons(G∗))=EG\mathrm{Th}(W \cup \mathrm{cons}(G^*)) = E_G by checking that each side entails each formula of the other, again polynomially many coNP questions. By the lemma, the test succeeds exactly when Γ(EG)=EG\Gamma(E_G) = E_G. A nondeterministic polynomial-time machine with an NP oracle does all of this, so EXT is in Σ2p\Sigma_2^p. For CRED, also check W∪cons(G)⊨φW \cup \mathrm{cons}(G) \models \varphi. For the complement of SKEP, check W∪cons(G)⊭φW \cup \mathrm{cons}(G) \not\models \varphi instead. So CRED is in Σ2p\Sigma_2^p and SKEP is in Π2p\Pi_2^p.

The gadget. Let ψ\psi be a formula over disjoint sets of atoms XX and YY. Put W=∅W = \emptyset and DX={:x/x, :¬x/¬x  for x∈X}D_X = \{ : x / x,\ : \neg x / \neg x \ \text{ for } x \in X\}. For an assignment τ\tau of XX let LτL_\tau be the set of the literals over XX that τ\tau makes true. Let DD be DXD_X plus extra defaults whose conclusions are ψ\psi or a fresh atom. Claim: in every extension EE of (∅,D)(\emptyset, D), exactly one of the two defaults for each x∈Xx \in X applies, so E⊇LτE \supseteq L_\tau for one τ\tau. Indeed, if EE is inconsistent, every justification fails, so E=Th(∅)E = \mathrm{Th}(\emptyset), which is consistent, a contradiction. As EE is consistent, xx or ¬x\neg x is consistent with EE, so at least one of the two defaults applies, and both cannot apply, since then x,¬x∈Ex, \neg x \in E.

CRED is Σ2p\Sigma_2^p-hard. Reduce from the truth of ∃X∀Yψ\exists X \forall Y \psi, which is Σ2p\Sigma_2^p-complete (see QBF). Take D=DXD = D_X. By the claim and the lemma, each extension is Th(Lτ)\mathrm{Th}(L_\tau), and for every τ\tau the set Th(Lτ)\mathrm{Th}(L_\tau) is one, because exactly the defaults for LτL_\tau pass the test. Now ψ∈Th(Lτ)\psi \in \mathrm{Th}(L_\tau) exactly when ψ\psi holds for τ\tau and every assignment of YY. So ψ\psi is in some extension exactly when ∃X∀Yψ\exists X \forall Y \psi is true.

SKEP is Π2p\Pi_2^p-hard. Reduce from ∀X∃Yψ\forall X \exists Y \psi. Take D=DX∪{:ψ/ψ}D = D_X \cup \{ : \psi / \psi\}. By the claim, an extension is Th(Lτ)\mathrm{Th}(L_\tau) or Th(Lτ∪{ψ})\mathrm{Th}(L_\tau \cup \{\psi\}). If Lτ∪{ψ}L_\tau \cup \{\psi\} is satisfiable, the default :ψ/ψ: \psi / \psi is not blocked by either set, so only Th(Lτ∪{ψ})\mathrm{Th}(L_\tau \cup \{\psi\}) is a fixed point, and it is one. If it is unsatisfiable, the default is blocked, and the extension is Th(Lτ)\mathrm{Th}(L_\tau), which does not contain ψ\psi. So ψ\psi is in every extension exactly when ψ\psi is satisfiable together with every LτL_\tau, that is, when ∀X∃Yψ\forall X \exists Y \psi is true.

EXT is Σ2p\Sigma_2^p-hard. Reduce from ∃X∀Yψ\exists X \forall Y \psi. Take a fresh atom zz and D=DX∪{dz}D = D_X \cup \{d_z\} with dz=:¬ψ∧¬z/zd_z = : \neg\psi \wedge \neg z / z. If dzd_z applies in an extension EE, then z∈Ez \in E, so its own justification is inconsistent with EE, which is a contradiction. So dzd_z does not apply, and by the claim E=Th(Lτ)E = \mathrm{Th}(L_\tau). This is an extension exactly when dzd_z is blocked, that is, when Lτ⊨ψ∨zL_\tau \models \psi \vee z. As zz does not occur in LτL_\tau or ψ\psi, this holds exactly when Lτ⊨ψL_\tau \models \psi. So an extension exists exactly when ∃X∀Yψ\exists X \forall Y \psi is true.

Each reduction builds 2∣X∣+12|X| + 1 defaults of total size O(∣ψ∣+∣X∣)O(|\psi| + |X|) in polynomial time. ■\blacksquare

Consequences

  • No polynomial encoding into SAT. If any of the three tasks had a polynomial-time reduction to SAT, then Σ2p=NP\Sigma_2^p = \mathrm{NP} and the polynomial hierarchy would collapse to its first level. Practical default reasoners therefore use a QBF solver, or a guess-and-check loop in which one SAT solver proposes generating sets and another refutes them, in the style of CEGAR.
  • Autoepistemic logic. The same three results hold for stable expansions of finite propositional autoepistemic theories (Niemelä 1990, Gottlob 1992; Thomas and Vollmer 2010, Theorem 4.6). Membership uses Niemelä's finite characterization of expansions by full sets of subformulas LφL\varphi.
  • Related second-level problems. Propositional circumscription inference is Π2p\Pi_2^p-complete, the existence of an abductive explanation is Σ2p\Sigma_2^p-complete, and so is the existence of an answer set of a disjunctive program. All of these come from the same pattern: a minimality or fixed-point test that needs a coNP check inside an NP guess.
  • The program fragment. When the justifications are negated atoms, the prerequisites are conjunctions of atoms, the conclusions are atoms and W=∅W = \emptyset, the theory is a normal logic program, and the entailment checks become polynomial. Existence then drops to NP, as the page on stable model existence shows.
  • Model checking. Deciding whether a given interpretation is a model of some extension stays on the second level: Liberatore and Schaerf (2005) showed that this model-checking problem is Σ2p\Sigma_2^p-complete (Thomas and Vollmer 2010, Section 3).

Tightness

The upper bounds match the lower bounds, so the classes are exact. The hardness also survives strong restrictions: in the proof, WW is empty, every default for CRED and SKEP is normal and prerequisite-free, and only one default is not normal for EXT. That one default cannot be removed: every normal theory has an extension (Reiter 1980), so EXT is trivial for normal theories. The hardness disappears only when the formulas themselves are restricted, for example to literals and Horn clauses. Kautz and Selman (1991) and Stillman (1990) found such fragments in which some tasks drop to NP or to polynomial time (Thomas and Vollmer 2010, Section 3).

History

Reiter (1980) defined default logic and observed that it is not semi-decidable in the first-order case. The exact propositional complexity was open until 1992. Gottlob (1992) proved the Σ2p\Sigma_2^p and Π2p\Pi_2^p completeness results for default logic and for autoepistemic logic, and Stillman (1992) obtained results for default logic independently. Earlier, Kautz and Selman (1991) and Stillman (1990) had shown NP-completeness and polynomial cases for restricted default theories, and Niemelä (1990) had placed autoepistemic reasoning in the second level. Liberatore and Schaerf (2005) later settled the complexity of model checking.

References

  1. Georg Gottlob, Complexity results for nonmonotonic logics, Journal of Logic and Computation 2(3), 397 to 425 (1992), the results for default logic (Sigma2P-completeness of existence and credulous reasoning, Pi2P-completeness of skeptical reasoning) and for autoepistemic logic
  2. Raymond Reiter, A logic for default reasoning, Artificial Intelligence 13(1-2), 81 to 132 (1980), Section 2 (the definition of extensions and the characterization by generating defaults)
  3. Michael Thomas and Heribert Vollmer, Complexity of non-monotonic logics, Bulletin of the EATCS 102 (2010), arXiv:1009.1990, Theorem 3.5 (default logic, citing Gottlob 1992 and Stillman 1992), Theorem 4.6 (autoepistemic logic), Theorem 6.1 (abduction) and the remarks on model checking (Liberatore and Schaerf 2005) and on the fragments of Kautz and Selman and of Stillman

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 proofH0 no proof
  • add a proof in proofs/ (06.5)
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/5VZ41P/text.yaml