Published online by Cambridge University Press: 31 July 2003
Logic programs $P$ and$Q$ are stronglyequivalent if, given any program $R$, programs $P\cup R$ and $Q \cupR$ are equivalent (that is, have the sameanswer sets). Strong equivalence is convenient for the study ofequivalent transformations of logic programs: one can prove that alocal change is correct without considering the whole program.Lifschitz, Pearce and Valverde showed that Heyting's logic ofhere-and-there can be used to characterize strong equivalence forlogic programs with nested expressions (which subsume thebetter-known extended disjunctive programs). This note considers asimpler, more direct characterization of strong equivalence for suchprograms, and shows that it can also be applied without modificationto the weight constraint programs of Niemelä and Simons. Thus, thischaracterization of strong equivalence is convenient for the studyof equivalent transformations of logic programs written in the inputlanguages of answer set programming systems dlv and SMODELS. The noteconcludes with a brief discussion of results that can be used toautomate reasoning about strong equivalence, including a novelencoding that reduces the problem of deciding the strong equivalenceof a pair of weight constraint programs to that of deciding theinconsistency of a weight constraint program.