arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.19305cs.PL
收藏

范畴、余幂和高阶消息传递语义

Actegories, Copowers, and Higher-Order Message Passing Semantics

University of Calgary(卡尔加里大学)

Robin Cockett, Melika Norouzbeygi

AI总结:

本文证明了右范畴与右富集范畴在非闭合和非对称单子基础下的等价性,以支持高阶消息传递语义。

摘要:

在本文中,我们证明了给出具有同态对象的右范畴等价于给出具有余幂的右富集范畴。尽管这个结果在闭合对称环境下是已知的,我们的贡献是将其扩展到非闭合和非对称单子基础。这个推广是由Categorical Message Passing Language(CaMPL)的高阶消息传递语义所驱动的,这是一种并发语言,其语义由线性范畴给出。这种语言的一个 desirable 特性是支持高阶过程:作为第一公民在进程之间传递的过程。虽然这种能力已经在任何闭合线性类型系统中存在——例如CaMPL——但为了支持任意递归进程定义,需要能够重用传递的过程。然而,CaMPL中的并发资源不能被复制,因此将进程作为线性闭包传递并不能提供所需灵活性。这意味着进程必须作为顺序数据传递,并且并发侧必须在顺序侧得到增强,这推动了本文的技术结果。

英文摘要:

In this paper we prove that giving a right actegory with hom-objects is equivalent to giving a right-enriched category with copowers. While this result is known in the closed symmetric setting, our contribution extends the equivalence to non-closed and non-symmetric monoidal bases. This generalization is motivated by the semantics of higher-order message passing in the Categorical Message Passing Language (CaMPL), a concurrent language whose semantics is given by a linear actegory. A desirable feature for this language is the support of higher-order processes: processes that are passed as first class citizens between processes. While this ability is already present in any closed linear type systems -- such as CaMPL's -- to support arbitrary recursive process definitions requires the ability to reuse passed processes. Concurrent resources in CaMPL, however, cannot be duplicated, thus, passing processes as linear closures does not provide the required flexibility. This means processes must be passed as sequential data and the concurrent side must be enriched in the sequential side, motivating the technical result of this paper.

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

↑