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

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

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

arXiv:2312.06103 (cs)
[提交于 2023年12月11日]

标题:A Practical Formalization of Monadic Equational Reasoning in Dependent-type Theory

作者:Reynald Affeldt, Jacques Garrigue, Takafumi Saikawa
查看论文《A Practical Formalization of Monadic Equational Reasoning in Dependent-type Theory》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:One can perform equational reasoning about computational effects with a purely functional programming language thanks to monads. Even though equational reasoning for effectful programs is desirable, it is not yet mainstream. This is partly because it is difficult to maintain pencil-and-paper proofs of large examples. We propose a formalization of a hierarchy of effects using monads in the Coq proof assistant that makes monadic equational reasoning practical. Our main idea is to formalize the hierarchy of effects and algebraic laws as interfaces like it is done when formalizing hierarchy of algebras in dependent type theory. Thanks to this approach, we clearly separate equational laws from models. We can then take advantage of the sophisticated rewriting capabilities of Coq and build libraries of lemmas to achieve concise proofs of programs. We can also use the resulting framework to leverage on Coq's mathematical theories and formalize models of monads. In this article, we explain how we formalize a rich hierarchy of effects (nondeterminism, state, probability, etc.), how we mechanize examples of monadic equational reasoning from the literature, and how we apply our framework to the design of equational laws for a subset of ML with references.
评论: 38 pages
主题: 计算机科学中的逻辑 (cs.LO)
引用方式: arXiv:2312.06103 [cs.LO]
  (或者 arXiv:2312.06103v1 [cs.LO] 对于此版本)
  https://doi.org/10.48550/arXiv.2312.06103
期刊参考: J. Funct. Prog. 35 (2025) e1
相关 DOI: https://doi.org/10.1017/S0956796824000157

提交历史

来自:Reynald Affeldt
[v1] 2023年12月11日 星期一 04:15:52 UTC
全文链接:

访问论文:

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

当前浏览上下文:

cs.LO
< 上一篇   |   下一篇 >
最新 | 近期 | 2023-12
切换浏览方式为:
cs

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

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