language-icon Old Web
English
Sign In

Stable model semantics

The concept of a stable model, or answer set, is used to define a declarative semantics for logic programs with negation as failure. This is one of several standard approaches to the meaning of negation in logic programming, along with program completion and the well-founded semantics. The stable model semantics is the basis ofanswer set programming. The concept of a stable model, or answer set, is used to define a declarative semantics for logic programs with negation as failure. This is one of several standard approaches to the meaning of negation in logic programming, along with program completion and the well-founded semantics. The stable model semantics is the basis ofanswer set programming. Research on the declarative semantics of negation in logic programming was motivated by the fact that the behavior of SLDNF resolution — the generalization of SLD resolution used by Prolog in the presence of negation in the bodies of rules — does not fully match the truth tables familiar from classical propositional logic. Consider, for instance, the program Given this program, the query p {displaystyle p} will succeed, because the program includes p {displaystyle p} as a fact; the query q {displaystyle q} will fail, because it does not occur in the head of any of the rules. The query r {displaystyle r} will fail also, because the only rule with r {displaystyle r} in the head contains the subgoal q {displaystyle q} in its body; as we have seen, that subgoal fails. Finally, the query s {displaystyle s} succeeds, because each of the subgoals p {displaystyle p} , not ⁡ q {displaystyle operatorname {not} q} succeeds. (The latter succeeds because the corresponding positive goal q {displaystyle q} fails.) To sum up, the behavior of SLDNF resolution on the given program can be represented by the following truth assignment: On the other hand, the rules of the given program can be viewed as propositional formulas if we identify the comma with conjunction ∧ {displaystyle land } , the symbol not {displaystyle operatorname {not} } with negation ¬ {displaystyle eg } , and agree to treat F ← G {displaystyle Fleftarrow G} as the implication G → F {displaystyle G ightarrow F} written backwards. For instance, the last rule of the given program is, from this point of view, alternative notation for the propositional formula If we calculate the truth values of the rules of the program for the truth assignment shown above then we will see that each rule gets the value T. In other words, that assignment is a model of the program. But this program has also other models, for instance

[ "Operational semantics", "Higher-order logic", "Multimodal logic", "Negation as failure", "equilibrium logic", "negation by default", "constructive negation" ]
Parent Topic
Child Topic
    No Parent Topic