International Symposium on Logic-Based Program Synthesis and Transformation, Date: 2007/08/23 - 2007/08/24, Location: Kongens Lyngby, Denmark
Lecture notes in computer science
Author:
Keywords:
aggregates, Constraint Handling Rules, transformation, Science & Technology, Technology, Computer Science, Software Engineering, Computer Science, Theory & Methods, Computer Science, CONSTRAINT HANDLING RULES
Abstract:
We propose an extension of Constraint Handling Rules (CHR) with aggregates such as sum, count, findall, and min. This new feature significantly improves the conciseness and expressiveness of the language. In this paper, we describe an implementation based on source-to-source transformations to CHR (extended with some low-level compiler directives). We allow user-defined aggregates and nested aggregate expressions over arbitrary guarded conjunctions of constraints. Both an on-demand and an incremental aggregate computation strategy are supported.