Download PDF

Proceedings of the 6th International Workshop on Rule-Based Programming

Publication date: 2005-01-01
Volume: 147 Pages: 93 - 111
ISSN: 1571-0661
Publisher: Elsevier

Author:

Schrijvers, Tom
Demoen, Bart ; Duck, Gregory ; Stuckey, P ; Frühwirth, Thom ; Cirstea, H ; Marti-Oliet, N

Keywords:

Science & Technology, Technology, Computer Science, Theory & Methods, Computer Science, Constraint Handling Rules, implication checking, program transformation, constraint solver hierarchy, 0802 Computation Theory and Mathematics, 0803 Computer Software, 1702 Cognitive Sciences, Computation Theory & Mathematics, 4613 Theory of computation

Abstract:

Constraint Handling Rules (CHRs) are a high-level rule-based programming language commonly used to define constraint solvers. We present a method for automatic implication checking between constraints of CHR solvers. Supporting implication is important for implementing extensible solvers and reification, and for building hierarchical CHR constraint solvers. Our method does not copy the entire constraint store, but performs the check in place using a trailing mechanism. The necessary code enhancements can be done by automatic program transformation based on the rules of the solver. We extend our method to work for hierarchically organized modular CHR solvers. We show the soundness of our method and its completeness for a restricted class of canonical solver as well as for specific existing non-canonical CHR solvers. We evaluate our trailing method experimentally by comparing with the copy approach: runtime is almost halved. © 2006 Elsevier B.V. All rights reserved.