二维范畴中的效应语义:前幺半与Freyd双范畴
Effectful Semantics in 2-Dimensional Categories: Premonoidal and Freyd Bicategories
AI总结:
本文在前幺半与Freyd双范畴中发展效应语义理论,以建模按值调用语言中不可重排的效应程序,并通过例子和对应定理验证定义。
摘要:
前幺半范畴与Freyd范畴为按值调用编程语言的语义提供了一个包罗万象的框架。前幺半范畴是幺半范畴的一种弱化形式,其中张量积的交换律可能不成立,这模拟了效应程序通常不能重新排序的事实。Freyd范畴是一对具有相同对象的范畴:一个是一般程序的前幺半范畴,另一个是允许重新排序的“无效应”程序的幺半范畴。然而,语义学中某些最近的创新已经产生了不是范畴而是双范畴的模型。在此,我们通过在前幺半与Freyd结构中引入双范畴设定来发展理论以捕获此类例子。第二维引入了新的微妙之处,因此我们通过几个例子以及一个对应定理(在Freyd双范畴与幺半双范畴的特定作用之间)来验证我们的定义,该定理与范畴框架相平行。
英文摘要:
Premonoidal categories and Freyd categories provide an encompassing framework for the semantics of call-by-value programming languages. Premonoidal categories are a weakening of monoidal categories in which the interchange law for the tensor product may not hold, modelling the fact that effectful programs cannot generally be re-ordered. A Freyd category is a pair of categories with the same objects: a premonoidal category of general programs, and a monoidal category of 'effect-free' programs which do admit re-ordering. Certain recent innovations in semantics, however, have produced models which are not categories but bicategories. Here we develop the theory to capture such examples by introducing premonoidal and Freyd structure in a bicategorical setting. The second dimension introduces new subtleties, so we verify our definitions with several examples and a correspondence theorem (between Freyd bicategories and certain actions of monoidal bicategories) which parallels the categorical framework.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。