首页> 外文期刊>Science of Computer Programming >Type-changing rewriting and semantics-preserving transformation
【24h】

Type-changing rewriting and semantics-preserving transformation

机译:改变类型的重写和保留语义的转换

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

摘要

We have identified a class of whole-program transformations that are regular in structure and require changing the types of terms throughout a program while simultaneously preserving the initial semantics after transformation. This class of transformations cannot be safely performed with typical term rewriting techniques, which do not allow for changing the types of terms. In this paper, we present a formalization of type-and-transform systems, an automated approach to the whole-program transformation of terms of one type to terms of a different, isomorphic type using type-changing rewrite rules. A type-and-transform system defines typing and semantics relations between all corresponding source and target subprograms such that a complete transformation guarantees that the whole programs have equivalent types and semantics. We describe the type-and-transform system for the lambda calculus with let-polymorphism and general recursion, including several examples from the literature and properties of the system.
机译:我们已经确定了一类全程序转换,这些转换在结构上是规则的,需要在整个程序中更改术语的类型,同时还要保留转换后的初始语义。此类转换无法使用典型的术语重写技术安全地执行,该技术不允许更改术语的类型。在本文中,我们介绍了类型转换系统的形式化,这是一种使用类型更改重写规则将一种类型的项转换为另一种同构类型的项的自动方法。类型转换系统定义所有相应的源和目标子程序之间的类型和语义关系,以便完整的转换可确保整个程序具有相同的类型和语义。我们用let多态性和一般递归描述了lambda演算的类型和转换系统,其中包括来自文献和系统性质的几个示例。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号