Answer Sets for Logic Programs with Arbitrary Abstract Constraint Atoms

Tran Cao Son, Enrico Pontelli, Phan Huy Tu

Abstract

In this paper, we present two alternative approaches to defining answer sets for logic programs with arbitrary types of abstract constraint atoms (c-atoms). These approaches generalize the fixpoint-based and the level mapping based answer set semantics of normal logic programs to the case of logic programs with arbitrary types of c-atoms. The results are four different answer set definitions which are equivalent when applied to normal logic programs. The standard fixpoint-based semantics is generalized into "answer set by reduct" and "answer set by complement," differing in their treatment of negation-as-failure (naf). We also introduce strongly and weakly well-supported models as generalizations of well-supported models. We prove the equivalence between these fixpoint and level-mapping approaches and show that they coincide with previously introduced semantics for monotone c-atoms while extending the original answer set semantics of normal logic programs.

Introduction

Answer Set Programming (ASP) has emerged as a premier paradigm for knowledge representation and reasoning. While standard "normal" logic programs are powerful, they often lack the expressivity required for complex real-world constraints. To bridge this gap, researchers have introduced various extensions, such as weight constraints, cardinality constraints, and aggregates (e.g., SUM, COUNT).

However, a significant theoretical hurdle remains: most existing frameworks for these extensions rely on the assumption of monotonicity. In a monotone constraint, if a set of truths satisfies the constraint, adding more truths will not invalidate it. Yet, many practical constraints are non-monotone. For instance, a constraint requiring "exactly two employees" is violated if a third is added. This paper provides a unified theoretical framework that supports arbitrary, non-monotone c-atoms, even when they appear in the head of a rule.

The Challenge of Non-Monotonicity

The primary difficulty in integrating non-monotone constraints into ASP is ensuring that models remain "grounded" or "well-supported." In standard ASP, every truth must have a non-circular justification. With non-monotone constraints, there is a risk of circular reasoning where an atom justifies itself through a constraint that is only satisfied because the atom itself is true. To resolve this, the authors propose two distinct but equivalent mathematical characterizations.

Proposed Semantics

1. Fixpoint-Based Approach

The authors generalize the standard immediate consequence operator ($T_P$) used in traditional logic programming. The core innovation is the concept of conditional satisfaction. To prevent circularity, a constraint must be satisfied not only by the final interpretation but also by all intermediate sets of truths derived during the computation. This ensures that the derivation process is constructive and logically sound.

2. Level-Mapping (Well-Supported) Approach

This approach generalizes the concept of "well-supported models." A model is considered valid only if every true atom can be assigned a "level" (a non-negative integer). An atom at level n must be justified by a rule where all supporting atoms in the body have a level strictly less than n. This structural requirement guarantees that every truth in the answer set has a foundational, non-circular explanation.

Handling Negation-as-Failure (NAF)

The paper explores two primary methods for treating negation within these complex programs:

  • By Reduct: This generalizes the classic Gelfond-Lifschitz reduct. The program is simplified based on a candidate set of truths, and the answer set is checked against this simplified version.
  • By Complement: This treats the negation of a constraint (not A) as the logical complement of the constraint's satisfaction.

The authors demonstrate that the "complement" approach is generally more skeptical (restrictive) than the "reduct" approach, particularly when dealing with non-monotone atoms.

Key Insights and Theoretical Results

Equivalence and Generalization

A major contribution of this work is the proof that the fixpoint derivation and the level-mapping characterization are equivalent. Specifically, answer sets by reduct correspond to weakly well-supported models, while answer sets by complement correspond to strongly well-supported models. Furthermore, the proposed semantics is a true generalization: when applied to standard logic programs without complex constraints, it yields the exact same answer sets as the original 1988 Gelfond-Lifschitz definition.

Relationship to Existing Work

The framework successfully unifies several disparate proposals for aggregates in the literature. For programs containing only monotone constraints, the authors' definitions align perfectly with established semantics (such as those by Marek and Truszczynski). For "semi-monotone" programs, the framework ensures that answer sets are minimal models, preserving a fundamental property of ASP.

Conclusion and Future Directions

This research provides a robust mathematical foundation for using arbitrary constraints in logic programming. By moving beyond the requirement of monotonicity, ASP becomes a more flexible tool for modeling complex domains.

Future work remains in several areas:

  1. Computational Complexity: Analyzing the overhead of checking "conditional satisfaction" in practical solvers.
  2. Implementation: Integrating these semantics into existing ASP solvers like Smodels or Clingo.
  3. Disjunctive Programs: Extending the framework to support disjunctions (OR operations) in the heads of rules containing c-atoms.

Summary updated

BibTeX
@inproceedings{son2006answer,
  author = {Tran Cao Son and Enrico Pontelli and Phan Huy Tu},
  title = {{Answer Sets for Logic Programs with Arbitrary Abstract Constraint Atoms}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2006},
  url = {https://openreview.net/forum?id=S1Vfc6xdWS},
}
Figure