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

可扩展的数据排序优化

Extensible Datasort Refinements

Jana Dunfield

摘要:

细化类型将类型检查转变为轻量级验证。精化类型的经典形式是归并精化,其中归并标识归纳数据集的子类。现有的类型系统要求在声明一个类型时指定该类型的所有细分;同一类型的多个细分只能通过复制类型定义来获得,从而复制代码。我们丰富了传统的签名的概念,它描述了居民的港口,允许重新完善通过签名扩展,而不重复的定义。由于任意更新的签名可以无效的反演原则用于检查情况下的表达式,我们开发了一个定义的签名格式良好,确保扩展保持现有的反演原则。这个定义允许程序的不同部分以不同的方式扩展相同的签名,而不会相互冲突。每个部分都可以独立地进行类型检查,允许单独编译。

英文摘要:

Refinement types turn typechecking into lightweight verification. The classic form of refinement type is the datasort refinement, in which datasorts identify subclasses of inductive datatypes. Existing type systems for datasort refinements require that all the refinements of a type be specified when the type is declared; multiple refinements of the same type can be obtained only by duplicating type definitions, and consequently, duplicating code. We enrich the traditional notion of a signature, which describes the inhabitants of datasorts, to allow re-refinement via signature extension, without duplicating definitions. Since arbitrary updates to a signature can invalidate the inversion principles used to check case expressions, we develop a definition of signature well-formedness that ensures that extensions maintain existing inversion principles. This definition allows different parts of a program to extend the same signature in different ways, without conflicting with each other. Each part can be type-checked independently, allowing separate compilation.

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

↑