Theoremresearch
Sigma2P-completeness of disjunctive answer sets
Also called Eiter-Gottlob disjunctive complexity.
Deciding whether a propositional disjunctive logic program has an answer set is Sigma2P-complete.
This theorem of Eiter and Gottlob (1993, 1995) shows that disjunction in rule heads makes answer set programming strictly more expressive than normal programs, unless the polynomial hierarchy collapses. For a disjunctive logic program, a candidate answer set must be a minimal model of its reduct, and this minimality test is itself a coNP problem. So the existence question sits at the second level, , of the polynomial hierarchy, and it is complete there by a reduction from 2-QBF. Disjunctive solvers such as DLV pay for this with a second, inner search.
Statement
A finite propositional disjunctive program is a finite set of rules over a finite set of atoms, with and . For , the reduct deletes each rule with some and deletes the negative literals of the other rules. is an answer set of if is a minimal model of the positive program (Gelfond and Lifschitz 1991). For in every rule, this is the stable model of a normal program.
Theorem (Eiter and Gottlob 1995). For finite propositional disjunctive programs:
- deciding whether has an answer set is -complete;
- deciding whether an atom is in some answer set (brave reasoning) is -complete, and hardness holds already for programs without ;
- deciding whether an atom is in every answer set (cautious reasoning) is -complete;
- deciding whether a given set is an answer set (model checking) is coNP-complete.
For head-cycle-free programs (Ben-Eliyahu and Dechter 1994), items 1 and 2 drop to NP and item 3 to coNP, as for normal programs.
In plain words
For an ordinary program you can check a proposed answer by following the rules forward once. With rules that say "one of these atoms is true", that is no longer enough. You must also be sure that no smaller set of atoms would satisfy the rules too, and to be sure of that you must in effect search through all smaller sets. So the problem has two nested searches. The outer search guesses an answer. The inner search tries to find a smaller set that defeats it. Problems of this shape, "is there a choice such that every counter-choice fails?", form their own class, one level above the problems with a single search. This theorem says that disjunctive programs reach exactly that level and no higher.
Proof
Membership. For item 1, guess . Check that satisfies in polynomial time. Then check with one call to an NP oracle that no is a model of ; a model is a polynomial certificate that is not minimal. So the problem is in . Brave reasoning adds the test . Cautious reasoning for fails exactly when has an answer set, where the constraint is written with a new atom , so it is in . Model checking is the minimality test alone, so it is in coNP.
Hardness. The problem "given a DNF formula over disjoint sets and of variables, is true?" is -complete. For a literal , let be the atom if and if , and the same for the variables in . The program has the atoms for , for , and , and the rules
The construction is linear. The proof follows Eiter and Gottlob (1995).
(a) Every answer set contains . If , the reduct contains the fact , so is not a model of .
(b) The answer sets are the sets , where contains exactly one of for each and the corresponding assignment of makes true. By (a), , so the rule is deleted, and the rules and force all of into . Any model of that keeps must keep all of and , so can be minimal only if it contains exactly one of for each . A model that drops keeps , picks at least one of for each , and makes no term body true. A choice of exactly one of for each is such a model exactly when the assignment of it gives makes every term false under . So is minimal exactly when no assignment of falsifies under , that is, when holds under .
By (b), has an answer set if and only if is true. Remove the rule to get a positive program . Its answer sets are its minimal models, the sets of (b) together with the minimal models without , and so is in some answer set of if and only if the formula is true. This gives item 2 for positive programs. Item 3 follows from item 1: with a new atom that occurs in no rule, is in every answer set of exactly when has none. Item 4 is coNP-hard by a similar reduction from the validity of a DNF formula, with empty: is an answer set of exactly when is true.
Examples. For , which is true, has exactly one answer set, , and has the three answer sets , and . For , which is false, has no answer set, and has the two answer sets and , neither of which contains .
Consequences
- Disjunction adds expressive power. Unless the polynomial hierarchy collapses to its first level, disjunctive programs cannot be translated into normal programs in polynomial time with the same answer sets on the original atoms. In particular, the translation that replaces by and (shifting) must fail on some programs.
- Solvers need two searches. A disjunctive solver generates candidates with an NP-style search and checks the minimality of each candidate with a second search, usually a SAT call. DLV (Leone et al. 2006) is built this way.
- Problems at the second level. Every problem in has a polynomial encoding as a disjunctive program, through 2-QBF and the construction above. Normal programs have no such encoding unless the hierarchy collapses.
- Link to other nonmonotonic logics. The main reasoning tasks of circumscription, default logic and autoepistemic logic are also at the second level. The 1993 paper of Eiter and Gottlob applies the disjunctive results to these logics.
Tightness
- Negation is needed for item 1. A positive disjunctive program always has an answer set, because every finite model contains a minimal one and the set of all atoms is a model. So the hardness of existence uses or constraints. The single rule is enough.
- Head cycles are needed. If no rule has two head atoms on a common cycle of the positive dependency graph, shifting is correct and the program becomes a normal program of the same size, so existence is in NP. With a head cycle, shifting can lose answer sets. A small example is , , : it has the answer set , and its shifted version has none.
- Model checking. For normal programs model checking is polynomial; for disjunctive programs it is coNP-complete, so the gap already shows in the inner test.
- Variables. For disjunctive programs with variables and no function symbols, the problem is complete for when the program is part of the input and -complete when the program is fixed (Dantsin, Eiter, Gottlob and Voronkov 2001).
History
Gelfond and Lifschitz (1991) extended stable models to disjunctive programs with classical negation, and called them answer sets. Eiter and Gottlob presented the complexity of disjunctive logic programming at ILPS 1993 and published the full propositional study in 1995, which covered the stable, minimal model and other semantics. Ben-Eliyahu and Dechter (1994) identified head-cycle-free programs as the class where disjunction does not raise the complexity. The DLV system (Leone et al. 2006) was designed for the full case.
References
- Thomas Eiter and Georg Gottlob, On the computational cost of disjunctive logic programming, propositional case, Annals of Mathematics and Artificial Intelligence 15(3-4), 289 to 323 (1995), the results on the stable model semantics of propositional disjunctive programs, existence, brave and cautious reasoning, and model checking
- Thomas Eiter and Georg Gottlob, Complexity results for disjunctive logic programming and application to nonmonotonic logics, in Dale Miller (ed.), Logic Programming: Proceedings of the 1993 International Symposium (ILPS 1993), MIT Press, 266 to 278 (1993), the conference version of the complexity results
- Michael Gelfond and Vladimir Lifschitz, Classical negation in logic programs and disjunctive databases, New Generation Computing 9(3-4), 365 to 385 (1991), the definition of answer sets for disjunctive programs as minimal models of the reduct
- Rachel Ben-Eliyahu and Rina Dechter, Propositional semantics for disjunctive logic programs, Annals of Mathematics and Artificial Intelligence 12(1-2), 53 to 87 (1994), head-cycle-free programs, their translation to normal programs, and the resulting NP bound
- Evgeny Dantsin, Thomas Eiter, Georg Gottlob and Andrei Voronkov, Complexity and expressive power of logic programming, ACM Computing Surveys 33(3), 374 to 425 (2001), the survey of the complexity of disjunctive logic programming, in the propositional case and with variables
- Nicola Leone, Gerald Pfeifer, Wolfgang Faber, Thomas Eiter, Georg Gottlob, Simona Perri and Francesco Scarcello, The DLV system for knowledge representation and reasoning, ACM Transactions on Computational Logic 7(3) (2006), the solver for disjunctive programs and its check of answer set candidates
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.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag 9CD50Z Edit this page History Report an error Markdown