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

非严格语言的语义子类型

Semantic subtyping for non-strict languages

Tommaso Petrucciani, Giuseppe Castagna, Davide Ancona, Elena Zucca

摘要:

语义子类型化是一种为具有并和交类型连接词的类型系统定义子类型化关系的方法。它只在严格的语言中被研究过,而在非严格的语义中是不可靠的。在这项工作中,我们研究如何适应这种方法,以非严格的语言:特别是,我们定义了一个类型系统,使用语义子类型的函数式语言与调用的需要语义。我们通过在类型中引入一个明确的发散表示来做到这一点,这样类型系统就可以区分结果表达式和可能发散的计算表达式。

英文摘要:

Semantic subtyping is an approach to define subtyping relations for type systems featuring union and intersection type connectives. It has been studied only for strict languages, and it is unsound for non-strict semantics. In this work, we study how to adapt this approach to non-strict languages: in particular, we define a type system using semantic subtyping for a functional language with a call-by-need semantics. We do so by introducing an explicit representation for divergence in the types, so that the type system distinguishes expressions that are results from those which are computations that might diverge.

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

↑