Poincaré conjecture: the Lean proof, cleaned up together
The 2026 Lean proof of the Poincaré conjecture after Morgan and Tian, 3 million lines, cleaned up together: smaller, faster to build, more readable, the theorems unchanged

Topology/Plane: the Jordan curve theorem, Brouwer in the disk, and plane meshes
Scope. PoincareLib/Topology/Plane/ is 42 Lean files, about 15,700 lines. It
proves the continuous Jordan curve theorem for the geometric circle in ℝ², the
two-dimensional Brouwer fixed point theorem, the normal-collar and
tangent-turning lemmas that planar curve arguments use, and the finite plane
complex (mesh) constructions of the Moise route. This guide says what the folder
proves, names the main declaration of each result with its file, and gives the
classical theorem and source the file itself cites. It does not say that a
Lean declaration has the same statement as the book or paper; comparing the two
is V-4.
Two subfolders carry the weight. Jordan/ (5 files) is Maehara's proof of the
Jordan curve theorem through Brouwer. Meshes/ (5 files, plus 4 in
Meshes/Subdivision/) is the finite-complex layer. Curves/ (6 files),
Curves/Graphs/ (14 files), Triangles/ (6 files) and Affine/ (1 file) are
the geometric helpers those two use.
Where the folder's work lives
| Folder | What it holds |
|---|---|
Affine/ |
Every planar segment lies on a genuine affine line, so a finite segment cover gives a finite list of lines. |
Jordan/ |
The circle/arc splitting lemmas, Maehara's crossing lemma and two geometric steps, the complementary domains, and the Brouwer proof in four phases. |
Curves/ |
Local straightening, smooth normal collars, two-sided arc neighborhoods, transverse level coordinates, and the tangent-turning obstruction. |
Curves/Graphs/ |
Graph coordinates along a compact arc, finite graph subdivisions, polygonal approximation, and the strip coordinates between two graphs. |
Meshes/ |
PlaneComplex and TriangleMesh, line subdivision, fine subdivision, exact boundary vertices, polygonal domains, and the compact-in-open mesh. |
Triangles/ |
The explicit right triangle and rectangle splitting, and the smooth curved caps used to round a corner. |
Main results
found means a declaration states the result; partial means only part of it has
a declaration. The file column gives the main declaration; the notes give the
neighbours and say where the statement differs from the source.
| Classical result | Lean declaration | File | Source cited in the tree | Status |
|---|---|---|---|---|
| Brouwer fixed point theorem, dimension 2 | brouwerFPT |
Jordan/Brouwer.lean |
— (the file proves the disk case from covering-space lifting and cites no edition; Brouwer 1912 is the classical source) | found |
| No retraction of the disk onto its boundary circle | no_retraction |
Jordan/Brouwer.lean |
— (the file cites no source; the classical no-retraction theorem is Brouwer 1912) | found |
| Jordan curve theorem, continuous case | jordan_curve |
Jordan/Basic.lean |
Maehara, The Jordan curve theorem via the Brouwer fixed point theorem, Amer. Math. Monthly 1984 | found |
| The two complementary domains of a Jordan curve | exists_complementary_domains |
Jordan/Domains.lean |
Maehara 1984 (the two-domain form; the file itself cites no edition) | found |
| An arc does not separate the plane | arc_not_separates |
Jordan/Basic.lean |
Maehara 1984, Lemma 1 core (the file names the lemma, not the edition) | found |
| A bounded planar region has infinite frontier | infinite_frontier_of_bounded_nonempty_interior |
Regions.lean |
— (the file cites no source; the proof uses IsConnected.compl_of_one_lt_rank) |
found |
| Smooth normal collar of a compact regular arc | exists_normal_collar, exists_normal_collar_coordinates |
Curves/Collar.lean |
— (the file cites no source) | found |
| Local straightening of a regular planar curve | exists_local_straightening |
Curves/LocalStraightening.lean |
— (the file cites no source) | found |
| The tangent of a simple closed curve has no periodic logarithm | not_periodic_tangent_logarithm |
Curves/TangentTurning.lean |
Smale, Diffeomorphisms of the 2-sphere (1959), Lemma 2, p. 622 | found |
| Finite simplicial complex in the plane | PlaneComplex, TriangleMesh |
Meshes/Basic.lean |
Moise, Geometric Topology in Dimensions 2 and 3, Ch. 0 and Ch. 7 (conventions) | found |
| Subdivision by finitely many affine lines | TriangleMesh.refineByLines, refineByLines_subdivides |
Meshes/Subdivision/Lines.lean |
Moise, Ch. 2 (cutting a polygonal region by its edge lines) | found |
| A fine enough subdivision makes a map's oscillation small | PlaneComplex.exists_subdivision_image_dist_lt |
Meshes/Subdivision/Fine.lean |
Moise, Ch. 6 (repeatedly choose a subdivision fine for a continuous map) | found |
| A compact set in an open set has a finite mesh between them | exists_triangleMesh_covering_compact_in_open |
Meshes/Compact.lean |
— (built from the fine-subdivision theorem) | found |
| A bounded open set with finite line frontier has an exact mesh | exists_triangleMesh_of_frontier_in_finitely_many_lines |
Meshes/PolygonalDomains.lean |
Moise, Ch. 2 (the chamber-selection argument, extended to domains with holes) | found |
| A mesh can be refined to make prescribed points vertices | exists_subdivision_with_vertices |
Meshes/Subdivision/Vertices.lean |
— | found |
| A mesh can be refined to prescribed boundary vertices exactly | exists_triangleMesh_exact_boundary_vertices |
Meshes/Subdivision/Boundary.lean |
— | found |
Notes on each row
Brouwer fixed point theorem
Poincare.Topology.Plane.Jordan.Brouwer.brouwerFPT (Jordan/Brouwer.lean)
states
theorem brouwerFPT : ∀ s : Set Plane, Convex ℝ s → IsCompact s → s.Nonempty →
∀ f : C(s, s), ∃ x, f x = x
The proof is in four phases, as the module docstring says. Phase 1 is
acLoop_not_homotopic: the once-around loop on AddCircle 1 is not homotopic
rel endpoints to the constant loop, proved from the covering ℝ → AddCircle 1
by Mathlib's unique path lifting
(IsCoveringMap.liftPath_apply_one_eq_of_homotopicRel). Phase 1.5 transports
this across AddCircle 1 ≃ₜ Circle ≃ₜ sphere (0:ℝ²) 1 (sLoop_not_homotopic).
Phase 2 is no_retraction. Phase 3 is brouwer_disk, where a fixed-point-free
self-map yields a retraction by the ray construction rhoPt. Phase 4 is
brouwerFPT itself, by nearest-point projection onto a closed ball. The tree
proves the disk case from covering-space lifting rather than citing a textbook
edition; the classical attribution (Brouwer 1912) is the surrounding
literature, not a citation in the file.
Jordan curve theorem
Poincare.Topology.Plane.Jordan.jordan_curve (Jordan/Basic.lean) states
theorem jordan_curve
(r : sphere (0 : EuclideanSpace ℝ (Fin 2)) 1 → EuclideanSpace ℝ (Fin 2))
(_hcont : Continuous r) (_hinj : Injective r) :
Nat.card (ConnectedComponents ((range r)ᶜ : Set (EuclideanSpace ℝ (Fin 2)))) = 2
The module docstring names Maehara's 1984 American Mathematical Monthly paper
and splits the proof into the crossing lemma (crossing, the paper's Lemma 2),
the boundary lemma (component_boundary_eq, the paper's Lemma 1), and the two
geometric steps step_A_exists_bounded and step_B_bounded_unique (existence
and uniqueness of the bounded complementary component). jordan_curve itself
is the last line: it discharges the BrouwerFPT interface with
Brouwer.brouwerFPT and applies jordan_curve_of_brouwer.
Jordan/Domains.lean gives the two-domain form as
exists_complementary_domains: open, path-connected U and V, with U
bounded and V not, union the complement, common frontier the curve, and
closure U compact. Jordan/Arcs.lean supplies the splitting lemmas
(sphere_split, jordanCurve_split, arcHomeoUnitInterval) and the bridge
circleHomeoSphere between Mathlib's Circle and the geometric circle.
Jordan/Counting.lean is the bookkeeping that turns "two distinguished
components" into Nat.card (ConnectedComponents …) = 2.
Complementary domains and the frontier
exists_complementary_domains is the packaging used outside the folder (for
example in Topology/Surface/Triangulation/Separation.lean, which applies
jordan_curve). Regions.lean proves the separate fact that a bounded planar
set with nonempty interior has infinite frontier
(infinite_frontier_of_bounded_nonempty_interior), with the open-set corollary
infinite_frontier_of_isOpen and the finite-set form
exists_frontier_not_mem_finite. The file cites no source; its proof uses
IsConnected.compl_of_one_lt_rank for the plane.
Normal collars and local straightening
exists_normal_collar (Curves/Collar.lean) gives a uniform injective smooth
normal strip normalStrip f on Icc a b ×ˢ Ioo (-ε) ε with invertible
differential on the axis;
exists_normal_collar_coordinates packages the same strip as one
OpenPartialHomeomorph smooth in both directions. exists_local_straightening
(Curves/LocalStraightening.lean) is the local version at a single point: the
curve is the horizontal axis of coordinates F q = f q.1 + q.2 • w with w
perpendicular to the tangent. Neither file cites a source; both are the standard
inverse-function-theorem constructions.
Tangent turning
not_periodic_tangent_logarithm (Curves/TangentTurning.lean) states that a
smooth simple periodic plane curve with nonzero tangent has no continuous
periodic logarithm of its tangent. The module docstring attributes the
periodic-orbit obstruction to Smale, Diffeomorphisms of the 2-sphere (1959),
Lemma 2, p. 622. The proof deforms tangents to half-period secants by divided
differences and shows the secants change sign after half a period.
Plane complexes and meshes
Meshes/Basic.lean defines PlaneComplex (finitely many vertices at genuine
points, faces of at most three affinely independent vertices, closed under
nonempty subsets, with face_inter as the genuine face-to-face condition) and
TriangleMesh (specified by its maximal triangles; toPlaneComplex generates
the rest). Its module docstring cites Moise, Geometric Topology in Dimensions
2 and 3, Ch. 0 and Ch. 7 for the conventions, and the file's provenance notice
records the ClassificationOfSurfaces source (revision e3c7230,
Moise/PlaneComplex.lean). IsAffineOn, IsPLOn and IsPLEmbeddingOn are the
piecewise-linear predicates; Subdivides is the same-support,
face-into-face relation.
Meshes/Subdivision/Lines.lean is the line-subdivision construction: its
docstring cites Moise Ch. 2 (cut a polygonal region by the lines containing its
edges), and TriangleMesh.refineByLines / refineByLines_subdivides are the
public interface. Meshes/Subdivision/Fine.lean cites Moise Ch. 6 (choose a
subdivision fine enough for a continuous map) and proves
PlaneComplex.exists_subdivision_image_dist_lt: for a pure finite complex and a
continuous map on its support, some subdivision makes the image of each cell
have diameter below any prescribed eps.
PlaneComplex.exists_subdivision_subordinate_openCover (the same file) and
PlaneComplex.exists_openSubmesh are its open-cover and compact-in-open
corollaries.
Meshes/Compact.lean turns exists_openSubmesh into
exists_triangleMesh_covering_compact_in_open: a compact subset of an open
planar set has a finite triangle mesh covering it and contained in the open set.
Meshes/PolygonalDomains.lean proves the exact mesh of a bounded open set whose
frontier lies in finitely many affine lines
(exists_triangleMesh_of_frontier_in_finitely_many_lines); its notice records
that the chamber-selection argument is extended from
Moise/PolygonalPolyhedron.lean (revision e3c7230) to arbitrary open sets
with finite line boundary, including domains with holes. The file also proves
the _with_refinement variant, which returns the ambient triangle and the
restriction that selects the domain.
Meshes/Subdivision/Vertices.lean (exists_subdivision_with_vertices) and
Meshes/Subdivision/Boundary.lean
(exists_triangleMesh_exact_boundary_vertices) are the prescribed-vertex
refinements. Meshes/SupportingLines.lean and Meshes/BoundaryContact.lean are
the supporting-line and boundary-contact lemmas those refinements use.
Triangles and caps
Triangles/Right.lean (rightTriangleBasis) and Triangles/Rectangle.lean
(rectangleLowerBasis, rectangleUpperBasis, rectangle_triangle_union) give
the explicit affine coordinates of a right triangle and the splitting of a
coordinate rectangle along its diagonal. Triangles/CornerCaps.lean
(exists_smooth_coordinate_corner_caps), Triangles/CurvedCap.lean
(exists_smooth_triangular_cap_coordinates), Triangles/CapTransversality.lean
(cap_endpoint_transversality) and Triangles/CapSeparation.lean
(exists_cap_chord_separation) build the smooth curved cap that rounds a corner
while preserving the coordinate quadrants. These files cite no source.
Affine lines
Affine/Lines.lean proves that every planar segment, including a singleton,
lies in the zero set of a surjective affine functional
(exists_affine_line_containing_segment), and that a finite segment cover gives
a finite list of genuine affine lines
(exists_affine_lines_of_finite_segment_cover, exists_affine_lines_iUnion).
This is what lets the mesh constructions pass from segments to the lines that
cut them. The file cites no source.
What this guide does not show
It does not show that the Lean declarations say what Maehara, Smale or Moise
say, that the proofs follow the sources' routes, or that the statements are
stated at the sources' generality. It records where to look, which source each
file names, and where a file names none. The folder's results are used by
Topology/Surface/, Topology/Manifold/Schoenflies/ and
Geometry/CurveShortening/; this guide does not audit those uses.
Sources named in the files
| Source | Where the tree names it |
|---|---|
| Maehara, The Jordan curve theorem via the Brouwer fixed point theorem, Amer. Math. Monthly 1984 | Jordan/Basic.lean (module docstring), Jordan/Arcs.lean |
| Smale, Diffeomorphisms of the 2-sphere (1959), Lemma 2, p. 622 | Curves/TangentTurning.lean (module docstring) |
| Moise, Geometric Topology in Dimensions 2 and 3, Ch. 0, 2, 6, 7 | Meshes/Basic.lean (Ch. 0, 7), Meshes/Subdivision/Lines.lean (Ch. 2), Meshes/Subdivision/Fine.lean (Ch. 6) |
mccorvie/classification-of-surfaces, revision e3c7230 |
Provenance notices of Jordan/Arcs.lean, Jordan/Basic.lean, Jordan/Brouwer.lean, Jordan/Counting.lean, Meshes/Basic.lean, Meshes/PolygonalDomains.lean, Meshes/Subdivision/Fine.lean, Meshes/Subdivision/Lines.lean |
The Affine/, Curves/, Triangles/ and Regions.lean files cite no source;
their statements are the standard constructions the notes describe.