Barbier's theorem for the Reuleaux triangle and the convex four-vertex theorem in Lean 4, through support functions
Abstract
We give machine-checked proofs, in Lean 4 with Mathlib, of two classical theorems on convex plane curves, both developed in one model: a curve is described by its support function h, and is traced as γh(θ) = (h(θ) + i h′(θ)) eiθ. The first is Barbier’s theorem, in the form: if h has constant width w, the perimeter of γh, defined as R 2π 0 |γ′h|, is πw. We prove it not only for twice continuously differentiable support functions but for support functions that are merely C1, with h′ differentiable and h+h′′ ≥ 0 outside a countable set and h+h′′ integrable there. This covers the Reuleaux triangle, which we construct, show to satisfy the hypotheses, and show not to be twice continuously differentiable, so the smooth theorem does not reach it. For the Reuleaux triangle we also identify the perimeter with Mathlib’s length and exhibit it as a Mathlib convex body of constant width. The second is the four-vertex theorem for ovals given by C3 support functions with h + h′′ > 0: the curvature is constant or has at least four alternating local extrema in a period. We tie each of our own definitions to a standard notion: the perimeter to Mathlib’s length (total variation) — for smooth support functions, and separately for the Reuleaux triangle — via a lemma, not in Mathlib, that the length of a C1 curve is finite and equals R |γ′|; the support function to an actual convex set, whose support values and widths we compute; and our curvature to the textbook formula (x′y′′−y′x′′)/|γ′|3, for a curve we prove to be simple and closed. We do not prove the classical statements for arbitrary C2 convex curves or arbitrary convex bodies of constant width: our Barbier and four-vertex theorems are about curves given by such support functions. An independent comparison with textbook statements confirms that the development covers them only in this narrower form, and that the area of the Reuleaux triangle and Kneser’s non-convex four-vertex theorem are out of scope. All proofs use only Lean’s three standard axioms. We know of no previous complete formal proof of either theorem, even in this restricted form, in any proof assistant, and no formalisation of the Reuleaux triangle.
Trusted Computing Base & Merkle Digest
4e4ffb45254e4524dff3d57e…