Transforming Proof Tableaux of Hoare Logic into Inference Sequences of Rewriting Induction

被引:0
|
作者
Mizutani, Shinnosuke [1 ]
Nishida, Naoki [2 ]
机构
[1] Nagoya Univ, Grad Sch Informat Sci, Nagoya, Aichi, Japan
[2] Nagoya Univ, Grad Sch Informat, Nagoya, Aichi, Japan
关键词
TERMINATION;
D O I
10.4204/EPTCS.265.4
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
A proof tableau of Hoare logic is an annotated program with pre- and post-conditions, which corresponds to an inference tree of Hoare logic. In this paper, we show that a proof tableau for partial correctness can be transformed into an inference sequence of rewriting induction for constrained rewriting. We also show that the resulting sequence is a valid proof for an inductive theorem corresponding to the Hoare triple if the constrained rewriting system obtained from the program is terminating. Such a valid proof with termination of the constrained rewriting system implies total correctness of the program w.r.t. the Hoare triple. The transformation enables us to apply techniques for proving termination of constrained rewriting to proving total correctness of programs together with proof tableaux for partial correctness.
引用
收藏
页码:35 / 51
页数:17
相关论文
共 33 条
  • [1] Term rewriting and Hoare logic - Coded rewriting
    Sun, Y
    INFORMATION PROCESSING LETTERS, 1996, 60 (05) : 237 - 242
  • [2] Term rewriting and Hoare logic - coded rewriting
    Queen's Univ of Belfast, Belfast, United Kingdom
    Inf Process Lett, 5 (237-242):
  • [3] Rewriting, Inference, and Proof
    Shankar, Natarajan
    REWRITING LOGIC AND ITS APPLICATIONS, 2010, 6381 : 1 - 14
  • [4] A Hoare Logic for the State Monad Proof Pearl
    Swierstra, Wouter
    THEOREM PROVING IN HIGHER ORDER LOGICS, PROCEEDINGS, 2009, 5674 : 440 - 451
  • [5] A Proof System for HRML with Extended Hoare Logic
    Chen, Ningning
    Zhu, Huibiao
    Fang, Huixing
    2021 INTERNATIONAL SYMPOSIUM ON THEORETICAL ASPECTS OF SOFTWARE ENGINEERING (TASE 2021), 2021, : 31 - 38
  • [6] Proof of correctness of C++ program by HOARE logic
    Wang, Caifen
    Lanzhou Daxue Xuebao/Journal of Lanzhou University, 2000, 36 (01): : 44 - 47
  • [7] SOUNDNESS OF HOARE LOGIC - AN AUTOMATED PROOF USING LCF
    SOKOLOWSKI, S
    ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS, 1987, 9 (01): : 101 - 120
  • [8] Transforming information in RDF to rewriting logic
    Verdejo, A
    Martí-Oliet, N
    Robles, T
    Salvachúa, J
    Llana, L
    Bradley, M
    FORMAL METHODS FOR OPEN OBJECT-BASED DISTRIBUTED SYSTEMS, PROCEEDINGS, 2005, 3535 : 227 - 242
  • [9] A Proof Tree Builder for Sequent Calculus and Hoare Logic
    Korkut, Joomy
    ELECTRONIC PROCEEDINGS IN THEORETICAL COMPUTER SCIENCE, 2023, (375): : 54 - 62
  • [10] A Rewriting Logic Approach to Type Inference
    Ellison, Chucky
    Serbanuta, Traian Florin
    Rosu, Grigore
    RECENT TRENDS IN ALGEBRAIC DEVELOPMENT TECHNIQUES, 2009, 5486 : 135 - 151