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

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

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

arXiv:1701.07601 (cs)
[提交于 2017年1月26日 (v1),最后修订于 2017年4月13日 (此版本, v3)]

标题:Quotients in monadic programming: Projective algebras are equivalent to coalgebras

作者:Dusko Pavlovic, Peter-Michael Seidel
查看论文《Quotients in monadic programming: Projective algebras are equivalent to coalgebras》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:In monadic programming, datatypes are presented as free algebras, generated by data values, and by the algebraic operations and equations capturing some computational effects. These algebras are free in the sense that they satisfy just the equations imposed by their algebraic theory, and remain free of any additional equations. The consequence is that they do not admit quotient types. This is, of course, often inconvenient. Whenever a computation involves data with multiple representatives, and they need to be identified according to some equations that are not satisfied by all data, the monadic programmer has to leave the universe of free algebras, and resort to explicit destructors. We characterize the situation when these destructors are preserved under all operations, and the resulting quotients of free algebras are also their subalgebras. Such quotients are called *projective*. Although popular in universal algebra, projective algebras did not attract much attention in the monadic setting, where they turn out to have a surprising avatar: for any given monad, a suitable category of projective algebras is equivalent with the category of coalgebras for the comonad induced by any monad resolution. For a monadic programmer, this equivalence provides a convenient way to implement polymorphic quotients as coalgebras. The dual correspondence of injective coalgebras and all algebras leads to a different family of quotient types, which seems to have a different family of applications. Both equivalences also entail several general corollaries concerning monadicity and comonadicity.
评论: 31 pages, 21 diagram; in this version: fixed typos; short version in LICS 2017
主题: 计算机科学中的逻辑 (cs.LO); 范畴论 (math.CT)
引用方式: arXiv:1701.07601 [cs.LO]
  (或者 arXiv:1701.07601v3 [cs.LO] 对于此版本)
  https://doi.org/10.48550/arXiv.1701.07601
期刊参考: ACM/IEEE Symposia on Logic in Computer Science (LICS), 32, IEEE 2017, pp. 1-12
相关 DOI: https://doi.org/10.1109/LICS.2017.8005110

提交历史

来自:Dusko Pavlovic
[v1] 2017年1月26日 星期四 07:38:53 UTC
[v3] 2017年4月13日 星期四 18:26:09 UTC
全文链接:

访问论文:

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

当前浏览上下文:

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

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

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