首页> 外文期刊>Journal of logic and computation >Well-definedness and observational equivalence for inductive-coinductive programs
【24h】

Well-definedness and observational equivalence for inductive-coinductive programs

机译:归纳调控程序的良好义和观测等价

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

摘要

We define notions of well-definedness and observational equivalence for programs of mixed inductive and coinductive types. These notions are defined by means of tests formulas which combine structural congruence for inductive types and modal logic for coinductive types. Tests also correspond to certain evaluation contexts. We define a program to be well-defined if it is strongly normalizing under all tests, and two programs are observationally equivalent if they satisfy the same tests. We show that observational equivalence is sufficiently coarse to ensure that least and greatest fixed point types are initial algebras and final coalgebras, respectively. This yields inductive and coinductive proof principles for reasoning about program behaviour. On the other hand, we argue that observational equivalence does not identify too many terms, by showing that tests induce a topology that, on streams, coincides with usual topology induced by the prefix metric. As one would expect, observational equivalence is, in general, undecidable, but in order to develop some practically useful heuristics we provide coinductive techniques for establishing observational normalization and observational equivalence, along with up-to techniques for enhancing these methods.
机译:我们为混合电感和配合类型的程序定义了对良好义度和观察等价的概念。这些概念由测试公式定义,该公式将结构均相结合用于诱导类型和配合类型的模态逻辑。测试也对应于某些评估环境。如果在所有测试下强烈归一化,我们将定义一个程序定义的程序,如果满足相同的测试,则两个程序是观察到的。我们表明观察到等效量足够粗糙,以确保至少最大,最大的定点类型分别是初始代数和最终的基础资料。这会产生电感和配合典范的原则,了解计划行为。另一方面,我们认为观察到等价不会识别太多术语,通过显示测试诱导拓扑,在流中与前缀度量常规的常规拓扑相符。由于人们期望的是,观察到等价通常是不可判定的,而是为了制定一些实际上有用的启发式,我们提供用于建立观察标准化和观察等价的调控技术以及加强这些方法的技术。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号