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.Interpolator.VerticalColumn |
| 2 | |
| 3 | /-! |
| 4 | # Cellwise vertical-column supplier |
| 5 | |
| 6 | The global short-pair estimate for the sampled polygon also applies to the |
| 7 | translated side on each cell, by `cell_agreement`. This file packages that |
| 8 | rewriting with the existing M64 chain-rule calculation for the smooth M63 |
| 9 | interpolator. |
| 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 {M : Type u} [TopologicalSpace M] [T2Space M] |
| 26 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 27 | [IsManifold (𝓡 3) ∞ M] |
| 28 | |
| 29 | omit [T2Space M] in |
| 30 | /-- Transfer the sampled-polygon distance bound to its actual translated side on a closed |
| 31 | cell. Source: Auxiliary step for MT Definition 19.18 and Claims 19.19/19.22, pp. 450-453; |
| 32 | project construction in `proof-work/tasks/M64/reports/2026-09-23-static-polygon.md`. -/ |
| 33 | theorem m64_cell_side_short_of_polygon_short |
| 34 | {g : RiemannianMetric 3 M} {D : LeviCivitaData g} |
| 35 | {N : ℕ} (polygon : M63GeodesicPolygon g D N) |
| 36 | {gamma : ℝ → M} {r : ℝ} |
| 37 | (hshort : ∀ x : ℝ, |
| 38 | g.edist (gamma x) (polygon.map x) < ENNReal.ofReal r) |
| 39 | (j : Fin N) {z : LoopPlane} |
| 40 | (hz : z ∈ m64PolygonCellSet j) : |
| 41 | g.edist (gamma (z 0)) ((polygon.side j).map |
| 42 | (z 0 - m63CellLeft N j)) < ENNReal.ofReal r := by |
| 43 | have hs : z 0 - m63CellLeft N j ∈ |
| 44 | Icc (0 : ℝ) (m63CellLength N) := by |
| 45 | change m63CellLeft N j ≤ z 0 ∧ |
| 46 | z 0 ≤ m63CellLeft N j + m63CellLength N ∧ |
| 47 | 0 ≤ z 1 ∧ z 1 ≤ 1 at hz |
| 48 | constructor |
| 49 | · exact sub_nonneg.mpr hz.1 |
| 50 | · linarith [hz.2.1] |
| 51 | have hc := polygon.cell_agreement j (z 0 - m63CellLeft N j) hs |
| 52 | rw [← hc] |
| 53 | rw [show m63CellLeft N j + (z 0 - m63CellLeft N j) = z 0 by ring] |
| 54 | exact hshort (z 0) |
| 55 | |
| 56 | omit [T2Space M] in |
| 57 | /-- Identify the cell interpolator's vertical column with the distance of its endpoints. |
| 58 | Source: Auxiliary step for MT Definition 19.18 and Claims 19.19/19.22, pp. 450-453; project |
| 59 | construction in `proof-work/tasks/M64/reports/2026-09-23-static-polygon.md`. -/ |
| 60 | theorem m64_interpolator_vertical_column_of_global_short |
| 61 | {g : RiemannianMetric 3 M} {D : LeviCivitaData g} |
| 62 | {N : ℕ} (polygon : M63GeodesicPolygon g D N) |
| 63 | {gamma : ℝ → M} {U : Set (M × M)} {H : ℝ × (M × M) → M} |
| 64 | (hU : IsOpen U) |
| 65 | (hH : ContMDiffOn |
| 66 | ((𝓘(ℝ, ℝ)).prod ((𝓡 3).prod (𝓡 3))) (𝓡 3) ∞ H |
| 67 | (Ioo (-1 : ℝ) 2 ×ˢ U)) |
| 68 | (hgamma : ContMDiffOn 𝓘(ℝ, ℝ) (𝓡 3) 1 gamma Set.univ) |
| 69 | (hpair : ∀ j : Fin N, ∀ p ∈ m64PolygonCellSet j, |
| 70 | (gamma (p 0), (polygon.side j).map |
| 71 | (p 0 - m63CellLeft N j)) ∈ U) |
| 72 | (j : Fin N) {x : LoopPlane} |
| 73 | (hx : x ∈ interior (m64PolygonCellSet j)) |
| 74 | {r : ℝ} |
| 75 | (hshort : ∀ y : ℝ, |
| 76 | g.edist (gamma y) (polygon.map y) < ENNReal.ofReal r) |
| 77 | (hgeom : g.edist (gamma (x 0)) ((polygon.side j).map |
| 78 | (x 0 - m63CellLeft N j)) < ENNReal.ofReal r → |
| 79 | H (0, gamma (x 0), (polygon.side j).map |
| 80 | (x 0 - m63CellLeft N j)) = gamma (x 0) ∧ |
| 81 | H (1, gamma (x 0), (polygon.side j).map |
| 82 | (x 0 - m63CellLeft N j)) = |
| 83 | (polygon.side j).map (x 0 - m63CellLeft N j) ∧ |
| 84 | g.IsGeodesicOn |
| 85 | (fun t => H (t, gamma (x 0), (polygon.side j).map |
| 86 | (x 0 - m63CellLeft N j))) (Ioo (-1 : ℝ) 2) ∧ |
| 87 | (∀ t ∈ Ioo (-1 : ℝ) 2, |
| 88 | g.tangentNorm |
| 89 | (H (t, gamma (x 0), (polygon.side j).map |
| 90 | (x 0 - m63CellLeft N j))) |
| 91 | (mfderiv 𝓘(ℝ, ℝ) (𝓡 3) |
| 92 | (fun s => H (s, gamma (x 0), (polygon.side j).map |
| 93 | (x 0 - m63CellLeft N j))) t 1) = |
| 94 | (g.edist (gamma (x 0)) ((polygon.side j).map |
| 95 | (x 0 - m63CellLeft N j))).toReal) ∧ |
| 96 | g.pathELength |
| 97 | (fun t => H (t, gamma (x 0), (polygon.side j).map |
| 98 | (x 0 - m63CellLeft N j))) 0 1 = |
| 99 | g.edist (gamma (x 0)) ((polygon.side j).map |
| 100 | (x 0 - m63CellLeft N j))) : |
| 101 | g.tangentNorm |
| 102 | (H (x 1, gamma (x 0), (polygon.side j).map |
| 103 | (x 0 - m63CellLeft N j))) |
| 104 | (mfderiv (𝓡 2) (𝓡 3) |
| 105 | (fun p : LoopPlane => H (p 1, gamma (p 0), |
| 106 | (polygon.side j).map (p 0 - m63CellLeft N j))) x |
| 107 | (EuclideanSpace.basisFun (Fin 2) ℝ 1)) = |
| 108 | (g.edist (gamma (x 0)) ((polygon.side j).map |
| 109 | (x 0 - m63CellLeft N j))).toReal := by |
| 110 | apply m64_interpolator_vertical_column_of_speed polygon hU hH hgamma hpair j |
| 111 | (interior_subset hx) |
| 112 | (m64_cell_side_short_of_polygon_short polygon hshort j |
| 113 | (interior_subset hx)) |
| 114 | hgeom |
| 115 | |
| 116 | end PoincareMT |