arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1706.03814cs.PL
收藏

依赖对象类型的简单可靠性证明

A Simple Soundness Proof for Dependent Object Types

Marianna Rapoport, Ifaz Kabir, Paul He, Ondřej Lhoták

摘要:

依赖对象类型(DOT)是Scala建模的核心演算。它的显着特征是抽象类型成员,对象中的字段保存类型而不是值。证明DOT的合理性是令人惊讶的挑战,现有的证明是复杂的,并且同时推理多个概念(例如类型,值,评估)。作为Scala的核心演算,DOT应该易于实验和扩展,因此它的可靠性证明需要易于修改。本文提出了一种简单、模块化的DOT推理证明策略。该策略将类型的推理与其他关注点分开。它以一个定理为中心,该定理将完整的DOT类型系统连接到一个受限制的变体,其中消除了抽象类型成员引起的挑战和悖论。几乎所有的证明推理都是在这个受限类型系统的直觉世界中完成的。一旦我们得到了关于类型的必要结果,我们观察到DOT的其他方面大多是标准的,并且可以使用其他演算中已知的熟悉技术将其纳入可靠性证明中。我们的论文附带了Coq中证明的机器验证版本。

英文摘要:

Dependent Object Types (DOT) is intended to be a core calculus for modelling Scala. Its distinguishing feature is abstract type members, fields in objects that hold types rather than values. Proving soundness of DOT has been surprisingly challenging, and existing proofs are complicated, and reason about multiple concepts at the same time (e.g. types, values, evaluation). To serve as a core calculus for Scala, DOT should be easy to experiment with and extend, and therefore its soundness proof needs to be easy to modify. This paper presents a simple and modular proof strategy for reasoning in DOT. The strategy separates reasoning about types from other concerns. It is centred around a theorem that connects the full DOT type system to a restricted variant in which the challenges and paradoxes caused by abstract type members are eliminated. Almost all reasoning in the proof is done in the intuitive world of this restricted type system. Once we have the necessary results about types, we observe that the other aspects of DOT are mostly standard and can be incorporated into a soundness proof using familiar techniques known from other calculi. Our paper comes with a machine-verified version of the proof in Coq.

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

↑