24.12.2014 Views

Machine Intelligence 7 - AITopics

Machine Intelligence 7 - AITopics

Machine Intelligence 7 - AITopics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

PROGRAM PROOF AND MANIPULATION<br />

Si<br />

I: =E<br />

S2<br />

where / is some identifier and E some expression, is said to be verified if<br />

S1 FA [S2]f where [S2], means the statement S2 with E substituted for I<br />

throughout. (This is called backward verification by King (1969); it is a<br />

variant of Floyd's original method, which introduces an existentially quantified<br />

variable.)<br />

We will here retain the inductive method of Floyd for dealing with flow<br />

diagrams containing loops, but give methods for coping with more complex<br />

kinds of assignment command.<br />

4. EXTENSION OF THE VERIFICATION PROCEDURE TO<br />

ARRAY ASSIGN MENTS<br />

Consider the following command and assertions<br />

1‘,i< 9 and for all x, such that 1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!