Formally Verifying Advent of Code Using Dijkstra's Program Construction
haripm.com·3d·
Discuss: Hacker News
⚔️Lean Tactics
Preview
Report Post

I’m doing Advent of Code again this year, and part 1 of today’s problem reminded me immediately of some of the problems I’m doing in my Program Construction module at UCD. In the class, we cover the foundations of Edsger W. Dijsktra’s Structured Programming. It teaches you how to formally verify your program by finding the pre-conditions and post-conditions, then deriving and proving theorems that build up towards the final program.

It’s a very different style of thinking about programming than most people are used to, but I’ll try my best to explain the notation and…

Similar Posts

Loading similar posts...