...
首页> 外文期刊>Nordic journal of computing >Specification of parameterized programs - persistency revisited
【24h】

Specification of parameterized programs - persistency revisited

机译:参数化程序的规范-重新考虑持久性

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

摘要

We revisit the concept of persistent functor pointing out its well known limitations for the purpose of describing the semantics of specifications of parameterized data types (PDTs). We introduce a more general notion of a semantic functor F which requires only that the parameter algebra A is a subalgebra of its image F(A). We illustrate the flexibility and advantages of the proposed construction by examples. The main part of the paper concerns the syntactic restrictions on the specifications which allow one to define the semantics of PDTs in this way. One obtains the possibilities to: 1) preserve the carriers of the parameter algebras (corresponding to the classical persistency), or 2) extending carriers of the parameter algebras. The later situation means that one can, typically, use free functor semantics. In this case, one also has two further options: either 2a) to restrict the validity of the axioms from the parameter specification to apply only to the old elements (from the carriers of the parameter algebras), or 2b) to extend them to apply also to the new elements added to the carrier. We discuss the mechanism of actual parameter passing, actualization of the semantic functors and refer to an earlier work for the counterparts of the vertical and horisontal composition theorems, as well as the notion of refinement of PDTs which amounts to the refinement of the structure of the specified data type.
机译:我们重新介绍了持久函子的概念,指出了它的众所周知的局限性,目的是描述参数化数据类型(PDT)规范的语义。我们引入了一个语义函子F的更一般的概念,它仅要求参数代数A是其图像F(A)的子代数。我们通过示例来说明所提议结构的灵活性和优势。本文的主要部分涉及规范的语法限制,该规范允许以这种方式定义PDT的语义。一种获得以下可能性:1)保留参数代数的载波(对应于经典持久性),或2)扩展参数代数的载波。后一种情况意味着通常可以使用自由函子语义。在这种情况下,还有两个选择:2a)将参数规范中的公理的有效性限制为仅适用于旧元素(来自参数代数的载体),或者2b)将其扩展为适用也将新元素添加到载体中。我们讨论了实际参数传递的机制,语义函子的实现,并参考了垂直和水平合成定理的对应部分的早期工作,以及PDT的细化概念,这些概念相当于对结构的细化。指定的数据类型。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号