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.Transforming Proof Tableaux of Hoare Logic into Inference Sequences of Rewriting Induction corresponding to the Hoare triple for the proof tableau if the LCTRS obtained from the program is terminating.Given a while program P and a proof tableau T P of a Hoare triple {ϕ P } P {ψ P } for partial correctness, we proceed as follows:1. We transform P into an equivalent LCTRS R P , and we prove termination of the LCTRS R P .2. We prepare rewrite rules R check to verify the post-condition ψ P in the proof tableau.3. We prepare a constrained equation e P corresponding to the Hoare triple {ϕ P } P {ψ P }.4. Starting with the equation e P , we transform the proof tableau into an inference sequence ({e P }, / 0) RI · · · RI ( / 0, H) of RI in a top-down fashion, where we do not prove termination in constructing the inference sequence of RI.
scite is a Brooklyn-based organization that helps researchers better discover and understand research articles through Smart Citations–citations that display the context of the citation and describe whether the article provides supporting or contrasting evidence. scite is used by students and researchers from around the world and is funded in part by the National Science Foundation and the National Institute on Drug Abuse of the National Institutes of Health.
customersupport@researchsolutions.com
10624 S. Eastern Ave., Ste. A-614
Henderson, NV 89052, USA
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
Copyright © 2025 scite LLC. All rights reserved.
Made with 💙 for researchers
Part of the Research Solutions Family.