certXiv
Journal of Certified & Reproducible Science
Official Open-Access Journal · Frontier AI & Kernel Audited · Beyond Legacy Peer Review
← Back to Published Journal Articles
TCB-2 · Reproducible Compute External Challenge Target (ZENODO) · Verification Overlay math.LO ⚙ Lean 4 zenodo:23653175 · DOI: https://doi.org/10.5281/zenodo.23653175 · 2026-10-26

Classical plane geometry by coordinate certificates: Desargues, Monge, Simson, Napoleon and Lami in Lean 4

Bald, Joshua
Read Official PDF View Proof / Code Artifact ↗ JSON / Agent Record

Abstract

We formalise five classical theorems of plane geometry in Lean 4 with Mathlib: Desargues’s theorem in the projective plane, together with its converse; Monge’s theorem that the three external centres of similitude of three circles are collinear; the Wallace–Simson theorem on the pedal triangle of a point of the circumcircle; Napoleon’s theorem for the outer and the inner Napoleon triangles; and Lami’s theorem for three forces in equilibrium. Every proof has the same core. The theorem is reduced to an explicit polynomial or rational identity in coordinates, which we call a certificate, and the identity is closed by ring, field_simp or linear_combination with a stated multiplier. Around this core, each development makes precise which non-degeneracy conditions are needed, which are not, and why. Desargues’s theorem and Monge’s theorem are proved over an arbitrary field, and the Desargues identity over an arbitrary commutative ring. The Simson line and Napoleon’s theorem are proved in the Euclidean plane, modelled as C. Lami’s theorem is proved through the oriented area form of a two-dimensional oriented real inner product space, and in unoriented form in every real inner product space. The five libraries, without the version-2 files described next, have about 1,430 lines of Lean, use no sorry, and depend only on Lean’s three standard axioms. Version 2 adds to each library a file giving Mathlib-only formulations of the main theorems (for Napoleon’s theorem, of its non-degenerate configurations), each with a non-degenerate witness, and a file proving from the libraries textbook statements written in Lean by an AI model that saw neither our code nor this paper; these include the geometric converse of the Wallace–Simson theorem, which the first version did not prove. The mathematics is classical and the method is old, and several of the results are not new to formal mathematics (Section 9). Monge’s three-circle theorem has two earlier, independent and complete Lean proofs, one of which predates ours by four months; Napoleon’s theorem has earlier formalisations in Lean, Isabelle and Rocq, and a later independent one in Lean; the Wallace–Simson theorem and its converse are formalised in Isabelle and in Rocq; Desargues’s theorem is formalised in at least five other systems, including a coordinate (bracket) proof in HOL Light; and an open, unmerged Mathlib pull request proves the affine (parallel) form of Desargues’s theorem. We found no earlier Lean proof of the projective plane form of Desargues’s theorem, of the Wallace–Simson theorem, or of Lami’s theorem; these searches are not exhaustive.

Trusted Computing Base & Merkle Digest

Grade: TCB-2 (Backed by executable verification code, simulation scripts, or hybrid formal+tested artifacts with SHA-256 integrity hash.)
Verifier Notes: Seeded with linked Lean 4 artifact (https://github.com/jpbald93/monge); eligible for sandboxed TCB-0/TCB-1 promotion.
SHA-256 Root: 87415e2b977f6328650347d3…

Human + AI Provenance & License

AI / Tooling: Indexed from Zenodo Open Preprints
Human Accountability: Bald, Joshua
Distribution License: CC BY 4.0 (Full-text mirror permitted)

Embed Verification Shield in GitHub README

certXiv TCB-2 badge

Frontier AI Scientific Review (Rubric v1.0 · Beyond Legacy Peer Review)

External challenge target (verified via certXiv TCB & OAI-PMH overlay). Official journal submissions receive automatic Frontier AI Scientific Reviews (GPT-6.2 Astra).

Machine-Readable Claims & Declarations (0)

No structured formal declarations attached yet. Human or AI contributors can attach a Lean 4 / Rocq / SAT certificate repository to promote this paper's TCB tier.

Upgrade Verification Tier for zenodo:23653175

Attach a Lean 4, Rocq, Isabelle, or SAT/SMT certificate repository that formalizes or certifies claims in this paper.

Public GitHub, GitLab, or Zenodo URL containing the formalization or certificate.

External Preprint Overlay Controls (zenodo:23653175)

This record indexes public ZENODO metadata under CC0 1.0. Original authors can claim this overlay, attach an official repository, or request display removal.