comp.lang.ada
 help / color / mirror / Atom feed
From: mark.lorenzen@gmail.com
Subject: Re: SPARK loop VCs that go "one beyond" the loop?
Date: Tue, 6 Mar 2012 02:17:41 -0800 (PST)
Date: 2012-03-06T02:17:41-08:00	[thread overview]
Message-ID: <13465739.3192.1331029061301.JavaMail.geo-discussion-forums@ynne2> (raw)
In-Reply-To: <vpqdnYMbkompW87S4p2dnAA@giganews.com>

Den søndag den 4. marts 2012 20.44.41 UTC+1 skrev Peter C. Chapin:
> 
> That worked! However, I'm still trying to understand the general 
> principle that can guide me in these situations. I feel like I have to 
> resort to semi-random attempts until I stumble into something that works.

Peter,

I strongly recommend Phil's proof tutorials that can be found here: http://www.sparksure.com/7.html

Try and have a look at chapters 7 and 8 in order to understand how the examiner transforms loop constructs into a standard form, from which it generates VCs. This should help you understand where invariants can be placed and what they should express.

Regards,

Mark L



  reply	other threads:[~2012-03-06 10:24 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-04 16:11 SPARK loop VCs that go "one beyond" the loop? Peter C. Chapin
2012-03-04 18:43 ` Phil Thornley
2012-03-04 19:44   ` Peter C. Chapin
2012-03-06 10:17     ` mark.lorenzen [this message]
2012-03-20 18:18     ` Phil Thornley
2012-03-25 10:57       ` Peter C. Chapin
2012-03-25 14:14         ` Phil Thornley
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox