arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2103.15193cs.PLcs.LO
收藏

嵌套多态会话类型的子类型

Subtyping on Nested Polymorphic Session Types

Ankush Das, Henry DeYoung, Andreia Mordido, Frank Pfenning

摘要:

子类型对于支持更广泛的良好类型程序的重要性是不可否认的。然而,子类型、递归和多态之间的相互作用还没有完全理解。在这项工作中,我们探讨子类型的嵌套,递归和多态类型的系统与共归纳的解释,我们证明了这个问题是不可判定的。我们的结果将是广泛适用的,但保持我们的研究扎根在一个具体的设置,我们的工作与显式多态性,参数类型构造函数,嵌套类型的会话类型的扩展。我们证明了子类型是不可判定的,即使是只有内部选择和嵌套的一元递归类型构造函数的片段。尽管这个负面的结果,我们提出了一个子类型算法,我们的系统,并证明其可靠性。我们通过使程序员能够用子类型声明(由算法验证)来播种算法,从而最大限度地减少不可避免的不完整性的影响。我们已经在Rast中实现了该算法,并在各种示例程序中证明了其有效性。

英文摘要:

The importance of subtyping to enable a wider range of well-typed programs is undeniable. However, the interaction between subtyping, recursion, and polymorphism is not completely understood yet. In this work, we explore subtyping in a system of nested, recursive, and polymorphic types with a coinductive interpretation, and we prove that this problem is undecidable. Our results will be broadly applicable, but to keep our study grounded in a concrete setting, we work with an extension of session types with explicit polymorphism, parametric type constructors, and nested types. We prove that subtyping is undecidable even for the fragment with only internal choices and nested unary recursive type constructors. Despite this negative result, we present a subtyping algorithm for our system and prove its soundness. We minimize the impact of the inescapable incompleteness by enabling the programmer to seed the algorithm with subtyping declarations (that are validated by the algorithm). We have implemented the proposed algorithm in Rast and it showed to be efficient in various example programs.

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

↑