arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 0903.3311cs.LOmath.CT
收藏

笛卡尔效应范畴是自由范畴

Cartesian effect categories are Freyd-categories

Jean-Guillaume Dumas, Dominique Duval, Jean-Claude Reynaud

摘要:

大多数情况下,在程序设计语言的范畴语义中,项的替换由组合和有限乘积表示。然而,这并不涉及参数的评估顺序,当有副作用时,这可能会产生重大后果。为了解决这个问题,本文引入了笛卡尔效应范畴,并将其与强单子、自由范畴和Haskell的箭进行了比较。证明了笛卡尔效应范畴是一个自由范畴,其中预么半群结构由一种二元积提供,称为序列积。序列积的泛性质为笛卡尔效应范畴的构造和证明提供了有力的工具。据我们所知,效应范畴和序贯乘积都是新概念。

英文摘要:

Most often, in a categorical semantics for a programming language, the substitution of terms is expressed by composition and finite products. However this does not deal with the order of evaluation of arguments, which may have major consequences when there are side-effects. In this paper Cartesian effect categories are introduced for solving this issue, and they are compared with strong monads, Freyd-categories and Haskell's Arrows. It is proved that a Cartesian effect category is a Freyd-category where the premonoidal structure is provided by a kind of binary product, called the sequential product. The universal property of the sequential product provides Cartesian effect categories with a powerful tool for constructions and proofs. To our knowledge, both effect categories and sequential products are new notions.

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

↑