# Formally verified polygon intersection – Opus 4.8 oneshots,…

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 fo…

- **Page:** https://magpie.gallery/i/formally-verified-polygon-intersection-opus-4-8-on-4gyv
- **Type:** Link to an idea elsewhere
- **Category:** AI & dev
- **Runs on:** web
- **Tags:** formal-verification, polygons, lean, geometry, ai

## Source

Web · permute: Formally verified polygon intersection – Opus 4.8 oneshots, prev failed

- **Original:** https://news.ycombinator.com/item?id=48405264

> 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: https://schildep.github.io/verified-polygon-intersection/. It supports multipolygons including holes, self intersections, and overlapping edges. https://github.com/schildep/verified-polygon-intersection

## GitHub projects

- https://github.com/schildep/verified-polygon-intersection

## Rules for reuse

- Build your own version: don't copy another product's code, look, icons, colours or copy.
- The original belongs to its author; Magpie only links to it.
- The original content's copyright belongs to its creator. Magpie doesn't download or re-upload it; we only show the link and the official preview.
