【24h】

Parametricity as subtyping

机译:参数化为子类型化

获取原文

摘要

A polymorphic function is parametric if it has uniform behavior for all type parameters. This property is useful when writing, reasoning about, and compiling functional programs.

We show how to syntactically define and reason about parametricity in a language with intersection types and bounded polymorphism. Within this framework, parametricity is subtyping, and reasoning about parametricity becomes reasoning about the well-typedness of terms. This work also demonstrates the expressiveness of languages that combine intersection types and bounded polymorphism.

机译:

如果一个多态函数对所有类型参数具有统一的行为,则它是参数化的。在编写,推理和编译功能程序时,此属性很有用。

我们展示了如何在具有交集类型和有界多态性的语言中从句法上定义和推理参数化。在此框架内,参数性是子类型化,而关于参数性的推理就成为关于术语的良好类型化的推理。这项工作还证明了结合交集类型和有界多态性的语言的表达能力。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号