[Paper Review] Fages' Theorem and Answer Set Programming
This paper generalizes Fages' Theorem to enable the use of satisfiability solvers instead of dedicated answer set solvers for a broader class of logic programs. By introducing partial level mappings and tightening the semantics on literal sets, the authors show that completion semantics and answer set semantics coincide for programs satisfying a generalized tightness condition, allowing efficient answer set computation via SAT solvers, as demonstrated on Niemelä's blocks world representation with performance comparisons to smodels.
We generalize a theorem by Francois Fages that describes the relationship between the completion semantics and the answer set semantics for logic programs with negation as failure. The study of this relationship is important in connection with the emergence of answer set programming. Whenever the two semantics are equivalent, answer sets can be computed by a satisfiability solver, and the use of answer set solvers such as smodels and dlv is unnecessary. A logic programming representation of the blocks world due to Ilkka Niemelae is discussed as an example.
Motivation & Objective
- To extend Fages' Theorem beyond tight programs to allow SAT solver-based answer set computation for non-tight programs.
- To address the computational inefficiency of dedicated answer set solvers by enabling completion-based reasoning.
- To demonstrate the feasibility and performance of using satisfiability solvers like sato on real-world logic programming problems.
- To provide a theoretical foundation for using completion semantics as a substitute for answer set semantics when generalized tightness conditions are met.
Proposed method
- Introduce partial level mappings from literals to ordinals, generalizing Fages' original total level mappings.
- Define 'tightness on a set of literals' as a syntactic condition ensuring equivalence between completion and answer set semantics.
- Prove that for any program tight on a consistent set X of literals, X is an answer set iff it is closed and supported under the program.
- Apply the generalized theorem to programs with both negation as failure and classical negation, including infinite programs.
- Use the Causal Calculator (ccalc) to ground and complete Niemelä's blocks world program, then invoke the sato SAT solver to find models.
- Compare runtime performance of sato (with ccalc) against smodels (with lparse) on benchmark instances of the blocks world problem.
Experimental results
Research questions
- RQ1Can Fages' Theorem be generalized to apply to non-tight logic programs?
- RQ2Under what conditions does the completion of a logic program coincide with its answer set semantics?
- RQ3Can satisfiability solvers be effectively used to compute answer sets for answer set programming problems?
- RQ4How does the performance of SAT-based answer set computation compare to traditional answer set solvers like smodels?
Key findings
- The generalized Fages' Theorem establishes that for any program tight on a consistent set X of literals, X is an answer set if and only if it is closed and supported under the program.
- The blocks world representation by Ilkka Niemelä is not tight, but satisfies the generalized tightness condition on its answer sets, enabling SAT solver use.
- For the largest benchmark (large.e), sato achieved a runtime of 5.40 seconds compared to smodels' 27.31 seconds, demonstrating significant performance gains.
- The grounding and completion phase was slower in ccalc (50 seconds) than in lparse (16 seconds), but the final SAT solving phase was faster with sato.
- The completion of the Hamiltonian cycle program has models that are not answer sets, showing the limitations of the completion method in some cases.
- The results confirm that completion-based reasoning via SAT solvers is viable and efficient for certain classes of answer set programming problems.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.