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.CellEventually |
| 2 | import PoincareLib.Geometry.CurveShortening.Comparison.PolygonApproximation.Polygon.CellBoundaryNull |
| 3 | |
| 4 | /-! |
| 5 | # AE vertical-column transport for the interpolator |
| 6 | |
| 7 | The smooth side extension has a cellwise vertical-column estimate. This |
| 8 | adapter transports that estimate to the assembled interpolator map, using the |
| 9 | finite polygon-cell interior cover and eventual equality away from the cuts. |
| 10 | |
| 11 | Morgan--Tian context: Section 19.4, Definition 19.18 and Claims 19.19-19.22, printed pp. |
| 12 | 450-453. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | set_option backward.isDefEq.respectTransparency 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] |
| 26 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] |
| 27 | [IsManifold (𝓡 n) ∞ M] |
| 28 | |
| 29 | /-- Transfer vertical-column bounds from cell extensions to the assembled map off the null |
| 30 | cuts. 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_interpolator_vertical_column_ae_of_cell_extensions |
| 33 | {g : RiemannianMetric n M} {D : LeviCivitaData g} |
| 34 | {N : ℕ} (hN : 0 < N) |
| 35 | (polygon : M63GeodesicPolygon g D N) |
| 36 | {gamma : ℝ → M} {H : ℝ × (M × M) → M} |
| 37 | {f : LoopPlane → M} {K : ℝ} |
| 38 | (hf : f = (fun p : LoopPlane => |
| 39 | H (p 1, gamma (p 0), polygon.map (p 0)))) |
| 40 | (hcolumn : ∀ j : Fin N, ∀ z ∈ interior (m64PolygonCellSet j), |
| 41 | g.tangentNorm |
| 42 | (H (z 1, gamma (z 0), |
| 43 | (polygon.side j).map (z 0 - m63CellLeft N j))) |
| 44 | (mfderiv (𝓡 2) (𝓡 n) |
| 45 | (fun p : LoopPlane => H (p 1, gamma (p 0), |
| 46 | (polygon.side j).map (p 0 - m63CellLeft N j))) z |
| 47 | (EuclideanSpace.basisFun (Fin 2) ℝ 1)) ≤ K) : |
| 48 | ∀ᵐ z ∂volume.restrict m64AnnulusDomain, |
| 49 | g.tangentNorm (f z) |
| 50 | (mfderiv (𝓡 2) (𝓡 n) f z |
| 51 | (EuclideanSpace.basisFun (Fin 2) ℝ 1)) ≤ K := by |
| 52 | filter_upwards [m64_polygon_cells_interior_ae hN] with z hz |
| 53 | obtain ⟨j, hzj⟩ := hz |
| 54 | have hevent0 := |
| 55 | m64_interpolator_map_eventuallyEq_cell_extension |
| 56 | (gamma := gamma) (H := H) polygon j hzj |
| 57 | have hevent : f =ᶠ[𝓝 z] |
| 58 | (fun p : LoopPlane => H (p 1, gamma (p 0), |
| 59 | (polygon.side j).map (p 0 - m63CellLeft N j))) := by |
| 60 | rw [hf] |
| 61 | exact hevent0 |
| 62 | have hvalue : f z = H (z 1, gamma (z 0), |
| 63 | (polygon.side j).map (z 0 - m63CellLeft N j)) := hevent.self_of_nhds |
| 64 | have hderiv : mfderiv (𝓡 2) (𝓡 n) f z = |
| 65 | mfderiv (𝓡 2) (𝓡 n) |
| 66 | (fun p : LoopPlane => H (p 1, gamma (p 0), |
| 67 | (polygon.side j).map (p 0 - m63CellLeft N j))) z := |
| 68 | hevent.mfderiv_eq |
| 69 | rw [hvalue, hderiv] |
| 70 | exact hcolumn j z hzj |
| 71 | |
| 72 | end PoincareMT |