计算机科学 > 程序设计语言
[提交于 2019年5月31日]
标题:A Role for Dependent Types in Haskell (Extended version)
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Modern Haskell supports zero-cost coercions, a mechanism where types that share the same run-time representation may be freely converted between. To make sure such conversions are safe and desirable, this feature relies on a mechanism of roles to prohibit invalid coercions. In this work, we show how to integrate roles with dependent type systems and prove, using the Coq proof assistant, that the resulting system is sound. We have designed this work as a foundation for the addition of dependent types to the Glasgow Haskell Compiler, but we also expect that it will be of use to designers of other dependently-typed languages who might want to adopt Haskell's safe coercions feature.
提交历史
来自:Richard Eisenberg[v1] 2019年5月31日 星期五 16:35:23 UTC