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.RicciFlow.Restriction |
| 2 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.CurvatureControl.Cylinders.PointedLimit |
| 3 | |
| 4 | /-! |
| 5 | # Connected carriers for terminal cylinders |
| 6 | |
| 7 | The component of the selected center is a connected carrier for the frozen |
| 8 | pointed compactness statement. Restriction preserves the time domain and the |
| 9 | intrinsic quantities appearing in terminal-cylinder hypotheses. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open Set Filter |
| 15 | open scoped Manifold ContDiff Bundle ENNReal |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace PoincareMT.RicciFlow |
| 20 | |
| 21 | /-- The selected connected component, equipped with its inherited smooth and |
| 22 | Borel structures, as a carrier for pointed compactness. -/ |
| 23 | noncomputable abbrev componentFlowCarrier |
| 24 | {n : ℕ} {M : Type u} [TopologicalSpace M] [MeasurableSpace M] [BorelSpace M] |
| 25 | [T3Space M] [SecondCountableTopology M] |
| 26 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 27 | (p : M) : FlowCarrier.{u} n where |
| 28 | carrier := Poincare.connectedComponentOpens (EuclideanSpace ℝ (Fin n)) p |
| 29 | topologicalSpace := inferInstance |
| 30 | measurableSpace := inferInstance |
| 31 | borelSpace := inferInstance |
| 32 | chartedSpace := inferInstance |
| 33 | isManifold := inferInstance |
| 34 | t2Space := inferInstance |
| 35 | t3Space := inferInstance |
| 36 | secondCountable := inferInstance |
| 37 | connected := isConnected_univ |
| 38 | |
| 39 | /-- The original selected point in its connected carrier. -/ |
| 40 | abbrev componentFlowBase |
| 41 | {n : ℕ} {M : Type u} [TopologicalSpace M] [MeasurableSpace M] [BorelSpace M] |
| 42 | [T3Space M] [SecondCountableTopology M] |
| 43 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 44 | (p : M) : (componentFlowCarrier (n := n) p).carrier := |
| 45 | ⟨p, mem_connectedComponent⟩ |
| 46 | |
| 47 | /-- Passing to the selected components supplies the connected-carrier input |
| 48 | to the shifted cylinder construction without changing its metric hypotheses. -/ |
| 49 | theorem exists_pointedCompactnessHypotheses_of_terminal_cylinders_components |
| 50 | {m : ℕ} (hC : RicciFlowCurvatureTheory.{0}) (hm : 0 < m) |
| 51 | (M : ℕ → Type) [∀ k, TopologicalSpace (M k)] [∀ k, MeasurableSpace (M k)] |
| 52 | [∀ k, BorelSpace (M k)] [∀ k, T3Space (M k)] [∀ k, SecondCountableTopology (M k)] |
| 53 | [∀ k, ChartedSpace (EuclideanSpace ℝ (Fin (m + 1))) (M k)] |
| 54 | [∀ k, IsManifold (𝓡 (m + 1)) ∞ (M k)] |
| 55 | (J : ℕ → Set ℝ) (F : ∀ k, RicciFlow (m + 1) (M k) (J k)) |
| 56 | (p : ∀ k, M k) {a δ ν : ℝ} |
| 57 | (ha : a ≤ -1) (hδ : 0 < δ) (hδone : δ ≤ 1) (hatime : a + δ < 0) |
| 58 | (hJ : ∀ k, Icc a 0 ⊆ interior (J k)) |
| 59 | (hcomplete : ∀ k, ∀ t ∈ Icc a 0, MetricComplete ((F k).metric t)) |
| 60 | (hoperator : ∀ k, ∀ t ∈ Icc a 0, ∀ x : M k, |
| 61 | ((F k).connection t).NonnegativeCurvatureOperator x) |
| 62 | (L : ℕ → ℝ) (hL : Tendsto L atTop atTop) |
| 63 | (hscalar : ∀ k, ∀ t ∈ Icc a 0, |
| 64 | ∀ x ∈ ((F k).metric 0).ball (p k) (L k), |
| 65 | ((F k).connection t).scalarCurvature x ≤ 4) |
| 66 | (hν : 0 < ν) |
| 67 | (hvolume : ∀ᶠ k in atTop, ENNReal.ofReal ν ≤ |
| 68 | ((F k).metric 0).volumeMeasure (((F k).metric 0).ball (p k) 1)) : |
| 69 | ∃ H : PointedRicciFlowCompactnessHypotheses (m + 1) (a + δ) δ, |
| 70 | H.sequence = bufferedCylinderSequence |
| 71 | (fun k => componentFlowCarrier (n := m + 1) (p k)) J |
| 72 | (fun k => (F k).restrictComponent (p k)) |
| 73 | (fun k => componentFlowBase (n := m + 1) (p k)) |
| 74 | a δ (by linarith) hJ := by |
| 75 | apply exists_pointedCompactnessHypotheses_of_terminal_cylinders (ν := ν) hC hm |
| 76 | (fun k => componentFlowCarrier (n := m + 1) (p k)) J |
| 77 | (fun k => (F k).restrictComponent (p k)) |
| 78 | (fun k => componentFlowBase (n := m + 1) (p k)) ha hδ hδone hatime hJ |
| 79 | (fun k t ht => (F k).restrictComponent_metricComplete (p k) t (hcomplete k t ht)) |
| 80 | (fun k t ht x => ((F k).restrictComponent_nonnegativeCurvatureOperator_iff |
| 81 | (p k) t x).mpr (hoperator k t ht x)) L hL |
| 82 | · intro k t ht x hx |
| 83 | rw [(F k).restrictComponent_scalarCurvature] |
| 84 | apply hscalar k t ht x |
| 85 | change (((F k).restrictComponent (p k)).metric 0).edist |
| 86 | (componentFlowBase (n := m + 1) (p k)) x < ENNReal.ofReal (L k) at hx |
| 87 | rwa [(F k).restrictComponent_edist] at hx |
| 88 | · exact hν |
| 89 | · filter_upwards [hvolume] with k hk |
| 90 | rwa [(F k).restrictComponent_volumeMeasure_ball] |
| 91 | |
| 92 | /-- Terminal cylinders on possibly disconnected manifolds yield a nonflat |
| 93 | complete pointed limit of the selected components after a common time shift. -/ |
| 94 | theorem exists_nonflat_pointed_limit_of_terminal_cylinders_components |
| 95 | {m : ℕ} (hC : RicciFlowCurvatureTheory.{0}) (hm : 0 < m) |
| 96 | (M : ℕ → Type) [∀ k, TopologicalSpace (M k)] [∀ k, MeasurableSpace (M k)] |
| 97 | [∀ k, BorelSpace (M k)] [∀ k, T3Space (M k)] [∀ k, SecondCountableTopology (M k)] |
| 98 | [∀ k, ChartedSpace (EuclideanSpace ℝ (Fin (m + 1))) (M k)] |
| 99 | [∀ k, IsManifold (𝓡 (m + 1)) ∞ (M k)] |
| 100 | (J : ℕ → Set ℝ) (F : ∀ k, RicciFlow (m + 1) (M k) (J k)) |
| 101 | (p : ∀ k, M k) {a ν : ℝ} (ha : a ≤ -2) |
| 102 | (hJ : ∀ k, Icc a 0 ⊆ interior (J k)) |
| 103 | (hcomplete : ∀ k, ∀ t ∈ Icc a 0, MetricComplete ((F k).metric t)) |
| 104 | (hoperator : ∀ k, ∀ t ∈ Icc a 0, ∀ x : M k, |
| 105 | ((F k).connection t).NonnegativeCurvatureOperator x) |
| 106 | (L : ℕ → ℝ) (hL : Tendsto L atTop atTop) |
| 107 | (hscalar : ∀ k, ∀ t ∈ Icc a 0, |
| 108 | ∀ x ∈ ((F k).metric 0).ball (p k) (L k), |
| 109 | ((F k).connection t).scalarCurvature x ≤ 4) |
| 110 | (hnormalize : ∀ k, ((F k).connection 0).scalarCurvature (p k) = 1) |
| 111 | (hν : 0 < ν) |
| 112 | (hvolume : ∀ᶠ k in atTop, ENNReal.ofReal ν ≤ |
| 113 | ((F k).metric 0).volumeMeasure (((F k).metric 0).ball (p k) 1)) : |
| 114 | ∃ δ : ℝ, 0 < δ ∧ δ < 1 ∧ |
| 115 | ∃ G : PointedGeometricConvergence (bufferedCylinderSequence |
| 116 | (fun k => componentFlowCarrier (n := m + 1) (p k)) J |
| 117 | (fun k => (F k).restrictComponent (p k)) |
| 118 | (fun k => componentFlowBase (n := m + 1) (p k)) |
| 119 | a δ (by linarith) hJ), |
| 120 | (∀ t ∈ Ioo (a + δ) δ, |
| 121 | G.limitCarrier.metricComplete (G.limitFlow.metricAt t)) ∧ |
| 122 | (letI := G.limitCarrier.topologicalSpace |
| 123 | letI := G.limitCarrier.chartedSpace |
| 124 | letI := G.limitCarrier.isManifold |
| 125 | 0 < (G.limitFlow.flow.connection 0).curvatureTensorNorm G.limitFlow.base ∧ |
| 126 | ∀ t ∈ Ioo (a + δ) δ, ∀ x : G.limitCarrier.carrier, |
| 127 | (G.limitFlow.flow.connection t).curvatureTensorNorm x ≤ |
| 128 | ((m + 1 : ℕ) : ℝ) ^ 2 * 4) := by |
| 129 | apply exists_nonflat_pointed_limit_of_terminal_cylinders (ν := ν) hC hm |
| 130 | (fun k => componentFlowCarrier (n := m + 1) (p k)) J |
| 131 | (fun k => (F k).restrictComponent (p k)) |
| 132 | (fun k => componentFlowBase (n := m + 1) (p k)) ha hJ |
| 133 | (fun k t ht => (F k).restrictComponent_metricComplete (p k) t (hcomplete k t ht)) |
| 134 | (fun k t ht x => ((F k).restrictComponent_nonnegativeCurvatureOperator_iff |
| 135 | (p k) t x).mpr (hoperator k t ht x)) L hL |
| 136 | · intro k t ht x hx |
| 137 | rw [(F k).restrictComponent_scalarCurvature] |
| 138 | apply hscalar k t ht x |
| 139 | change (((F k).restrictComponent (p k)).metric 0).edist |
| 140 | (componentFlowBase (n := m + 1) (p k)) x < ENNReal.ofReal (L k) at hx |
| 141 | rwa [(F k).restrictComponent_edist] at hx |
| 142 | · intro k |
| 143 | rw [(F k).restrictComponent_scalarCurvature] |
| 144 | exact hnormalize k |
| 145 | · exact hν |
| 146 | · filter_upwards [hvolume] with k hk |
| 147 | rwa [(F k).restrictComponent_volumeMeasure_ball] |
| 148 | |
| 149 | end PoincareMT.RicciFlow |