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.Soliton.ThreeDimensional.Noncompact.Rigidity.UnscaledSource |
| 2 | import PoincareLib.Geometry.RicciFlow.Compactness.Ancient.GeometricLimit.NormalCharts |
| 3 | import PoincareLib.Geometry.RicciFlow.Compactness.Ancient.Restriction |
| 4 | import PoincareLib.Geometry.RicciFlow.Compactness.Ancient.Coordinates.Bounds |
| 5 | import PoincareLib.Geometry.RicciFlow.Curvature.Estimates.Universe |
| 6 | import PoincareLib.Geometry.RicciFlow.Compactness.Ancient.Preservation |
| 7 | import PoincareLib.Geometry.RicciFlow.Completeness |
| 8 | |
| 9 | /-! |
| 10 | # Pointed spatial limits up to the shrinking extinction time |
| 11 | |
| 12 | One reference normal atlas and estimates on compact time windows give an |
| 13 | actual pointed limit of the unscaled translated source on all of `t < 1`. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | set_option synthInstance.maxHeartbeats 100000 |
| 19 | set_option maxSynthPendingDepth 12 |
| 20 | set_option maxHeartbeats 1000000 |
| 21 | |
| 22 | open Set Filter Poincare.Analysis.Calculus |
| 23 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 24 | |
| 25 | noncomputable section |
| 26 | |
| 27 | universe u |
| 28 | |
| 29 | namespace PoincareMT.ShrinkingSolitonFlow |
| 30 | |
| 31 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.chartedSpace |
| 32 | FlowCarrier.isManifold FlowCarrier.t3Space |
| 33 | attribute [local instance] RicciFlow.smallCarrier RicciFlow.smallChartedSpace |
| 34 | RicciFlow.smallIsManifold RicciFlow.smallT3Space RicciFlow.smallMeasurableSpace |
| 35 | RicciFlow.smallBorelSpace |
| 36 | |
| 37 | variable {M : Type u} [TopologicalSpace M] |
| 38 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 39 | [MeasurableSpace M] [BorelSpace M] [T2Space M] [T3Space M] |
| 40 | [SecondCountableTopology M] [ConnectedSpace M] |
| 41 | {S : GradientShrinkingSolitonData 3 M} (G : ShrinkingSolitonFlow S) |
| 42 | |
| 43 | private theorem compact_time_window {I : Set ℝ} (hI : IsCompact I) (hI1 : I ⊆ Iio 1) : |
| 44 | ∃ a b : ℝ, a < 0 ∧ 0 < b ∧ b < 1 ∧ I ⊆ Ioo a b := by |
| 45 | obtain ⟨l, hl⟩ := hI.bddBelow |
| 46 | by_cases hne : I.Nonempty |
| 47 | · obtain ⟨u, hu⟩ := hI.exists_isGreatest hne |
| 48 | refine ⟨min (-1) (l - 1), max (1 / 2) ((u + 1) / 2), |
| 49 | (min_le_left _ _).trans_lt (by norm_num), |
| 50 | lt_of_lt_of_le (by norm_num) (le_max_left _ _), ?_, ?_⟩ |
| 51 | · apply max_lt (by norm_num) |
| 52 | have := hI1 hu.1 |
| 53 | change u < 1 at this |
| 54 | linarith |
| 55 | · intro t ht |
| 56 | constructor |
| 57 | · have := min_le_right (-1 : ℝ) (l - 1) |
| 58 | linarith [hl ht] |
| 59 | · have := le_max_right (1 / 2 : ℝ) ((u + 1) / 2) |
| 60 | have hut : u < 1 := hI1 hu.1 |
| 61 | linarith [hu.2 ht] |
| 62 | · exact ⟨-1, 1 / 2, by norm_num, by norm_num, by norm_num, |
| 63 | fun _ ht => (hne ⟨_, ht⟩).elim⟩ |
| 64 | |
| 65 | /-- The entire interval before extinction is retained in one pointed |
| 66 | geometric limit of the original unscaled metric family. -/ |
| 67 | theorem exists_unscaledPointedLimit (hC : RicciFlowCurvatureTheory.{u}) (q : ℕ → M) : |
| 68 | ∃ L : AncientPointedGeometricConvergence |
| 69 | (fun _ => AncientRescalingSequence.smallRescalingCarrier (M := M)) |
| 70 | (fun _ => G.unscaledSourceFlow.shrink.metric) |
| 71 | (fun k => equivShrink M (q k)) 1, |
| 72 | L.limitCarrier.metricComplete (L.limitFlow.metric 0) := by |
| 73 | classical |
| 74 | let H := G.unscaledCompactnessHypotheses q (-1) (1 / 2) |
| 75 | (by norm_num) (by norm_num) (by norm_num) |
| 76 | obtain ⟨σ, hσ, R, ρ, a, b, N, hparams, hcovers⟩ := |
| 77 | H.exists_diagonal_normalChartCovers (by omega) |
| 78 | let seq := H.sequence.subsequence σ |
| 79 | let cover : ∀ k j, j ≤ k → NormalChartCover (seq.flow k).flow.metric |
| 80 | (seq.flow k).base (-1) (1 / 2) ((j : ℝ) + 1) (R j) (ρ j) (a j) (b j) (N j) := |
| 81 | fun k j hjk => (hcovers k j hjk).choose |
| 82 | have hraw : ∀ i : ℕ, |
| 83 | let raw := fun k (z : ℝ × EuclideanSpace ℝ (Fin 3)) => |
| 84 | ((seq.flow k).flow.metric z.1).pullbackCoefficients |
| 85 | ((cover k (min (Nat.unpair i).1 k) (min_le_right _ _)).chart |
| 86 | ⟨(Nat.unpair i).2 % (N (min (Nat.unpair i).1 k) + 1), |
| 87 | Nat.mod_lt _ (Nat.succ_pos _)⟩) z.2 |
| 88 | LocallyEventuallyContDiff (Iio 1 ×ˢ Metric.ball 0 (ρ (Nat.unpair i).1)) raw ∧ |
| 89 | (∀ K : Set (ℝ × EuclideanSpace ℝ (Fin 3)), IsCompact K → |
| 90 | K ⊆ Iio 1 ×ˢ Metric.ball 0 (ρ (Nat.unpair i).1) → ∀ d : ℕ, ∃ B : ℝ, |
| 91 | ∀ᶠ k in atTop, ∀ z ∈ K, ‖iteratedFDeriv ℝ d (raw k) z‖ ≤ B) ∧ |
| 92 | (∀ t ∈ Iio 1, ∃ c : ℝ, 0 < c ∧ ∀ᶠ k in atTop, |
| 93 | ∀ x ∈ Metric.ball 0 (ρ (Nat.unpair i).1), ∀ v, |
| 94 | c * ‖v‖ ^ 2 ≤ raw k (t, x) v v) := by |
| 95 | intro i |
| 96 | let j := (Nat.unpair i).1 |
| 97 | let l : Fin (N j + 1) := |
| 98 | ⟨(Nat.unpair i).2 % (N j + 1), Nat.mod_lt _ (Nat.succ_pos _)⟩ |
| 99 | let rawStage := fun k j (hk : j ≤ k) (z : ℝ × EuclideanSpace ℝ (Fin 3)) => |
| 100 | ((seq.flow k).flow.metric z.1).pullbackCoefficients |
| 101 | ((cover k j hk).chart |
| 102 | ⟨(Nat.unpair i).2 % (N j + 1), Nat.mod_lt _ (Nat.succ_pos _)⟩) z.2 |
| 103 | let raw := fun k => rawStage k (min j k) (min_le_right _ _) |
| 104 | change LocallyEventuallyContDiff (Iio 1 ×ˢ Metric.ball 0 (ρ j)) raw ∧ _ |
| 105 | have hstage (k : ℕ) (hk : j ≤ k) : raw k = |
| 106 | fun z => ((seq.flow k).flow.metric z.1).pullbackCoefficients |
| 107 | ((cover k j hk).chart l) z.2 := by |
| 108 | funext z |
| 109 | change rawStage k (min j k) (min_le_right _ _) z = rawStage k j hk z |
| 110 | simp only [min_eq_left hk] |
| 111 | refine ⟨?_, ?_, ?_⟩ |
| 112 | · intro K hK hKΩ |
| 113 | have hKI : Prod.fst '' K ⊆ Iio 1 := by |
| 114 | rintro t ⟨z, hz, rfl⟩ |
| 115 | exact (hKΩ hz).1 |
| 116 | obtain ⟨s, t, hs, ht, ht1, htime⟩ := compact_time_window (hK.image continuous_fst) hKI |
| 117 | let W := G.unscaledCompactnessHypotheses (q ∘ σ) s t hs ht ht1 |
| 118 | filter_upwards [eventually_ge_atTop j] with k hkj |
| 119 | refine ⟨Ioo s t ×ˢ Metric.ball 0 (R j), isOpen_Ioo.prod Metric.isOpen_ball, ?_, ?_⟩ |
| 120 | · intro z hz |
| 121 | exact ⟨htime (mem_image_of_mem Prod.fst hz), |
| 122 | Metric.ball_subset_ball (by linarith [(hparams j).1, (hparams j).2.1]) |
| 123 | (hKΩ hz).2⟩ |
| 124 | · rw [hstage k hkj] |
| 125 | exact W.referenceNormalChartCover_contDiffOn k (cover k j hkj) l |
| 126 | · intro K hK hKΩ d |
| 127 | have hKI : Prod.fst '' K ⊆ Iio 1 := by |
| 128 | rintro t ⟨z, hz, rfl⟩ |
| 129 | exact (hKΩ hz).1 |
| 130 | obtain ⟨s, t, hs, ht, ht1, htime⟩ := compact_time_window (hK.image continuous_fst) hKI |
| 131 | let W := G.unscaledCompactnessHypotheses (q ∘ σ) s t hs ht ht1 |
| 132 | obtain ⟨B, _, hjets⟩ := W.eventually_referenceNormalChartCover_spacetime_jet_bound |
| 133 | (RicciFlowCurvatureTheory.local_derivative_estimates_small hC) |
| 134 | H.time_bounds (hK.image continuous_fst) htime |
| 135 | (N := N j) (by positivity : 0 < (j : ℝ) + 1) |
| 136 | (hparams j).1 (hparams j).2.1 (hparams j).2.2.1 (hparams j).2.2.2 d |
| 137 | refine ⟨B, ?_⟩ |
| 138 | filter_upwards [hjets, eventually_ge_atTop j] with k hk hkj |
| 139 | intro z hz |
| 140 | change ‖iteratedFDeriv ℝ d (raw k) z‖ ≤ B |
| 141 | rw [hstage k hkj] |
| 142 | exact hk (cover k j hkj) l z.1 (mem_image_of_mem Prod.fst hz) z.2 |
| 143 | (Metric.ball_subset_closedBall (hKΩ hz).2) |
| 144 | · intro t ht |
| 145 | obtain ⟨s, b', hs, hb', hb1, htime⟩ := |
| 146 | compact_time_window isCompact_singleton (singleton_subset_iff.mpr ht) |
| 147 | let W := G.unscaledCompactnessHypotheses (q ∘ σ) s b' hs hb' hb1 |
| 148 | obtain ⟨c, d, hc, _, helliptic⟩ := W.eventually_referenceNormalChartCover_ellipticity |
| 149 | H.time_bounds (N := N j) (by positivity : 0 < (j : ℝ) + 1) |
| 150 | (hparams j).1 (hparams j).2.1 (hparams j).2.2.1 (hparams j).2.2.2 |
| 151 | refine ⟨c, hc, ?_⟩ |
| 152 | filter_upwards [helliptic, eventually_ge_atTop j] with k hk hkj |
| 153 | intro x hx v |
| 154 | change c * ‖v‖ ^ 2 ≤ raw k (t, x) v v |
| 155 | rw [hstage k hkj] |
| 156 | exact (hk (cover k j hkj) l t (htime (mem_singleton t)) x |
| 157 | (Metric.closedBall_subset_closedBall (by linarith [(hparams j).1]) |
| 158 | (Metric.ball_subset_closedBall hx)) v).1 |
| 159 | let Fseq (k : ℕ) : RicciFlow 3 (seq.carrier k).carrier (Iio 1) := |
| 160 | G.unscaledSourceFlow.shrink |
| 161 | have htime : ∀ s t : ℝ, t < 1 → ∀ᶠ _k : ℕ in atTop, Icc s t ⊆ Iio 1 := by |
| 162 | intro s t ht |
| 163 | exact Filter.Eventually.of_forall fun _ _ hx => hx.2.trans_lt ht |
| 164 | obtain ⟨L, hL⟩ := NormalChartCover.exists_complete_ancient_geometric_limit |
| 165 | Fseq (fun _ => rfl) (by norm_num : (0 : ℝ) < 1) htime cover |
| 166 | (fun j => (hparams j).1) |
| 167 | (fun j => by linarith [(hparams j).1, (hparams j).2.1]) |
| 168 | (fun j => (hparams j).2.2.1) hraw |
| 169 | exact ⟨L.ofSubsequence hσ, hL⟩ |
| 170 | |
| 171 | variable {q : ℕ → M} |
| 172 | (L : AncientPointedGeometricConvergence |
| 173 | (fun _ => AncientRescalingSequence.smallRescalingCarrier (M := M)) |
| 174 | (fun _ => G.unscaledSourceFlow.shrink.metric) |
| 175 | (fun k => equivShrink M (q k)) 1) |
| 176 | |
| 177 | /-- The precise upper bound survives in the actual unscaled limit. -/ |
| 178 | theorem unscaledPointedLimit_curvature_bound : |
| 179 | ∃ B : ℝ, 0 ≤ B ∧ ∀ t : ℝ, t < 1 → ∀ x : L.limitCarrier.carrier, |
| 180 | (L.limitFlow.connection t).curvatureTensorNorm x ≤ B / (1 - t) := by |
| 181 | obtain ⟨B, hB, hbound⟩ := G.unscaledSourceFlow_curvature_bound |
| 182 | refine ⟨B, hB, fun t ht x => ?_⟩ |
| 183 | obtain ⟨a, b, ha, hb, hb1, htime⟩ := |
| 184 | compact_time_window isCompact_singleton (singleton_subset_iff.mpr ht) |
| 185 | let W := L.window (J := fun _ => Iio 1) |
| 186 | (C := fun _ => AncientRescalingSequence.smallRescalingCarrier (M := M)) |
| 187 | (fun _ => G.unscaledSourceFlow.shrink) (ha.trans hb) hb1.le 0 |
| 188 | (fun _ _ hs => hs.2.trans hb1) |
| 189 | apply le_of_tendsto (W.tendsto_curvatureTensorNorm t (htime (mem_singleton t)) x) |
| 190 | apply Filter.Eventually.of_forall |
| 191 | intro k |
| 192 | change (G.unscaledSourceFlow.shrink.connection t).curvatureTensorNorm _ ≤ B / (1 - t) |
| 193 | rw [RicciFlow.shrink_curvatureTensorNorm] |
| 194 | exact (le_abs_self _).trans (hbound t ht _) |
| 195 | |
| 196 | theorem unscaledPointedLimit_nonnegativeCurvatureOperator : |
| 197 | ∀ t : ℝ, t < 1 → ∀ x : L.limitCarrier.carrier, |
| 198 | (L.limitFlow.connection t).NonnegativeCurvatureOperator x := by |
| 199 | apply AncientPointedGeometricConvergence.nonnegativeCurvatureOperator_of_eventually |
| 200 | (C := fun _ => AncientRescalingSequence.smallRescalingCarrier (M := M)) |
| 201 | (J := fun _ => Iio 1) (fun _ => G.unscaledSourceFlow.shrink) L |
| 202 | (by norm_num : (0 : ℝ) < 1) |
| 203 | (fun a b hb => Filter.Eventually.of_forall fun _ _ ht => ht.2.trans_lt hb) |
| 204 | intro t ht |
| 205 | apply Filter.Eventually.of_forall |
| 206 | intro k x |
| 207 | exact (G.unscaledSourceFlow.shrink_nonnegativeCurvatureOperator_iff t x).mpr |
| 208 | (G.unscaledSourceFlow_nonnegativeCurvatureOperator t ht _) |
| 209 | |
| 210 | /-- The shrinking bound is uniform on every compact time window, hence |
| 211 | completeness propagates to every time before extinction. -/ |
| 212 | theorem unscaledPointedLimit_complete |
| 213 | (hcomplete : L.limitCarrier.metricComplete (L.limitFlow.metric 0)) : |
| 214 | ∀ t : ℝ, t < 1 → L.limitCarrier.metricComplete (L.limitFlow.metric t) := by |
| 215 | obtain ⟨B, hB, hbound⟩ := G.unscaledPointedLimit_curvature_bound L |
| 216 | intro t ht |
| 217 | obtain ⟨a, b, ha, hb, hb1, htime⟩ := |
| 218 | compact_time_window isCompact_singleton (singleton_subset_iff.mpr ht) |
| 219 | let W := L.limitCarrier.basedWindow L.limitFlow L.base |
| 220 | (fun _ hs => hs.2.trans hb1 : Ioo a b ⊆ Iio 1) (ha.trans hb) |
| 221 | apply W.complete_interior_of_two_time_curvature_bound ⟨ha, hb⟩ hcomplete ?_ |
| 222 | t (htime (mem_singleton t)) |
| 223 | intro A _ |
| 224 | refine ⟨B / (1 - b), div_nonneg hB (sub_pos.mpr hb1).le, ?_⟩ |
| 225 | intro s _ u hu x _ |
| 226 | exact (hbound u (hu.2.trans hb1) x).trans |
| 227 | (div_le_div_of_nonneg_left hB (sub_pos.mpr hb1) (by linarith [hu.2])) |
| 228 | |
| 229 | end PoincareMT.ShrinkingSolitonFlow |