Formalizing the Classical Isoperimetric Inequality in the Two-Dimensional Case
Miraj Samarakkody · 2026
Read Formalizing the Classical Isoperimetric Inequality in the Two-Dimensional Case by Miraj Samarakkody (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2603-14663.txt.
Introduction
Samarakkody formalizes the classical isoperimetric inequality in the plane with Lean 4. The claim says a circle encloses the most area for a fixed perimeter. In symbols, length squared beats four pi times area. The proof follows Hurwitz and his Fourier method. Phase one builds trig orthogonality, Parseval's theorem and Wirtinger's inequality inside Mathlib. Phase two runs the arc-length proof with the shoelace area formula. Sum-integral swaps and term-wise derivatives pose the main formal hurdles, Samarakkody notes.
Catalog record
| CREATOR | Miraj Samarakkody |
|---|---|
| YEAR | 2026 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 72293 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2603.14663
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
Formalizing the Classical Isoperimetric Inequality in the Two-Dimensional Case Miraj Samarakkody Abstract We present a formal verification of the classical isoperimetric inequality in the plane using the Lean 4 proof assistant and its mathematical library Mathlib. We follow Adolf Hurwitz’s analytic approach to establish the inequality L 2 ≥ 4 π A L^{2}\geq 4\pi A , which states that among all simple closed curves of a given perimeter L L , the circle uniquely maximizes the enclosed area A A . The formalization proceeds in two phases. In the first phase, we establish the Fourier-analytic foundations required by Hurwitz’s approach: we formalize orthogonality relations for trigonometric functions over [ − π , π ] [-\pi,\pi] , Parseval’s theorem for classical Fourier series, uniform convergence of Fourier partial sums via the Weierstrass M-test, term-by-term differentiability, and Wirtinger’s inequality. In the second phase, we carry out Hurwitz’s proof itself: working with simple closed C 1 curves given in arc-length parametrization, we reparametrize over [ 0 , 2 π ] [0,2\pi] , establish the shoelace area formula, apply integration by parts, invoke the AM–GM inequality, apply Wirtinger’s inequality, and use the arc-length constraint to derive the bound A ≤ L 2 / ( 4 π ) A\leq L^{2}/(4\pi) . We discuss the key formalization challenges encountered, including the interchange of infinite sums and integrals, term-by-term differentiation, and the coordination of different indexing conventions within Mathlib. The complete formalization is available at the https://github.com/mirajcs/IsoperimetricInequality . Keywords: isoperimetric inequality, formal verification, Lean 4, Mathlib, Fourier series, harmonic analysis. 1 Introduction 1.1 The Isoperimetric Problem The word isoperimetric means “of equal perimeter,” and the isoperimetric problem asks: among all plane figures with a given perimeter, which one encloses the largest area? The answer, the circle, was known to the ancient Greeks, and the problem has inspired mathematics from antiquity to the present day. One of the earliest literary descriptions of the problem appears in the legend of Queen Dido, as recorded in Virgil’s Aeneid . Dido, a Phoenician princess, was permitted to claim as much land as she could enclose with a single oxhide. Rather than using the hide as a single piece, she cut it into thin strips, tied them end to end, and arranged them in a semicircle along the seashore, enclosing the maximum possible area. This classical legend, set around 800 BCE, captures the intuitive idea that the circle is the uniquely optimal shape for the isoperimetric problem. The ancient Greeks were well aware of the result. Zenodorus (around 200 BCE) proved [ 11 ] , in a work now known only through later summaries, that the circle has greater area than any regular polygon with the same perimeter, and that among polygons with the same number of sides and the same perimeter, the regular polygon has the greatest area. However, a rigorous proof for all curves eluded mathematicians for centuries. The modern mathematical treatment began in earnest in the nineteenth century. Jakob Steiner (1838) gave [ 11 , 3 ] several ingenious but incomplete proofs that, if an optimal shape exists, it must be the circle. Steiner’s symmetrization argument shows that any non-circular curve can be deformed to increase its enclosed area without changing the perimeter. However, he did not prove that an optimizer exists, which is necessary for the argument to be complete. This gap was later noted and filled by Karl Weierstrass [ 11 ] , who provided the first rigorous proof via the calculus of variations around 1870, establishing both the existence of an optimizer and the characterization of the circle. In the early twentieth century, Adolf Hurwitz published a strikingly elegant analytic proof using Fourier series (1902) [ 9 , 10 ] , which is the approach we formalize in this paper. Hurwitz’s proof avoids variational methods entirely, instead reducing the inequality to a comparison of Fourier coefficient sums via Parseval’s identity. 1.2 The Isoperimetric Inequality The precise statement we seek to verify is the following. Theorem 1.1 (Isoperimetric Inequality [ 7 , 11 ] ) . Let C be a simple closed curve in the plane having perimeter L , and let A denote the area of the region enclosed by C . Then L^{2}\geq 4\pi A, with equality if and only if C is a circle. The inequality L^{2}\geq 4\pi A can be rewritten as A\leq L^{2}/(4\pi) . For a circle of radius r , we have L=2\pi r and A=\pi r^{2} , so L^{2}/(4\pi)=\pi r^{2}=A , confirming that circles achieve equality. The content of the theorem is that no other shape does. 1.3 Formal Verification and Lean 4 Formal verification is the process of checking mathematical proofs by machine, using a computer program called a proof assistant or theorem prover . Unlike informal mathematical proofs, which rely on the reader’s tacit understanding to fill gaps, a formal proof must be presented in a completely explicit logical language that the proof assistant can verify step by step. The advantage is certainty: if the proof assistant accepts the proof, every logical step has been machine-checked against the rules of the underlying formal system. Lean 4 is a dependently typed programming language and theorem prover developed by Leonardo de Moura and Sebastian Ullrich at Microsoft Research and later at the Lean Focused Research Organisation [ 6 ] . Lean 4’s type theory is based on the Calculus of Constructions with universe polymorphism, providing both a rich type system for programming and a foundation for formalizing mathematics. In Lean 4, propositions are types and proofs are terms; this propositions-as-types paradigm, also known as the Curry–Howard correspondence [ 14 , 5 ] , means that writing a proof of a theorem is syntactically identical to writing a program of the corresponding type. The mathematical library accompanying Lean 4 is called Mathlib [ 6 , 15 ] . Mathlib is a community-maintained library covering a broad sweep of mathematics, including algebra, topology, measure theory, real and complex analysis, and the theory of Fourier transforms. The scope of Mathlib makes Lean 4 an attractive target for formalizing classical analysis results: many foundational lemmas are already available, and one need only build the specific arguments on top. 1.4 Why Formalize the Isoperimetric Inequality? The isoperimetric inequality is a classical result with a well-known proof, so one might wonder what is gained by formalizing it. There are several motivations. First, formalization provides a definitive record that the proof is correct. Textbook proofs of the isoperimetric inequality often gloss over technical points: the interchange of infinite sums and integrals, the justification of term-by-term differentiation, the precise regularity conditions on the curve. A formal proof forces every such step to be made explicit. Second, the process of formalization reveals the exact logical structure of the argument and which hypotheses are truly necessary. In Hurwitz’s proof, as we will see, the key analytic ingredients are Parseval’s theorem and Wirtinger’s inequality. Formalizing the proof makes clear precisely what regularity is needed on the curve (C 1 with arc-length parametrization) and exactly how Wirtinger’s inequality is applied. Third, the formalization serves as a case study in the use of Mathlib for real analysis. The challenges we encountered, interchanging sums and integrals, working with EuclideanSpace projections,