计算机科学 > 程序设计语言
[提交于 2021年1月7日]
标题:A graded dependent type system with a usage-aware semantics (extended version)
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Graded Type Theory provides a mechanism to track and reason about resource usage in type systems. In this paper, we develop GraD, a novel version of such a graded dependent type system that includes functions, tensor products, additive sums, and a unit type. Since standard operational semantics is resource-agnostic, we develop a heap-based operational semantics and prove a soundness theorem that shows correct accounting of resource usage. Several useful properties, including the standard type soundness theorem, non-interference of irrelevant resources in computation and single pointer property for linear resources, can be derived from this theorem. We hope that our work will provide a base for integrating linearity, irrelevance and dependent types in practical programming languages like Haskell.
提交历史
来自:Pritam Choudhury[v1] 2021年1月7日 星期四 00:00:00 UTC