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

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

计算机科学 > 程序设计语言

arXiv:2001.07488 (cs)
[提交于 2020年1月21日 (v1),最后修订于 2024年2月20日 (此版本, v6)]

标题:Profunctor Optics, a Categorical Update

作者:Bryce Clarke, Derek Elkins, Jeremy Gibbons, Fosco Loregian, Bartosz Milewski, Emily Pillmore, Mario Román
查看论文《Profunctor Optics, a Categorical Update》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Optics are bidirectional data accessors that capture data transformation patterns such as accessing subfields or iterating over containers. Profunctor optics are a particular choice of representation supporting modularity, meaning that we can construct accessors for complex structures by combining simpler ones. Profunctor optics have previously been studied only in an unenriched and non-mixed setting, in which both directions of access are modelled in the same category. However, functional programming languages are arguably better described by enriched categories; and we have found that some structures in the literature are actually mixed optics, with access directions modelled in different categories. Our work generalizes a classic result by Pastro and Street on Tambara theory and uses it to describe mixed V-enriched profunctor optics and to endow them with V-category structure. We provide some original families of optics and derivations, including an elementary one for traversals. Finally, we discuss a Haskell implementation.
评论: 38 pages. Final version with Compositionality metadata, does not change theorem numbering
主题: 程序设计语言 (cs.PL); 范畴论 (math.CT)
引用方式: arXiv:2001.07488 [cs.PL]
  (或者 arXiv:2001.07488v6 [cs.PL] 对于此版本)
  https://doi.org/10.48550/arXiv.2001.07488
期刊参考: Compositionality, Volume 6 (2024) (February 23, 2024) compositionality:13530
相关 DOI: https://doi.org/10.32408/compositionality-6-1

提交历史

来自:Mario Román
[v1] 2020年1月21日 星期二 12:53:00 UTC
[v2] 2022年2月21日 星期一 13:19:41 UTC
[v3] 2022年3月15日 星期二 08:34:45 UTC
[v6] 2024年2月20日 星期二 20:30:17 UTC
全文链接:

访问论文:

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

当前浏览上下文:

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

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

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