Hostname: page-component-78c5997874-t5tsf Total loading time: 0 Render date: 2024-11-15T23:22:40.561Z Has data issue: false hasContentIssue false

Weight constraints as nested expressions

Published online by Cambridge University Press:  10 January 2005

PAOLO FERRARIS
Affiliation:
Department of Computer Sciences, University of Texas at Austin, Austin, TX 78712, USA (e-mail: [email protected], [email protected])
VLADIMIR LIFSCHITZ
Affiliation:
Department of Computer Sciences, University of Texas at Austin, Austin, TX 78712, USA (e-mail: [email protected], [email protected])

Abstract

We compare two recent extensions of the answer set (stable model) semantics of logic programs. One of them, due to Lifschitz, Tang and Turner, allows the bodies and heads of rules to contain nested expressions. The other, due to Niemelä and Simons, uses weight constraints. We show that there is a simple, modular translation from the language of weight constraints into the language of nested expressions that preserves the program's answer sets. Nested expressions can be eliminated from the result of this translation in favor of additional atoms. The translation makes it possible to compute answer sets for some programs with weight constraints using satisfiability solvers, and to prove the strong equivalence of programs with weight constraints using the logic of here-and-there.

Type
Regular Papers
Copyright
© 2005 Cambridge University Press

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)