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.AsymptoticSoliton |
| 2 | import PoincareLib.Geometry.RicciFlow.Soliton.ThreeDimensional.Noncollapse |
| 3 | import PoincareLib.Geometry.RicciFlow.Lift |
| 4 | |
| 5 | /-! |
| 6 | # Static noncollapse on an ancient limit carrier |
| 7 | |
| 8 | The derivative hypothesis is the one supplied by the frozen M18 limit. |
| 9 | The argument does not require a global curvature bound on that limit. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open Set |
| 15 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace PoincareMT.AncientLimitFlow |
| 20 | |
| 21 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.measurableSpace |
| 22 | FlowCarrier.borelSpace FlowCarrier.chartedSpace FlowCarrier.isManifold |
| 23 | FlowCarrier.t2Space FlowCarrier.t3Space FlowCarrier.secondCountable |
| 24 | |
| 25 | theorem curvatureTensorNorm_le_scalarCurvature |
| 26 | (hC : RicciFlowCurvatureTheory.{u}) (L : AncientLimitFlow 3) |
| 27 | (s : ℝ) (hs : s < 0) (x : L.carrier.carrier) : |
| 28 | (L.flow.connection s).curvatureTensorNorm x ≤ |
| 29 | 9 * (L.flow.connection s).scalarCurvature x := by |
| 30 | let : ChartedSpace (EuclideanSpace ℝ (Fin 3)) (ULift.{u} L.carrier.carrier) := |
| 31 | Poincare.Manifold.uliftChartedSpace _ L.carrier.carrier |
| 32 | let : IsManifold (𝓡 3) ∞ (ULift.{u} L.carrier.carrier) := |
| 33 | Poincare.Manifold.uliftIsManifold (𝓡 3) L.carrier.carrier |
| 34 | let G : RicciFlow 3 (ULift.{u} L.carrier.carrier) (Iio 0) := L.flow.ulift |
| 35 | have hoperator := (L.flow.ulift_nonnegativeCurvatureOperator_iff s (ULift.up.{u} x)).mpr |
| 36 | (L.nonnegative_curvature_operator s hs x) |
| 37 | have hbound := (G.connection s).curvatureTensorNorm_le_scalarCurvature |
| 38 | (hC.tensor_calculus 3 _ (G.metric s) (G.connection s)) (ULift.up.{u} x) hoperator |
| 39 | simp only [G, L.flow.ulift_curvatureTensorNorm, L.flow.ulift_scalarCurvature] at hbound |
| 40 | norm_num at hbound |
| 41 | exact hbound |
| 42 | |
| 43 | theorem scalarCurvature_monotoneOn_of_derivative_nonnegative |
| 44 | (L : AncientLimitFlow 3) |
| 45 | (hderivative : ∀ t : ℝ, t < 0 → ∀ x : L.carrier.carrier, |
| 46 | ∃ dR : ℝ, HasDerivWithinAt |
| 47 | (fun s => (L.flow.connection s).scalarCurvature x) dR (Iio 0) t ∧ 0 ≤ dR) |
| 48 | (x : L.carrier.carrier) : |
| 49 | MonotoneOn (fun t => (L.flow.connection t).scalarCurvature x) (Iio 0) := by |
| 50 | classical |
| 51 | apply monotoneOn_of_hasDerivWithinAt_nonneg (convex_Iio 0) |
| 52 | (fun s hs => (hderivative s hs x).choose_spec.1.continuousWithinAt) |
| 53 | (f' := fun s => if hs : s < 0 then (hderivative s hs x).choose else 0) |
| 54 | · intro s hs |
| 55 | have hs' : s ∈ Iio (0 : ℝ) := interior_subset hs |
| 56 | simpa only [dif_pos (show s < 0 from hs')] using |
| 57 | (hderivative s hs' x).choose_spec.1.mono interior_subset |
| 58 | · intro s hs |
| 59 | have hs' : s ∈ Iio (0 : ℝ) := interior_subset hs |
| 60 | simpa only [dif_pos (show s < 0 from hs')] using (hderivative s hs' x).choose_spec.2 |
| 61 | |
| 62 | theorem metricKappaNoncollapsed_of_scalar_derivative_nonnegative |
| 63 | (hC : RicciFlowCurvatureTheory.{u}) (L : AncientLimitFlow 3) |
| 64 | {κ : ℝ} (hκ : 0 < κ) (hnoncollapse : AncientLimitKappaNoncollapsed L κ) |
| 65 | (hderivative : ∀ t : ℝ, t < 0 → ∀ x : L.carrier.carrier, |
| 66 | ∃ dR : ℝ, HasDerivWithinAt |
| 67 | (fun s => (L.flow.connection s).scalarCurvature x) dR (Iio 0) t ∧ 0 ≤ dR) |
| 68 | {t : ℝ} (ht : t < 0) : |
| 69 | MetricKappaNoncollapsed (L.flow.metric t) (L.flow.connection t) (κ / 729) := by |
| 70 | classical |
| 71 | let : PreconnectedSpace L.carrier.carrier := ⟨L.carrier.connected.isPreconnected⟩ |
| 72 | let : Nonempty L.carrier.carrier := ⟨L.base⟩ |
| 73 | let : ConnectedSpace L.carrier.carrier := ⟨inferInstance⟩ |
| 74 | apply RicciFlow.metricKappaNoncollapsed_of_scalar_comparison L.flow hκ |
| 75 | (L.curvatureTensorNorm_le_scalarCurvature hC) |
| 76 | · exact L.scalarCurvature_monotoneOn_of_derivative_nonnegative hderivative |
| 77 | · intro s hs p r hr hbound |
| 78 | exact hnoncollapse r hr s hs p r hr le_rfl hbound |
| 79 | · exact ht |
| 80 | |
| 81 | end PoincareMT.AncientLimitFlow |