首页> 外文会议>Asian Symposium on Programming Languages and Systems >Extending Hindley-Milner Type Inference with Coercive Structural Subtyping
【24h】

Extending Hindley-Milner Type Inference with Coercive Structural Subtyping

机译:延长Hindley-Milner型推论矫顽结构亚型

获取原文
获取外文期刊封面目录资料

摘要

We investigate how to add coercive structural subtyping to a type system for simply-typed lambda calculus with Hindley-Milner polymorphism. Coercions allow to convert between different types, and their automatic insertion can greatly increase readability of terms. We present a type inference algorithm that, given a term without type information, computes a type assignment and determines at which positions in the term coercions have to be inserted to make it type-correct according to the standard Hindley-Milner system (without any subtypes). The algorithm is sound and, if the subtype relation on base types is a disjoint union of lattices, also complete. The algorithm has been implemented in the proof assistant Isabelle.
机译:我们调查如何用Hindley-Milner多态性为简单地打字的Lambda微积分添加强制结构亚型。胁迫允许在不同类型之间进行转换,并且它们的自动插入可以大大增加可读性。我们提出了一种类型推理算法,给定没有类型信息的术语,计算类型分配并确定必须插入术语胁迫中的位置以使其根据标准的Hindley-Milner系统(没有任何亚型) )。该算法是声音,如果基础类型上的子类型关系是格格的不相交联盟,也完成。该算法已在验证助理isabelle中实现。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号