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

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

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

arXiv:2105.03389 (cs)
[提交于 2022年4月11日]

标题:GADTs, Functoriality, Parametricity: Pick Two

作者:Patricia Johann, Enrico Ghiorzi, Daniel Jeffries
查看论文《GADTs, Functoriality, Parametricity: Pick Two》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:GADTs can be represented either as their Church encodings a la Atkey, or as fixpoints a la Johann and Polonsky. While a GADT represented as its Church encoding need not support a map function satisfying the functor laws, the fixpoint representation of a GADT must support such a map function even to be well-defined. The two representations of a GADT thus need not be the same in general. This observation forces a choice of representation of data types in languages supporting GADTs. In this paper we show that choosing whether to represent data types as their Church encodings or as fixpoints determines whether or not a language supporting GADTs can have parametric models. This choice thus has important consequences for how we can program with, and reason about, these advanced data types.
评论: In Proceedings LSFA 2021, arXiv:2204.03415
主题: 计算机科学中的逻辑 (cs.LO); 程序设计语言 (cs.PL)
引用方式: arXiv:2105.03389 [cs.LO]
  (或者 arXiv:2105.03389v1 [cs.LO] 对于此版本)
  https://doi.org/10.48550/arXiv.2105.03389
期刊参考: EPTCS 357, 2022, pp. 77-92
相关 DOI: https://doi.org/10.4204/EPTCS.357.6

提交历史

来自:EPTCS
[v1] 2022年4月11日 星期一 00:00:00 UTC
全文链接:

访问论文:

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

当前浏览上下文:

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

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

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