{"by":"permute","descendants":21,"id":48405264,"kids":[48432458,48405392,48406085,48424825,48407644,48405814,48424614,48422178,48405654],"score":93,"text":"To my knowledge, this is the first formally verified implementation of an intersection algorithm for polygons.<p>The experience of working with AI agents on this project changed a lot with recent model releases, as I describe in the readme. Opus 4.8 is able to provide algorithm implementation with formal proof in one shot, whereas previous models required me to provide proof strategies in multiple steps.<p>Trust in the correctness comes entirely from the Lean checker and human review of a small specification, not from the LLM.<p>Also check out the web demo built around the verified core linked in the readme: <a href=\"https:&#x2F;&#x2F;schildep.github.io&#x2F;verified-polygon-intersection&#x2F;\" rel=\"nofollow\">https:&#x2F;&#x2F;schildep.github.io&#x2F;verified-polygon-intersection&#x2F;</a>. It supports multipolygons including holes, self intersections, and overlapping edges.","time":1780610778,"title":"Show HN: Formally verified polygon intersection – Opus 4.8 oneshots, prev failed","type":"story","url":"https://github.com/schildep/verified-polygon-intersection"}