首页> 外文期刊>LIPIcs : Leibniz International Proceedings in Informatics >Constrained Polymorphic Types for a Calculus with Name Variables
【24h】

Constrained Polymorphic Types for a Calculus with Name Variables

机译:具有名称变量的微积分的受限多态性类型

获取原文
           

摘要

We extend the simply-typed lambda-calculus with a mechanism for dynamic rebinding of code based on parametric nominal interfaces. That is, we introduce values which represent single fragments, or families of named fragments, of open code, where free variables are associated with names which do not obey lpha-equivalence. In this way, code fragments can be passed as function arguments and manipulated, through their nominal interface, by operators such as rebinding, overriding and renaming. Moreover, by using name variables, it is possible to write terms which are parametric in their nominal interface and/or in the way it is adapted, greatly enhancing expressivity. However, in order to prevent conflicts when instantiating name variables, the name-polymorphic types of such terms need to be equipped with simple {inequality} constraints. We show soundness of the type system.
机译:我们将简单类型的Lambda-Calculus扩展到基于参数标称接口的代码的动态重新绑定机制。也就是说,我们介绍了代表单个片段的值,即名为碎片的单个碎片或命名片段的族,其中自由变量与不遵循 alpha-等效的名称关联。通过这种方式,代码片段可以作为函数参数并通过标称接口操作,由rebinding,覆盖和重命名等运算符进行操作。此外,通过使用名称变量,可以在其标称接口和/或其调整的方式中写入参数的术语,这大大提高了表达性。但是,为了防止当实例化名称变量时冲突,这些术语的名称 - 多态类型需要配备简单的{不等式}约束。我们展示了类型系统的声音。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号