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

关系属性的双向类型检查

Bidirectional Type Checking for Relational Properties

Ezgi Çiçek, Weihao Qu, Gilles Barthe, Marco Gaboardi, Deepak Garg

摘要:

关系型系统已经被设计用于包括信息流、差分隐私和成本分析的若干应用。为了达到最好的结果,这些系统通常使用关系细化和关系效果,以最大限度地利用两个程序的结构进行比较的相似性。关系类型系统对关系属性很有吸引力,因为它们提供了比分别键入两个程序更简单和更精确的验证。然而,关系类型系统还没有达到非关系类型系统的实际吸引力,部分原因是缺乏实现它们的一般基础。在本文中,我们朝着这个方向迈出了一步,为具有关系细化和效果的系统开发双向关系类型检查。我们的方法实现了双向类型检查的好处,在关系设置。特别是,它通过类型检查和类型推断的组合,显著减少了对类型化注释的需求。为了突出我们的方法的基本性质,我们开发了几个关系类型系统的双向版本,这些系统逐步结合了表达关系分析所需的许多不同组件。

英文摘要:

Relational type systems have been designed for several applications including information flow, differential privacy, and cost analysis. In order to achieve the best results, these systems often use relational refinements and relational effects to maximally exploit the similarity in the structure of the two programs being compared. Relational type systems are appealing for relational properties because they deliver simpler and more precise verification than what could be derived from typing the two programs separately. However, relational type systems do not yet achieve the practical appeal of their non-relational counterpart, in part because of the lack of a general foundations for implementing them. In this paper, we take a step in this direction by developing bidirectional relational type checking for systems with relational refinements and effects. Our approach achieves the benefits of bidirectional type checking, in a relational setting. In particular, it significantly reduces the need for typing annotations through the combination of type checking and type inference. In order to highlight the foundational nature of our approach, we develop bidirectional versions of several relational type systems which incrementally combine many different components needed for expressive relational analysis.

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

↑