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.Statement |
| 2 | |
| 3 | /-! |
| 4 | # Curvature control on normalized ancient sequences |
| 5 | |
| 6 | The whole-past bound uses the same terminal balls and uniform constant as the |
| 7 | local scalar estimate of Morgan--Tian Lemma 9.65, pp. 225-227. |
| 8 | -/ |
| 9 | |
| 10 | set_option autoImplicit false |
| 11 | |
| 12 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 13 | |
| 14 | namespace PoincareMT |
| 15 | |
| 16 | theorem m23AllTimeCurvatureControl_of_local |
| 17 | {kappa : ℝ} (S : NormalizedKappaSolutionSequence kappa) |
| 18 | (P : M23NormalizedKappaCompactnessPredecessors) |
| 19 | (hlocal : M23LocalCurvatureEstimate S) : |
| 20 | M23AllTimeCurvatureControl S := by |
| 21 | intro r hr |
| 22 | obtain ⟨C, hC, hbound⟩ := hlocal r hr |
| 23 | refine ⟨C, hC, ?_⟩ |
| 24 | intro k |
| 25 | let B := S.term k |
| 26 | let Crr := B.carrier |
| 27 | letI : TopologicalSpace Crr.carrier := Crr.topologicalSpace |
| 28 | letI : MeasurableSpace Crr.carrier := Crr.measurableSpace |
| 29 | letI : BorelSpace Crr.carrier := Crr.borelSpace |
| 30 | letI : ChartedSpace (EuclideanSpace ℝ (Fin 3)) Crr.carrier := Crr.chartedSpace |
| 31 | letI : IsManifold (𝓡 3) ∞ Crr.carrier := Crr.isManifold |
| 32 | letI : T2Space Crr.carrier := Crr.t2Space |
| 33 | letI : T3Space Crr.carrier := Crr.t3Space |
| 34 | letI : SecondCountableTopology Crr.carrier := Crr.secondCountable |
| 35 | letI : ConnectedSpace Crr.carrier := B.connectedSpace |
| 36 | change ∀ t : ℝ, t ≤ 0 → ∀ x : Crr.carrier, |
| 37 | x ∈ Crr.metricBall (B.flow.flow.metric 0) B.base r → |
| 38 | |(B.flow.flow.connection t).curvatureTensorNorm x| ≤ C |
| 39 | intro t ht x hx |
| 40 | rw [abs_of_nonneg (show 0 ≤ (B.flow.flow.connection t).curvatureTensorNorm x from |
| 41 | Real.sqrt_nonneg _)] |
| 42 | exact (P.past_norm_le_scalar Crr.carrier B.flow t 0 ht le_rfl x).trans |
| 43 | (hbound k x hx) |
| 44 | |
| 45 | end PoincareMT |