arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2602.03275cs.LO
收藏

关于效果处理器的完整范畴语义

On Complete Categorical Semantics for Effect Handlers

Waseda University(早稻田大学)

Satoshi Kura

AI总结:

本文研究了效果处理程序的完整范畴语义,证明自由模型单子并非唯一有效模型,并提出新的模型特征以建立正确性和完备性结果。

摘要:

在编程语言中,关于等价理论的正确性和完备性是研究范畴语义学的基本属性。然而,对于具有代数效应和处理程序的编程语言,尚未建立完备性结果,这引发了疑问:文献中常用的模型,即由代数理论生成的自由模型单子,是否是效果处理程序的唯一有效语义模型。在本文中,我们证明并非如此。我们确定了允许对特定效果处理构造的等价理论建立正确性和完备性结果的范畴模型的精确特征。值得注意的是,这使我们能够捕捉不仅包括自由单子模型,还包括效果处理程序的CPS语义作为该算法规则的模型。

英文摘要:

Soundness and completeness with respect to equational theories for programming languages are fundamental properties in the study of categorical semantics. However, completeness results have not been established for programming languages with algebraic effects and handlers, which raises a question of whether the commonly used models in the literature, i.e., free model monads generated from algebraic theories, are the only valid semantic models for effect handlers. In this paper, we show that this is not the case. We identify the precise characterizations of categorical models of effect handlers that allow us to establish soundness and completeness results with respect to a certain equational theory for effect handling constructs. Notably, this allows us to capture not only free monad models but also the CPS semantics for effect handlers as models of the calculus.

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

↑