Download PDF

International Conference on Logic Programming, Date: 2008/12/09 - 2008/12/12, Location: Udine, Italy

Publication date: 2008-01-01
Volume: 5366 Pages: 531 - 545
ISSN: 978-3-540-89981-5
Publisher: Springer

Lecture notes in computer science

Author:

Duck, Gregory J
De Koninck, Leslie ; Stuckey, Peter J

Keywords:

Science & Technology, Technology, Computer Science, Artificial Intelligence, Computer Science, Theory & Methods, Computer Science

Abstract:

Cadmium is a rule based programming language for compiling solver independent constraint models to various solver dependent back-ends. Cadmium is based on a hybrid between Constraint Handling Rules (CHR) and term rewriting modulo Associativity, Commutativity and a restricted form of Distributivity (ACD) called Conjunctive Context (CC). Experience with using Cadmium in the G12 project shows that CC is a powerful language feature, as local model mapping can depend on some non-local context, such as variable declarations or other constraints. However, CC significantly complicates the Cadmium normalisation algorithm, since the normal form of a term may depend on what context it appears in. In this paper we present an implementation of Cadmium based on classic bottom-up evaluation, but modified to handle CC matching. We evaluate the performance of the new implementation compared to earlier prototype normalisation algorithms. We show that the resulting system is fast enough to run "real-world" Cadmium applications.