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.Limit |
| 2 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Compactness.Boundedness.Rescaling |
| 3 | import PoincareLib.Geometry.RicciFlow.Compactness.Ancient.Noncollapse |
| 4 | import PoincareLib.Geometry.RicciFlow.Soliton.Basic |
| 5 | |
| 6 | /-! |
| 7 | # Noncollapse of raw bounded blow-up limits |
| 8 | |
| 9 | Scalar monotonicity is preserved by the actual parabolic homotheties. |
| 10 | Together with nonnegative curvature it converts primitive parabolic |
| 11 | noncollapse to static noncollapse, which passes to the same complete raw |
| 12 | limit. Source global curvature bounds are not required. |
| 13 | |
| 14 | Reference: Kleiner--Lott, Theorem 46.1, pp. 2687-2688, and Appendix E, |
| 15 | 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 |
| 25 | |
| 26 | namespace RicciFlow |
| 27 | |
| 28 | variable {M : Type} [TopologicalSpace M] |
| 29 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 30 | [MeasurableSpace M] [BorelSpace M] [T3Space M] |
| 31 | |
| 32 | /-- Scalar monotonicity survives the actual positive parabolic rescaling, |
| 33 | with no bounded-curvature assumption on either flow. -/ |
| 34 | theorem scalar_monotone_of_terminalHomothety |
| 35 | {b Q : ℝ} {F : RicciFlow 3 M (Iic b)} {G : RicciFlow 3 M (Iic 0)} |
| 36 | (hQ : 0 < Q) |
| 37 | (hcal : ∀ s : ℝ, MetricHomothetyCalculus (F.metric (b + s / Q)) |
| 38 | (G.metric s) (Diffeomorph.refl (𝓡 3) M ∞) Q) |
| 39 | (hmono : ∀ s t : ℝ, s ≤ t → t ≤ b → ∀ x, |
| 40 | (F.connection s).scalarCurvature x ≤ (F.connection t).scalarCurvature x) : |
| 41 | ∀ s t : ℝ, s ≤ t → t ≤ 0 → ∀ x, |
| 42 | (G.connection s).scalarCurvature x ≤ (G.connection t).scalarCurvature x := by |
| 43 | intro s t hst ht x |
| 44 | have hs := (hcal s).scalar_eq (F.connection (b + s / Q)) (G.connection s) x |
| 45 | have ht' := (hcal t).scalar_eq (F.connection (b + t / Q)) (G.connection t) x |
| 46 | change (G.connection s).scalarCurvature x = |
| 47 | (F.connection (b + s / Q)).scalarCurvature x / Q at hs |
| 48 | change (G.connection t).scalarCurvature x = |
| 49 | (F.connection (b + t / Q)).scalarCurvature x / Q at ht' |
| 50 | rw [hs, ht'] |
| 51 | apply div_le_div_of_nonneg_right _ hQ.le |
| 52 | apply hmono (b + s / Q) (b + t / Q) ?_ ?_ x |
| 53 | · have hdiv := div_le_div_of_nonneg_right hst hQ.le |
| 54 | linarith |
| 55 | · have hdiv := div_nonpos_of_nonpos_of_nonneg ht hQ.le |
| 56 | linarith |
| 57 | |
| 58 | variable [T2Space M] [SecondCountableTopology M] [ConnectedSpace M] |
| 59 | |
| 60 | /-- Raw ancient scalar monotonicity gives a static positive noncollapse |
| 61 | constant without packaging the flow as a globally bounded solution. -/ |
| 62 | theorem metricKappaNoncollapsed_of_ancient_scalar_monotone |
| 63 | (P : M23NormalizedKappaCompactnessPredecessors) |
| 64 | (F : RicciFlow 3 M (Iic 0)) {κ : ℝ} (hκ : 0 < κ) |
| 65 | (hop : ∀ s ≤ 0, ∀ x, (F.connection s).NonnegativeCurvatureOperator x) |
| 66 | (hnc : AncientKappaNoncollapsed F κ) |
| 67 | (hmono : ∀ s t : ℝ, s ≤ t → t ≤ 0 → ∀ x, |
| 68 | (F.connection s).scalarCurvature x ≤ (F.connection t).scalarCurvature x) |
| 69 | {t : ℝ} (ht : t ≤ 0) : |
| 70 | MetricKappaNoncollapsed (F.metric t) (F.connection t) (κ / 27) := by |
| 71 | refine ⟨div_pos hκ (by norm_num), ?_⟩ |
| 72 | intro p r hr hbound |
| 73 | have hr3 : 0 < r / 3 := by positivity |
| 74 | have hsub : (F.metric t).ball p (r / 3) ⊆ (F.metric t).ball p r := by |
| 75 | intro q hq |
| 76 | exact lt_of_lt_of_le hq (ENNReal.ofReal_le_ofReal (by linarith)) |
| 77 | have hvol := hnc (r / 3) hr3 t ht p (r / 3) hr3 le_rfl (by |
| 78 | intro s hs q hq |
| 79 | have hpast := ((F.connection s).curvatureTensorNorm_le_scalarCurvature_sharp |
| 80 | (P.tensor_calculus 3 M (F.metric s) (F.connection s)) q |
| 81 | (hop s (hs.2.trans ht) q)).trans (hmono s t hs.2 ht q) |
| 82 | have htrace := (F.connection t).scalarCurvature_le_curvatureTensorNorm_sharp q |
| 83 | have hterminal := (le_abs_self _).trans (hbound q (hsub hq)) |
| 84 | rw [abs_of_nonneg (show 0 ≤ (F.connection s).curvatureTensorNorm q from |
| 85 | Real.sqrt_nonneg _)] |
| 86 | have hscale : (r / 3)⁻¹ ^ 2 = 9 * r⁻¹ ^ 2 := by |
| 87 | rw [inv_div, div_pow] |
| 88 | norm_num [div_eq_mul_inv] |
| 89 | rw [hscale] |
| 90 | norm_num at htrace |
| 91 | nlinarith [sq_nonneg r⁻¹]) |
| 92 | have hconstant : κ * (r / 3) ^ 3 = (κ / 27) * r ^ 3 := by ring |
| 93 | rw [hconstant] at hvol |
| 94 | exact hvol.trans (MeasureTheory.measure_mono hsub) |
| 95 | |
| 96 | end RicciFlow |
| 97 | |
| 98 | namespace RawAncientSequence |
| 99 | |
| 100 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.measurableSpace |
| 101 | FlowCarrier.borelSpace FlowCarrier.chartedSpace FlowCarrier.isManifold |
| 102 | FlowCarrier.t2Space FlowCarrier.t3Space FlowCarrier.secondCountable |
| 103 | |
| 104 | local instance noncollapseCarrierConnected (D : FlowCarrier 3) : ConnectedSpace D.carrier := |
| 105 | connectedSpace_iff_univ.mpr D.connected |
| 106 | |
| 107 | variable (C : ℕ → FlowCarrier.{0} 3) |
| 108 | (F : ∀ k, RicciFlow 3 (C k).carrier (Iic 0)) (p : ∀ k, (C k).carrier) |
| 109 | |
| 110 | /-- Static noncollapse passes to the actual retained raw interior limit. -/ |
| 111 | theorem interiorLimit_metricKappaNoncollapsed |
| 112 | (P : M23NormalizedKappaCompactnessPredecessors) |
| 113 | {κ δ : ℝ} (hκ : 0 < κ) (hδ : 0 < δ) |
| 114 | (hop : ∀ k t, t ≤ 0 → ∀ x, ((F k).connection t).NonnegativeCurvatureOperator x) |
| 115 | (hnc : ∀ k, AncientKappaNoncollapsed (F k) κ) |
| 116 | (hmono : ∀ k s t, s ≤ t → t ≤ 0 → ∀ x, |
| 117 | ((F k).connection s).scalarCurvature x ≤ ((F k).connection t).scalarCurvature x) |
| 118 | (G : AncientPointedGeometricConvergence C |
| 119 | (fun k t => (F k).metric (t - δ)) p δ) |
| 120 | (hcomplete : ∀ t ∈ Iio δ, G.limitCarrier.metricComplete (G.limitFlow.metric t)) : |
| 121 | ∀ t ∈ Iio δ, MetricKappaNoncollapsed |
| 122 | (G.limitFlow.metric t) (G.limitFlow.connection t) (κ / 27) := by |
| 123 | let Fseq (k : ℕ) := (F k).bufferedExpandingFlow δ |
| 124 | have htime (a b : ℝ) (hb : b < δ) : |
| 125 | ∀ᶠ k : ℕ in atTop, Icc a b ⊆ (fun t : ℝ => t - δ) ⁻¹' Iic 0 := |
| 126 | Eventually.of_forall fun k t ht => by |
| 127 | change t - δ ≤ 0 |
| 128 | linarith [ht.2] |
| 129 | have hvolume := G.volume_lower_bound_of_static_noncollapse Fseq hδ htime hcomplete |
| 130 | (κ / 27) (by |
| 131 | intro t ht |
| 132 | refine Eventually.of_forall fun k x r hr hcurv => ?_ |
| 133 | have hstatic := (F k).metricKappaNoncollapsed_of_ancient_scalar_monotone P hκ |
| 134 | (hop k) (hnc k) (hmono k) (show t - δ ≤ 0 by change t < δ at ht; linarith) |
| 135 | change ENNReal.ofReal ((κ / 27) * r ^ 3) ≤ |
| 136 | ((F k).metric (t - δ)).volumeMeasure (((F k).metric (t - δ)).ball x r) |
| 137 | simpa only [calibratedMetricVolume_eq_volumeMeasure] using hstatic.2 x r hr hcurv) |
| 138 | intro t ht |
| 139 | refine ⟨div_pos hκ (by norm_num), ?_⟩ |
| 140 | intro x r hr hcurv |
| 141 | rw [calibratedMetricVolume_eq_volumeMeasure] |
| 142 | exact hvolume t ht x r hr hcurv |
| 143 | |
| 144 | end RawAncientSequence |
| 145 | end PoincareMT |