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.Boundedness.Noncollapse |
| 2 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Compactness.Nonflatness |
| 3 | |
| 4 | /-! |
| 5 | # Actual bounded ancient solutions from raw blow-up limits |
| 6 | |
| 7 | The closed past of the retained geometric limit is packaged only after its |
| 8 | global bound, completeness, nonnegative curvature, positive scalar and |
| 9 | noncollapse have been proved. No source flow needs a global curvature bound. |
| 10 | |
| 11 | Reference: Kleiner--Lott, Theorem 46.1, pp. 2687-2688. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open Set Filter |
| 18 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 19 | |
| 20 | namespace PoincareMT.RawAncientSequence |
| 21 | |
| 22 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.measurableSpace |
| 23 | FlowCarrier.borelSpace FlowCarrier.chartedSpace FlowCarrier.isManifold |
| 24 | FlowCarrier.t2Space FlowCarrier.t3Space FlowCarrier.secondCountable |
| 25 | |
| 26 | local instance solutionCarrierConnected (D : FlowCarrier 3) : ConnectedSpace D.carrier := |
| 27 | connectedSpace_iff_univ.mpr D.connected |
| 28 | |
| 29 | variable (C : ℕ → FlowCarrier.{0} 3) |
| 30 | (F : ∀ k, RicciFlow 3 (C k).carrier (Iic 0)) (p : ∀ k, (C k).carrier) |
| 31 | |
| 32 | /-- The closed past of this same bounded nonflat limit is an actual ancient |
| 33 | kappa-solution, with the exact retained metric family. -/ |
| 34 | theorem exists_ancientKappaSolution_on_closedPast |
| 35 | (P : M23NormalizedKappaCompactnessPredecessors) |
| 36 | {κ δ : ℝ} (hκ : 0 < κ) (hδ : 0 < δ) |
| 37 | (hop : ∀ k t, t ≤ 0 → ∀ x, ((F k).connection t).NonnegativeCurvatureOperator x) |
| 38 | (hnc : ∀ k, AncientKappaNoncollapsed (F k) κ) |
| 39 | (hmono : ∀ k s t, s ≤ t → t ≤ 0 → ∀ x, |
| 40 | ((F k).connection s).scalarCurvature x ≤ ((F k).connection t).scalarCurvature x) |
| 41 | (G : AncientPointedGeometricConvergence C |
| 42 | (fun k t => (F k).metric (t - δ)) p δ) |
| 43 | (hcomplete : ∀ t ∈ Iio δ, G.limitCarrier.metricComplete (G.limitFlow.metric t)) |
| 44 | (hbound : ∀ t ∈ Iio δ, ∀ x, (G.limitFlow.connection t).curvatureTensorNorm x ≤ 4) |
| 45 | (hoperator : ∀ t ∈ Iio δ, ∀ x, |
| 46 | (G.limitFlow.connection t).NonnegativeCurvatureOperator x) |
| 47 | (hpositive : 0 < (G.limitFlow.connection 0).scalarCurvature G.base) : |
| 48 | ∃ K : AncientKappaSolution 3 G.limitCarrier.carrier, |
| 49 | K.kappa = κ / 27 ∧ K.flow.metric = G.limitFlow.metric := by |
| 50 | have hstatic := interiorLimit_metricKappaNoncollapsed C F p P hκ hδ |
| 51 | hop hnc hmono G hcomplete |
| 52 | let Gclosed : RicciFlow 3 G.limitCarrier.carrier (Iic 0) := |
| 53 | Poincare.Geometry.RicciFlow.Harnack.restrictFlow G.limitFlow |
| 54 | (fun t ht => (show t ≤ 0 from ht).trans_lt hδ) ordConnected_Iic |
| 55 | closedAncientInterval.nontrivial |
| 56 | have hcompleteClosed : ∀ t ≤ 0, MetricComplete (Gclosed.metric t) := |
| 57 | fun t ht => hcomplete t (ht.trans_lt hδ) |
| 58 | have hoperatorClosed : ∀ t ≤ 0, ∀ x, |
| 59 | (Gclosed.connection t).NonnegativeCurvatureOperator x := |
| 60 | fun t ht x => hoperator t (ht.trans_lt hδ) x |
| 61 | have hboundClosed : ∀ t ≤ 0, ∀ x, (Gclosed.connection t).curvatureTensorNorm x ≤ 4 := |
| 62 | fun t ht x => hbound t (ht.trans_lt hδ) x |
| 63 | have hnonflat := |
| 64 | Gclosed.scalarCurvature_positive_somewhere_of_bounded_ancient_of_m23_predecessors P |
| 65 | hcompleteClosed hoperatorClosed (by norm_num) hboundClosed ⟨G.base, hpositive⟩ |
| 66 | let K : AncientKappaSolution 3 G.limitCarrier.carrier := { |
| 67 | flow := Gclosed |
| 68 | kappa := κ / 27 |
| 69 | kappa_pos := div_pos hκ (by norm_num) |
| 70 | complete := hcompleteClosed |
| 71 | nonnegative_curvature_operator := hoperatorClosed |
| 72 | bounded_curvature := fun t ht => ⟨4, by norm_num, fun x => by |
| 73 | rw [abs_of_nonneg (show 0 ≤ (Gclosed.connection t).curvatureTensorNorm x from |
| 74 | Real.sqrt_nonneg _)] |
| 75 | exact hboundClosed t ht x⟩ |
| 76 | nonflat := fun t ht => by |
| 77 | obtain ⟨x, hx⟩ := hnonflat t ht |
| 78 | refine ⟨x, ?_⟩ |
| 79 | have h := (Gclosed.connection t).scalarCurvature_le_curvatureTensorNorm_sharp x |
| 80 | norm_num at h |
| 81 | intro hz |
| 82 | rw [hz, mul_zero] at h |
| 83 | exact hx.not_ge h |
| 84 | noncollapsed := by |
| 85 | intro r₀ hr₀ t ht x r hr hrr₀ hcurv |
| 86 | apply (hstatic t (ht.trans_lt hδ)).2 x r hr |
| 87 | intro y hy |
| 88 | exact hcurv t ⟨by nlinarith [sq_pos_of_pos hr], le_rfl⟩ y hy |
| 89 | } |
| 90 | exact ⟨K, rfl, rfl⟩ |
| 91 | |
| 92 | /-- The raw expanding-ball construction yields one actual bounded ancient |
| 93 | kappa-solution on the exact carrier and closed-past metric of its limit. -/ |
| 94 | theorem exists_bounded_ancientKappaSolution_limit |
| 95 | (P : M23NormalizedKappaCompactnessPredecessors) |
| 96 | {κ : ℝ} (hκ : 0 < κ) |
| 97 | (hc : ∀ k t, t ≤ 0 → MetricComplete ((F k).metric t)) |
| 98 | (hop : ∀ k t, t ≤ 0 → ∀ x, ((F k).connection t).NonnegativeCurvatureOperator x) |
| 99 | (hnc : ∀ k, AncientKappaNoncollapsed (F k) κ) |
| 100 | (L : ℕ → ℝ) (hL : Tendsto L atTop atTop) |
| 101 | (hbound : ∀ k t, t ≤ 0 → ∀ x ∈ ((F k).metric 0).ball (p k) (L k), |
| 102 | |((F k).connection t).curvatureTensorNorm x| ≤ 4) |
| 103 | (hnormalized : ∀ k, ((F k).connection 0).scalarCurvature (p k) = 1) |
| 104 | (hmono : ∀ k s t, s ≤ t → t ≤ 0 → ∀ x, |
| 105 | ((F k).connection s).scalarCurvature x ≤ ((F k).connection t).scalarCurvature x) : |
| 106 | ∃ δ : ℝ, 0 < δ ∧ δ < 1 ∧ |
| 107 | ∃ G : AncientPointedGeometricConvergence C |
| 108 | (fun k t => (F k).metric (t - δ)) p δ, |
| 109 | ∃ K : AncientKappaSolution 3 G.limitCarrier.carrier, |
| 110 | K.kappa = κ / 27 ∧ K.flow.metric = G.limitFlow.metric ∧ |
| 111 | (∀ t ∈ Iio δ, G.limitCarrier.metricComplete (G.limitFlow.metric t)) ∧ |
| 112 | (∀ t ∈ Iio δ, ∀ x : G.limitCarrier.carrier, |
| 113 | (G.limitFlow.connection t).curvatureTensorNorm x ≤ 4) ∧ |
| 114 | (∀ t ∈ Iio δ, ∀ x : G.limitCarrier.carrier, |
| 115 | (G.limitFlow.connection t).NonnegativeCurvatureOperator x) ∧ |
| 116 | (1 : ℝ) / 2 ≤ (G.limitFlow.connection 0).scalarCurvature G.base := by |
| 117 | have hbase (k : ℕ) (t : ℝ) (ht : t ≤ 0) : |
| 118 | ((F k).connection t).scalarCurvature (p k) ≤ 1 := by |
| 119 | simpa only [hnormalized] using hmono k t 0 ht le_rfl (p k) |
| 120 | obtain ⟨δ, hδ, hδone, G, hcomplete, hnorm, hoperator, hscalar⟩ := |
| 121 | exists_complete_bounded_nonflat_interior_geometric_limit C F p P hκ |
| 122 | hc hop hnc L hL hbound hnormalized hbase |
| 123 | obtain ⟨K, hKκ, hKmetric⟩ := exists_ancientKappaSolution_on_closedPast C F p P hκ hδ |
| 124 | hop hnc hmono G hcomplete hnorm hoperator (lt_of_lt_of_le (by norm_num) hscalar) |
| 125 | exact ⟨δ, hδ, hδone, G, K, hKκ, hKmetric, hcomplete, hnorm, hoperator, hscalar⟩ |
| 126 | |
| 127 | end PoincareMT.RawAncientSequence |