Symbolic compilation and execution of programs by proof, a case study in HOL:

Abstract: "This paper illustrates the symbolic 'compilation' and 'execution' of programs by proof using the proof assistant HOL. We formalise the operational semantics of an occam-like programming language OC and show how synchronous communication in OC compiles to an interm...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
1. Verfasser: Camilleri, Juanito (VerfasserIn)
Format: Buch
Sprache:English
Veröffentlicht: Cambridge 1991
Schriftenreihe:Computer Laboratory <Cambridge>: Technical report 240
Schlagworte:
Zusammenfassung:Abstract: "This paper illustrates the symbolic 'compilation' and 'execution' of programs by proof using the proof assistant HOL. We formalise the operational semantics of an occam-like programming language OC and show how synchronous communication in OC compiles to an intermediate programming language SAFE whose compilation yields instructions intended to drive machines that communicate via shared memory. We show how the symbolic formal manipulation of terms of a programming language, subject to the definition of its semantics, can animate a desired effect -- be it compilation or execution. Needless to say, such compilation and execution by proof is rather slow, but it is fast enough to give vital feedback about the compilation algorithm being used
Without such animation it is hard to anticipate whether the compilation algorithm is reasonable before attempting to verify it. This is particularly true when attempting to find a plausible handshaking protocol that implements synchronous communication.
Beschreibung:31 S.