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

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

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

arXiv:2011.07653 (cs)
[提交于 2020年11月15日]

标题:Coming to Terms with Your Choices: An Existential Take on Dependent Types

作者:Georg Stefan Schmid, Olivier Blanvillain, Jad Hamza, Viktor Kunčak
查看论文《Coming to Terms with Your Choices: An Existential Take on Dependent Types》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Type-level programming is an increasingly popular way to obtain additional type safety. Unfortunately, it remains a second-class citizen in the majority of industrially-used programming languages. We propose a new dependently-typed system with subtyping and singleton types whose goal is to enable type-level programming in an accessible style. At the heart of our system lies a non-deterministic choice operator. We argue that embracing non-determinism is crucial for bringing dependent types to a broader audience of programmers, since real-world programs will inevitably interact with imprecisely-typed, or even impure code. Furthermore, we show that singleton types combined with the choice operator can serve as a replacement for many type functions of interest in practice. We establish the soundness of our approach using the Coq proof assistant. Our soundness approach models non-determinism using additional function arguments to represent choices. We represent type-level computation using singleton types and existential types that quantify over choice arguments. To demonstrate the practicality of our type system, we present an implementation as a modification of the Scala compiler. We provide a case study in which we develop a strongly-typed wrapper for Spark datasets.
评论: 25 pages, 11 figures. A version of this manuscript had been submitted for review in the first half of 2020
主题: 程序设计语言 (cs.PL)
引用方式: arXiv:2011.07653 [cs.PL]
  (或者 arXiv:2011.07653v1 [cs.PL] 对于此版本)
  https://doi.org/10.48550/arXiv.2011.07653

提交历史

来自:Georg Schmid
[v1] 2020年11月15日 星期日 23:09:55 UTC
全文链接:

访问论文:

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

当前浏览上下文:

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

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

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