子类型与构造函数的交集
Intersection Subtyping with Constructors
摘要:
我们研究了用额外的类型构造函数扩展BCD交叉类型系统的问题。在类型方面,我们专注于为产品类型添加通常的规则。在子类型方面,我们考虑一种通用的方法来定义一个子类型的关系,家庭的类型,其中包括交叉类型。我们通过考虑类型构造函数是交集、欧米茄和箭头的特殊情况,找到了BCD子类型关系。作为另一个实例,我们得到了BCD子类型到产品类型的扩展。我们展示了如何保存类型的减少和扩大是满意的,在所有考虑的情况下。我们的方法受益于“子公式属性”的子类型关系的建议介绍。
英文摘要:
We study the question of extending the BCD intersection type system with additional type constructors. On the typing side, we focus on adding the usual rules for product types. On the subtyping side, we consider a generic way of defining a subtyping relation on families of types which include intersection types. We find back the BCD subtyping relation by considering the particular case where the type constructors are intersection, omega and arrow. We obtain an extension of BCD subtyping to product types as another instance. We show how the preservation of typing by both reduction and expansion is satisfied in all the considered cases. Our approach takes benefits from a "subformula property" of the proposed presentation of the subtyping relation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。