Constraint Programming viewed as Rule-based Programming
Preprint
Abstract
We study here a natural situation when constraint programming can be entirely reduced to rule-based programming. To this end we consider constraint satisfaction problems that are based on predefined, explicitly given constraints. To solve them we first derive rules from these constraints and limit the computation process to a repeated application of these rules, combined with labeling. We consider here two types of rules. The first type, that we call equality rules, leads to a new notion of local consistency, called rule consistency that turns out to be weaker than arc consistency for constraints of arbitrary arity (called hyper-arc consistency). For Boolean constraints rule consistency coincides with the closure under the well-known propagation rules for Boolean constraints. The second type of rules, that we call membership rules, yields a rule-based characterization of arc consistency. To show feasibility of this rule-based approach to constraint programming we show how both types of rules can be automatically generated, as CHR rules of Fruehwirth. This yields an implementation of this approach to programming by means of constraint logic programming. We illustrate the usefulness of this approach to constraint programming by discussing various examples, including Boolean constraints, two typical examples of many valued logics, constraints dealing with Waltz's language for describing polyhedral scenes, and Allen's qualitative approach to temporal logic.Keywords
All Related Versions
This publication has 9 references indexed in Scilit:
- The essence of constraint propagationTheoretical Computer Science, 1999
- An Introduction to Fuzzy Sets1998
- Building Constraint Satisfaction Problem Solvers Using Rewrite Rules and StrategiesFundamenta Informaticae, 1998
- A Proof Theoretic View of Constraint ProgrammingFundamenta Informaticae, 1998
- Local and global relational consistencyTheoretical Computer Science, 1997
- A simple and efficient boolean solver for Constraint Logic ProgrammingJournal of Automated Reasoning, 1996
- Constraint satisfaction using constraint logic programmingArtificial Intelligence, 1992
- Constraint propagation with interval labelsArtificial Intelligence, 1987
- Maintaining knowledge about temporal intervalsCommunications of the ACM, 1983