Computer-Assisted Program Reasoning Based on a Relational Semantics of Programs
Author:
- Wolfgang SchreinerWSWolfgang Schreiner
Open Access
- 21 February 2012
- journal article
- Published by Open Publishing Association in Electronic Proceedings in Theoretical Computer Science
- Vol. 79, 124-142
Abstract
We present an approach to program reasoning which inserts between a program and its verification conditions an additional layer, the denotation of the program expressed in a declarative form. The program is first translated into its denotation from which subsequently the verification conditions are generated. However, even before (and independently of) any verification attempt, one may investigate the denotation itself to get insight into the "semantic essence" of the program, in particular to see whether the denotation indeed gives reason to believe that the program has the expected behavior. Errors in the program and in the meta-information may thus be detected and fixed prior to actually performing the formal verification. More concretely, following the relational approach to program semantics, we model the effect of a program as a binary relation on program states. A formal calculus is devised to derive from a program a logic formula that describes this relation and is subject for inspection and manipulation. We have implemented this idea in a comprehensive form in the RISC ProgramExplorer, a new program reasoning environment for educational purposes which encompasses the previously developed RISC ProofNavigator as an interactive proving assistant.Comment: In Proceedings THedu'11, arXiv:1202.453Keywords
All Related Versions
This publication has 15 references indexed in Scilit:
- Invariant based programming: basic approach and teaching experiencesFormal Aspects of Computing, 2009
- A comparison of tools for teaching formal software verificationFormal Aspects of Computing, 2009
- The Why/Krakatoa/Caduceus Platform for Deductive Program Verification2007
- Calculational semanticsACM Transactions on Programming Languages and Systems, 2006
- Verification of Object-Oriented Software. The KeY Approach2006
- An overview of JML tools and applicationsInternational Journal on Software Tools for Technology Transfer, 2004
- CVC Lite: A New Implementation of the Cooperating Validity Checker2004
- Teaching Formal Methods2004
- Refinement Calculus1998
- A constructive approach to the problem of program correctnessBIT Numerical Mathematics, 1968