Cambridge Journals Online

Cambridge Journals Online
Skip to content
Theory and Practice of Logic Programming (2005), 5: 747-760 Cambridge University Press
Copyright © 2005 Cambridge University Press
doi:10.1017/S1471068404002339
Published online by Cambridge University Press 31 Oct 2005


Technical Note

Normal forms for answer sets programming


STEFANIA COSTANTINI a1 and ALESSANDRO PROVETTI a2
a1 Dipartimento d'Informatica, Università di L'Aquila, Loc. Coppito, L'Aquila I-67100, Italy (e-mail: stefcost@di.univaq.it
a2 Dipartimento di Fisica, Università di Messina, Sal. Sperone 31, Messina I-98166, Italy (e-mail: ale@unime.it

Article author query
costantini s   [Google Scholar
provetti a   [Google Scholar
 

Abstract

Normal forms for logic programs under stable/answer set semantics are introduced. We argue that these forms can simplify the study of program properties, mainly consistency. The first normal form, called the kernel of the program, is useful for studying existence and number of answer sets. A kernel program is composed of the atoms which are undefined in the Well-founded semantics, which are those that directly affect the existence of answer sets. The body of rules is composed of negative literals only. Thus, the kernel form tends to be significantly more compact than other formulations. Also, it is possible to check consistency of kernel programs in terms of colorings of the Extended Dependency Graph program representation which we previously developed. The second normal form is called 3-kernel. A 3-kernel program is composed of the atoms which are undefined in the Well-founded semantics. Rules in 3-kernel programs have at most two conditions, and each rule either belongs to a cycle, or defines a connection between cycles. 3-kernel programs may have positive conditions. The 3-kernel normal form is very useful for the static analysis of program consistency, i.e. the syntactic characterization of existence of answer sets. This result can be obtained thanks to a novel graph-like representation of programs, called Cycle Graph which presented in the companion article Costantini (2004b).

(Published Online October 31 2005)
(Received July 11 2001)
(Revised December 11 2003)
(Revised March 15 2004)
(Accepted September 30 2004)


Key Words: answer set programming; program transformation; normal forms.


Cambridge University Press