From: Ruud Bruijnesteijn <ruud@sds-sportdata.com>
Subject: Re: [++] Tight coding
Date: 1998/03/03 [thread overview]
Message-ID: <34FB49B0.DF95B725@sds-sportdata.com> (raw)
In-Reply-To: 34FB377C.C54C0FCE@acm.org
Pete Becker wrote:
>
> Terry Moore wrote:
> >
> > That is not the way to use proofs of programs. It's much easier
> > to develop the proof along with the program, so it's the
> > programmer's task, not the mathematician's.
>
> Which does not change the preceding fact. The issue is not whether these
> things take time, but how much time they take. In order for this
> approach to be cost effective you need to show that proving correctness
> requires less time than fixing defects, which you have not done.
It will be pretty damn difficult to show that in a general case, however
a simple look at practical software should suffice ;-). I think there is
literature that indicates practical gains of up to 40% in total
devellopment time, however.
Terry is right, and I'd like to follow up that proving the correctness
of a program is quite simple as long as a program is develloped using
stepwise refinement and using logical abstractions. I think this is what
Terry means when he says 'along with the program'. Split the program
into enough modules and procedures for which pre- and postconditions are
clear, and you'll end up with trivial proof for these procedures. Now,
by way of induction, it will be possible to prove the entire program.
You'll need a decent programming language to make this statement valid
though! I can tell you in Modula-2 it can be done. Once a program proven
this way compiles it will be error-free. It can be done in C too, but
there you'll be on your own; the compiler won't help you.
I'll admit however, that it is not as simple as that, since there is
allways the human factor, creating typo's, errors while copying the
algorithms etc. But these errors are quite easily spotted in trivial
procedures.
So, making a point that proof is (or can be) trivial, you will easily
deduct that the actual time it takes to proof is neglectable, certainly
when compared to the time wasted on debugging.
--
Ruud Bruijnesteijn
SDS Sport.Data.Systems GmbH
http://www.sds-sportdata.com
next prev parent reply other threads:[~1998-03-03 5:00 UTC|newest]
Thread overview: 53+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-02-23 5:00 Wildfire and NT Robert Harley
1998-02-24 5:00 ` brianh
1998-02-24 5:00 ` Sean Burke
1998-02-25 5:00 ` brianh
1998-02-25 5:00 ` Maynard Handley
1998-02-25 5:00 ` Mike Albaugh
1998-02-25 5:00 ` [++] Tight coding (Was: Re: Wildfire and NT) Terje Mathisen
1998-02-28 5:00 ` Piercarlo Grandi
1998-03-01 5:00 ` [++] Tight coding Bill Moyer
1998-03-01 5:00 ` Larry Kilgallen
1998-03-01 5:00 ` [++] Tight coding (comp.sys.dec-only thread) Bill Moyer
1998-03-01 5:00 ` [++] Tight coding Ruud Bruijnesteijn
1998-03-01 5:00 ` scott
1998-03-02 5:00 ` Kaz Kylheku
1998-03-02 5:00 ` Martin Tom Brown
1998-03-02 5:00 ` Terry Moore
1998-03-02 5:00 ` Kaz Kylheku
1998-03-02 5:00 ` Pete Becker
1998-03-03 5:00 ` Ruud Bruijnesteijn [this message]
1998-03-03 5:00 ` Pete Becker
1998-03-04 5:00 ` Terry Moore
1998-03-03 5:00 ` Pete Becker
1998-03-04 5:00 ` Ruud Bruijnesteijn
1998-03-02 5:00 ` Peter Moylan
1998-03-02 5:00 ` Scott Fluhrer
1998-03-02 5:00 ` Lawrence Kirby
1998-03-02 5:00 ` Peter Moylan
1998-03-02 5:00 ` Ketil Z Malde
1998-03-04 5:00 ` Lyn A Headley
1998-03-02 5:00 ` Kaz Kylheku
1998-03-03 5:00 ` Lawrence Kirby
1998-03-02 5:00 ` Kaz Kylheku
1998-03-02 5:00 ` Martin Harvey
1998-03-03 5:00 ` Larry Kilgallen
1998-02-24 5:00 ` Wildfire and NT Bill Moyer
1998-02-25 5:00 ` Larry Kilgallen
1998-02-25 5:00 ` brianh
1998-02-25 5:00 ` Epiphanies (was: Wildfire and NT) Carlie Coats
1998-02-25 5:00 ` Wildfire and NT John Hascall
1998-02-25 5:00 ` Rob Rodgers
1998-02-24 5:00 ` David Hinds
1998-02-25 5:00 ` Del Cecchi
1998-02-25 5:00 ` brianh
1998-02-25 5:00 ` Bernd Paysan
1998-02-25 5:00 ` brianh
1998-02-26 5:00 ` Bernd Paysan
1998-02-27 5:00 ` brianh
1998-03-01 5:00 ` Ketil Z Malde
1998-02-26 5:00 ` Doug
1998-02-26 5:00 ` Jeffrey S. Dutky
1998-02-27 5:00 ` Paul Kahler
1998-03-02 5:00 ` Joel Gallun
1998-03-02 5:00 ` Przemek Klosowski
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox