Relating Rosen's program-proofs to lectures loop-proofs

Date: Mon, 29 Mar 2004 12:17:14 -0600 (CST)
From: Ian Barland 
Newsgroups: rice.owlnews.comp280
Subject: Re: loop invariant/goal
> I have a question about the difference between a loop invariant and a goal,
> especially in terms of what Rosen calls initial and final assertions.  ...

The short answer: Show that if the initial assertions are true when you start executing the block of code, then the final assertions are true when you finish.

The long (but not complicated) answer, which highlights parts of the reading in Rosen (and how the specific topic of loops relates to the rest of the reading):

Whew!