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.Polygon.CellLipschitzGlue |
| 2 | import PoincareLib.Geometry.CurveShortening.Comparison.PolygonApproximation.Interpolator.LocalLipschitz |
| 3 | import PoincareLib.Geometry.CurveShortening.Comparison.PolygonApproximation.Interpolator.MapFields |
| 4 | |
| 5 | /-! |
| 6 | # Lipschitz regularity of the interpolator rectangle |
| 7 | |
| 8 | On each closed polygon cell the assembled map agrees with its smooth side |
| 9 | extension. Compact-cell estimates and finite-strip gluing give a global |
| 10 | rectangle estimate, including the polygon cuts. |
| 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 |
| 19 | open scoped Manifold ContDiff 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 | /-- The cell extensions glue to a Lipschitz map on the entire closed annulus rectangle. |
| 30 | Source: Auxiliary step for MT Definition 19.18 and Claims 19.19/19.22, pp. 450-453; project |
| 31 | construction in `proof-work/tasks/M64/reports/2026-09-23-static-polygon.md`. -/ |
| 32 | theorem m64_interpolator_rectangle_lipschitz |
| 33 | (g : RiemannianMetric n M) {D : LeviCivitaData g} |
| 34 | {N : ℕ} (hN : 0 < N) (polygon : M63GeodesicPolygon g D N) |
| 35 | {gamma : ℝ → M} {U : Set (M × M)} {H : ℝ × (M × M) → M} |
| 36 | (hU : IsOpen U) |
| 37 | (hH : ContMDiffOn |
| 38 | ((𝓘(ℝ, ℝ)).prod ((𝓡 n).prod (𝓡 n))) (𝓡 n) ∞ H |
| 39 | (Ioo (-1 : ℝ) 2 ×ˢ U)) |
| 40 | (hgamma : ContMDiff 𝓘(ℝ, ℝ) (𝓡 n) 1 gamma) |
| 41 | (hpair_global : ∀ x : ℝ, (gamma x, polygon.map x) ∈ U) : |
| 42 | ∃ K : ℝ≥0, ∀ x y : m64AnnulusDomain, |
| 43 | g.edist (H (x.1 1, gamma (x.1 0), polygon.map (x.1 0))) |
| 44 | (H (y.1 1, gamma (y.1 0), polygon.map (y.1 0))) ≤ |
| 45 | (K : ℝ≥0∞) * ENNReal.ofReal ‖(x : LoopPlane) - y‖ := by |
| 46 | let f : LoopPlane → M := fun p => H (p 1, gamma (p 0), polygon.map (p 0)) |
| 47 | have hcontinuous : ContinuousOn f m64AnnulusDomain := |
| 48 | m64_interpolator_map_continuous polygon hH hgamma.continuous hpair_global f rfl |
| 49 | have hside (j : Fin N) (p : LoopPlane) (hp : p ∈ m64PolygonCellSet j) : |
| 50 | polygon.map (p 0) = (polygon.side j).map (p 0 - m63CellLeft N j) := by |
| 51 | have hs : p 0 - m63CellLeft N j ∈ Icc (0 : ℝ) (m63CellLength N) := by |
| 52 | constructor <;> linarith [hp.1, hp.2.1] |
| 53 | have heq := polygon.cell_agreement j (p 0 - m63CellLeft N j) hs |
| 54 | simpa only [add_sub_cancel] using heq |
| 55 | have hpair : ∀ j : Fin N, ∀ p ∈ m64PolygonCellSet j, |
| 56 | (gamma (p 0), (polygon.side j).map (p 0 - m63CellLeft N j)) ∈ U := by |
| 57 | intro j p hp |
| 58 | rw [← hside j p hp] |
| 59 | exact hpair_global (p 0) |
| 60 | apply m64Annulus_hLip_of_polygon_cells g (f := f) hN |
| 61 | intro j |
| 62 | exact m64_polygon_cell_lipschitz_of_extension g hN j hcontinuous |
| 63 | (fun _ hx => m64_interpolator_contMDiffAt_of_cell polygon hU hH |
| 64 | hgamma.contMDiffOn hpair j hx) |
| 65 | (fun p hp => by |
| 66 | change H (p 1, gamma (p 0), polygon.map (p 0)) = _ |
| 67 | rw [hside j p hp]) |
| 68 | |
| 69 | end PoincareMT |