Download PDF

Workshop on Constraint Handling Rules, Date: 2007/09/08 - 2007/09/08, Location: Porto, Portugal

Publication date: 2007-01-01
Pages: 91 - 105

Proceedings of the Fourth Workshop on Constraint Handling Rules

Author:

Sneyers, Jon
Van Weert, Peter ; Schrijvers, Tom ; Djelloul, K ; Duck, GJ ; Sulzmann, M

Abstract:

We extend the Constraint Handling Rules language with aggregates such as sum, count, findall, and min. The proposed extension features nested aggregate expressions over guarded conjunctions of constraints, a series of predefined aggregates, and application-tailored user-defined aggregates. We formally define the operational semantics of aggregates, and show how incremental aggregate computation facilitates efficient implementations. Case studies demonstrate that language support for aggregates significantly reduces program size, thus improving readability and maintainability considerably.