A Refined Operational Semantics for FreeCHR

Read full text
Authors: Sascha Rechenberger, Thom Frühwirth
Cited by: 1

Abstract

Constraint Handling Rules (CHR) is a rule-based programming language which is typically embedded into a general-purpose language. There exists a plethora of implementations for numerous host languages. However, the existing implementations often re-invent the way to embed CHR, which impedes maintenance and weakens assertions of correctness. To formalize and thereby standardize the embedding into arbitrary host languages, we introduced the framework FreeCHR and proved it to be a valid representation of classical ground CHR. Until now, this framework only includes a translation of the very abstract operational semantics which, due to its abstract nature, is not a sufficient base for practical implementations. In this paper we present a translation of the refined operational semantics for FreeCHR and prove it to be both a valid concretization of the very abstract semantics of FreeCHR, and an equivalent representation of the refined semantics of CHR. This will establish implementations of FreeCHR as equivalent in behavior and expressiveness to existing implementations of CHR.

Fields of Study & Subjects

Logic programming and type systems Constraint Satisfaction and Optimization Model-Driven Software Engineering Techniques

Publication details

Journal / source
Electronic Proceedings in Theoretical Computer Science
Publisher
Open Publishing Association
Volume
439
Pages
278–293
Publication date
8 January 2026
Language
EN