NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

The Refined Operational Semantics of Constraint Handling Rules

Gregory J. Duck, Peter J. Stuckey, Maria J. García de la Banda, Christian Holzbaur

Abstract

Constraint Handling Rules (CHRs) are a high-level rule-based programming language commonly used to write constraint solvers. The theoretical operational semantics for CHRs is highly non-deterministic and relies on writing confluent programs to have a meaningful behaviour. Implementations of CHRs use an operational semantics which is considerably finer than the theoretical operational semantics, but is still non-deterministic (from the user’s perspective). This paper formally defines this refined operational semantics and proves it implements the theoretical operational semantics. It also shows how to create a (partial) confluence checker capable of detecting programs which are confluent under this semantics, but not under the theoretical operational semantics. This supports the use of new idioms in CHR programs.
BibTeX
@inproceedings{duck2004refined,
  author = {Gregory J. Duck and Peter J. Stuckey and Maria J. García de la Banda and Christian Holzbaur},
  title = {{The Refined Operational Semantics of Constraint Handling Rules}},
  booktitle = {ICLP},
  year = {2004},
  doi = {10.1007/978-3-540-27775-0\_7},
}

Loading related content...

Figure