跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 计算机科学中的逻辑

arXiv:1402.1051 (cs)
[提交于 2014年2月13日]

标题:Breaking a monad-comonad symmetry between computational effects

作者:Jean-Guillaume Dumas, Dominique Duval, Jean-Claude Reynaud
查看论文《Breaking a monad-comonad symmetry between computational effects》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Computational effects may often be interpreted in the Kleisli category of a monad or in the coKleisli category of a comonad. The duality between monads and comonads corresponds, in general, to a symmetry between construction and observation, for instance between raising an exception and looking up a state. Thanks to the properties of adjunction one may go one step further: the coKleisli-on-Kleisli category of a monad provides a kind of observation with respect to a given construction, while dually the Kleisli-on-coKleisli category of a comonad provides a kind of construction with respect to a given observation. In the previous examples this gives rise to catching an exception and updating a state. However, the interpretation of computational effects is usually based on a category which is not self-dual, like the category of sets. This leads to a breaking of the monad-comonad duality. For instance, in a distributive category the state effect has much better properties than the exception effect. This remark provides a novel point of view on the usual mechanism for handling exceptions. The aim of this paper is to build an equational semantics for handling exceptions based on the coKleisli-on-Kleisli category of the monad of exceptions. We focus on n-ary functions and conditionals. We propose a programmer's language for exceptions and we prove that it has the required behaviour with respect to n-ary functions and conditionals.
评论: arXiv admin note: substantial text overlap with arXiv:1310.0605
主题: 计算机科学中的逻辑 (cs.LO); 范畴论 (math.CT)
引用方式: arXiv:1402.1051 [cs.LO]
  (或者 arXiv:1402.1051v1 [cs.LO] 对于此版本)
  https://doi.org/10.48550/arXiv.1402.1051
期刊参考: Mathematical Structures in Computer Science 22, 4 (2012) p.719-722
相关 DOI: https://doi.org/10.1017/S0960129511000752

提交历史

来自:Dominique Duval
[v1] 2014年2月13日 星期四 00:00:00 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.LO
< 上一篇   |   下一篇 >
最新 | 近期 | 2014-02
切换浏览方式为:
cs
math.CT

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站