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

结构参数多态的参数子类型化

Parametric Subtyping for Structural Parametric Polymorphism

Henry DeYoung, Andreia Mordido, Frank Pfenning, Ankush Das

AI总结:

本文提出参数子类型化这一可判定的结构子类型化片段,通过类型构造器的参数性概念严格推广刚性子类型化,并给出经证明正确的基于饱和的判定过程及在线实现。

摘要:

我们研究结构子类型化与参数多态性及递归定义的类型构造器之间的交互。尽管在此设定下结构子类型化是不可判定的,我们描述了类型构造器的参数性概念,并利用它来定义参数子类型化——这是结构子类型化的一个概念简单、可判定且具有表达力的片段,严格推广了刚性子类型化。我们提出并证明了一个有效的基于饱和的判定过程用于参数子类型化,并通过多种示例展示了其适用性。我们还在线提供了该判定过程的实现。

英文摘要:

We study the interaction of structural subtyping with parametric polymorphism and recursively defined type constructors. Although structural subtyping is undecidable in this setting, we describe a notion of parametricity for type constructors and then exploit it to define parametric subtyping, a conceptually simple, decidable, and expressive fragment of structural subtyping that strictly generalizes rigid subtyping. We present and prove correct an effective saturation-based decision procedure for parametric subtyping, demonstrating its applicability using a variety of examples. We also provide an implementation of this decision procedure online.

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

↑