具有精化操作语义的FreeCHR的一个实例
An instance of FreeCHR with refined operational semantics
AI总结:
本文为FreeCHR框架引入了基于CHR精化操作语义推导出的执行算法,证明了其相对于非常抽象语义的健全性,为新的CHR实现提供了统一且易于实现的指南和算法定义。
摘要:
Constraint Handling Rules (CHR)是一种基于规则的编程语言,通常被嵌入到通用语言中。针对众多宿主语言存在大量CHR的实现。然而,现有实现经常重新发明嵌入CHR的方式,这阻碍了维护并削弱了正确性断言。为了形式化并从而统一将CHR嵌入任意宿主语言的过程,我们引入了FreeCHR框架,并证明它是经典CHR的有效表示。到目前为止,该框架仅包含对CHR非常抽象操作语义的转换,由于其抽象性,这引入了若干实际问题。在本文中,我们为FreeCHR引入了一种执行算法。我们从CHR的精化操作语义推导出该算法,解决了由非常抽象语义引入的问题。我们还证明了该算法相对于FreeCHR非常抽象语义的健全性。借此,我们为新的CHR实现提供了统一且易于实现的指南,以及精化操作语义的算法定义。
英文摘要:
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 of CHR for numerous host languages. However, the existing implementations often reinvent the way to embed CHR, which impedes maintenance and weakens assertions of correctness. To formalize and thereby unify the embedding of CHR into arbitrary host languages, we introduced the framework FreeCHR and proved it to be a valid representation of classical CHR. Until now, this framework only includes a translation of the very abstract operational semantics of CHR which, due to its abstract nature, introduces several practical issues. In this paper, we introduce an execution algorithm for FreeCHR. We derive it from the refined operational semantics of CHR, which resolve the issues introduced by the very abstract semantics. We also prove soundness of the algorithm with respect to the very abstract semantics of FreeCHR. Hereby we provide a unified and an easy to implement guideline for new CHR implementations, as well as an algorithmic definition of the refined operational semantics.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。