【24h】

A type system for well-founded recursion

机译:一个有充分依据的递归的类型系统

获取原文

摘要

In the interest of designing a recursive module extension to ML that is as simple and general as possible, we propose a novel type system for general recursion over effectful expressions. The presence of effects seems to necessitate a backpatching semantics for recursion similar to that of Scheme. Our type system ensures statically that recursion is well-founded---that the body of a recursive expression will evaluate without attempting to access the undefined recursive variable---which avoids some unnecessary run-time costs associated with backpatching. To ensure well-founded recursion in the presence of multiple recursive variables and separate compilation, we track the usage of individual recursive variables, represented statically by "names". So that our type system may eventually be integrated smoothly into ML's, reasoning involving names is only required inside code that uses our recursive construct and need not infect existing ML code, although instrumentation of some existing code can helpto improve the precision of our type system.
机译:为了设计一个尽可能简单和通用的ML递归模块扩展,我们提出了一种新颖的类型系统,用于有效表达式的通用递归。效果的存在似乎需要与Scheme相似的递归语义进行递归。我们的类型系统静态地确保了递归的依据-递归表达式的主体将在不尝试访问未定义的递归变量的情况下进行求值-避免了与回补相关的不必要的运行时成本。为了确保在存在多个递归变量和单独编译的情况下有充分依据的递归,我们跟踪各个递归变量的用法,这些递归变量以“名称”静态表示。为了使我们的类型系统最终可以平滑地集成到ML中,尽管使用一些现有代码可以帮助提高我们类型系统的精度,但是仅在使用我们的递归结构的代码内部不需要涉及名称的推理,并且不需要感染现有的ML代码。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号