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.AncientKappa.Compactness.Windows |
| 2 | import PoincareLib.Geometry.RicciFlow.Compactness.Ancient.Preservation |
| 3 | import PoincareLib.Geometry.RicciFlow.Compactness.Assembly |
| 4 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.CurvatureControl.Cylinders.Expanding.Source |
| 5 | |
| 6 | /-! |
| 7 | # Geometric properties of the retained normalized ancient limit |
| 8 | |
| 9 | Finite windows retain the same ancient metric and connection. The normalized |
| 10 | source sequence supplies radius-dependent two-time curvature bounds, so |
| 11 | completeness of the reference slice propagates to every interior time. |
| 12 | Nonnegative curvature operator passes to that same limit from the sources. |
| 13 | |
| 14 | Reference: Morgan--Tian, Theorem 9.64, pp. 225-229; Kleiner--Lott, |
| 15 | Appendix E, 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.NormalizedKappaSolutionSequence |
| 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 | variable {kappa : ℝ} (S : NormalizedKappaSolutionSequence kappa) |
| 31 | |
| 32 | local instance inheritanceSourceConnected (k : ℕ) : ConnectedSpace (S.term k).carrier.carrier := |
| 33 | (S.term k).connectedSpace |
| 34 | |
| 35 | variable (G : AncientPointedGeometricConvergence (fun k => (S.term k).carrier) |
| 36 | (fun k t => (S.term k).flow.flow.metric (t - 1)) (fun k => (S.term k).base) 1) |
| 37 | |
| 38 | /-- Every interior slice of the retained normalized limit has nonnegative |
| 39 | curvature operator. -/ |
| 40 | theorem interiorLimit_nonnegativeCurvatureOperator : |
| 41 | ∀ t : ℝ, t < 1 → ∀ x : G.limitCarrier.carrier, |
| 42 | (G.limitFlow.connection t).NonnegativeCurvatureOperator x := by |
| 43 | let F (k : ℕ) : RicciFlow 3 (S.term k).carrier.carrier |
| 44 | ((fun t : ℝ => t - 1) ⁻¹' Iic 0) := |
| 45 | (S.term k).flow.flow.bufferedExpandingFlow 1 |
| 46 | apply G.nonnegativeCurvatureOperator_of_eventually F (by norm_num) ?_ ?_ |
| 47 | · intro a b hb |
| 48 | exact Eventually.of_forall fun k t ht => by |
| 49 | change t - 1 ≤ 0 |
| 50 | linarith [ht.2] |
| 51 | · intro t ht |
| 52 | change t < 1 at ht |
| 53 | exact Eventually.of_forall fun k x => |
| 54 | (S.term k).flow.nonnegative_curvature_operator (t - 1) (by linarith) x |
| 55 | |
| 56 | /-- Reference-slice completeness propagates to every interior time using |
| 57 | the radius-dependent two-time bounds inherited on one finite window. -/ |
| 58 | theorem interiorLimit_complete |
| 59 | (P : M23NormalizedKappaCompactnessPredecessors) |
| 60 | (hcontrol : M23AllTimeCurvatureControl S) |
| 61 | (hcomplete : G.limitCarrier.metricComplete (G.limitFlow.metric 0)) : |
| 62 | ∀ t : ℝ, t < 1 → G.limitCarrier.metricComplete (G.limitFlow.metric t) := by |
| 63 | intro t ht |
| 64 | obtain ⟨a, b, ha, hb, hb1, htw⟩ := exists_ancient_window_of_isCompact |
| 65 | (by norm_num : (0 : ℝ) < 1) isCompact_singleton (singleton_subset_iff.mpr ht) |
| 66 | let F (k : ℕ) : RicciFlow 3 (S.term k).carrier.carrier |
| 67 | ((fun t : ℝ => t - 1) ⁻¹' Iic 0) := |
| 68 | (S.term k).flow.flow.bufferedExpandingFlow 1 |
| 69 | have hsub (k : ℕ) : Ioo a b ⊆ (fun t : ℝ => t - 1) ⁻¹' Iic 0 := by |
| 70 | intro u hu |
| 71 | change u - 1 ≤ 0 |
| 72 | linarith [hu.2] |
| 73 | let selected : NormalizedKappaSolutionSequence kappa := |
| 74 | ⟨S.kappa_pos, fun k => S.term (G.subsequence k)⟩ |
| 75 | have hselected : M23AllTimeCurvatureControl selected := by |
| 76 | intro r hr |
| 77 | obtain ⟨C, hC, hbound⟩ := hcontrol r hr |
| 78 | exact ⟨C, hC, fun k => hbound (G.subsequence k)⟩ |
| 79 | let H := selected.compactnessHypotheses P hselected ha hb hb1.le |
| 80 | let W : PointedGeometricConvergence H.sequence := |
| 81 | G.window F (ha.trans hb) hb1.le 0 hsub |
| 82 | exact W.complete_interior hcomplete t (htw (mem_singleton t)) |
| 83 | |
| 84 | end PoincareMT.NormalizedKappaSolutionSequence |