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.CanonicalInduction.Positive.PositiveGradientSpatial |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.CanonicalInduction.Positive.PositiveGradientCurvature |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.CanonicalInduction.Component.ComponentEstimateMinimum |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.CanonicalInduction.PositiveComponent.Statement |
| 5 | |
| 6 | /-! |
| 7 | # Uniform terminal divergence on a positive component |
| 8 | |
| 9 | Full-curvature blow-up supplies a large scalar maximum. The gradient and |
| 10 | local Myers estimates make that slice uniformly large, and scalar minimum |
| 11 | preservation retains every requested floor on the subsequent original |
| 12 | flow. This proves the literal positive-component output of Morgan--Tian, |
| 13 | Theorem 4.23, pp. 74-75. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | |
| 18 | open Set |
| 19 | open scoped Manifold ContDiff Bundle |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT.M47Positive |
| 24 | |
| 25 | /-- Terminal full-curvature blow-up gives uniform scalar divergence for |
| 26 | the actual initially positive compact connected component, as in |
| 27 | Morgan--Tian, Theorem 4.23, pp. 74-75. Every compact comparison interval |
| 28 | lies inside the original flow; no terminal extension is assumed. -/ |
| 29 | theorem positive_component_blowup (hC : RicciFlowCurvatureTheory.{u}) : |
| 30 | M47PositiveComponentBlowupStatement.{u} := by |
| 31 | intro M _ _ _ _ _ _ _ T hT F hpos hblow L |
| 32 | obtain ⟨B, _, huniform⟩ := |
| 33 | exists_scalar_maximum_uniformization_threshold hC hT F hpos |
| 34 | obtain ⟨s, hs, p, hp⟩ := hblow (max B (2 * max L 0)) 0 hT |
| 35 | have hs0 : 0 < s := by simpa only [max_self] using hs.1 |
| 36 | have hsI : s ∈ Ico 0 T := ⟨hs0.le, hs.2⟩ |
| 37 | have hcurv := curvature_norm_le_scalar_on_positive_flow hC hT F hpos s hsI p |
| 38 | have hcont := |
| 39 | (hC.tensor_calculus 3 M (F.metric s) (F.connection s)).contMDiff_scalarCurvature.continuous |
| 40 | obtain ⟨q, _, hmax⟩ := isCompact_univ.exists_isMaxOn |
| 41 | (univ_nonempty : (univ : Set M).Nonempty) hcont.continuousOn |
| 42 | have hlarge : max B (2 * max L 0) < (F.connection s).scalarCurvature q := |
| 43 | hp.trans_le (hcurv.trans (hmax (mem_univ p))) |
| 44 | have hB : B ≤ (F.connection s).scalarCurvature q := |
| 45 | (le_max_left _ _).trans hlarge.le |
| 46 | have hL : L ≤ (F.connection s).scalarCurvature q / 2 := by |
| 47 | have h := (le_max_right _ _).trans hlarge.le |
| 48 | have hL0 := le_max_left L 0 |
| 49 | linarith only [h, hL0] |
| 50 | have hinit : ∀ x ∈ (univ : Set M), L ≤ (F.connection s).scalarCurvature x := by |
| 51 | intro x _ |
| 52 | exact hL.trans (huniform s hsI q hB (fun y => hmax (mem_univ y)) x) |
| 53 | let P : M47ScalarPersistencePredecessors.{u} := |
| 54 | { tensor_calculus := fun M _ _ _ => hC.tensor_calculus 3 M |
| 55 | scalar_regular := fun M _ _ _ => hC.scalar_regular 3 M |
| 56 | scalar_evolution := fun M _ _ _ => hC.scalar_evolution 3 M } |
| 57 | refine ⟨s, hs0.le, hs.2, ?_⟩ |
| 58 | intro t ht x |
| 59 | have hJ : Icc s t ⊆ Ico 0 T := by |
| 60 | intro r hr |
| 61 | exact ⟨hs0.le.trans hr.1, hr.2.trans_lt ht.2⟩ |
| 62 | exact M47.component_scalar_floor_preserved P F isCompact_univ isOpen_univ ht.1.le hJ |
| 63 | hinit t ⟨ht.1.le, le_rfl⟩ x (mem_univ x) |
| 64 | |
| 65 | end PoincareMT.M47Positive |