Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I laughed at formal methods of program proof until I came across a simplified version of cleanroom development methodology (which breaks program components into 'program primes' like A then B, If A then B, While A do B and for A in B do C) that allowed you to formally prove outcomes on paper. I have long since lost the document but to this day, I construct most of my work around these primes for certain projects.


That sounds a bit like Hoare logic [0], refinement calculus [1], or guarded command language [2]. The term "program prime" is not something I've heard or read before and I'm not turning up much.

[0] https://en.wikipedia.org/wiki/Hoare_logic

[1] https://en.wikipedia.org/wiki/Refinement_calculus

[2] https://en.wikipedia.org/wiki/Guarded_Command_Language


I found mention of "program primes" and "cleanroom" in the index of this book [0], but they are rather far apart from one another.

[0] https://svkarthikwinner.files.wordpress.com/2015/07/practica...


Goodness knows why my original comment is being downvoted. The formal term is 'primary program refinement' and can be found all over the place such as here:

http://p.web.umkc.edu/pgd5ab/cs_451/HW3/hw3.htm




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: