On the expressive power of priorities in CHR

Maurizio Gabbrielli*, Jacopo Mauro, Maria Chiara Meo

*Corresponding author for this work

Research output: Chapter in Book/Report/Conference proceedingArticle in proceedingsResearchpeer-review

Abstract

Constraint Handling Rules (CHR) is a committed-choice declarative language which has been originally designed for writing constraint solvers and which is nowadays a general purpose language. Recently the language has been extended by introducing user-definable (static or dynamic) rule priorities. The resulting language, called CHRrp, allows a better control over execution while retaining a declarative and flexible style of programming. In this paper we study the expressive power of this language from the view point of the concurrency theory. We first show that dynamic priorities do not augment the expressive power by providing an encoding of dynamic priorities into static ones. Then we show that, when considering the theoretical operational semantics, CHRrp is strictly more expressive than CHR. This result is obtained by using a problem similar to the leader-election to show that, under some conditions, there exists no encoding of CHRrp into CHR. We also show, by using a similar technique, that the CHR language with the, so called, refined semantics is more expressive power than CHR with theoretical semantics and we extend some previous results showing that CHR can not be encoded into Prolog.

Original languageEnglish
Title of host publicationPPDP'09 - Proceedings of the 11th International ACM SIGPLAN Symposium on Principles and Practice of Declarative Programming
Number of pages9
Publication date30. Nov 2009
Pages267-275
ISBN (Print)9781605585680
DOIs
Publication statusPublished - 30. Nov 2009
Externally publishedYes
Event11th International ACM SIGPLAN Symposium on Principles and Practice of Declarative Programming, PPDP'09 - Coimbra, Portugal
Duration: 7. Sept 20099. Sept 2009

Conference

Conference11th International ACM SIGPLAN Symposium on Principles and Practice of Declarative Programming, PPDP'09
Country/TerritoryPortugal
CityCoimbra
Period07/09/200909/09/2009
SponsorACM SIGPLAN

Keywords

  • Constraint
  • Expressive power

Fingerprint

Dive into the research topics of 'On the expressive power of priorities in CHR'. Together they form a unique fingerprint.

Cite this