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

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

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

arXiv:2202.08246 (cs)
[提交于 2022年2月16日 (v1),最后修订于 2024年1月26日 (此版本, v5)]

标题:Galois connecting call-by-value and call-by-name

作者:Dylan McDermott, Alan Mycroft
查看论文《Galois connecting call-by-value and call-by-name》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:We establish a general framework for reasoning about the relationship between call-by-value and call-by-name. In languages with computational effects, call-by-value and call-by-name executions of programs often have different, but related, observable behaviours. For example, if a program might diverge but otherwise has no effects, then whenever it terminates under call-by-value, it terminates with the same result under call-by-name. We propose a technique for stating and proving properties like these. The key ingredient is Levy's call-by-push-value calculus, which we use as a framework for reasoning about evaluation orders. We show that the call-by-value and call-by-name translations of expressions into call-by-push-value have related observable behaviour under certain conditions on computational effects, which we identify. We then use this fact to construct maps between the call-by-value and call-by-name interpretations of types, and identify further properties of effects that imply these maps form a Galois connection. These properties hold for some computational effects (such as divergence), but not others (such as mutable state). This gives rise to a general reasoning principle that relates call-by-value and call-by-name. We apply the reasoning principle to example computational effects including divergence and nondeterminism.
主题: 程序设计语言 (cs.PL)
引用方式: arXiv:2202.08246 [cs.PL]
  (或者 arXiv:2202.08246v5 [cs.PL] 对于此版本)
  https://doi.org/10.48550/arXiv.2202.08246
期刊参考: Logical Methods in Computer Science, Volume 20, Issue 1 (February 12, 2024) lmcs:11022
相关 DOI: https://doi.org/10.46298/lmcs-20(1:13)2024

提交历史

来自:Dylan McDermott
[v1] 2022年2月16日 星期三 18:44:58 UTC
[v2] 2023年2月27日 星期一 17:55:19 UTC
[v3] 2023年10月13日 星期五 14:01:27 UTC
[v4] 2024年1月14日 星期日 15:27:50 UTC
[v5] 2024年1月26日 星期五 21:54:46 UTC
全文链接:

访问论文:

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

当前浏览上下文:

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

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

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