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.Harnack.Noncompact.CurvatureControl.Cylinders.Expanding.Compactness |
| 2 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.CurvatureControl.Cylinders.Expanding.Properties |
| 3 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.CurvatureControl.Cylinders.Components |
| 4 | |
| 5 | /-! |
| 6 | # Nonflat complete ancient limits of expanding normalized cylinders |
| 7 | |
| 8 | A common scalar buffer and the compatible expanding-time coordinate |
| 9 | construction produce one ancient pointed flow. The actual limit retains |
| 10 | nonnegative curvature operator, its global norm bound, completeness at every |
| 11 | time and positive base curvature at time zero. The final theorem applies to |
| 12 | the basepoint components of possibly disconnected original manifolds. |
| 13 | |
| 14 | Reference: Kleiner--Lott, Corollary 44.1, pp. 2682--2683; Appendix E, |
| 15 | Theorem E.1 and Corollary E.2, pp. 2848--2849. |
| 16 | -/ |
| 17 | |
| 18 | set_option autoImplicit false |
| 19 | set_option backward.isDefEq.respectTransparency false |
| 20 | |
| 21 | open Set Filter |
| 22 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 23 | |
| 24 | namespace PoincareMT.RicciFlow |
| 25 | |
| 26 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.measurableSpace |
| 27 | FlowCarrier.borelSpace FlowCarrier.chartedSpace FlowCarrier.isManifold |
| 28 | FlowCarrier.t2Space FlowCarrier.t3Space FlowCarrier.secondCountable |
| 29 | |
| 30 | /-- Expanding normalized cylinders on connected source carriers have one |
| 31 | complete bounded nonflat ancient pointed limit. -/ |
| 32 | theorem exists_nonflat_ancient_limit_of_expanding_cylinders |
| 33 | {m : ℕ} (hC : RicciFlowCurvatureTheory.{0}) (hm : 0 < m) |
| 34 | (C : ℕ → FlowCarrier.{0} (m + 1)) (J : ℕ → Set ℝ) |
| 35 | (F : ∀ k, RicciFlow (m + 1) (C k).carrier (J k)) |
| 36 | (p : ∀ k, (C k).carrier) (A L : ℕ → ℝ) |
| 37 | (hA : Tendsto A atTop atTop) (hL : Tendsto L atTop atTop) |
| 38 | (hJ : ∀ k, Icc (-A k) 0 ⊆ interior (J k)) |
| 39 | (hcomplete : ∀ k, ∀ t ∈ Icc (-A k) 0, MetricComplete ((F k).metric t)) |
| 40 | (hoperator : ∀ k, ∀ t ∈ Icc (-A k) 0, ∀ x : (C k).carrier, |
| 41 | ((F k).connection t).NonnegativeCurvatureOperator x) |
| 42 | (hscalar : ∀ k, ∀ t ∈ Icc (-A k) 0, |
| 43 | ∀ x ∈ ((F k).metric 0).ball (p k) (L k), |
| 44 | ((F k).connection t).scalarCurvature x ≤ 4) |
| 45 | (hnormalize : ∀ k, ((F k).connection 0).scalarCurvature (p k) = 1) |
| 46 | {ν : ℝ} (hν : 0 < ν) |
| 47 | (hvolume : ∀ᶠ k in atTop, ENNReal.ofReal ν ≤ |
| 48 | ((F k).metric 0).volumeMeasure (((F k).metric 0).ball (p k) 1)) : |
| 49 | ∃ δ : ℝ, 0 < δ ∧ δ < 1 ∧ |
| 50 | ∃ G : AncientPointedGeometricConvergence C |
| 51 | (fun k t => (F k).metric (t - δ)) p δ, |
| 52 | (∀ t ∈ Iio δ, G.limitCarrier.metricComplete (G.limitFlow.metric t)) ∧ |
| 53 | (0 < (G.limitFlow.connection 0).curvatureTensorNorm G.base ∧ |
| 54 | (∀ t ∈ Iio δ, ∀ x : G.limitCarrier.carrier, |
| 55 | (G.limitFlow.connection t).curvatureTensorNorm x ≤ |
| 56 | ((m + 1 : ℕ) : ℝ) ^ 2 * 4) ∧ |
| 57 | (∀ t ∈ Iio δ, ∀ x : G.limitCarrier.carrier, |
| 58 | (G.limitFlow.connection t).NonnegativeCurvatureOperator x)) := by |
| 59 | obtain ⟨δ, hδ, hδone, hbuffer⟩ := exists_scalar_buffer_of_expanding_cylinders |
| 60 | hC hm C J F p A L hA hL hJ hcomplete hoperator hscalar hnormalize |
| 61 | obtain ⟨G, hzero⟩ := exists_complete_ancient_limit_of_expanding_cylinders |
| 62 | hC hm C J F p A L hA hL hJ hcomplete hoperator hscalar hν hvolume hδ hδone |
| 63 | obtain ⟨hGcomplete, hGnorm, hGoperator⟩ := ancient_limit_properties_of_expanding_cylinders |
| 64 | hC C J F p A L hA hL hJ hoperator hscalar hδ G hzero |
| 65 | have hquant := G.scalar_lower_bound_le_mul_base_curvatureTensorNorm |
| 66 | (fun k => (F k).bufferedExpandingFlow δ) hδ |
| 67 | (eventually_buffered_time_window J A hA hJ δ) hbuffer |
| 68 | refine ⟨δ, hδ, hδone, G, hGcomplete, ?_, hGnorm, hGoperator⟩ |
| 69 | by_contra h |
| 70 | have hnonpos := mul_nonpos_of_nonneg_of_nonpos |
| 71 | (sq_nonneg (((m + 1 : ℕ) : ℝ))) |
| 72 | (le_of_not_gt h) |
| 73 | linarith |
| 74 | |
| 75 | /-- Expanding cylinders on arbitrary source manifolds yield one nonflat, |
| 76 | complete, bounded ancient pointed limit of their selected components. -/ |
| 77 | theorem exists_nonflat_ancient_limit_of_expanding_cylinders_components |
| 78 | {m : ℕ} (hC : RicciFlowCurvatureTheory.{0}) (hm : 0 < m) |
| 79 | (M : ℕ → Type) [∀ k, TopologicalSpace (M k)] [∀ k, MeasurableSpace (M k)] |
| 80 | [∀ k, BorelSpace (M k)] [∀ k, T3Space (M k)] [∀ k, SecondCountableTopology (M k)] |
| 81 | [∀ k, ChartedSpace (EuclideanSpace ℝ (Fin (m + 1))) (M k)] |
| 82 | [∀ k, IsManifold (𝓡 (m + 1)) ∞ (M k)] |
| 83 | (J : ℕ → Set ℝ) (F : ∀ k, RicciFlow (m + 1) (M k) (J k)) |
| 84 | (p : ∀ k, M k) (A L : ℕ → ℝ) |
| 85 | (hA : Tendsto A atTop atTop) (hL : Tendsto L atTop atTop) |
| 86 | (hJ : ∀ k, Icc (-A k) 0 ⊆ interior (J k)) |
| 87 | (hcomplete : ∀ k, ∀ t ∈ Icc (-A k) 0, MetricComplete ((F k).metric t)) |
| 88 | (hoperator : ∀ k, ∀ t ∈ Icc (-A k) 0, ∀ x : M k, |
| 89 | ((F k).connection t).NonnegativeCurvatureOperator x) |
| 90 | (hscalar : ∀ k, ∀ t ∈ Icc (-A k) 0, |
| 91 | ∀ x ∈ ((F k).metric 0).ball (p k) (L k), |
| 92 | ((F k).connection t).scalarCurvature x ≤ 4) |
| 93 | (hnormalize : ∀ k, ((F k).connection 0).scalarCurvature (p k) = 1) |
| 94 | {ν : ℝ} (hν : 0 < ν) |
| 95 | (hvolume : ∀ᶠ k in atTop, ENNReal.ofReal ν ≤ |
| 96 | ((F k).metric 0).volumeMeasure (((F k).metric 0).ball (p k) 1)) : |
| 97 | ∃ δ : ℝ, 0 < δ ∧ δ < 1 ∧ |
| 98 | ∃ G : AncientPointedGeometricConvergence |
| 99 | (fun k => componentFlowCarrier (n := m + 1) (p k)) |
| 100 | (fun k t => ((F k).restrictComponent (p k)).metric (t - δ)) |
| 101 | (fun k => componentFlowBase (n := m + 1) (p k)) δ, |
| 102 | (∀ t ∈ Iio δ, G.limitCarrier.metricComplete (G.limitFlow.metric t)) ∧ |
| 103 | (letI := G.limitCarrier.topologicalSpace |
| 104 | letI := G.limitCarrier.chartedSpace |
| 105 | letI := G.limitCarrier.isManifold |
| 106 | 0 < (G.limitFlow.connection 0).curvatureTensorNorm G.base ∧ |
| 107 | (∀ t ∈ Iio δ, ∀ x : G.limitCarrier.carrier, |
| 108 | (G.limitFlow.connection t).curvatureTensorNorm x ≤ |
| 109 | ((m + 1 : ℕ) : ℝ) ^ 2 * 4) ∧ |
| 110 | (∀ t ∈ Iio δ, ∀ x : G.limitCarrier.carrier, |
| 111 | (G.limitFlow.connection t).NonnegativeCurvatureOperator x)) := by |
| 112 | apply exists_nonflat_ancient_limit_of_expanding_cylinders (ν := ν) hC hm |
| 113 | (fun k => componentFlowCarrier (n := m + 1) (p k)) J |
| 114 | (fun k => (F k).restrictComponent (p k)) |
| 115 | (fun k => componentFlowBase (n := m + 1) (p k)) A L hA hL hJ |
| 116 | (fun k t ht => (F k).restrictComponent_metricComplete (p k) t (hcomplete k t ht)) |
| 117 | (fun k t ht x => ((F k).restrictComponent_nonnegativeCurvatureOperator_iff |
| 118 | (p k) t x).mpr (hoperator k t ht x)) |
| 119 | · intro k t ht x hx |
| 120 | rw [(F k).restrictComponent_scalarCurvature] |
| 121 | apply hscalar k t ht x |
| 122 | change (((F k).restrictComponent (p k)).metric 0).edist |
| 123 | (componentFlowBase (n := m + 1) (p k)) x < ENNReal.ofReal (L k) at hx |
| 124 | rwa [(F k).restrictComponent_edist] at hx |
| 125 | · intro k |
| 126 | rw [(F k).restrictComponent_scalarCurvature] |
| 127 | exact hnormalize k |
| 128 | · exact hν |
| 129 | · filter_upwards [hvolume] with k hk |
| 130 | rwa [(F k).restrictComponent_volumeMeasure_ball] |
| 131 | |
| 132 | |
| 133 | end PoincareMT.RicciFlow |