Skip to main navigation Skip to search Skip to main content

Compiling constraint handling rules for efficient tabled evaluation

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

13 Scopus citations

Abstract

Tabled resolution, which alleviates some of Prolog's termination problems, makes it possible to create practical applications from high-level declarative specifications. Constraint Handling Rules (CHR) is an elegant framework for implementing constraint solvers from high-level specifications, and is available in many Prolog systems. However, applications combining the power of these two declarative paradigms have been impractical since traditional CHR implementations interact poorly with tabling. In this paper we present a new (set-based) semantics for CHR which enables efficient integration with tabling. The new semantics coincides with the traditional (multi-set-based) semantics for a large class of CHR programs. We describe CHRd, an implementation based on the new semantics. CHRd uses a distributed constraint store that can be directly represented in tables. Although motivated by tabling, CHRd works well also on non-tabled platforms. We present experimental results which show that, relative to traditional implementations, CHRd performs significantly better on tabled programs, and yet shows comparable results on non-tabled benchmarks.

Original languageEnglish
Title of host publicationPractical Aspects of Declarative Languages - 9th International Symposium, PADL 2007, Proceedings
Pages170-184
Number of pages15
DOIs
StatePublished - 2007
Event9th International Symposium on Practical Aspects of Declarative Languages, PADL 2007 - Nice, France
Duration: Jan 14 2007Jan 15 2007

Publication series

NameLecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
Volume4354 LNCS

Conference

Conference9th International Symposium on Practical Aspects of Declarative Languages, PADL 2007
Country/TerritoryFrance
CityNice
Period01/14/0701/15/07

Fingerprint

Dive into the research topics of 'Compiling constraint handling rules for efficient tabled evaluation'. Together they form a unique fingerprint.

Cite this