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

docs: add the topology-plane reading guide
Browse filesChecks
ci/docs
Details
+223 −0 docs/guide/topology-plane.md added View file
| @@ -0,0 +1,223 @@ | ||
| 1 | +# Topology/Plane: the Jordan curve theorem, Brouwer in the disk, and plane meshes | |
| 2 | + | |
| 3 | +**Scope.** `PoincareLib/Topology/Plane/` is 42 Lean files, about 15,700 lines. It | |
| 4 | +proves the continuous Jordan curve theorem for the geometric circle in `ℝ²`, the | |
| 5 | +two-dimensional Brouwer fixed point theorem, the normal-collar and | |
| 6 | +tangent-turning lemmas that planar curve arguments use, and the finite plane | |
| 7 | +complex (mesh) constructions of the Moise route. This guide says what the folder | |
| 8 | +proves, names the main declaration of each result with its file, and gives the | |
| 9 | +classical theorem and source the file itself cites. It does **not** say that a | |
| 10 | +Lean declaration has the same statement as the book or paper; comparing the two | |
| 11 | +is V-4. | |
| 12 | + | |
| 13 | +Two subfolders carry the weight. `Jordan/` (5 files) is Maehara's proof of the | |
| 14 | +Jordan curve theorem through Brouwer. `Meshes/` (5 files, plus 4 in | |
| 15 | +`Meshes/Subdivision/`) is the finite-complex layer. `Curves/` (6 files), | |
| 16 | +`Curves/Graphs/` (14 files), `Triangles/` (6 files) and `Affine/` (1 file) are | |
| 17 | +the geometric helpers those two use. | |
| 18 | + | |
| 19 | +## Where the folder's work lives | |
| 20 | + | |
| 21 | +| Folder | What it holds | | |
| 22 | +|---|---| | |
| 23 | +| `Affine/` | Every planar segment lies on a genuine affine line, so a finite segment cover gives a finite list of lines. | | |
| 24 | +| `Jordan/` | The circle/arc splitting lemmas, Maehara's crossing lemma and two geometric steps, the complementary domains, and the Brouwer proof in four phases. | | |
| 25 | +| `Curves/` | Local straightening, smooth normal collars, two-sided arc neighborhoods, transverse level coordinates, and the tangent-turning obstruction. | | |
| 26 | +| `Curves/Graphs/` | Graph coordinates along a compact arc, finite graph subdivisions, polygonal approximation, and the strip coordinates between two graphs. | | |
| 27 | +| `Meshes/` | `PlaneComplex` and `TriangleMesh`, line subdivision, fine subdivision, exact boundary vertices, polygonal domains, and the compact-in-open mesh. | | |
| 28 | +| `Triangles/` | The explicit right triangle and rectangle splitting, and the smooth curved caps used to round a corner. | | |
| 29 | + | |
| 30 | +## Main results | |
| 31 | + | |
| 32 | +`found` means a declaration states the result; `partial` means only part of it has | |
| 33 | +a declaration. The file column gives the main declaration; the notes give the | |
| 34 | +neighbours and say where the statement differs from the source. | |
| 35 | + | |
| 36 | +| Classical result | Lean declaration | File | Source cited in the tree | Status | | |
| 37 | +|---|---|---|---|---| | |
| 38 | +| 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 | | |
| 39 | +| 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 | | |
| 40 | +| 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 | | |
| 41 | +| 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 | | |
| 42 | +| 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 | | |
| 43 | +| 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 | | |
| 44 | +| Smooth normal collar of a compact regular arc | `exists_normal_collar`, `exists_normal_collar_coordinates` | `Curves/Collar.lean` | — (the file cites no source) | found | | |
| 45 | +| Local straightening of a regular planar curve | `exists_local_straightening` | `Curves/LocalStraightening.lean` | — (the file cites no source) | found | | |
| 46 | +| 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 | | |
| 47 | +| 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 | | |
| 48 | +| 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 | | |
| 49 | +| 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 | | |
| 50 | +| 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 | | |
| 51 | +| 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 | | |
| 52 | +| A mesh can be refined to make prescribed points vertices | `exists_subdivision_with_vertices` | `Meshes/Subdivision/Vertices.lean` | — | found | | |
| 53 | +| A mesh can be refined to prescribed boundary vertices exactly | `exists_triangleMesh_exact_boundary_vertices` | `Meshes/Subdivision/Boundary.lean` | — | found | | |
| 54 | + | |
| 55 | +## Notes on each row | |
| 56 | + | |
| 57 | +### Brouwer fixed point theorem | |
| 58 | + | |
| 59 | +`Poincare.Topology.Plane.Jordan.Brouwer.brouwerFPT` (`Jordan/Brouwer.lean`) | |
| 60 | +states | |
| 61 | + | |
| 62 | +```lean | |
| 63 | +theorem brouwerFPT : ∀ s : Set Plane, Convex ℝ s → IsCompact s → s.Nonempty → | |
| 64 | + ∀ f : C(s, s), ∃ x, f x = x | |
| 65 | +``` | |
| 66 | + | |
| 67 | +The proof is in four phases, as the module docstring says. Phase 1 is | |
| 68 | +`acLoop_not_homotopic`: the once-around loop on `AddCircle 1` is not homotopic | |
| 69 | +rel endpoints to the constant loop, proved from the covering `ℝ → AddCircle 1` | |
| 70 | +by Mathlib's unique path lifting | |
| 71 | +(`IsCoveringMap.liftPath_apply_one_eq_of_homotopicRel`). Phase 1.5 transports | |
| 72 | +this across `AddCircle 1 ≃ₜ Circle ≃ₜ sphere (0:ℝ²) 1` (`sLoop_not_homotopic`). | |
| 73 | +Phase 2 is `no_retraction`. Phase 3 is `brouwer_disk`, where a fixed-point-free | |
| 74 | +self-map yields a retraction by the ray construction `rhoPt`. Phase 4 is | |
| 75 | +`brouwerFPT` itself, by nearest-point projection onto a closed ball. The tree | |
| 76 | +proves the disk case from covering-space lifting rather than citing a textbook | |
| 77 | +edition; the classical attribution (Brouwer 1912) is the surrounding | |
| 78 | +literature, not a citation in the file. | |
| 79 | + | |
| 80 | +### Jordan curve theorem | |
| 81 | + | |
| 82 | +`Poincare.Topology.Plane.Jordan.jordan_curve` (`Jordan/Basic.lean`) states | |
| 83 | + | |
| 84 | +```lean | |
| 85 | +theorem jordan_curve | |
| 86 | + (r : sphere (0 : EuclideanSpace ℝ (Fin 2)) 1 → EuclideanSpace ℝ (Fin 2)) | |
| 87 | + (_hcont : Continuous r) (_hinj : Injective r) : | |
| 88 | + Nat.card (ConnectedComponents ((range r)ᶜ : Set (EuclideanSpace ℝ (Fin 2)))) = 2 | |
| 89 | +``` | |
| 90 | + | |
| 91 | +The module docstring names Maehara's 1984 *American Mathematical Monthly* paper | |
| 92 | +and splits the proof into the crossing lemma (`crossing`, the paper's Lemma 2), | |
| 93 | +the boundary lemma (`component_boundary_eq`, the paper's Lemma 1), and the two | |
| 94 | +geometric steps `step_A_exists_bounded` and `step_B_bounded_unique` (existence | |
| 95 | +and uniqueness of the bounded complementary component). `jordan_curve` itself | |
| 96 | +is the last line: it discharges the `BrouwerFPT` interface with | |
| 97 | +`Brouwer.brouwerFPT` and applies `jordan_curve_of_brouwer`. | |
| 98 | + | |
| 99 | +`Jordan/Domains.lean` gives the two-domain form as | |
| 100 | +`exists_complementary_domains`: open, path-connected `U` and `V`, with `U` | |
| 101 | +bounded and `V` not, union the complement, common frontier the curve, and | |
| 102 | +`closure U` compact. `Jordan/Arcs.lean` supplies the splitting lemmas | |
| 103 | +(`sphere_split`, `jordanCurve_split`, `arcHomeoUnitInterval`) and the bridge | |
| 104 | +`circleHomeoSphere` between Mathlib's `Circle` and the geometric circle. | |
| 105 | +`Jordan/Counting.lean` is the bookkeeping that turns "two distinguished | |
| 106 | +components" into `Nat.card (ConnectedComponents …) = 2`. | |
| 107 | + | |
| 108 | +### Complementary domains and the frontier | |
| 109 | + | |
| 110 | +`exists_complementary_domains` is the packaging used outside the folder (for | |
| 111 | +example in `Topology/Surface/Triangulation/Separation.lean`, which applies | |
| 112 | +`jordan_curve`). `Regions.lean` proves the separate fact that a bounded planar | |
| 113 | +set with nonempty interior has infinite frontier | |
| 114 | +(`infinite_frontier_of_bounded_nonempty_interior`), with the open-set corollary | |
| 115 | +`infinite_frontier_of_isOpen` and the finite-set form | |
| 116 | +`exists_frontier_not_mem_finite`. The file cites no source; its proof uses | |
| 117 | +`IsConnected.compl_of_one_lt_rank` for the plane. | |
| 118 | + | |
| 119 | +### Normal collars and local straightening | |
| 120 | + | |
| 121 | +`exists_normal_collar` (`Curves/Collar.lean`) gives a uniform injective smooth | |
| 122 | +normal strip `normalStrip f` on `Icc a b ×ˢ Ioo (-ε) ε` with invertible | |
| 123 | +differential on the axis; | |
| 124 | +`exists_normal_collar_coordinates` packages the same strip as one | |
| 125 | +`OpenPartialHomeomorph` smooth in both directions. `exists_local_straightening` | |
| 126 | +(`Curves/LocalStraightening.lean`) is the local version at a single point: the | |
| 127 | +curve is the horizontal axis of coordinates `F q = f q.1 + q.2 • w` with `w` | |
| 128 | +perpendicular to the tangent. Neither file cites a source; both are the standard | |
| 129 | +inverse-function-theorem constructions. | |
| 130 | + | |
| 131 | +### Tangent turning | |
| 132 | + | |
| 133 | +`not_periodic_tangent_logarithm` (`Curves/TangentTurning.lean`) states that a | |
| 134 | +smooth simple periodic plane curve with nonzero tangent has no continuous | |
| 135 | +periodic logarithm of its tangent. The module docstring attributes the | |
| 136 | +periodic-orbit obstruction to Smale, *Diffeomorphisms of the 2-sphere* (1959), | |
| 137 | +Lemma 2, p. 622. The proof deforms tangents to half-period secants by divided | |
| 138 | +differences and shows the secants change sign after half a period. | |
| 139 | + | |
| 140 | +### Plane complexes and meshes | |
| 141 | + | |
| 142 | +`Meshes/Basic.lean` defines `PlaneComplex` (finitely many vertices at genuine | |
| 143 | +points, faces of at most three affinely independent vertices, closed under | |
| 144 | +nonempty subsets, with `face_inter` as the genuine face-to-face condition) and | |
| 145 | +`TriangleMesh` (specified by its maximal triangles; `toPlaneComplex` generates | |
| 146 | +the rest). Its module docstring cites Moise, *Geometric Topology in Dimensions | |
| 147 | +2 and 3*, Ch. 0 and Ch. 7 for the conventions, and the file's provenance notice | |
| 148 | +records the `ClassificationOfSurfaces` source (revision `e3c7230`, | |
| 149 | +`Moise/PlaneComplex.lean`). `IsAffineOn`, `IsPLOn` and `IsPLEmbeddingOn` are the | |
| 150 | +piecewise-linear predicates; `Subdivides` is the same-support, | |
| 151 | +face-into-face relation. | |
| 152 | + | |
| 153 | +`Meshes/Subdivision/Lines.lean` is the line-subdivision construction: its | |
| 154 | +docstring cites Moise Ch. 2 (cut a polygonal region by the lines containing its | |
| 155 | +edges), and `TriangleMesh.refineByLines` / `refineByLines_subdivides` are the | |
| 156 | +public interface. `Meshes/Subdivision/Fine.lean` cites Moise Ch. 6 (choose a | |
| 157 | +subdivision fine enough for a continuous map) and proves | |
| 158 | +`PlaneComplex.exists_subdivision_image_dist_lt`: for a pure finite complex and a | |
| 159 | +continuous map on its support, some subdivision makes the image of each cell | |
| 160 | +have diameter below any prescribed `eps`. | |
| 161 | +`PlaneComplex.exists_subdivision_subordinate_openCover` (the same file) and | |
| 162 | +`PlaneComplex.exists_openSubmesh` are its open-cover and compact-in-open | |
| 163 | +corollaries. | |
| 164 | + | |
| 165 | +`Meshes/Compact.lean` turns `exists_openSubmesh` into | |
| 166 | +`exists_triangleMesh_covering_compact_in_open`: a compact subset of an open | |
| 167 | +planar set has a finite triangle mesh covering it and contained in the open set. | |
| 168 | +`Meshes/PolygonalDomains.lean` proves the exact mesh of a bounded open set whose | |
| 169 | +frontier lies in finitely many affine lines | |
| 170 | +(`exists_triangleMesh_of_frontier_in_finitely_many_lines`); its notice records | |
| 171 | +that the chamber-selection argument is extended from | |
| 172 | +`Moise/PolygonalPolyhedron.lean` (revision `e3c7230`) to arbitrary open sets | |
| 173 | +with finite line boundary, including domains with holes. The file also proves | |
| 174 | +the `_with_refinement` variant, which returns the ambient triangle and the | |
| 175 | +restriction that selects the domain. | |
| 176 | +`Meshes/Subdivision/Vertices.lean` (`exists_subdivision_with_vertices`) and | |
| 177 | +`Meshes/Subdivision/Boundary.lean` | |
| 178 | +(`exists_triangleMesh_exact_boundary_vertices`) are the prescribed-vertex | |
| 179 | +refinements. `Meshes/SupportingLines.lean` and `Meshes/BoundaryContact.lean` are | |
| 180 | +the supporting-line and boundary-contact lemmas those refinements use. | |
| 181 | + | |
| 182 | +### Triangles and caps | |
| 183 | + | |
| 184 | +`Triangles/Right.lean` (`rightTriangleBasis`) and `Triangles/Rectangle.lean` | |
| 185 | +(`rectangleLowerBasis`, `rectangleUpperBasis`, `rectangle_triangle_union`) give | |
| 186 | +the explicit affine coordinates of a right triangle and the splitting of a | |
| 187 | +coordinate rectangle along its diagonal. `Triangles/CornerCaps.lean` | |
| 188 | +(`exists_smooth_coordinate_corner_caps`), `Triangles/CurvedCap.lean` | |
| 189 | +(`exists_smooth_triangular_cap_coordinates`), `Triangles/CapTransversality.lean` | |
| 190 | +(`cap_endpoint_transversality`) and `Triangles/CapSeparation.lean` | |
| 191 | +(`exists_cap_chord_separation`) build the smooth curved cap that rounds a corner | |
| 192 | +while preserving the coordinate quadrants. These files cite no source. | |
| 193 | + | |
| 194 | +### Affine lines | |
| 195 | + | |
| 196 | +`Affine/Lines.lean` proves that every planar segment, including a singleton, | |
| 197 | +lies in the zero set of a surjective affine functional | |
| 198 | +(`exists_affine_line_containing_segment`), and that a finite segment cover gives | |
| 199 | +a finite list of genuine affine lines | |
| 200 | +(`exists_affine_lines_of_finite_segment_cover`, `exists_affine_lines_iUnion`). | |
| 201 | +This is what lets the mesh constructions pass from segments to the lines that | |
| 202 | +cut them. The file cites no source. | |
| 203 | + | |
| 204 | +## What this guide does not show | |
| 205 | + | |
| 206 | +It does not show that the Lean declarations say what Maehara, Smale or Moise | |
| 207 | +say, that the proofs follow the sources' routes, or that the statements are | |
| 208 | +stated at the sources' generality. It records where to look, which source each | |
| 209 | +file names, and where a file names none. The folder's results are used by | |
| 210 | +`Topology/Surface/`, `Topology/Manifold/Schoenflies/` and | |
| 211 | +`Geometry/CurveShortening/`; this guide does not audit those uses. | |
| 212 | + | |
| 213 | +## Sources named in the files | |
| 214 | + | |
| 215 | +| Source | Where the tree names it | | |
| 216 | +|---|---| | |
| 217 | +| Maehara, *The Jordan curve theorem via the Brouwer fixed point theorem*, Amer. Math. Monthly 1984 | `Jordan/Basic.lean` (module docstring), `Jordan/Arcs.lean` | | |
| 218 | +| Smale, *Diffeomorphisms of the 2-sphere* (1959), Lemma 2, p. 622 | `Curves/TangentTurning.lean` (module docstring) | | |
| 219 | +| 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) | | |
| 220 | +| `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` | | |
| 221 | + | |
| 222 | +The `Affine/`, `Curves/`, `Triangles/` and `Regions.lean` files cite no source; | |
| 223 | +their statements are the standard constructions the notes describe. | |
+4 −2 routes/p6-topology-plane/README.md View file
| @@ -13,5 +13,7 @@ route. | ||
| 13 | 13 | |
| 14 | 14 | ## Next |
| 15 | 15 | |
| 16 | -Read the folder's file headers and main theorems, then draft the guide table and | |
| 17 | -check every declaration with `git grep`. | |
| 16 | +The guide is drafted at `docs/guide/topology-plane.md`: folder map, main results | |
| 17 | +table, notes on each row, and the sources the files name. Every declaration in | |
| 18 | +the table was checked with `git grep`. Next: run `python checks/challenge.py .`, | |
| 19 | +commit, push, and open a PR with `Part of #7`. | |