TY - JOUR
T1 - Transforming normal logic programs to constraint logic programs
AU - Kanchanasut, Kanchana
AU - Stuckey, Peter J.
PY - 1992/10/26
Y1 - 1992/10/26
N2 - A normal logic program P is transformed to another Pω by a bottom-up computation on the positive component of P while the negative counterpart is left untouched. The declarative semantics of P is given by the completion of Pω. The completed predicate definitions in Pω, if they do not contain local variables, can be used as a basis for expanding each negated atom in the bodies of Pω. We show that for a class of programs where every negative subgoal can be expanded, the resultant program P′ is a definite logic program with equality and disequality constraints. If the program falls outside this class, the resultant program may be executed using constructive negation. Our proposed scheme provides an effective sound and complete query-answering system for the well-founded models of a class of programs whose positive part has a finite Pω and whose clauses satisfy the positive groundedness property defined herein.
AB - A normal logic program P is transformed to another Pω by a bottom-up computation on the positive component of P while the negative counterpart is left untouched. The declarative semantics of P is given by the completion of Pω. The completed predicate definitions in Pω, if they do not contain local variables, can be used as a basis for expanding each negated atom in the bodies of Pω. We show that for a class of programs where every negative subgoal can be expanded, the resultant program P′ is a definite logic program with equality and disequality constraints. If the program falls outside this class, the resultant program may be executed using constructive negation. Our proposed scheme provides an effective sound and complete query-answering system for the well-founded models of a class of programs whose positive part has a finite Pω and whose clauses satisfy the positive groundedness property defined herein.
UR - http://www.scopus.com/inward/record.url?scp=0026941359&partnerID=8YFLogxK
U2 - 10.1016/0304-3975(92)90286-O
DO - 10.1016/0304-3975(92)90286-O
M3 - Article
AN - SCOPUS:0026941359
SN - 0304-3975
VL - 105
SP - 27
EP - 56
JO - Theoretical Computer Science
JF - Theoretical Computer Science
IS - 1
ER -