首页> 外文期刊>Higher-order and symbolic computation >A Polymorphic Environment Calculus and its Type-Inference Algorithm
【24h】

A Polymorphic Environment Calculus and its Type-Inference Algorithm

机译:多态环境演算及其类型推断算法

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

摘要

The polymorphic environment calculus is a polymorphic lambda calculus which enables us to treat environments as first-class citizens. In the calculus, environments are formalized as explicit substitutions, and the substitutions are included in the set of terms of the calculus. First, we introduce an untyped environment calculus, and we present a semantics of the calculus as a translation into the lambda calculus. Second, we propose a polymorphic type system for the environment calculus based on Damas-Milner's ML-polymorphic type system. In ML, polymorphism is allowed only in let-expressions; in the polymorphic environment calculus, polymorphism is provided with environment compositions. We prove a subject-reduction theorem for the type system. Third, a type-inference algorithm is given to the polymorphic environment calculus, and we establish its soundness, termination, and principal-typing theorem.
机译:多态环境演算是一种多态λ演算,它使我们能够将环境视为头等公民。在微积分中,环境被形式化为显式替换,并且这些替换包含在微积分项中。首先,我们介绍了一种无类型的环境演算,并介绍了演算的语义作为对lambda演算的转换。其次,我们提出了基于Damas-Milner的ML-多态类型系统的环境演算的多态类型系统。在ML中,仅在let表达式中才允许多态。在多态环境演算中,环境组成提供了多态性。我们证明了类型系统的一个主题约简定理。第三,对多态环境演算进行类型推断算法,并建立其稳健性,终止性和主体类型定理。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号