Definitioncore
Stable model semantics
Also called Gelfond-Lifschitz semantics, answer set semantics.
A set of atoms is a stable model of a normal program when it equals the least model of the program's reduct by that set. A program can have no, one or many stable models.
The stable model semantics gives a normal logic program a set of intended models, the stable models. A candidate set of true atoms is stable when the program, with each read as "", derives exactly . Gelfond and Lifschitz (1988) proposed it as a reading of negation as failure close to autoepistemic logic, and it became the basis of answer set programming. The transformation it uses is defined on the Gelfond-Lifschitz reduct page. This page gives the semantics, its main properties and its relation to the other readings of negation.
Definition
Let be a ground normal program, with rules . For a set of atoms, the reduct deletes each rule with some and then deletes all negative literals. A set is a stable model (or answer set) of if
where is the least model of a definite program. A program with variables has the stable models of its ground instance. A constraint is written as with a new atom ; it removes the stable models in which its body is true.
An equivalent form uses unfounded sets. A set is unfounded for if each rule with its head in has a positive body atom outside or in , or a negative body literal with . Then is stable if and only if is a model of and no nonempty subset of is unfounded for . The atoms of a stable model are true for a reason that does not lean on themselves.
Examples and non-examples
- Two models. , , has the stable models and . The reduct by is , with least model , so is not stable.
- A constraint selects. , , has the single stable model . For , the reduct contains , so is derived; for , the rule for is deleted and is not derived.
- No model. has no stable model.
- Self support is rejected. has the stable model only, although is a model of its completion.
- Not classical. has the one stable model , although the classical formula also has the minimal model .
- Graph coloring. For each vertex and colors , rules with , and a constraint for each edge and color . The stable models are the proper 3-colorings.
Related definitions
- Properties. Every stable model is a minimal model of and a supported model (, a model of the completion). No stable model is a proper subset of another. Adding a fact can remove stable models and create new ones, so the semantics is nonmonotonic.
- Stratified programs. A stratified program has exactly one stable model, its standard model (Gelfond and Lifschitz 1988).
- Well-founded semantics. The atoms true in the well-founded model are in every stable model, and the false ones are in none. The well-founded model can be weaker: for , , , , the atom is in both stable models but undefined in the well-founded model. If the well-founded model is total, it is the unique stable model.
- Completion and loops. For tight programs the stable models are the models of the completion (Fages' theorem). In general they are the models of the completion that satisfy every loop formula (Lin and Zhao).
- Modularity. The splitting set theorem computes stable models layer by layer, and strong equivalence says when one part of a program can be replaced by another.
- Complexity. To decide whether a finite ground program has a stable model is NP-complete (Marek and Truszczyński 1991). Solvers such as Smodels and clasp search for them.
- Extensions. Disjunctive programs use minimal models of the reduct, and choice rules and strong negation are part of the answer set language.
References
- Michael Gelfond and Vladimir Lifschitz, The stable model semantics for logic programming, in Robert A. Kowalski and Kenneth A. Bowen (eds.), Logic Programming: Proceedings of the Fifth International Conference and Symposium, MIT Press, 1070 to 1080 (1988), the definition of stable models and the result for stratified programs
- V. Wiktor Marek and Mirosław Truszczyński, Autoepistemic logic, Journal of the ACM 38(3), 588 to 619 (1991), the NP-completeness of the existence of a stable model
- Allen Van Gelder, Kenneth A. Ross and John S. Schlipf, The well-founded semantics for general logic programs, Journal of the ACM 38(3), 620 to 650 (1991), the relation between the well-founded model and the stable models, and the characterization by unfounded sets
- Vladimir Lifschitz, Answer Set Programming, Springer (2019), the chapters on stable models of propositional programs and their properties
- Martin Gebser, Roland Kaminski, Benjamin Kaufmann and Torsten Schaub, Answer Set Solving in Practice, Morgan and Claypool (2012), the chapter on the stable model semantics and the characterization by completion and loop formulas
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 9AF70E Edit this page History Report an error Markdown