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.Surgery.Induction.ComponentBounds |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.ScalarPersistence |
| 3 | |
| 4 | /-! |
| 5 | Adapted from Mapher `PoincareMT/Statements/M47ComponentAnalytics.lean` at |
| 6 | `f927d9e1f0810042766d3b5f64d3f4da02ee93cc`. Declaration bodies are retained; |
| 7 | see `references/ricci-flow/mapher/surgery-adapters-port.json`. |
| 8 | -/ |
| 9 | |
| 10 | /-! |
| 11 | # Direct M04 services for the component analytic producer |
| 12 | |
| 13 | The scalar services feed M47's local persistence argument. Local Shi |
| 14 | estimates apply on the constructed whole component; metric comparison |
| 15 | bounds its diameter backward to a putative inserted cap. |
| 16 | -/ |
| 17 | |
| 18 | set_option autoImplicit false |
| 19 | |
| 20 | open scoped Manifold ContDiff Bundle |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | namespace PoincareMT |
| 25 | |
| 26 | /-- Only the five M04 services used in this supporting argument. -/ |
| 27 | structure M47ComponentAnalyticPredecessors : Prop |
| 28 | extends M47ScalarPersistencePredecessors.{u} where |
| 29 | local_derivative_estimates : |
| 30 | ∀ (k : ℕ) (K alpha r : ℝ), 0 < K → 0 < alpha → 0 < r → |
| 31 | ∃ B : ℝ, 0 < B ∧ |
| 32 | ∀ (M : Type u) [TopologicalSpace M] |
| 33 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 34 | [T2Space M] [SecondCountableTopology M], |
| 35 | ∀ T : ℝ, 0 < T → T ≤ alpha / K → |
| 36 | ∀ (F : RicciFlow 3 M (Set.Icc 0 T)) (p : M), |
| 37 | IsCompact (closure ((F.metric 0).ball p r)) → |
| 38 | (∀ t ∈ Set.Icc 0 T, ∀ x ∈ (F.metric 0).ball p r, |
| 39 | (F.connection t).curvatureTensorNorm x ≤ K) → |
| 40 | ∀ t ∈ Set.Ioc 0 T, ∀ x ∈ (F.metric 0).ball p (r / 2), |
| 41 | (F.connection t).curvatureDerivativeNorm k x ≤ B / t ^ ((k : ℝ) / 2) |
| 42 | metric_comparison : |
| 43 | ∀ (M : Type u) [TopologicalSpace M] |
| 44 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 45 | (J : Set ℝ) (F : RicciFlow 3 M J) (s t K : ℝ), |
| 46 | s ∈ J → t ∈ J → s ≤ t → 0 ≤ K → |
| 47 | (∀ tau ∈ Set.Icc s t, ∀ x : M, (F.connection tau).curvatureTensorNorm x ≤ K) → |
| 48 | ∀ (x : M) (v : TangentSpace (𝓡 3) x), |
| 49 | Real.exp (-2 * (3 : ℝ) * K * (t - s)) * (F.metric s).inner x v v ≤ |
| 50 | (F.metric t).inner x v v ∧ |
| 51 | (F.metric t).inner x v v ≤ |
| 52 | Real.exp (2 * (3 : ℝ) * K * (t - s)) * (F.metric s).inner x v v |
| 53 | |
| 54 | end PoincareMT |