arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2306.00642cs.PL
收藏

FreeCHR:一个用于 CHR 嵌入的代数框架

FreeCHR: An Algebraic Framework for CHR-Embeddings

Sascha Rechenberger, Thom Frühwirth

AI总结:

本文提出 FreeCHR 框架,利用范畴论初始代数语义形式化约束处理规则在宿主语言中的嵌入,证明了其可靠性与完备性,并给出了 Haskell 和 Python 的实现。

摘要:

我们引入了 FreeCHR 框架,该框架使用范畴论中的初始代数语义概念,形式化了将约束处理规则(CHR)嵌入到宿主语言中的过程。我们由此确立了 CHR 的高级实现方案,并为理论和实践提供了共同的形式化基础。我们通过 Set 范畴中的自函子提出了 CHR 语法的提升,并使用该自函子生成的自由代数,将 CHR 极其抽象的操作语义提升至 FreeCHR 中。我们给出了相对于其原始定义的可靠性和完备性证明。我们还提出了首个抽象执行算法,并证明了其相对于操作语义的正确性。最后,我们通过在 Haskell 和 Python 中提供该算法的两种可能实现,展示了我们方法的实用性。正在 Theory and Practice of Logic Programming (TPLP) 中审稿。

英文摘要:

We introduce the framework FreeCHR which formalizes the embedding of Constraint Handling Rules (CHR) into a host language, using the concept of initial algebra semantics from category theory. We hereby establish a high-level implementation scheme for CHR as well as a common formalization for both theory and practice. We propose a lifting of the syntax of CHR via an endofunctor in the category Set and a lifting of the very abstract operational semantics of CHR into FreeCHR, using the free algebra, generated by the endofunctor. We give proofs for soundness and completeness w.r.t. its original definition. We also propose a first abstract execution algorithm and prove correctness w.r.t. the operational semantics. Finally, we show the practicability of our approach by giving two possible implementations of this algorithm in Haskell and Python. Under consideration in Theory and Practice of Logic Programming (TPLP).

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑