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.Metric.LipschitzBridge |
| 2 | |
| 3 | /-! |
| 4 | # Within-cell metric Lipschitz transfer |
| 5 | |
| 6 | The polygon map is only smooth after restricting to one cell. This file |
| 7 | records the elementary transfer from a smooth extension to the actual map on |
| 8 | that cell. It is the local interface consumed by the compact globalization |
| 9 | bridge; the geometric construction of the extensions remains with the |
| 10 | polygon/interpolator supplier. |
| 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 | /-- Restrict a smooth extension's local metric Lipschitz bound to the actual cell map. |
| 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_lipschitzOn_nhdsWithin_of_extension |
| 33 | (g : RiemannianMetric n M) {f F : LoopPlane → M} {S : Set LoopPlane} |
| 34 | {x : LoopPlane} |
| 35 | (hF : ContMDiffAt (𝓡 2) (𝓡 n) 1 F x) |
| 36 | (hEq : EqOn f F S) : |
| 37 | ∃ K : ℝ≥0, ∃ U ∈ 𝓝 x, ∀ y ∈ U ∩ S, ∀ z ∈ U ∩ S, |
| 38 | g.edist (f y) (f z) ≤ |
| 39 | (K : ℝ≥0∞) * ENNReal.ofReal ‖y - z‖ := by |
| 40 | obtain ⟨K, U, hU, hK⟩ := |
| 41 | m64_lipschitzOn_nhds_of_contMDiffAt g hF |
| 42 | refine ⟨K, U, hU, ?_⟩ |
| 43 | intro y hy z hz |
| 44 | rw [hEq hy.2, hEq hz.2] |
| 45 | exact hK y hy.1 z hz.1 |
| 46 | |
| 47 | end PoincareMT |