首页> 外文会议>ACM symposium on Applied Computing >Algebraic specification techniques for parametric types with logic-based constraints
【24h】

Algebraic specification techniques for parametric types with logic-based constraints

机译:基于逻辑的约束的参数类型的代数规范技术

获取原文

摘要

Mainstream object-oriented languages now offer capabilities of generic types with bounded type parameters, but they typically do not provide support for specifying semantic requirements on the type parameters' methods beyond conformance of signatures. Regrettably, even object-oriented assertion languages, such as JML, have nontrivial limitations in this regard. Yet many interesting parameterized types require additional semantic features if they are to function as intended. We illustrate the issues with a case study of project scheduling based on the Project Management Institute's generic characterization of task breakdowns. We consider algebraic techniques for instantiating parametric types in such a way that the semantic requirements expressed by logic-based constraints propagate to the instantiating types. These techniques argue for more general bindings of actual type parameters for the formal ones which do not have the restrictions of current programming languages. We show that types equipped with constraints should be viewed as theories, and the bindings as morphisms of types as theories. We translate these software specifications into theories in the PVS specification language. These proposals lead to conclusions about language features for more general, semantic bindings of the actual for the formal type parameters, at least in the assertion languages.
机译:主流面向对象语言现在提供具有界限类型参数的通用类型的功能,但它们通常不会提供支持在符合签名的类型参数的方法上指定语义要求。令人遗憾的是,甚至面向对象的断言语言,例如JML,在这方面具有非激动的限制。然而,许多有趣的参数化类型需要额外的语义特征,如果它们可以按预期运行。我们说明了基于项目管理研究所的任务崩溃的通用表征的项目调度案例研究的问题。我们考虑以用于实例化参数类型的代数技术,使得基于逻辑的约束表达的语义要求传播到实例化类型。这些技术争论了没有限制当前编程语言的正式参数的更一般的实际参数绑定。我们表明,配备限制的类型应被视为理论,以及作为理论类型的类型的态度。我们将这些软件规范转化为PVS规范语言的理论。这些提案导致语言特征的结论,对于正式类型参数的更一般,语义绑定,至少在断言语言中。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号