arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1911.06153cs.PL
收藏

数据库的类推断:技术补充

Kind Inference for Datatypes: Technical Supplement

Ningning Xie, Richard A. Eisenberg, Bruno C. d. S. Oliveira

摘要:

近年来,像Haskell这样的语言出现了大量的新特性,这些特性显著地扩展了它们的类型系统的表达能力。由于这些特点,数据类型声明的类推理问题已经成为一个值得研究的问题。本文研究数据集的类推理。受以前类型推断研究的启发,我们为Haskell 98和我们称为PolyKinds的更高级系统提供了应该接受的数据类型声明的声明性规范,该系统基于现代Haskell的扩展,包括有限形式的依赖类型。我们相信这些公式是新颖的,没有先例,即使是Haskell 98。这些规范补充了可实现的算法版本。我们研究这些系统的可靠性,完备性和主类的存在性,证明它们的性质。这项工作可以作为一个指导语言的设计者谁希望正式化他们的数据类型声明,也渴望有原则的推理的主要类型的实现。这一技术性的补充,以类推理的数据库服务,以扩大文本的主要文件。它包含了详细的打字规则、证明以及与Glasgow Haskell Classifier(GHC)的连接。

英文摘要:

In recent years, languages like Haskell have seen a dramatic surge of new features that significantly extends the expressive power of their type systems. With these features, the challenge of kind inference for datatype declarations has presented itself and become a worthy research problem on its own. This paper studies kind inference for datatypes. Inspired by previous research on type-inference, we offer declarative specifications for what datatype declarations should be accepted, both for Haskell98 and for a more advanced system we call PolyKinds, based on the extensions in modern Haskell, including a limited form of dependent types. We believe these formulations to be novel and without precedent, even for Haskell98. These specifications are complemented with implementable algorithmic versions. We study soundness, completeness and the existence of principal kinds in these systems, proving the properties where they hold. This work can serve as a guide both to language designers who wish to formalize their datatype declarations and also to implementors keen to have principled inference of principal types. This technical supplement to Kind Inference for Datatypes serves to expand upon the text in the main paper. It contains detailed typing rules, proofs, and connections to the Glasgow Haskell Compiler (GHC).

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑