【24h】

Type Processing by Constraint Reasoning

机译:约束推理的类型处理

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

摘要

Herbrand constraint solving or unification has long been understood as an efficient mechanism for type checking and inference for programs using Hindley/Milner types. If we step back from the particular solving mechanisms used for Hindley/Milner types, and understand type operations in terms of constraints we not only give a basis for handling Hindley/Milner extensions, but also gain insight into type reasoning even on pure Hindley/Milner types, particularly for type errors. In this paper we consider typing problems as constraint problems and show which constraint algorithms are required to support various typing questions. We use a light weight constraint reasoning formalism, Constraint Handling Rules, to generate suitable algorithms for many popular extensions to Hindley/Milner types. The algorithms we discuss are all implemented as part of the freely available Chameleon system.
机译:长期以来,人们一直将Herbrand约束求解或统一理解为使用Hindley / Milner类型的程序进行类型检查和推断的有效机制。如果我们退回用于Hindley / Milner类型的特定求解机制,并从约束的角度理解类型操作,我们不仅为处理Hindley / Milner扩展提供了基础,而且即使在纯Hindley / Milner上,也可以深入了解类型推理类型,尤其是类型错误。在本文中,我们将类型问题视为约束问题,并说明支持各种类型问题所需的约束算法。我们使用轻量级约束推理形式主义(Constraint Handling Rules)来为Hindley / Milner类型的许多流行扩展生成合适的算法。我们讨论的算法都是作为免费提供的Chameleon系统的一部分实现的。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号