Skip to main content
QUICK REVIEW

[Paper Review] Translating Answer-Set Programs into Bit-Vector Logic

Mai Nguyen, Tomi Janhunen|arXiv (Cornell University)|Aug 30, 2011
Logic, Reasoning, and KnowledgeComputer Science4 references8 citations
TL;DR

This paper presents a linear-time translation from normal answer-set programs into fixed-width bit-vector logic, enabling the use of bit-vector SMT solvers for computing answer sets. Experimental results show performance comparable to difference logic translations, though significantly behind native ASP solvers like clasp on recursive and weight rule-heavy benchmarks.

ABSTRACT

Answer set programming (ASP) is a paradigm for declarative problem solving where problems are first formalized as rule sets, i.e., answer-set programs, in a uniform way and then solved by computing answer sets for programs. The satisfiability modulo theories (SMT) framework follows a similar modelling philosophy but the syntax is based on extensions of propositional logic rather than rules. Quite recently, a translation from answer-set programs into difference logic was provided---enabling the use of particular SMT solvers for the computation of answer sets. In this paper, the translation is revised for another SMT fragment, namely that based on fixed-width bit-vector theories. Thus, even further SMT solvers can be harnessed for the task of computing answer sets. The results of a preliminary experimental comparison are also reported. They suggest a level of performance which is similar to that achieved via difference logic.

Motivation & Objective

  • To extend the SMT-based approach to answer set computation by translating ASP programs into bit-vector logic, broadening the range of supported SMT solvers.
  • To address the limitations of prior translations into difference logic by targeting a more widely used SMT fragment with industrial relevance.
  • To support the integration of rule-based modeling (ASP) with SMT-based constraint solving through a uniform, variable-based representation.
  • To enable the creation of new benchmark classes for SMT competitions using ASP-derived problems.
  • To explore the feasibility of using ASP-style grounding and rule abstraction as a high-level language for generating SMT theories.

Proposed method

  • Proposes a novel, linear-time translation from normal logic programs into fixed-width bit-vector logic, preserving the semantics of answer sets.
  • Maps logical atoms and rules into bit-vector expressions using bit-level operations and constraints, leveraging the syntax and semantics of the SMT-LIB bit-vector theory.
  • Handles extended rule types (e.g., weight rules, cardinality rules) via normalization into normal rules before translation, ensuring compatibility with smodels-compatible systems.
  • Implements the translation as a tool called lp2bv, which generates SMT-LIB compliant bit-vector logic formulas from ASP programs.
  • Employs standard SMT solving techniques by translating bit-vector constraints into propositional logic, relying on underlying SAT solvers for satisfiability checking.
  • Uses two state-of-the-art SMT solvers, boolector and z3, to evaluate the performance of the translated formulas.

Experimental results

Research questions

  • RQ1Can answer-set programs be efficiently translated into fixed-width bit-vector logic while preserving answer set semantics?
  • RQ2How does the performance of the resulting SMT-based answer set computation compare to that of difference logic translations?
  • RQ3To what extent do bit-vector SMT solvers scale on ASP benchmarks, particularly those with recursive or weight rules?
  • RQ4How does the translational approach compare to native ASP solvers like clasp on standard ASP competition benchmarks?
  • RQ5Can the translation technique be extended to support advanced ASP features such as aggregates and disjunctions via normalization?

Key findings

  • The translation from ASP to bit-vector logic is linear in the size of the input program, ensuring efficiency and scalability.
  • The performance of the lp2bv-based approach is comparable to that of the lp2diff translation into difference logic, with both achieving similar solving times on many benchmarks.
  • On the second ASP competition benchmarks, the best configuration (lp2bv + boolector) solved 276 out of 465 instances, while clasp solved 465, indicating a significant performance gap.
  • The performance gap is most pronounced on benchmarks involving recursive rules (e.g., Knight Tour, Wire Routing) or weight constraints (e.g., Weight Bounded Dominating Set, Fastfood), where clasp outperforms translational methods.
  • Normalization of weight and cardinality rules increases ground program size significantly (e.g., 10× for Weight Bounded Dominating Set), but clasp remains unaffected, suggesting native handling is more efficient.
  • Despite the gap, lp2bv successfully solved all large instances in the Disjunctive Scheduling benchmark (over 1 MB ground size), matching clasp’s performance on this class.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.