Definitionadvanced
Disjunctive logic program
Also called disjunctive answer set program.
A program whose rule heads are disjunctions of atoms, with answer sets defined as minimal models of the reduct.
A disjunctive logic program allows rules such as , which say that when holds, at least one of and holds, without saying which. Gelfond and Lifschitz (1991) gave these programs a semantics that extends stable models: an answer set is a minimal model of the reduct. Disjunction expresses incomplete information directly, and it makes the existence of an answer set -complete, one level above normal programs.
Definition
Let be a finite set of atoms. A disjunctive rule is an expression
with atoms , and . The head is , and the body has the positive part and the negative part . A disjunctive program is a finite set of disjunctive rules. It is normal if every head has one atom and positive if every is empty.
A set is a model of a positive program if for each rule of with , the head meets . A model is minimal if no proper subset of it is a model. A positive disjunctive program can have several minimal models, unlike a positive normal program, which has a least model.
For a disjunctive program and , the reduct deletes every rule with and deletes the negative body of the other rules. is an answer set of if is a minimal model of (Gelfond and Lifschitz 1991). For a normal program, this is the stable model condition, since the least model is the only minimal model.
Head cycles. The positive dependency graph of has an edge from to for each rule with and . is head-cycle-free if no rule has two distinct head atoms in the same strongly connected component of this graph (Ben-Eliyahu and Dechter 1994). Shifting replaces each rule by the normal rules
For head-cycle-free programs, shifting preserves the answer sets.
Examples and non-examples
- One disjunction. The program has the answer sets and . The set is a model of the reduct but not a minimal one, so it is not an answer set.
- Disjunction is not exclusive. The program , , has the single answer set : both head atoms are true because other rules force them. Without the fact , the program , has the single answer set .
- Disjunction with negation. The program , has the answer sets and . For the reduct is , whose minimal models are and , and is one of them.
- A head cycle. The program , , has the single answer set . The atoms and form a cycle and are both in the head of the first rule, so the program is not head-cycle-free. Its shifted program , , , has no answer set.
- Non-example: a choice rule. The choice rule has the four answer sets . A choice rule does not ask for minimality and is not a disjunctive rule.
- Non-example: classical disjunction. In classical logic, has the three models . The answer set semantics keeps only the minimal ones, so does not entail classically but does make false in every answer set.
- Non-example: a constraint. The rule has an empty head, so it is not a disjunctive rule with . It can be written with a new atom .
Related definitions
- Normal program and stable model. A disjunctive program with in every rule is a normal program, and its answer sets are its stable models. Existence is NP-complete for normal programs (Marek and Truszczyński) and -complete for disjunctive programs.
- Minimal models and circumscription. For a positive disjunctive program, the answer sets are the minimal models. Reasoning over minimal models is also the propositional core of circumscription.
- Extended disjunctive program. Gelfond and Lifschitz (1991) also allow classical negation in heads and bodies. For the consistent answer sets, treat as a new atom and add the constraint , so this extension adds no complexity.
- Disjunctive solvers. DLV (Leone et al. 2006) computes answer sets of disjunctive programs with a candidate search and a separate minimality check, which matches the two levels of the complexity.
References
- 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 with classical negation, by the reduct and minimal models
- 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), the definition of head-cycle-free programs and the proof that shifting preserves their answer sets
- 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 complexity of answer sets of propositional disjunctive programs
- 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 language of disjunctive programs supported by DLV
Where this leads
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 DBCEQ3 Edit this page History Report an error Markdown