Theoremadvanced
Splitting set theorem
Also called Lifschitz-Turner splitting.
If a set U of atoms contains every body atom of each rule whose head is in U, the stable models of a program are the stable models of its U part, each extended by the stable models of the rest.
The splitting set theorem of Lifschitz and Turner (1994) breaks the computation of stable models into parts. If a set of atoms is closed in one direction, so that the rules that define atoms of mention only atoms of , then the program splits into a bottom part about and a top part about the rest. Each stable model of the whole program is a stable model of the bottom, extended by a stable model of the top in which the atoms of have been replaced by their values. The theorem is the general form of the layer-by-layer evaluation of stratified programs, and it is the standard tool to prove that an answer set program does what it should.
Statement
Let be a ground normal program over the atoms . For a rule , write , and .
- A set is a splitting set for if, for every rule of with , also .
- The bottom is the set of rules of whose head is in , and the top is .
- For a set , the partial evaluation is obtained from the top as follows. Delete each rule with or . From each remaining rule, delete all body literals whose atom is in .
Theorem (Lifschitz and Turner 1994). Let be a splitting set for . A set is a stable model of if and only if , where is a stable model of and is a stable model of .
Then and , because the heads of the bottom are in and those of the top are not. Lifschitz and Turner proved the theorem for programs with disjunction and strong negation; there a splitting set must contain all atoms of a rule as soon as it contains one atom of its head. They also proved a splitting sequence theorem, for a monotone sequence of splitting sets, possibly transfinite.
In plain words
Some parts of a program only feed others. The rules that decide which items are chosen may never look at the rules that check the choice, while the checks look at the choices. The theorem says that such a program can be solved in two rounds. First solve the part that does not look outside itself, and list its solutions. Then, for each solution, put its values into the rest, which becomes simpler, and solve that. Each combination of a first-round solution with a second-round solution is a solution of the whole program, and no solution is lost. The condition is that the first part really does not look at the second, not even through a negation.
Proof
The proof is from Lifschitz and Turner (1994), here for normal programs. It uses the reduct and its least model . Fix , and let , , and . Let .
Lemma 1. .
All atoms of the rules of are in , so , and . Hence . Conversely, the set is closed under : a rule with head in is in and has its body in , so if its body is in the set, it is in and so is its head; a rule with head outside puts its head in . So , and .
Lemma 2. If , then .
A rule of the top gives a rule of when , that is, when and . It gives a rule of when, in addition, , and that rule is . First, is closed under . The bottom rules of are the rules of , and by Lemma 1, so they keep inside . A top rule of with its body in has , so it gives a rule of with body in , and its head is in . So . Second, is closed under . If a rule of from has , then , because . The rule is in , so its head is in . So .
The theorem. If is stable, then . By Lemma 1, , so is a stable model of . Then Lemma 2 applies and gives , so is a stable model of . Conversely, let be a stable model of and one of , and . By Lemma 1, . By Lemma 2, . So , and is stable.
A check by hand. Take
a ← not b. b ← not a. c ← a. d ← not c.
and . The rules for and mention only and , so is a splitting set. The bottom has the stable models and . For , the partial evaluation of the top is , with the stable model . For , the rule is deleted and the evaluation is , with the stable model . So the stable models of the program are and .
Consequences
- Stratified programs. The strata of a stratified program form a chain of splitting sets. Each layer, after partial evaluation, is a definite program, so by the splitting sequence theorem the program has exactly one stable model, its standard model.
- Generate, define and test. An answer set program usually has a part that generates candidates, a part that defines auxiliary atoms and constraints that test. When the atoms of the generating part form a splitting set, the stable models are the candidates for which the rest has a stable model. Constraints in the top only remove candidates. This is how correctness proofs of answer set programs are usually written.
- Evaluation by components. In the dependency graph with positive and negative edges, a set of atoms that contains every atom its atoms depend on is a splitting set. So a topological order of the strongly connected components, with each component after the components it depends on, gives a splitting sequence. Grounders and solvers use this order to evaluate the stratified part of a program completely before search.
- Adding a top part. If new rules have heads outside and the old rules mention only , every stable model of the new program agrees on with a stable model of the old one. If the new rules are definite, each old stable model extends to exactly one new one.
Tightness
The condition on cannot be dropped. Take and , which is not a splitting set, since the rule for mentions . The rules with head in are ; has no rule there, so the only stable model of this part is . Then the rule is deleted, and the procedure gives only . The stable model of is lost.
The condition is one-sided. Rules of the top can mention atoms of in any way, positively or negatively; only the bottom must not look up. Every program has the trivial splitting sets and , and the theorem is useful only when a proper splitting set exists. A program whose atoms all depend on each other, such as , has no proper splitting set.
History
Lifschitz and Turner presented the splitting set theorem and the splitting sequence theorem at the International Conference on Logic Programming in 1994. Their setting includes disjunctive programs with strong negation. The theorem became a basic tool in the theory of answer set programming, and later work extended it to arbitrary propositional theories and first-order programs, and to modules that depend on each other in both directions.
References
- Vladimir Lifschitz and Hudson Turner, Splitting a logic program, in Logic Programming: Proceedings of the Eleventh International Conference on Logic Programming, MIT Press, 23 to 37 (1994), the definitions of splitting sets and partial evaluation, the splitting set theorem and the splitting sequence theorem
- 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
- Vladimir Lifschitz, Answer Set Programming, Springer (2019), the section on splitting and its use in generate and test programs
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 ED99PW Edit this page History Report an error Markdown