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.StandardCap.Existence.Lifetime.Basic.OrdinaryNoncollapse |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Lifetime.Basic.OrdinaryPinching |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Noncollapsing.PartialFlowCapture |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Curvature.Nonnegative |
| 5 | |
| 6 | /-! |
| 7 | # Actual standard-cap geometry for the Chapter 11 blow-up hypotheses |
| 8 | |
| 9 | The supplied homothety service applies to the retained slice maps. |
| 10 | Completeness gives compact intrinsic balls, the proved sectional sign |
| 11 | gives the nonnegative branch, and the ordinary noncollapse certificate |
| 12 | applies at all points of a fixed positive-time tail. |
| 13 | Source: Morgan-Tian Theorem 12.28, pp. 323-324; unit lifetime derivation, |
| 14 | section 3 and bad-point selection derivation, section 7. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | |
| 19 | open Set |
| 20 | open scoped Manifold ContDiff Bundle Topology |
| 21 | |
| 22 | namespace PoincareMT.M34 |
| 23 | |
| 24 | /-- Actual factor-one homothety calculus for every retained cap-flow |
| 25 | slice (Theorem 12.28). -/ |
| 26 | theorem partialFlow_chapter11_calculus {g0 : StandardInitialMetric} |
| 27 | (F : PartialStandardCapFlow g0) (P : M34StandardCapPredecessors) |
| 28 | (R : OrdinaryProductRicciGeometry F.flow.metric (partialFlowSpacetimeInterval F)) |
| 29 | (t : (partialFlowSpacetimeInterval F).domain) : |
| 30 | MetricHomothetyCalculus (F.flow.metric t.val) (R.product.slices t.val).metricOnPoints |
| 31 | (R.product.sliceIdentification t) 1 := |
| 32 | P.metric_homothety StandardCapSpace (R.product.slices t.val).Point |
| 33 | (F.flow.metric t.val) (R.product.slices t.val).metricOnPoints |
| 34 | (R.product.sliceIdentification t) 1 zero_lt_one |
| 35 | (ordinarySlice_metricHomothety R.product t) |
| 36 | |
| 37 | /-- Every finite intrinsic ball in a retained cap-flow slice has compact |
| 38 | closure, as required by the Chapter 11 blow-up controls (Theorem 12.28). -/ |
| 39 | theorem partialFlow_chapter11_compact_ball {g0 : StandardInitialMetric} |
| 40 | (F : PartialStandardCapFlow g0) (P : M34StandardCapPredecessors) |
| 41 | (R : OrdinaryProductRicciGeometry F.flow.metric (partialFlowSpacetimeInterval F)) |
| 42 | (p : (ordinaryChapter11Flow (I := partialFlowSpacetimeInterval F) |
| 43 | (F := F.flow) R).point) (r : ℝ) : |
| 44 | IsCompact (closure (((ordinaryChapter11Flow (I := partialFlowSpacetimeInterval F) |
| 45 | (F := F.flow) R).metric p.1).ball p.2 r)) := by |
| 46 | let t : (partialFlowSpacetimeInterval F).domain := |
| 47 | ⟨p.1, ordinaryChapter11Point_time_mem R p⟩ |
| 48 | have h := ordinarySlice_compact_ball R.product t (partialFlow_chapter11_calculus F P R t) |
| 49 | (partialFlow_complete F P.curvature t.property) p.2.val.2 r |
| 50 | rw [ordinaryChapter11_identification_projection R t p.2] at h |
| 51 | exact h |
| 52 | |
| 53 | /-- The actual cap-flow realization satisfies the full nonnegative branch |
| 54 | of the Chapter 11 hypotheses (Theorem 12.28). -/ |
| 55 | theorem partialFlow_chapter11_branch {g0 : StandardInitialMetric} |
| 56 | (F : PartialStandardCapFlow g0) (P : M34StandardCapPredecessors) |
| 57 | (E0 : StandardCapEstimate g0) |
| 58 | (R : OrdinaryProductRicciGeometry F.flow.metric (partialFlowSpacetimeInterval F)) : |
| 59 | generalizedPinchedOrNonnegative (ordinaryChapter11Flow |
| 60 | (I := partialFlowSpacetimeInterval F) (F := F.flow) R) := by |
| 61 | apply Or.inr |
| 62 | exact ordinaryChapter11_nonnegative (I := partialFlowSpacetimeInterval F) (F := F.flow) |
| 63 | R (partialFlow_chapter11_calculus F P R) |
| 64 | (fun _ ht => ht.1) (partialFlow_nonnegativeSectionalCurvature P.curvature E0 F) |
| 65 | |
| 66 | /-- The frozen cap noncollapse certificate controls every Chapter 11 |
| 67 | cylinder whenever the chosen radius fits below the physical time |
| 68 | (Proposition 12.13 and Theorem 12.28). -/ |
| 69 | theorem standardFlow_chapter11_noncollapsed {g0 : StandardInitialMetric} |
| 70 | (F : MaximalStandardCapFlow g0) (P : M34StandardCapPredecessors) |
| 71 | (R : OrdinaryProductRicciGeometry F.base.flow.metric (partialFlowSpacetimeInterval F.base)) |
| 72 | (H : StandardFlowNoncollapsingCertificate F) {r0 : ℝ} (hr0 : r0 ≤ H.radius) |
| 73 | (p : (ordinaryChapter11Flow (I := partialFlowSpacetimeInterval F.base) |
| 74 | (F := F.base.flow) R).point) (htime : r0 ^ 2 ≤ p.1) : |
| 75 | GeneralizedKappaNoncollapsedAt (ordinaryChapter11Flow |
| 76 | (I := partialFlowSpacetimeInterval F.base) (F := F.base.flow) R) p H.kappa r0 := by |
| 77 | apply ordinaryChapter11_noncollapsed (I := partialFlowSpacetimeInterval F.base) |
| 78 | (F := F.base.flow) R (partialFlow_chapter11_calculus F.base P R) p H.kappa r0 |
| 79 | intro r hr hrr _ hcurv |
| 80 | apply H.bound p.1 (ordinaryChapter11Point_time_mem R p) |
| 81 | (ordinaryChapter11Projection R p) r hr (hrr.trans hr0) _ hcurv |
| 82 | exact (pow_le_pow_left₀ hr.le hrr 2).trans htime |
| 83 | |
| 84 | end PoincareMT.M34 |