Skip to main content
QUICK REVIEW

[Paper Review] Logic Programs with Compiled Preferences

James P. Delgrande, Torsten Schaub|ArXiv.org|Mar 8, 2000
Logic, Reasoning, and KnowledgeComputer Science13 references46 citations
TL;DR

This paper presents a method to compile preferences directly into extended logic programs under answer set semantics by transforming ordered logic programs—where rules are named and preferences expressed as atoms like $s \prec t$—into standard extended logic programs. The transformation ensures that answer sets of the compiled program correspond exactly to the preferred answer sets of the original, enabling use with existing systems like dlv and smodels.

ABSTRACT

We describe an approach for compiling preferences into logic programs under the answer set semantics. An ordered logic program is an extended logic program in which rules are named by unique terms, and in which preferences among rules are given by a set of dedicated atoms. An ordered logic program is transformed into a second, regular, extended logic program wherein the preferences are respected, in that the answer sets obtained in the transformed theory correspond with the preferred answer sets of the original theory. Our approach allows both the specification of static orderings (as found in most previous work), in which preferences are external to a logic program, as well as orderings on sets of rules. In large part then, we are interested in describing a general methodology for uniformly incorporating preference information in a logic program. Since the result of our translation is an extended logic program, we can make use of existing implementations, such as dlv and smodels. To this end, we have developed a compiler, available on the web, as a front-end for these programming systems.

Motivation & Objective

  • To provide a uniform, object-level method for encoding preferences in logic programs, avoiding meta-level semantics.
  • To enable the use of existing answer set programming systems (e.g., dlv, smodels) for reasoning with preferred answer sets.
  • To support flexible preference handling, including static orderings, preferences among sets of rules, and contextual preferences.
  • To develop a practical front-end compiler that translates ordered logic programs into standard extended logic programs.
  • To demonstrate that preference handling can be modular, extensible, and independent of the underlying semantics.

Proposed method

  • Represent preferences as atoms of the form $s \prec t$, where $s$ and $t$ are rule names, within the object-level program.
  • Transform the original ordered logic program into a standard extended logic program using a syntactic compilation procedure.
  • Encode preference constraints via additional rules that block less preferred answer sets, ensuring only preferred extensions are generated.
  • Use a grounding and translation process that preserves the semantics of the original preferences in the transformed program.
  • Support named rules only in the current implementation, with separate handling for variable-containing rules via grounding.
  • Integrate the compiler as a front-end for dlv and smodels, enabling execution on standard answer set solvers.

Experimental results

Research questions

  • RQ1How can preferences among rules be encoded directly within the logic program, rather than at the meta-level?
  • RQ2Can a transformation be defined that maps an ordered logic program to a standard extended logic program such that answer sets correspond exactly to preferred answer sets?
  • RQ3How can preferences be handled uniformly across different types, such as static orderings, dynamic preferences, and preferences over sets of rules?
  • RQ4To what extent can this approach be implemented efficiently and integrated with existing answer set programming systems?
  • RQ5What are the formal properties of the transformation, particularly regarding correctness and completeness of preferred answer sets?

Key findings

  • The transformation correctly generates exactly the preferred answer sets of the original ordered logic program, ensuring semantic correctness.
  • The approach supports both static and dynamic preferences, including preferences among sets of rules, through a uniform object-level encoding.
  • The implementation as a front-end compiler for dlv and smodels enables practical deployment and execution of preference-aware logic programs.
  • The method avoids the need for meta-level filtering or multiple semantics, unlike previous approaches that required separate reducts or prioritized answer set selection.
  • The approach is flexible and extensible, allowing users to define their own preference semantics within the same framework.
  • The prototype implementation is available online and includes support for both dynamic and set-based preference handling, with grounding for variable-containing rules.

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.