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.Noncollapsing.OrdinaryCaptureData |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Construction.Flow.PartialFlowCompleteness |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.ExistenceTheory |
| 4 | |
| 5 | /-! |
| 6 | # Actual ordinary capture on the partial standard-cap flow |
| 7 | |
| 8 | The original half-open lifetime interval is retained. For every included |
| 9 | positive terminal time, capture uses precisely the complete bounded- |
| 10 | curvature window from time zero to that terminal time. |
| 11 | Source: Morgan-Tian Proposition 12.13, pp. 304-306. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set |
| 17 | open scoped Manifold ContDiff |
| 18 | |
| 19 | namespace PoincareMT.M34 |
| 20 | |
| 21 | /-- The actual half-open lifetime domain, as a nondegenerate spacetime |
| 22 | interval (Proposition 12.13, pp. 304-306). -/ |
| 23 | def partialFlowSpacetimeInterval {g0 : StandardInitialMetric} (F : PartialStandardCapFlow g0) : |
| 24 | SpacetimeInterval where |
| 25 | domain := Ico 0 F.lifetime |
| 26 | ordConnected := ordConnected_Ico |
| 27 | nontrivial := ⟨0, ⟨le_rfl, F.lifetime_pos⟩, F.lifetime / 2, |
| 28 | ⟨by linarith [F.lifetime_pos], by linarith [F.lifetime_pos]⟩, |
| 29 | by linarith [F.lifetime_pos]⟩ |
| 30 | |
| 31 | /-- The predecessor supplies one retained ordinary product on the actual |
| 32 | partial flow, with its intrinsic equation (Proposition 12.13). -/ |
| 33 | theorem partialFlow_ordinary_product {g0 : StandardInitialMetric} |
| 34 | (F : PartialStandardCapFlow g0) (P : M34StandardCapPredecessors) : |
| 35 | ∃ R : OrdinaryProductRicciGeometry F.flow.metric (partialFlowSpacetimeInterval F), |
| 36 | IntrinsicGeneralizedRicciEquation R.leafwiseConnection := |
| 37 | P.ordinary_product StandardCapSpace (partialFlowSpacetimeInterval F) F.flow |
| 38 | |
| 39 | set_option backward.isDefEq.respectTransparency false in |
| 40 | /-- Each positive included terminal time has actual consistent ordinary |
| 41 | capture outputs on its complete closed backward window (Proposition 12.13). -/ |
| 42 | theorem partialFlow_ordinary_capture {g0 : StandardInitialMetric} |
| 43 | (F : PartialStandardCapFlow g0) (P : M34StandardCapPredecessors) |
| 44 | (R : OrdinaryProductRicciGeometry F.flow.metric (partialFlowSpacetimeInterval F)) |
| 45 | (hRicci : IntrinsicGeneralizedRicciEquation R.leafwiseConnection) |
| 46 | {t : ℝ} (ht : t ∈ Ioo 0 F.lifetime) : |
| 47 | Nonempty (M14OrdinaryCaptureOutput (ordinaryProductLGeometry R hRicci) |
| 48 | StandardCapSpace (partialFlowSpacetimeInterval F) |
| 49 | R.product.productCylinder R.product.productMetric F.flow t t |
| 50 | (ordinaryProductCaptureData (I := partialFlowSpacetimeInterval F) |
| 51 | (F := F.flow) R hRicci ⟨ht.1.le, ht.2⟩ t)) := by |
| 52 | have hwindow : Icc (t - t) t ⊆ (partialFlowSpacetimeInterval F).domain := by |
| 53 | intro u hu |
| 54 | exact ⟨by linarith [hu.1], hu.2.trans_lt ht.2⟩ |
| 55 | have hcurv : CompleteBoundedCurvatureOn F.flow (Icc (t - t) t) := by |
| 56 | constructor |
| 57 | · intro u hu |
| 58 | exact partialFlow_complete F P.curvature (hwindow hu) |
| 59 | · simpa only [sub_self] using F.curvature_locally_bounded t ht.1.le ht.2 |
| 60 | obtain ⟨out, _⟩ := P.ordinary_capture |
| 61 | ((partialFlowSpacetimeInterval F).domain × StandardCapSpace) (fun p => p.1.val) |
| 62 | (partialFlowSpacetimeInterval F) (ordinaryProductLGeometry R hRicci) P.ordinary_windows |
| 63 | StandardCapSpace (partialFlowSpacetimeInterval F) R.product.productCylinder |
| 64 | R.product.productMetric F.flow t t ⟨ht.1.le, ht.2⟩ ht.1 hwindow hcurv |
| 65 | (ordinaryProductCaptureData (I := partialFlowSpacetimeInterval F) |
| 66 | (F := F.flow) R hRicci ⟨ht.1.le, ht.2⟩ t) |
| 67 | exact ⟨out⟩ |
| 68 | |
| 69 | end PoincareMT.M34 |