Download PDF

Logic programming, proceedings

Publication date: 2004-01-01
Volume: 3132 Pages: 120 - 136
ISSN: 0302-9743
Publisher: Springer-verlag berlin

Author:

Schrijvers, Tom
Warren, David S ; Demoen, B ; Lifschitz, V

Keywords:

Constraint Handling Rules, logic programming, tabulation, XSB, Science & Technology, Technology, Computer Science, Theory & Methods, Computer Science

Abstract:

Both Constraint Handling Rules (CHR) and tabling - as implemented in XSB - are powerful enhancements of Prolog systems, based on fix point computation. Until now they have only been implemented in separate systems. This paper presents the work involved in porting a CHR system to XSB and in particular the technical issues related to the integration of CHR with tabled resolution. These issues include call abstraction, answer projection, entailment checking, answer combination and tabled constraint store representations. Different optimizations related to tabling constraints are evaluated empirically. The integration requires no changes to the tabling engine. We also show that the performance of CHR programs without tabling is not affected. Now, with the combined power of CHR and tabling, it is possible to easily introduce constraint solvers in applications using tabling, or to use tabling in constraint solvers.