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.Terminal.Normalization |
| 2 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Compactness.Terminal.Noncollapse |
| 3 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Compactness.ParabolicNoncollapse |
| 4 | |
| 5 | /-! |
| 6 | # Noncollapse of the actual closed limit |
| 7 | |
| 8 | The retained interior noncollapse estimate is transported to the original |
| 9 | time variable, then extended to zero with the same constant. The flow is |
| 10 | not packaged as an ancient kappa-solution in this argument. |
| 11 | |
| 12 | Reference: Morgan--Tian, Theorem 9.64, pp. 225-229. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open Set Filter |
| 19 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 20 | |
| 21 | namespace PoincareMT.NormalizedKappaSolutionSequence |
| 22 | |
| 23 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.measurableSpace |
| 24 | FlowCarrier.borelSpace FlowCarrier.chartedSpace FlowCarrier.isManifold |
| 25 | FlowCarrier.t2Space FlowCarrier.t3Space FlowCarrier.secondCountable |
| 26 | |
| 27 | local instance terminalInheritanceConnected (C : FlowCarrier.{0} 3) : |
| 28 | ConnectedSpace C.carrier := connectedSpace_iff_univ.mpr C.connected |
| 29 | |
| 30 | variable {κ : ℝ} (S : NormalizedKappaSolutionSequence κ) |
| 31 | (G : AncientPointedGeometricConvergence (fun k => (S.term k).carrier) |
| 32 | (fun k t => (S.term k).flow.flow.metric (t - 1)) (fun k => (S.term k).base) 1) |
| 33 | |
| 34 | private theorem norm_eq_of_metric_eq |
| 35 | {g h : RiemannianMetric 3 G.limitCarrier.carrier} |
| 36 | (D : LeviCivitaData g) (E : LeviCivitaData h) |
| 37 | (heq : g = h) (x : G.limitCarrier.carrier) : |
| 38 | D.curvatureTensorNorm x = E.curvatureTensorNorm x := by |
| 39 | subst h |
| 40 | exact D.curvatureTensorNorm_eq E x |
| 41 | |
| 42 | /-- The actual closed extension is noncollapsed on all scales with the |
| 43 | original constant, including its terminal slice. -/ |
| 44 | theorem closedLimit_noncollapsed |
| 45 | (P : M23NormalizedKappaCompactnessPredecessors) |
| 46 | (hcomplete : ∀ t : ℝ, t < 1 → G.limitCarrier.metricComplete (G.limitFlow.metric t)) |
| 47 | (F : RicciFlow 3 G.limitCarrier.carrier (Iic 0)) |
| 48 | (hmetric : ∀ t : ℝ, t < 0 → F.metric t = G.limitFlow.metric (t + 1)) : |
| 49 | AncientKappaNoncollapsed F κ := by |
| 50 | have hnorm (t : ℝ) (ht : t < 0) (x : G.limitCarrier.carrier) : |
| 51 | (F.connection t).curvatureTensorNorm x = |
| 52 | (G.limitFlow.connection (t + 1)).curvatureTensorNorm x := |
| 53 | norm_eq_of_metric_eq S G (F.connection t) (G.limitFlow.connection (t + 1)) |
| 54 | (hmetric t ht) x |
| 55 | have hinterior (t : ℝ) (ht : t < 0) (p : G.limitCarrier.carrier) |
| 56 | (r : ℝ) (hr : 0 < r) |
| 57 | (hcurv : ∀ s ∈ Ioc (t - r ^ 2) t, ∀ x ∈ (F.metric t).ball p r, |
| 58 | |(F.connection s).curvatureTensorNorm x| ≤ r⁻¹ ^ 2) : |
| 59 | ENNReal.ofReal (κ * r ^ 3) ≤ |
| 60 | (F.metric t).volumeMeasure ((F.metric t).ball p r) := by |
| 61 | have h := S.interiorLimit_noncollapsed_ball G hcomplete |
| 62 | (t := t + 1) (by linarith) p hr (by |
| 63 | intro s hs x hx |
| 64 | have hs0 : s - 1 < 0 := by linarith [hs.2] |
| 65 | have hsI : s - 1 ∈ Ioc (t - r ^ 2) t := |
| 66 | ⟨by linarith [hs.1], by linarith [hs.2]⟩ |
| 67 | have hb : x ∈ (F.metric t).ball p r := by rwa [hmetric t ht] |
| 68 | have hn := hnorm (s - 1) hs0 x |
| 69 | rw [sub_add_cancel] at hn |
| 70 | rw [← hn] |
| 71 | exact hcurv (s - 1) hsI x hb) |
| 72 | rw [← hmetric t ht, calibratedMetricVolume_eq_volumeMeasure] at h |
| 73 | exact h |
| 74 | have hoperator := S.closedLimit_nonnegativeCurvatureOperator G P F hmetric |
| 75 | intro r₀ _ t ht p r hr _ hcurv |
| 76 | rw [calibratedMetricVolume_eq_volumeMeasure] |
| 77 | rcases lt_or_eq_of_le ht with ht | rfl |
| 78 | · exact hinterior t ht p r hr hcurv |
| 79 | · exact F.terminal_ball_volume_lower_bound_of_interior_noncollapse κ |
| 80 | (fun s hs x v => ((F.connection s).ricci_bounds_of_nonnegative_curvatureOperator |
| 81 | (P.tensor_calculus 3 G.limitCarrier.carrier (F.metric s) (F.connection s)) |
| 82 | x (hoperator s hs x) v).1) hinterior p hr |
| 83 | (by simpa only [zero_sub] using hcurv) |
| 84 | |
| 85 | end PoincareMT.NormalizedKappaSolutionSequence |