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.SourceNoncollapse |
| 2 | import PoincareLib.Geometry.RicciFlow.Soliton.ThreeDimensional.Noncompact.Rigidity.ScalarBounds |
| 3 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Asymptotic.Compactness.Small |
| 4 | |
| 5 | /-! |
| 6 | # The unscaled shrinking-soliton source up to extinction |
| 7 | |
| 8 | Translation by one retains the whole generated interval `t < 1`. Its exact |
| 9 | homothetic scale gives uniform geometry on each finite time window, including |
| 10 | the pointed compactness hypotheses for arbitrary sequences of basepoints. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open Set Filter |
| 17 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 18 | |
| 19 | noncomputable section |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT.ShrinkingSolitonFlow |
| 24 | |
| 25 | variable {M : Type u} [TopologicalSpace M] |
| 26 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 27 | [MeasurableSpace M] [BorelSpace M] [T2Space M] [T3Space M] |
| 28 | [SecondCountableTopology M] [ConnectedSpace M] |
| 29 | {S : GradientShrinkingSolitonData 3 M} (G : ShrinkingSolitonFlow S) |
| 30 | |
| 31 | /-- The actual generated source with its normalized slice at time zero. -/ |
| 32 | def unscaledSourceFlow : RicciFlow 3 M (Iio 1) := |
| 33 | G.flow.translate (-1) |
| 34 | (by rintro _ ⟨t, ht, rfl⟩; change t + -1 < 0; linarith [show t < 1 from ht]) |
| 35 | ordConnected_Iio ⟨-1, by simp, 0, by simp, by norm_num⟩ |
| 36 | |
| 37 | theorem unscaledSourceFlow_metric_zero : G.unscaledSourceFlow.metric 0 = S.metric := by |
| 38 | simpa only [unscaledSourceFlow, RicciFlow.translate, zero_add] using G.at_minus_one |
| 39 | |
| 40 | theorem unscaledSourceFlow_metric_eq_ancientSourceFlow (t : ℝ) : |
| 41 | G.unscaledSourceFlow.metric t = G.ancientSourceFlow.metric t := rfl |
| 42 | |
| 43 | theorem unscaledSourceFlow_homothetic (t : ℝ) (ht : t < 1) : |
| 44 | Nonempty (HomotheticMetricSlice S.metric (G.unscaledSourceFlow.metric t) (1 - t)) := by |
| 45 | have ht' : t + -1 < 0 := by linarith |
| 46 | have heq : |t + -1| = 1 - t := by rw [abs_of_neg ht']; ring |
| 47 | simpa only [unscaledSourceFlow, RicciFlow.translate, heq] using |
| 48 | G.self_similar (t + -1) ht' |
| 49 | |
| 50 | theorem unscaledSourceFlow_complete (t : ℝ) (ht : t < 1) : |
| 51 | MetricComplete (G.unscaledSourceFlow.metric t) := by |
| 52 | obtain ⟨E⟩ := G.unscaledSourceFlow_homothetic t ht |
| 53 | exact E.metricComplete (sub_pos.mpr ht) S.complete |
| 54 | |
| 55 | theorem unscaledSourceFlow_nonnegativeCurvatureOperator (t : ℝ) (ht : t < 1) (x : M) : |
| 56 | (G.unscaledSourceFlow.connection t).NonnegativeCurvatureOperator x := by |
| 57 | obtain ⟨E⟩ := G.unscaledSourceFlow_homothetic t ht |
| 58 | exact E.nonnegativeCurvatureOperator (sub_pos.mpr ht) S.connection |
| 59 | (G.unscaledSourceFlow.connection t) S.nonnegative_curvature x |
| 60 | |
| 61 | theorem unscaledSourceFlow_metricKappaNoncollapsed (t : ℝ) (ht : t < 1) : |
| 62 | MetricKappaNoncollapsed (G.unscaledSourceFlow.metric t) |
| 63 | (G.unscaledSourceFlow.connection t) S.kappa := by |
| 64 | obtain ⟨E⟩ := G.unscaledSourceFlow_homothetic t ht |
| 65 | exact E.kappaNoncollapsed (sub_pos.mpr ht) S.connection |
| 66 | (G.unscaledSourceFlow.connection t) S.kappa_noncollapsed |
| 67 | |
| 68 | /-- The original curvature bound has the precise shrinking scale. -/ |
| 69 | theorem unscaledSourceFlow_curvature_bound : |
| 70 | ∃ B : ℝ, 0 ≤ B ∧ ∀ t : ℝ, t < 1 → ∀ x : M, |
| 71 | |(G.unscaledSourceFlow.connection t).curvatureTensorNorm x| ≤ B / (1 - t) := by |
| 72 | obtain ⟨B, hB, hbound⟩ := S.bounded_curvature |
| 73 | refine ⟨B, hB, fun t ht x => ?_⟩ |
| 74 | obtain ⟨E⟩ := G.unscaledSourceFlow_homothetic t ht |
| 75 | rw [E.curvatureNorm (sub_pos.mpr ht) S.connection, abs_mul, |
| 76 | abs_of_pos (inv_pos.mpr (sub_pos.mpr ht)), div_eq_mul_inv, mul_comm B] |
| 77 | exact mul_le_mul_of_nonneg_left (hbound _) (inv_nonneg.mpr (sub_pos.mpr ht).le) |
| 78 | |
| 79 | /-- A positive scalar lower bound has the same shrinking scale. -/ |
| 80 | theorem unscaledSourceFlow_scalar_lower_bound (hC : RicciFlowCurvatureTheory.{u}) : |
| 81 | ∃ c : ℝ, 0 < c ∧ ∀ t : ℝ, t < 1 → ∀ x : M, |
| 82 | c / (1 - t) ≤ (G.unscaledSourceFlow.connection t).scalarCurvature x := by |
| 83 | obtain ⟨c, hc, hlower⟩ := S.exists_uniform_positive_scalar_lower_bound hC |
| 84 | refine ⟨c, hc, fun t ht x => ?_⟩ |
| 85 | obtain ⟨E⟩ := G.unscaledSourceFlow_homothetic t ht |
| 86 | rw [E.scalarCurvature (sub_pos.mpr ht) S.connection, div_eq_mul_inv, mul_comm c] |
| 87 | exact mul_le_mul_of_nonneg_left (hlower _) (inv_nonneg.mpr (sub_pos.mpr ht).le) |
| 88 | |
| 89 | theorem unscaledSourceFlow_past_curvature_bound (b : ℝ) (hb : b < 1) : |
| 90 | ∃ C : ℝ, 0 ≤ C ∧ ∀ t : ℝ, t ≤ b → ∀ x : M, |
| 91 | |(G.unscaledSourceFlow.connection t).curvatureTensorNorm x| ≤ C := by |
| 92 | obtain ⟨B, hB, hbound⟩ := G.unscaledSourceFlow_curvature_bound |
| 93 | refine ⟨B / (1 - b), div_nonneg hB (sub_pos.mpr hb).le, fun t ht x => ?_⟩ |
| 94 | exact (hbound t (ht.trans_lt hb) x).trans |
| 95 | (div_le_div_of_nonneg_left hB (sub_pos.mpr hb) (by linarith)) |
| 96 | |
| 97 | attribute [local instance] RicciFlow.smallCarrier RicciFlow.smallChartedSpace |
| 98 | RicciFlow.smallIsManifold RicciFlow.smallT3Space RicciFlow.smallMeasurableSpace |
| 99 | RicciFlow.smallBorelSpace |
| 100 | |
| 101 | /-- Finite windows retain the metric family of the full unscaled source. -/ |
| 102 | def unscaledWindowFlow (a b : ℝ) (ha : a < 0) (hb : 0 < b) (hb1 : b < 1) : |
| 103 | RicciFlow 3 (Shrink.{0} M) (Ioo a b) := |
| 104 | Poincare.Geometry.RicciFlow.Harnack.restrictFlow G.unscaledSourceFlow.shrink |
| 105 | (fun _ ht => ht.2.trans hb1) |
| 106 | ordConnected_Ioo ⟨0, ⟨ha, hb⟩, b / 2, ⟨by linarith, by linarith⟩, by linarith⟩ |
| 107 | |
| 108 | theorem unscaledWindowFlow_metric (a b : ℝ) (ha : a < 0) (hb : 0 < b) (hb1 : b < 1) |
| 109 | (t : ℝ) : (G.unscaledWindowFlow a b ha hb hb1).metric t = |
| 110 | G.unscaledSourceFlow.shrink.metric t := rfl |
| 111 | |
| 112 | def unscaledBasedWindow (q : ℕ → M) (a b : ℝ) (ha : a < 0) (hb : 0 < b) |
| 113 | (hb1 : b < 1) (k : ℕ) : |
| 114 | BasedFlow 3 a b (AncientRescalingSequence.smallRescalingCarrier (M := M)) where |
| 115 | base := equivShrink M (q k) |
| 116 | flow := G.unscaledWindowFlow a b ha hb hb1 |
| 117 | volumeMeasure := (AncientRescalingSequence.smallRescalingCarrier (M := M)).metricHausdorffVolume |
| 118 | ((G.unscaledWindowFlow a b ha hb hb1).metric 0) |
| 119 | spacetimeVectorField := fun _ _ => (1, 0) |
| 120 | spacetimeVectorField_time := fun _ _ => rfl |
| 121 | spacetimeVectorField_spatial_zero := fun _ _ => rfl |
| 122 | |
| 123 | def unscaledWindowSequence (q : ℕ → M) (a b : ℝ) (ha : a < 0) (hb : 0 < b) |
| 124 | (hb1 : b < 1) : PointedFlowSequence 3 a b where |
| 125 | carrier := fun _ => AncientRescalingSequence.smallRescalingCarrier (M := M) |
| 126 | flow := G.unscaledBasedWindow q a b ha hb hb1 |
| 127 | |
| 128 | /-- All frozen M07 hypotheses hold for the actual unscaled sequence on every |
| 129 | finite time window containing the normalized slice. -/ |
| 130 | def unscaledCompactnessHypotheses (q : ℕ → M) (a b : ℝ) (ha : a < 0) (hb : 0 < b) |
| 131 | (hb1 : b < 1) : PointedRicciFlowCompactnessHypotheses 3 a b where |
| 132 | time_bounds := ⟨ha, hb⟩ |
| 133 | sequence := G.unscaledWindowSequence q a b ha hb hb1 |
| 134 | volume_compatibility := fun _ => rfl |
| 135 | zero_time_ball_compact := by |
| 136 | intro A _ |
| 137 | apply Filter.Eventually.of_forall |
| 138 | intro k |
| 139 | change IsCompact (closure ((G.unscaledSourceFlow.shrink.metric 0).ball |
| 140 | (equivShrink M (q k)) A)) |
| 141 | exact (G.unscaledSourceFlow.shrink.metric 0).isCompact_closure_ball_of_metricComplete |
| 142 | ((G.unscaledSourceFlow.shrink_metricComplete_iff 0).mpr |
| 143 | (G.unscaledSourceFlow_complete 0 (by norm_num))) (equivShrink M (q k)) A |
| 144 | spacetime_control := by |
| 145 | intro A _ I _ _ _ hI |
| 146 | obtain ⟨C, hC, hbound⟩ := G.unscaledSourceFlow_past_curvature_bound b hb1 |
| 147 | refine ⟨C, hC, Filter.Eventually.of_forall fun k => ?_⟩ |
| 148 | refine ⟨SmoothSpacetimeEmbedding.refl (G.unscaledBasedWindow q a b ha hb hb1 k) |
| 149 | (I ×ˢ (G.unscaledBasedWindow q a b ha hb hb1 k).zeroBall A), |
| 150 | fun _ _ => rfl, hC, ?_⟩ |
| 151 | intro t ht x _ |
| 152 | change (G.unscaledSourceFlow.shrink.connection t).curvatureTensorNorm x ≤ C |
| 153 | rw [RicciFlow.shrink_curvatureTensorNorm] |
| 154 | exact (le_abs_self _).trans (hbound t (hI ht).2.le _) |
| 155 | all_time_curvature_control := by |
| 156 | intro A _ |
| 157 | obtain ⟨C, hC, hbound⟩ := G.unscaledSourceFlow_past_curvature_bound b hb1 |
| 158 | refine ⟨C, hC, Filter.Eventually.of_forall fun k => ?_⟩ |
| 159 | dsimp only |
| 160 | intro t₀ _ t ht x _ |
| 161 | change (G.unscaledSourceFlow.shrink.connection t).curvatureTensorNorm x ≤ C |
| 162 | rw [RicciFlow.shrink_curvatureTensorNorm] |
| 163 | exact (le_abs_self _).trans (hbound t ht.2.le _) |
| 164 | noncollapsing := by |
| 165 | obtain ⟨B, hB, hbound⟩ := G.unscaledSourceFlow_past_curvature_bound 0 (by norm_num) |
| 166 | let r : ℝ := (B + 1)⁻¹ |
| 167 | have hr : 0 < r := inv_pos.mpr (by linarith) |
| 168 | have hrB : B ≤ r⁻¹ ^ 2 := by dsimp [r]; rw [inv_inv]; nlinarith |
| 169 | have hcal := ENNReal.toReal_pos (euclideanVolumeCalibration_pos 3).ne' |
| 170 | (euclideanVolumeCalibration_ne_top 3) |
| 171 | refine ⟨r, S.kappa / (euclideanVolumeCalibration 3).toReal, hr, |
| 172 | div_pos S.kappa_pos hcal, Filter.Eventually.of_forall fun k => ?_⟩ |
| 173 | have hκ := G.unscaledSourceFlow.metricKappaNoncollapsed_shrink 0 |
| 174 | (G.unscaledSourceFlow_metricKappaNoncollapsed 0 (by norm_num)) |
| 175 | have hsmall := hκ.2 (equivShrink M (q k)) r hr (by |
| 176 | intro x _ |
| 177 | rw [RicciFlow.shrink_curvatureTensorNorm] |
| 178 | exact (hbound 0 le_rfl _).trans hrB) |
| 179 | have hvol := calibrated_noncollapse_to_hausdorff |
| 180 | (AncientRescalingSequence.smallRescalingCarrier (M := M)) |
| 181 | (G.unscaledSourceFlow.shrink.metric 0) |
| 182 | ((G.unscaledSourceFlow.shrink.metric 0).ball (equivShrink M (q k)) r) |
| 183 | S.kappa_pos hr hsmall |
| 184 | simpa only [BasedFlow.zeroBallVolume, BasedFlow.zeroBall, FlowCarrier.metricBall, |
| 185 | unscaledWindowSequence, unscaledBasedWindow, unscaledWindowFlow, |
| 186 | Poincare.Geometry.RicciFlow.Harnack.restrictFlow, |
| 187 | AncientRescalingSequence.smallRescalingCarrier] using hvol |
| 188 | |
| 189 | end PoincareMT.ShrinkingSolitonFlow |