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

| 1 | import PoincareLib.Geometry.CurveShortening.Comparison.PolygonApproximation.Cell.LipschitzAssembly |
| 2 | import PoincareLib.Geometry.CurveShortening.Comparison.PolygonApproximation.Polygon.CellCompact |
| 3 | import PoincareLib.Geometry.CurveShortening.Comparison.PolygonApproximation.Metric.LipschitzBridge |
| 4 | |
| 5 | /-! |
| 6 | # Polygon-cell Lipschitz specialization |
| 7 | |
| 8 | For an actual annulus map, continuity on the rectangle already puts every |
| 9 | closed polygon cell in one finite-distance target component. This removes |
| 10 | that bookkeeping from the cell-level smooth-extension call. |
| 11 | |
| 12 | Morgan--Tian context: Section 19.4, Definition 19.18 and Claims 19.19-19.22, printed pp. |
| 13 | 450-453. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | |
| 18 | open Set Filter MeasureTheory Bundle |
| 19 | open scoped Manifold ContDiff Topology Bundle ENNReal NNReal |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT |
| 24 | |
| 25 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] [T2Space M] |
| 26 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] |
| 27 | [IsManifold (𝓡 n) ∞ M] |
| 28 | |
| 29 | /-- A continuous annulus map with a smooth cell extension has a Lipschitz bound on that |
| 30 | cell. Source: Auxiliary step for MT Definition 19.18 and Claims 19.19/19.22, pp. 450-453; |
| 31 | project construction in `proof-work/tasks/M64/reports/2026-09-23-static-polygon.md`. -/ |
| 32 | theorem m64_polygon_cell_lipschitz_of_extension |
| 33 | (g : RiemannianMetric n M) {f F : LoopPlane → M} |
| 34 | {N : ℕ} (hN : 0 < N) (j : Fin N) |
| 35 | (hcontinuous : ContinuousOn f m64AnnulusDomain) |
| 36 | (hF : ∀ x ∈ m64PolygonCellSet j, |
| 37 | ContMDiffAt (𝓡 2) (𝓡 n) 1 F x) |
| 38 | (hEq : EqOn f F (m64PolygonCellSet j)) : |
| 39 | ∃ K : ℝ≥0, ∀ x ∈ m64PolygonCellSet j, ∀ y ∈ m64PolygonCellSet j, |
| 40 | g.edist (f x) (f y) ≤ |
| 41 | (K : ℝ≥0∞) * ENNReal.ofReal ‖x - y‖ := by |
| 42 | let S := m64PolygonCellSet j |
| 43 | have hsub : S ⊆ m64AnnulusDomain := |
| 44 | m64PolygonCellSet_subset_annulusDomain hN j |
| 45 | have hfinite : ∀ x ∈ S, ∀ y ∈ S, |
| 46 | g.edist (f x) (f y) ≠ (⊤ : ENNReal) := by |
| 47 | intro x hx y hy |
| 48 | exact m64AnnulusDomain_edist_ne_top g hcontinuous x (hsub hx) y (hsub hy) |
| 49 | obtain ⟨K, hK⟩ := m64_lipschitzOn_cell_of_extension g |
| 50 | (m64PolygonCellSet_isCompact hN j) hfinite hF hEq |
| 51 | exact ⟨K, hK⟩ |
| 52 | |
| 53 | end PoincareMT |