首页> 外文会议>Programming languages and systems >A Hoare Logic for the Coinductive Trace-Based Big-Step Semantics of While
【24h】

A Hoare Logic for the Coinductive Trace-Based Big-Step Semantics of While

机译:Hoel的基于归纳式轨迹大步语义的Hoare逻辑

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

摘要

In search for a foundational framework for reasoning about observable behavior of programs that may not terminate, we have previously devised a trace-based big-step semantics for While. In this semantics, both traces and evaluation (relating initial states of program runs to traces they produce) are denned coinductively. On terminating runs, it agrees with the standard inductive state-based semantics. Here we present a Hoare logic counterpart of our coinductive trace-based semantics and prove it sound and complete. Our logic subsumes both the partial correctness Hoare logic and the total correctness Hoare logic: they are embeddable. Since we work with a constructive underlying logic, the range of expressible program properties has a rich structure; in particular, we can distinguish between termination and nondivergence, e.g., unbounded total search fails to be terminating but is nonetheless non-divergent. Our metatheory is entirely constructive as well, and we have formalized it in Coq.
机译:为了寻找可能不会终止的程序的可观察行为的推理基础框架,我们之前为While设计了基于跟踪的大步语义。在这种语义中,轨迹和评估(程序运行的初始状态与它们产生的轨迹相关)两者是一致定义的。在终止运行时,它符合标准的基于归纳状态的语义。在这里,我们提出了与我们的协导基于迹的语义的Hoare逻辑对应,并证明了它的合理性和完整性。我们的逻辑同时包含部分正确性Hoare逻辑和总正确性Hoare逻辑:它们是可嵌入的。由于我们使用的是构造性的基础逻辑,因此可表示的程序属性的范围具有丰富的结构;特别是,我们可以区分终止和非差异,例如,无限制的总搜索无法终止,但仍然是非差异的。我们的元理论也是完全有建设性的,并且已经在Coq中对其进行了形式化。

著录项

  • 来源
    《Programming languages and systems》|2010年|p.488-506|共19页
  • 会议地点 Pahos(CY);Pahos(CY);York(GB);Pahos(CY)
  • 作者

    Keiko Nakata; Tarmo Uustalu;

  • 作者单位

    Institute of Cybernetics at Tallinn University of Technology, Akadeemia tee 21, EE-12618 Tallinn, Estonia;

    rnInstitute of Cybernetics at Tallinn University of Technology, Akadeemia tee 21, EE-12618 Tallinn, Estonia;

  • 会议组织
  • 原文格式 PDF
  • 正文语种 eng
  • 中图分类 程序设计、软件工程;
  • 关键词

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号