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.Horizontal.Column |
| 2 | |
| 3 | /-! |
| 4 | # Interpolator sides and the strict area witness |
| 5 | |
| 6 | The M63 interpolator property bundle gives an explicit minimizing side for |
| 7 | every short sampled endpoint pair. This file keeps the side map visible, |
| 8 | which is needed by the M64 geodesic-annulus adapter, and then packages the |
| 9 | endpoint, cut, column, and area certificates into one annulus witness call. |
| 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] [T2Space M] |
| 26 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] |
| 27 | [IsManifold (𝓡 n) ∞ M] |
| 28 | |
| 29 | omit [T2Space M] in |
| 30 | /-- Retain the actual interpolating map in a minimizing-geodesic-side record. Source: |
| 31 | Auxiliary step for MT Definition 19.18 and Claims 19.19/19.22, pp. 450-453; project |
| 32 | construction in `proof-work/tasks/M64/reports/2026-09-23-static-polygon.md`. -/ |
| 33 | theorem m64_interpolator_side_of_short_pair |
| 34 | (g : RiemannianMetric n M) (D : LeviCivitaData g) |
| 35 | {p q : M} {r : ℝ} {H : ℝ × (M × M) → M} |
| 36 | (hr : g.edist p q < ENNReal.ofReal r) |
| 37 | (hsmooth : ContMDiffOn 𝓘(ℝ, ℝ) (𝓡 n) |
| 38 | ∞ (fun t : ℝ => H (t, p, q)) (Ioo (-1 : ℝ) 2)) |
| 39 | (hprops : g.edist p q < ENNReal.ofReal r → |
| 40 | H (0, p, q) = p ∧ H (1, p, q) = q ∧ |
| 41 | g.IsGeodesicOn (fun t => H (t, p, q)) (Ioo (-1 : ℝ) 2) ∧ |
| 42 | (∀ t ∈ Ioo (-1 : ℝ) 2, |
| 43 | g.tangentNorm (H (t, p, q)) |
| 44 | (mfderiv 𝓘(ℝ, ℝ) (𝓡 n) |
| 45 | (fun s => H (s, p, q)) t 1) = (g.edist p q).toReal) ∧ |
| 46 | g.pathELength (fun t => H (t, p, q)) 0 1 = g.edist p q) : |
| 47 | ∃ side : M63MinimizingGeodesicSide g D 1 p q, |
| 48 | ∀ t : ℝ, side.map t = H (t, p, q) := by |
| 49 | rcases hprops hr with ⟨h0, h1, hgeo, hspeed, hlength⟩ |
| 50 | let side : M63MinimizingGeodesicSide g D 1 p q := { |
| 51 | map := fun t => H (t, p, q) |
| 52 | domain := Ioo (-1 : ℝ) 2 |
| 53 | domain_open := isOpen_Ioo |
| 54 | interval_subset := by |
| 55 | intro t ht |
| 56 | constructor <;> linarith [ht.1, ht.2] |
| 57 | smooth := hsmooth |
| 58 | start := h0 |
| 59 | finish := h1 |
| 60 | speed := (g.edist p q).toReal |
| 61 | speed_nonnegative := ENNReal.toReal_nonneg |
| 62 | constant_speed := by |
| 63 | intro t ht |
| 64 | have hIoo : t ∈ Ioo (-1 : ℝ) 2 := by |
| 65 | constructor <;> linarith [ht.1, ht.2] |
| 66 | exact hspeed t hIoo |
| 67 | equation := by |
| 68 | intro t ht |
| 69 | have hIoo : t ∈ Ioo (-1 : ℝ) 2 := by |
| 70 | constructor <;> linarith [ht.1, ht.2] |
| 71 | exact hgeo.pullback_velocity_eq_zero D hIoo |
| 72 | minimizing := hlength } |
| 73 | refine ⟨side, ?_⟩ |
| 74 | intro t |
| 75 | rfl |
| 76 | |
| 77 | /-- Build a strict-area annulus from an interpolator map once its global rectangle Lipschitz |
| 78 | certificate and vertical column estimate are available. The endpoint and geodesic fields are |
| 79 | supplied by the short-pair property; the horizontal column and area estimate are discharged |
| 80 | by the M64 bridge. Source: Auxiliary step for MT Definition 19.18 and Claims 19.19/19.22, |
| 81 | pp. 450-453; project construction in |
| 82 | `proof-work/tasks/M64/reports/2026-09-23-static-polygon.md`. -/ |
| 83 | theorem m64_interpolator_annulus_witness_of_columns |
| 84 | (g : RiemannianMetric n M) (D : LeviCivitaData g) |
| 85 | {N : ℕ} (hN : 0 < N) |
| 86 | (polygon : M63GeodesicPolygon g D N) |
| 87 | {gamma : ℝ → M} {U : Set (M × M)} {H : ℝ × (M × M) → M} |
| 88 | {r L K1 zeta : ℝ} |
| 89 | (hH : ContMDiffOn |
| 90 | ((𝓘(ℝ, ℝ)).prod ((𝓡 n).prod (𝓡 n))) (𝓡 n) ∞ H |
| 91 | (Ioo (-1 : ℝ) 2 ×ˢ U)) |
| 92 | (hgamma : ContMDiffOn 𝓘(ℝ, ℝ) (𝓡 n) 1 gamma Set.univ) |
| 93 | (hpair : ∀ j : Fin N, ∀ p ∈ m64PolygonCellSet j, |
| 94 | (gamma (p 0), (polygon.side j).map |
| 95 | (p 0 - m63CellLeft N j)) ∈ U) |
| 96 | (hpair_global : ∀ x : ℝ, (gamma x, polygon.map x) ∈ U) |
| 97 | (hshort : ∀ x : ℝ, |
| 98 | g.edist (gamma x) (polygon.map x) < ENNReal.ofReal r) |
| 99 | (hprops : ∀ p q : M, g.edist p q < ENNReal.ofReal r → |
| 100 | H (0, p, q) = p ∧ H (1, p, q) = q ∧ |
| 101 | g.IsGeodesicOn (fun t => H (t, p, q)) (Ioo (-1 : ℝ) 2) ∧ |
| 102 | (∀ t ∈ Ioo (-1 : ℝ) 2, |
| 103 | g.tangentNorm (H (t, p, q)) |
| 104 | (mfderiv 𝓘(ℝ, ℝ) (𝓡 n) |
| 105 | (fun s => H (s, p, q)) t 1) = |
| 106 | (g.edist p q).toReal) ∧ |
| 107 | g.pathELength (fun t => H (t, p, q)) 0 1 = g.edist p q) |
| 108 | (f : LoopPlane → M) |
| 109 | (hf : f = (fun p : LoopPlane => H (p 1, gamma (p 0), polygon.map (p 0)))) |
| 110 | (hcontinuous : ContinuousOn f m64AnnulusDomain) |
| 111 | (hperiodic : ∀ x s : ℝ, |
| 112 | f (annulusPoint (x + curvePeriod) s) = f (annulusPoint x s)) |
| 113 | {hL : 0 ≤ L} |
| 114 | (hLip : ∀ x y : m64AnnulusDomain, |
| 115 | g.edist (f x) (f y) ≤ |
| 116 | ENNReal.ofReal L * ENNReal.ofReal ‖(x : LoopPlane) - y‖) |
| 117 | (hfinite : volume m64AnnulusInterior ≠ (⊤ : ENNReal)) |
| 118 | (hcol1 : ∀ᵐ z ∂volume.restrict m64AnnulusDomain, |
| 119 | g.tangentNorm (f z) |
| 120 | (mfderiv (𝓡 2) (𝓡 n) f z |
| 121 | (EuclideanSpace.basisFun (Fin 2) ℝ 1)) ≤ K1) |
| 122 | (hstrict : (2 * L) * K1 * volume.real m64AnnulusDomain < zeta) : |
| 123 | ∃ A : M64Annulus g gamma polygon.map, |
| 124 | M64PiecewiseC1Annulus A ∧ M64GeodesicAnnulus D A ∧ |
| 125 | 0 ≤ A.area ∧ A.area < zeta := by |
| 126 | have hlower : ∀ x : ℝ, |
| 127 | f (annulusPoint x 0) = gamma x := by |
| 128 | intro x |
| 129 | rw [hf] |
| 130 | have hp := hprops (gamma x) (polygon.map x) (hshort x) |
| 131 | simpa only [annulusPoint, Matrix.cons_val_zero, Matrix.cons_val_one, |
| 132 | zero_apply, one_apply] using hp.1 |
| 133 | have hupper : ∀ x : ℝ, f (annulusPoint x 1) = polygon.map x := by |
| 134 | intro x |
| 135 | rw [hf] |
| 136 | have hp := hprops (gamma x) (polygon.map x) (hshort x) |
| 137 | simpa only [annulusPoint, Matrix.cons_val_zero, Matrix.cons_val_one, |
| 138 | zero_apply, one_apply] using hp.2.1 |
| 139 | have hmdiff : ∀ j : Fin N, ContMDiffOn (𝓡 2) (𝓡 n) 1 f |
| 140 | {p | m64PolygonCut N j.castSucc ≤ p 0 ∧ |
| 141 | p 0 ≤ m64PolygonCut N j.succ ∧ 0 ≤ p 1 ∧ p 1 ≤ 1} := by |
| 142 | intro j |
| 143 | rw [hf, m64PolygonCut_cellSet] |
| 144 | exact m64_polygon_cell_contMDiffOn polygon hH hgamma hpair j |
| 145 | let hside : ∀ x : ℝ, |
| 146 | M63MinimizingGeodesicSide g D 1 (gamma x) |
| 147 | (polygon.map x) := fun x => |
| 148 | Classical.choose (m64_interpolator_side_of_short_pair g D |
| 149 | (hshort x) (contMDiffOn_interpolator_slice hH (hpair_global x)) |
| 150 | (hprops (gamma x) (polygon.map x))) |
| 151 | have hside_spec : ∀ x : ℝ, ∀ s : ℝ, |
| 152 | (hside x).map s = H (s, gamma x, polygon.map x) := by |
| 153 | intro x s |
| 154 | dsimp [hside] |
| 155 | exact Classical.choose_spec (m64_interpolator_side_of_short_pair g D |
| 156 | (hshort x) (contMDiffOn_interpolator_slice hH (hpair_global x)) |
| 157 | (hprops (gamma x) (polygon.map x))) s |
| 158 | have hmap : ∀ x s : ℝ, f (annulusPoint x s) = (hside x).map s := by |
| 159 | intro x s |
| 160 | rw [hf] |
| 161 | simpa only [annulusPoint, Matrix.cons_val_zero, Matrix.cons_val_one, |
| 162 | zero_apply, one_apply] using (hside_spec x s).symm |
| 163 | have hcol0 := m64_horizontal_column_ae_of_metric_lipschitz g hL hLip |
| 164 | exact m64AnnulusWitness_of_lipschitz_columns g D f hcontinuous hperiodic |
| 165 | hlower hupper hL (by positivity) hLip hfinite hcol0 hcol1 hstrict |
| 166 | hN (m64PolygonCut N) (m64PolygonCut_strictMono hN) |
| 167 | m64PolygonCut_zero (m64PolygonCut_last hN) hmdiff hside hmap |
| 168 | |
| 169 | end PoincareMT |