AI-built Lean program triangulates simple polygons in linear time

For every closed simple polygon with n vertices, including collinear vertices and equal heights, an explicit exact-real-RAM program returns a conforming triangulation with n−2n-2 triangles in at most C(n+1)C(n+1) steps and natural words bounded by K(n+1)K(n+1). It is a variant of Chazelle’s algorithm that completes the visibility map directly below n=230+2n=2^{30}+2.

The concave polygon has seven vertices, including one midway along a straight side, and is cut into five triangles using those vertices.
The example is a conforming triangulation on the original seven vertices. The formal result gives an explicit exact-real RAM program producing n−2n-2 triangles on every closed simple polygon with nn vertices, allowing collinear vertices and equal heights. It uses at most C(n+1)C(n+1) steps and its natural words are bounded by K(n+1)K(n+1) for constants independent of the input polygon.

What was already known

Chazelle proved linear-time triangulation in 1991, with a general-position assumption handled by perturbation. This project supplies a formally checked program with explicit degeneracy and word specifications.

How the result developed

  1. 5 Oct 2026 · Registry publication [1]

    Palomar published the Lean specification and proof of linear-time polygon triangulation in the exact-RAM model.

Follow new evidence and revisions to this result.

Get email updates

Download contribution history

Contribution Assessment

AI involvementAI-led
ImportanceNotable
Human understandingFew

AI involvement

Robert D. Barish set the task. The agents designed and proved the linear-time RAM triangulation implementation. They were primarily Claude models. AI coding agents, directed by the human author, designed the specification and wrote the Lean definitions, statements and proofs. The project leaves the exact mix of models in its earliest work open.

Importance

Formally verifies an explicit linear-time triangulation program for a difficult established result.

Technical verification

The repository reports Lean kernel checking, permitted-axiom audits, Comparator statement agreement and independent kernel replays for the cited program theorem. This review did not rerun the large development; paper-to-algorithm fidelity remains a human interpretation.

Checking evidence

compiled proof terms, axiom and statement audits, independent kernel replay

Checker
Lean kernel; NanoDa, con-ron, leanchecker, lean4lean and con-leche replay tools
Scope
The linear-time triangulation statement and named-program correctness and refinement theorems for the stated version.
Basis
Source-reported

Human understanding

No named human explanation or line-by-line human review of this very large proof is documented. Few is the evidence-gap default, not a claim that Barish lacks understanding.

Other useful sources

View revision history
· addition

Added the research timeline.

· addition

Added a source excerpt documenting AI involvement.

· publication

Formally verifies an explicit linear-time triangulation program for a difficult established result.

Seven vertices make five triangles

Open SVG

The concave polygon has seven vertices, including one midway along a straight side, and is cut into five triangles using those vertices.
The example is a conforming triangulation on the original seven vertices. The formal result gives an explicit exact-real RAM program producing n−2n-2 triangles on every closed simple polygon with nn vertices, allowing collinear vertices and equal heights. It uses at most C(n+1)C(n+1) steps and its natural words are bounded by K(n+1)K(n+1) for constants independent of the input polygon.Robert D. Barish set the task and direction. He credits Claude agents with the variant RAM program, specification and Lean proof. Chazelle developed the original linear-time triangulation algorithm.