Wrote a bit about this recently
https://gavinray97.github.io/blog/design-by-contract-and-eff...
Wrote a bit about this recently
https://gavinray97.github.io/blog/design-by-contract-and-eff...
One of the best books to learn this from is The Correctness-by-Construction Approach to Programming by Derrick Kourie and Bruce Watson - https://link.springer.com/book/10.1007/978-3-642-27919-5
The book actually uses Dijkstra's GCL language and wp-calculus along with Carroll Morgan's Refinement Calculus to demonstrate step-wise derivation of programs from specifications using a lot of examples.
I'd love to see some actual experiments with LLMs in this area. There are a fair number of languages with effect implementations at this point.
Maybe it's an issue because it controls both sides of the fence and can change things willy-nilly when it thinks I'm just watching the youtubes but I haven't been able to find a another way to do this so, here we are...
Also see resources at https://news.ycombinator.com/item?id=49269323