Barbier's theorem for the Reuleaux triangle and the convex four-vertex theorem in Lean 4, through support functions
We give machine-checked proofs, in Lean~4 with Mathlib, of two classical theorems on convex planecurves, both developed in one model: a curve is described by its support function $h$, and istraced as $\gamma_h(\theta) = (h(\theta) + i\,h'(\theta))\,e^{i\theta}$.The first is Barbier's theorem: a curve of constant width $w$ has perimeter $\pi w$. We prove itnot only for twice continuously differentiable support functions but for support functions that aremerely $C^1$, with $h'$ differentiable and $h+h''\ge 0$ outside a countable set and $h+h''$integrable there. This covers the Reuleauxtriangle, which we construct, show to satisfy the hypotheses, and show not to be twicecontinuously differentiable, so the smooth theorem does not reach it. For the Reuleaux triangle we also identify the perimeterwith Mathlib's length and exhibit it as a Mathlib convex body of constant width. The second is the four-vertex theorem forovals given by $C^3$ support functions with $h+h''>0$: the curvature is constant or has at least fouralternating local extrema in a period. We tie each of our own definitions to a standard notion: the perimeter toMathlib's length (total variation) --- for smooth support functions, and separately for the Reuleauxtriangle --- via a lemma, not in Mathlib, that the length of a $C^1$ curveis finite and equals $\int\lvert\gamma'\rvert$; the support function to an actual convex set, whosesupport values and widths we compute; and our curvature to the textbook formula$(x'y''-y'x'')/\lvert\gamma'\rvert^3$, for a curve we prove to be simple and closed.All proofs use only Lean's three standard axioms. We know of no previous complete formal proof ofeither theorem in any proof assistant, and no formalisation of the Reuleaux triangle.
Authors
- Joshua Bald (ORCID: https://orcid.org/0009-0002-1317-6489)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-10-12
- DOI
- https://doi.org/10.5281/zenodo.23323061
- Primary Topic
- Point processes and geometric inequalities
- Type
- preprint