【24h】

Type Class Polymorphism in an Institutional Framework

机译:制度框架中的类型类多态性

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

摘要

Higher-order logic with shallow type class polymorphism is widely used as a specification formalism. Its polymorphic entities (types, operators, axioms) can easily be equipped with a 'naive' semantics defined in terms of collections of instances. However, this semantics has the unpleasant property that while model reduction preserves satisfaction of sentences, model expansion generally does not. In other words, unless further measures are taken, type class polymorphism fails to constitute a proper institution, being only a so-called rps preinstitution; this is unfortunate, as it means that one cannot use institution-independent or heterogeneous structuring languages, proof calculi, and tools with it. Here, we suggest to remedy this problem by modifying the notion of model to include information also about its potential future extensions. Our construction works at a high level of generality in the sense that it provides, for any preinstitution, an institution in which the original preinstitution can be represented. The semantics of polymorphism used in the specification language HAsCASL makes use of this result. In fact, HASCASL's polymorphism is a special case of a general notion of polymorphism in institutions introduced here, and our construction leads to the right notion of semantic consequence when applied to this generic polymorphism. The appropriateness of the construction for other frameworks that share the same problem depends on methodological questions to be decided case by case. In particular, it turns out that our method is apparently unsuitable for observational logics, while it works well with abstract state machine formalisms such as state-based CASL.
机译:具有浅类型类多态性的高阶逻辑被广泛用作规范形式主义。它的多态实体(类型,运算符,公理)可以很容易地配备根据实例集合定义的“幼稚”语义。但是,这种语义具有令人不愉快的特性,尽管模型简化可以保持句子的满意度,但是模型扩展通常不会。换句话说,除非采取进一步的措施,否则类型类多态性不能构成一个适当的机构,仅仅是所谓的rps前置机构。这是不幸的,因为这意味着不能使用与机构无关或异构的结构化语言,证明计算及其工具。在这里,我们建议通过修改模型的概念以包括有关其潜在的将来扩展的信息来纠正此问题。从任何意义上来说,我们的结构都提供了可以代表原始机构的机构的高度通用性。规范语言HAsCASL中使用的多态性语义利用了这个结果。实际上,HASCASL的多态性是此处介绍的机构中多态性的一般概念的特例,并且当我们将其应用于这种通用多态性时,我们的构造导致语义后果的正确概念。构建具有相同问题的其他框架的适当性取决于要视情况决定的方法论问题。尤其是,事实证明,我们的方法显然不适合观察逻辑,而与抽象的状态机形式主义(例如基于状态的CASL)一起很好地工作。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号