首页> 外文会议>Foundations of software science and computational structures >Realizability Semantics of Parametric Polymorphism, General References, and Recursive Types
【24h】

Realizability Semantics of Parametric Polymorphism, General References, and Recursive Types

机译:参数多态性,通用参考和递归类型的可实现性语义

获取原文
获取原文并翻译 | 示例

摘要

We present a realizability model for a call-by-value, higher-order programming language with parametric polymorphism, general first-class references, and recursive types. The main novelty is a relational interpretation of open types (as needed for parametricity reasoning) that include general reference types. The interpretation uses a new approach to modeling references.rnThe universe of semantic types consists of world-indexed families of logical relations over a universal predomain. In order to model general reference types, worlds are finite maps from locations to semantic types: this introduces a circularity between semantic types and worlds that precludes a direct definition of either. Our solution is to solve a recursive equation in an appropriate category of metric spaces. In effect, types are interpreted using a Kripke logical relation over a recursively defined set of worlds.rnWe illustrate how the model can be used to prove simple equivalences between different implementations of imperative abstract data types.
机译:我们为具有参数多态性,通用的一等引用和递归类型的按值调用,高阶编程语言提供了一种可实现性模型。主要的新颖之处是对开放类型的相关性解释(根据参数推理需要),其中包括常规参考类型。解释使用一种新的方式对引用进行建模。语义类型的世界由通用预域上世界索引的逻辑关系族组成。为了对通用引用类型进行建模,世界是从位置到语义类型的有限映射:这会在语义类型和世界之间引入圆度,从而无法直接定义两者之一。我们的解决方案是在度量空间的适当类别中求解递归方程。实际上,在递归定义的世界集上使用Kripke逻辑关系解释类型。rn我们说明了如何使用该模型证明命令式抽象数据类型的不同实现之间的简单等价关系。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号