Operational Annotations: A new method for sequential program verification
Abstract
I present a new method for specifying and verifying the partial correctness of sequential programs. The key observation is that, in Hoare logic, assertions are used as selectors of states, that is, an assertion specifies the set of program states that satisfy the assertion. Hence, the usual meaning of the partial correctness Hoare triple : if execution is started in any of the states that satisfy assertion , then, upon termination, the resulting state will be some state that satisfies assertion . There are of course other ways to specify a set of states. I propose to replace assertions by terminating programs: a program specifies a set of states as follows: we start in any state whatsoever, and all the states that may terminate in constitute the specified set. I call this set the post-states of . I introduce the operational triple to mean: if execution of is started in any post-state of , then upon termination, the resulting state will be some post-state of . Here, is the pre-program, and plays the role of a pre-condition, and is the post-program, and plays the role of a post-condition.
Keywords
Cite
@article{arxiv.2102.06727,
title = {Operational Annotations: A new method for sequential program verification},
author = {Paul C Attie},
journal= {arXiv preprint arXiv:2102.06727},
year = {2022}
}
Comments
23 pages, one table