Show HN: Formally verified polygon intersection – Opus 4.8 oneshots, prev failed
- AI
- Programming
- Developer Tools
The project is a formally verified polygon intersection library written in Lean, with a WebAssembly demo around the verified core. It works on exact rational coordinates, not floating point, and the proof target is simple to state but strong in effect: the interior of the result equals the intersection of the interiors of the input polygons. The submitter framed the interesting part as the workflow, not the geometry itself. Polygon clipping is old news. What changed is that a newer model could generate both implementation and proof from the formal specification in one long run, while earlier models only worked when the task was broken into smaller guided steps.
If you are evaluating AI for nontrivial engineering work, the useful pattern here is "LLM generates, proof checker decides" for domains that have compact formal specs. That does not remove integration work, but it can sharply reduce review burden on the most failure-prone logic.
- github.com
- Discuss on HN