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.Compactness.Ancient.Preservation |
| 2 | import PoincareLib.Geometry.RicciFlow.Compactness.Ancient.Completeness |
| 3 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.CurvatureControl.Cylinders.Expanding.Source |
| 4 | |
| 5 | /-! |
| 6 | # Geometric properties of expanding-cylinder ancient limits |
| 7 | |
| 8 | The source cylinder bounds pass to the one constructed ancient flow. Its |
| 9 | complete reference slice then gives completeness at all ancient times. |
| 10 | Reference: Kleiner--Lott, Corollary 44.1, pp. 2682--2683, and Appendix E, |
| 11 | Corollary E.2, pp. 2848--2849. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open Set Filter |
| 18 | open scoped Manifold ContDiff Topology |
| 19 | |
| 20 | namespace PoincareMT.RicciFlow |
| 21 | |
| 22 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.chartedSpace |
| 23 | FlowCarrier.isManifold FlowCarrier.t3Space |
| 24 | |
| 25 | /-- The actual ancient limit of expanding terminal cylinders is complete, |
| 26 | uniformly bounded and nonnegatively curved at every time. -/ |
| 27 | theorem ancient_limit_properties_of_expanding_cylinders |
| 28 | {n : ℕ} (hC : RicciFlowCurvatureTheory.{0}) |
| 29 | (C : ℕ → FlowCarrier.{0} n) (J : ℕ → Set ℝ) |
| 30 | (F : ∀ k, RicciFlow n (C k).carrier (J k)) (p : ∀ k, (C k).carrier) |
| 31 | (A L : ℕ → ℝ) (hA : Tendsto A atTop atTop) (hL : Tendsto L atTop atTop) |
| 32 | (hJ : ∀ k, Icc (-A k) 0 ⊆ interior (J k)) |
| 33 | (hoperator : ∀ k, ∀ t ∈ Icc (-A k) 0, ∀ x : (C k).carrier, |
| 34 | ((F k).connection t).NonnegativeCurvatureOperator x) |
| 35 | (hscalar : ∀ k, ∀ t ∈ Icc (-A k) 0, |
| 36 | ∀ x ∈ ((F k).metric 0).ball (p k) (L k), |
| 37 | ((F k).connection t).scalarCurvature x ≤ 4) |
| 38 | {δ : ℝ} (hδ : 0 < δ) |
| 39 | (G : AncientPointedGeometricConvergence C (fun k t => (F k).metric (t - δ)) p δ) |
| 40 | (hcomplete : G.limitCarrier.metricComplete (G.limitFlow.metric 0)) : |
| 41 | (∀ t ∈ Iio δ, G.limitCarrier.metricComplete (G.limitFlow.metric t)) ∧ |
| 42 | (∀ t ∈ Iio δ, ∀ x : G.limitCarrier.carrier, |
| 43 | (G.limitFlow.connection t).curvatureTensorNorm x ≤ (n : ℝ) ^ 2 * 4) ∧ |
| 44 | (∀ t ∈ Iio δ, ∀ x : G.limitCarrier.carrier, |
| 45 | (G.limitFlow.connection t).NonnegativeCurvatureOperator x) := by |
| 46 | let Fseq := fun k => (F k).bufferedExpandingFlow δ |
| 47 | have htime := eventually_buffered_time_window J A hA hJ δ |
| 48 | have hnorm : ∀ t ∈ Iio δ, ∀ x : G.limitCarrier.carrier, |
| 49 | (G.limitFlow.connection t).curvatureTensorNorm x ≤ (n : ℝ) ^ 2 * 4 := by |
| 50 | apply G.curvatureTensorNorm_le_of_uniform_ball_bound Fseq hδ htime |
| 51 | intro a b hb R _ |
| 52 | filter_upwards [hA.eventually_ge_atTop (δ - a), hL.eventually_ge_atTop R] |
| 53 | with k hkA hkL t ht x hx |
| 54 | have hs : t - δ ∈ Icc (-A k) 0 := ⟨by linarith [ht.1], by linarith [ht.2]⟩ |
| 55 | exact (F k).curvatureTensorNorm_le_on_two_time_ball_of_terminal_cylinder hC |
| 56 | (hJ k) (hoperator k) (p k) (hscalar k) hs hs hkL x hx |
| 57 | refine ⟨metricComplete_of_ancient_uniform_curvature_bound G.limitCarrier hδ |
| 58 | G.limitFlow G.base hcomplete (by positivity) hnorm, hnorm, ?_⟩ |
| 59 | apply G.nonnegativeCurvatureOperator_of_eventually Fseq hδ htime |
| 60 | intro t ht |
| 61 | filter_upwards [hA.eventually_ge_atTop (δ - t)] with k hk x |
| 62 | exact hoperator k (t - δ) ⟨by linarith, by linarith [show t < δ from ht]⟩ x |
| 63 | |
| 64 | end PoincareMT.RicciFlow |