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