# Show HN: Formally verified polygon intersection – Opus 4.8 oneshots, prev failed

> Source: <https://github.com/schildep/verified-polygon-intersection>
> Published: 2026-05-30 01:21:18+00:00

To my knowledge, this is the first formally verified implementation of an intersection algorithm for polygons.

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.

Trust in the correctness comes entirely from the Lean checker and human review of a small specification, not from the LLM.

Also check out the web demo built around the verified core linked in the readme.

It supports multipolygons including holes, self intersections, and overlapping edges.

Comments URL: [https://news.ycombinator.com/item?id=48331400](https://news.ycombinator.com/item?id=48331400)

Points: 1

# Comments: 0
