cd /news/ai-agents/show-hn-formally-verified-polygon-in… · home topics ai-agents article
[ARTICLE · art-18267] src=github.com pub= topic=ai-agents verified=true sentiment=↑ positive

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

A developer has released what they claim is the first formally verified implementation of a polygon intersection algorithm, using the Lean proof checker to guarantee correctness. The project, which supports complex multipolygons with holes and self-intersections, was built with AI assistance where the Opus 4.8 model generated the algorithm and formal proof in a single attempt. The verification relies entirely on the Lean checker and human specification review, not on the AI model's output.

read1 min publishedMay 30, 2026

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

── more in #ai-agents 4 stories · sorted by recency
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-formally-ver…] indexed:0 read:1min 2026-05-30 ·