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.Basic |
| 2 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.CurvatureControl |
| 3 | |
| 4 | /-! |
| 5 | # Static noncollapse from ancient scalar monotonicity |
| 6 | |
| 7 | The radius loss absorbs the dimension-dependent comparison between scalar |
| 8 | curvature and the full curvature norm. This supplies the static noncollapse |
| 9 | hypothesis needed for Morgan--Tian, Corollary 9.52, p. 216, before the |
| 10 | bounded-curvature conclusion in Corollary 9.53, pp. 217-218. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set |
| 16 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.RicciFlow |
| 21 | |
| 22 | theorem metricKappaNoncollapsed_of_scalar_comparison |
| 23 | {M : Type u} [TopologicalSpace M] |
| 24 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 25 | [IsManifold (𝓡 3) ∞ M] [MeasurableSpace M] [BorelSpace M] |
| 26 | [T2Space M] [T3Space M] [SecondCountableTopology M] [ConnectedSpace M] |
| 27 | (F : RicciFlow 3 M (Iio 0)) |
| 28 | {κ : ℝ} (hκ : 0 < κ) |
| 29 | (hcomparison : ∀ t < 0, ∀ x, |
| 30 | (F.connection t).curvatureTensorNorm x ≤ 9 * (F.connection t).scalarCurvature x) |
| 31 | (hscalar : ∀ x, MonotoneOn (fun t => (F.connection t).scalarCurvature x) (Iio 0)) |
| 32 | (hnoncollapse : ∀ t < 0, ∀ p : M, ∀ r : ℝ, 0 < r → |
| 33 | (∀ s ∈ Ioc (t - r ^ 2) t, ∀ q ∈ (F.metric t).ball p r, |
| 34 | |(F.connection s).curvatureTensorNorm q| ≤ r⁻¹ ^ 2) → |
| 35 | ENNReal.ofReal (κ * r ^ 3) ≤ |
| 36 | calibratedMetricVolume (F.metric t) ((F.metric t).ball p r)) |
| 37 | {t : ℝ} (ht : t < 0) : |
| 38 | MetricKappaNoncollapsed (F.metric t) (F.connection t) (κ / 729) := by |
| 39 | refine ⟨div_pos hκ (by norm_num), ?_⟩ |
| 40 | intro p r hr hbound |
| 41 | have hr9 : 0 < r / 9 := by positivity |
| 42 | have hsub : (F.metric t).ball p (r / 9) ⊆ (F.metric t).ball p r := by |
| 43 | intro q hq |
| 44 | exact lt_of_lt_of_le hq (ENNReal.ofReal_le_ofReal (by linarith)) |
| 45 | have hparabolic : ∀ s ∈ Ioc (t - (r / 9) ^ 2) t, |
| 46 | ∀ q ∈ (F.metric t).ball p (r / 9), |
| 47 | |(F.connection s).curvatureTensorNorm q| ≤ (r / 9)⁻¹ ^ 2 := by |
| 48 | intro s hs q hq |
| 49 | have hs0 : s < 0 := hs.2.trans_lt ht |
| 50 | have hnorm := hcomparison s hs0 q |
| 51 | have htrace := (F.connection t).abs_scalarCurvature_le_curvatureTensorNorm q |
| 52 | have hmono := hscalar q hs0 ht hs.2 |
| 53 | have hterminal := (le_abs_self _).trans (hbound q (hsub hq)) |
| 54 | have hnorm_nonneg : 0 ≤ (F.connection s).curvatureTensorNorm q := Real.sqrt_nonneg _ |
| 55 | rw [abs_of_nonneg hnorm_nonneg] |
| 56 | have hscale : (r / 9)⁻¹ ^ 2 = 81 * r⁻¹ ^ 2 := by |
| 57 | rw [inv_div, div_pow] |
| 58 | norm_num [div_eq_mul_inv] |
| 59 | rw [hscale] |
| 60 | norm_num at hnorm htrace |
| 61 | have htrace' := (le_abs_self _).trans htrace |
| 62 | linarith |
| 63 | have hvol := hnoncollapse t ht p (r / 9) hr9 hparabolic |
| 64 | have hconstant : κ * (r / 9) ^ 3 = (κ / 729) * r ^ 3 := by ring |
| 65 | rw [hconstant] at hvol |
| 66 | exact hvol.trans (MeasureTheory.measure_mono hsub) |
| 67 | |
| 68 | /-- A parabolically noncollapsed ancient three-flow with monotone scalar |
| 69 | curvature is statically noncollapsed on each slice, with an explicit loss. -/ |
| 70 | theorem metricKappaNoncollapsed_of_scalar_monotone |
| 71 | {M : Type u} [TopologicalSpace M] |
| 72 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 73 | [IsManifold (𝓡 3) ∞ M] [MeasurableSpace M] [BorelSpace M] |
| 74 | [T2Space M] [T3Space M] [SecondCountableTopology M] [ConnectedSpace M] |
| 75 | (hC : RicciFlowCurvatureTheory.{u}) |
| 76 | (F : RicciFlow 3 M (Iio 0)) |
| 77 | {κ : ℝ} (hκ : 0 < κ) |
| 78 | (hoperator : ∀ t < 0, ∀ x, |
| 79 | (F.connection t).NonnegativeCurvatureOperator x) |
| 80 | (hscalar : ∀ x, MonotoneOn (fun t => (F.connection t).scalarCurvature x) (Iio 0)) |
| 81 | (hnoncollapse : ∀ t < 0, ∀ p : M, ∀ r : ℝ, 0 < r → |
| 82 | (∀ s ∈ Ioc (t - r ^ 2) t, ∀ q ∈ (F.metric t).ball p r, |
| 83 | |(F.connection s).curvatureTensorNorm q| ≤ r⁻¹ ^ 2) → |
| 84 | ENNReal.ofReal (κ * r ^ 3) ≤ |
| 85 | calibratedMetricVolume (F.metric t) ((F.metric t).ball p r)) |
| 86 | {t : ℝ} (ht : t < 0) : |
| 87 | MetricKappaNoncollapsed (F.metric t) (F.connection t) (κ / 729) := by |
| 88 | apply metricKappaNoncollapsed_of_scalar_comparison F hκ ?_ hscalar hnoncollapse ht |
| 89 | intro s hs x |
| 90 | convert (F.connection s).curvatureTensorNorm_le_scalarCurvature |
| 91 | (hC.tensor_calculus 3 M (F.metric s) (F.connection s)) x (hoperator s hs x) |
| 92 | using 1 |
| 93 | norm_num |
| 94 | |
| 95 | end PoincareMT.RicciFlow |