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.Windows |
| 2 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Compactness.Coordinates.Bounds |
| 3 | import PoincareLib.Geometry.RicciFlow.Compactness.Ancient.GeometricLimit.NormalCharts |
| 4 | import PoincareLib.Geometry.RicciFlow.Compactness.Ancient.Restriction |
| 5 | import PoincareLib.Geometry.RicciFlow.Compactness.Ancient.Preservation |
| 6 | import PoincareLib.Geometry.RicciFlow.Compactness.Ancient.Completeness |
| 7 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.CurvatureControl.Cylinders.Expanding.DiagonalBounds |
| 8 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.CurvatureControl.Cylinders.Expanding.Source |
| 9 | |
| 10 | /-! |
| 11 | # One bounded ancient limit of raw expanding cylinders |
| 12 | |
| 13 | One diagonal reference atlas controls all finite windows of the actual raw |
| 14 | source flows. The same retained limit is complete and has curvature at most |
| 15 | four everywhere; no global curvature bound is assumed on any source flow. |
| 16 | |
| 17 | Reference: Kleiner--Lott, Theorem 46.1, pp. 2687-2688, and Appendix E, |
| 18 | pp. 2848-2849. |
| 19 | -/ |
| 20 | |
| 21 | set_option autoImplicit false |
| 22 | set_option backward.isDefEq.respectTransparency false |
| 23 | set_option synthInstance.maxHeartbeats 100000 |
| 24 | set_option maxSynthPendingDepth 12 |
| 25 | set_option maxHeartbeats 1000000 |
| 26 | |
| 27 | open Set Filter |
| 28 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 29 | |
| 30 | namespace PoincareMT.RawAncientSequence |
| 31 | |
| 32 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.measurableSpace |
| 33 | FlowCarrier.borelSpace FlowCarrier.chartedSpace FlowCarrier.isManifold |
| 34 | FlowCarrier.t2Space FlowCarrier.t3Space FlowCarrier.secondCountable |
| 35 | |
| 36 | local instance interiorCarrierConnected (D : FlowCarrier 3) : ConnectedSpace D.carrier := |
| 37 | connectedSpace_iff_univ.mpr D.connected |
| 38 | |
| 39 | variable (C : ℕ → FlowCarrier.{0} 3) |
| 40 | (F : ∀ k, RicciFlow 3 (C k).carrier (Iic 0)) (p : ∀ k, (C k).carrier) |
| 41 | |
| 42 | /-- A raw expanding-cylinder sequence has one geometric ancient limit with |
| 43 | complete reference slice after any prescribed positive interior shift. -/ |
| 44 | theorem exists_complete_interior_geometric_limit |
| 45 | (P : M23NormalizedKappaCompactnessPredecessors) |
| 46 | {κ : ℝ} (hκ : 0 < κ) |
| 47 | (hc : ∀ k t, t ≤ 0 → MetricComplete ((F k).metric t)) |
| 48 | (hop : ∀ k t, t ≤ 0 → ∀ x, ((F k).connection t).NonnegativeCurvatureOperator x) |
| 49 | (hnc : ∀ k, AncientKappaNoncollapsed (F k) κ) |
| 50 | (L : ℕ → ℝ) (hL : Tendsto L atTop atTop) |
| 51 | (hbound : ∀ k t, t ≤ 0 → ∀ x ∈ ((F k).metric 0).ball (p k) (L k), |
| 52 | |((F k).connection t).curvatureTensorNorm x| ≤ 4) |
| 53 | {δ : ℝ} (hδ : 0 < δ) : |
| 54 | ∃ G : AncientPointedGeometricConvergence C |
| 55 | (fun k t => (F k).metric (t - δ)) p δ, |
| 56 | G.limitCarrier.metricComplete (G.limitFlow.metric 0) := by |
| 57 | classical |
| 58 | let H := compactnessHypotheses C F p P hκ hc hop hnc L hL hbound |
| 59 | (by norm_num : (-1 : ℝ) < 0) hδ le_rfl |
| 60 | obtain ⟨σ, hσ, R, ρ, a, b, N, hparams, hcovers⟩ := |
| 61 | H.exists_diagonal_normalChartCovers (by norm_num) |
| 62 | let seq := H.sequence.subsequence σ |
| 63 | let cover : ∀ k j, j ≤ k → NormalChartCover (seq.flow k).flow.metric |
| 64 | (seq.flow k).base (-1) δ ((j : ℝ) + 1) (R j) (ρ j) (a j) (b j) (N j) := |
| 65 | fun k j hjk => (hcovers k j hjk).choose |
| 66 | have hraw := RicciFlow.diagonal_referenceCharts_analytic_bounds_of_estimates |
| 67 | (δ := δ) seq hparams cover (by |
| 68 | intro j I hIcompact hI |
| 69 | obtain ⟨l, hl⟩ := hIcompact.bddBelow |
| 70 | let s := min (-1) (l - 1) |
| 71 | have hs : s < 0 := lt_of_le_of_lt (min_le_left _ _) (by norm_num) |
| 72 | have htime : I ⊆ Ioo s δ := by |
| 73 | intro t ht |
| 74 | exact ⟨lt_of_le_of_lt (min_le_right _ _) (by linarith [hl ht]), hI ht⟩ |
| 75 | let W := compactnessHypotheses (fun k => C (σ k)) (fun k => F (σ k)) |
| 76 | (fun k => p (σ k)) P hκ (fun k => hc (σ k)) (fun k => hop (σ k)) |
| 77 | (fun k => hnc (σ k)) (fun k => L (σ k)) (hL.comp hσ.tendsto_atTop) |
| 78 | (fun k => hbound (σ k)) hs hδ le_rfl |
| 79 | have hA : 0 < (j : ℝ) + 1 := by positivity |
| 80 | obtain ⟨a', b', ha', hb', helliptic⟩ := |
| 81 | W.eventually_referenceNormalChartCover_ellipticity H.time_bounds (N := N j) |
| 82 | hA (hparams j).1 (hparams j).2.1 (hparams j).2.2.1 (hparams j).2.2.2 |
| 83 | refine ⟨s, a', htime, ha', ?_, ?_⟩ |
| 84 | · filter_upwards [helliptic] with k hk |
| 85 | intro hjk i |
| 86 | let cov : NormalChartCover (W.sequence.flow k).metricAt |
| 87 | (W.sequence.flow k).base (-1) δ ((j : ℝ) + 1) (R j) (ρ j) (a j) (b j) (N j) := |
| 88 | cover k j hjk |
| 89 | constructor |
| 90 | · simpa only [cov, BasedFlow.metricAt, W, seq, H, |
| 91 | compactnessHypotheses, windowSequence, PointedFlowSequence.subsequence, |
| 92 | basedWindow, shiftedWindowFlow, RicciFlow.translate] using |
| 93 | W.referenceNormalChartCover_contDiffOn k cov i |
| 94 | · intro t ht x hx v |
| 95 | simpa only [cov, BasedFlow.metricAt, W, seq, H, |
| 96 | compactnessHypotheses, windowSequence, PointedFlowSequence.subsequence, |
| 97 | basedWindow, shiftedWindowFlow, RicciFlow.translate] using (hk cov i t ht x hx v).1 |
| 98 | · intro d |
| 99 | obtain ⟨B, _, hjet⟩ := |
| 100 | W.eventually_referenceNormalChartCover_spacetime_jet_bound_of_m23_predecessors |
| 101 | P H.time_bounds hIcompact htime (N := N j) |
| 102 | hA (hparams j).1 (hparams j).2.1 (hparams j).2.2.1 (hparams j).2.2.2 d |
| 103 | exact ⟨B, hjet.mono fun k hk hjk => hk (cover k j hjk)⟩) |
| 104 | let Fseq (k : ℕ) : RicciFlow 3 (seq.carrier k).carrier |
| 105 | ((fun t : ℝ => t - δ) ⁻¹' Iic 0) := |
| 106 | (F (σ k)).bufferedExpandingFlow δ |
| 107 | have htime : ∀ s t : ℝ, t < δ → ∀ᶠ k : ℕ in atTop, |
| 108 | Icc s t ⊆ (fun u : ℝ => u - δ) ⁻¹' Iic 0 := by |
| 109 | intro s t ht |
| 110 | exact Eventually.of_forall fun k u hu => by |
| 111 | change u - δ ≤ 0 |
| 112 | linarith [hu.2] |
| 113 | obtain ⟨G, hG⟩ := NormalChartCover.exists_complete_ancient_geometric_limit |
| 114 | Fseq (fun _ => rfl) hδ htime cover |
| 115 | (fun j => (hparams j).1) (fun j => by linarith [(hparams j).1, (hparams j).2.1]) |
| 116 | (fun j => (hparams j).2.2.1) hraw |
| 117 | exact ⟨G.ofSubsequence hσ, hG⟩ |
| 118 | |
| 119 | /-- The same raw limit inherits the global factor-four bound, completeness |
| 120 | on all interior slices, and nonnegative curvature operator. -/ |
| 121 | theorem exists_complete_bounded_interior_geometric_limit |
| 122 | (P : M23NormalizedKappaCompactnessPredecessors) |
| 123 | {κ : ℝ} (hκ : 0 < κ) |
| 124 | (hc : ∀ k t, t ≤ 0 → MetricComplete ((F k).metric t)) |
| 125 | (hop : ∀ k t, t ≤ 0 → ∀ x, ((F k).connection t).NonnegativeCurvatureOperator x) |
| 126 | (hnc : ∀ k, AncientKappaNoncollapsed (F k) κ) |
| 127 | (L : ℕ → ℝ) (hL : Tendsto L atTop atTop) |
| 128 | (hbound : ∀ k t, t ≤ 0 → ∀ x ∈ ((F k).metric 0).ball (p k) (L k), |
| 129 | |((F k).connection t).curvatureTensorNorm x| ≤ 4) |
| 130 | {δ : ℝ} (hδ : 0 < δ) : |
| 131 | ∃ G : AncientPointedGeometricConvergence C |
| 132 | (fun k t => (F k).metric (t - δ)) p δ, |
| 133 | (∀ t ∈ Iio δ, G.limitCarrier.metricComplete (G.limitFlow.metric t)) ∧ |
| 134 | (∀ t ∈ Iio δ, ∀ x : G.limitCarrier.carrier, |
| 135 | (G.limitFlow.connection t).curvatureTensorNorm x ≤ 4) ∧ |
| 136 | ∀ t ∈ Iio δ, ∀ x : G.limitCarrier.carrier, |
| 137 | (G.limitFlow.connection t).NonnegativeCurvatureOperator x := by |
| 138 | obtain ⟨G, hcomplete⟩ := |
| 139 | exists_complete_interior_geometric_limit C F p P hκ hc hop hnc L hL hbound hδ |
| 140 | let Fseq (k : ℕ) := (F k).bufferedExpandingFlow δ |
| 141 | have htime : ∀ a b : ℝ, b < δ → ∀ᶠ k : ℕ in atTop, |
| 142 | Icc a b ⊆ (fun t : ℝ => t - δ) ⁻¹' Iic 0 := by |
| 143 | intro a b hb |
| 144 | exact Eventually.of_forall fun k t ht => by |
| 145 | change t - δ ≤ 0 |
| 146 | linarith [ht.2] |
| 147 | have hnorm : ∀ t ∈ Iio δ, ∀ x : G.limitCarrier.carrier, |
| 148 | (G.limitFlow.connection t).curvatureTensorNorm x ≤ 4 := by |
| 149 | apply G.curvatureTensorNorm_le_of_uniform_ball_bound Fseq hδ htime |
| 150 | intro a b hb r _ |
| 151 | filter_upwards [hL.eventually_ge_atTop r] with k hk t ht x hx |
| 152 | have ht0 : t - δ ≤ 0 := by linarith [ht.2] |
| 153 | have hx0 := ball_subset_terminal C F P hop k (t - δ) ht0 (p k) r hx |
| 154 | exact (le_abs_self _).trans |
| 155 | (hbound k (t - δ) ht0 x (hx0.trans_le (ENNReal.ofReal_le_ofReal hk))) |
| 156 | refine ⟨G, RicciFlow.metricComplete_of_ancient_uniform_curvature_bound G.limitCarrier |
| 157 | hδ G.limitFlow G.base hcomplete (by norm_num) hnorm, hnorm, ?_⟩ |
| 158 | apply G.nonnegativeCurvatureOperator_of_eventually Fseq hδ htime |
| 159 | intro t ht |
| 160 | exact Eventually.of_forall fun k x => hop k (t - δ) (by |
| 161 | have h : t < δ := ht |
| 162 | linarith) x |
| 163 | |
| 164 | end PoincareMT.RawAncientSequence |