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.OrdinaryConfiguration |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Noncollapsing.OrdinaryBallCylinder |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Noncollapsing.OrdinaryPositiveSurvival |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Noncollapsing.PartialFlowCapture |
| 5 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Noncollapsing.LateReducedLengthVolume |
| 6 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Geometry.Curvature.ClosedCylinderCurvature |
| 7 | |
| 8 | /-! |
| 9 | # Uniform late-time noncollapse from one positive early slice |
| 10 | |
| 11 | The fixed ordinary reduced-length and volume constants precede the |
| 12 | late query. Actual ordinary capture, positive square-root survival and |
| 13 | the based ball cylinder give the precise M15 configuration on that query. |
| 14 | Source: Morgan-Tian Proposition 12.13, pp. 304-306. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | |
| 19 | open Set |
| 20 | open scoped Manifold ContDiff Bundle Topology ENNReal |
| 21 | |
| 22 | namespace PoincareMT.M34 |
| 23 | |
| 24 | set_option backward.isDefEq.respectTransparency false in |
| 25 | /-- All late times have one positive cubic volume bound at the fixed |
| 26 | small scale sqrt(lifetime/8), whenever the actual curvature cylinder |
| 27 | satisfies the defining bound (Proposition 12.13, pp. 304-306). -/ |
| 28 | theorem partialFlow_late_small_ball_volume {g0 : StandardInitialMetric} |
| 29 | (F : PartialStandardCapFlow g0) (P : M34StandardCapPredecessors) : |
| 30 | ∃ kappa : ℝ, 0 < kappa ∧ ∀ t ∈ Ico (F.lifetime / 2) F.lifetime, |
| 31 | ∀ p : StandardCapSpace, ∀ r : ℝ, 0 < r → r ≤ Real.sqrt (F.lifetime / 8) → |
| 32 | (∀ s ∈ Ioc (t - r ^ 2) t, ∀ q ∈ (F.flow.metric t).ball p r, |
| 33 | |(F.flow.connection s).curvatureTensorNorm q| ≤ r⁻¹ ^ 2) → |
| 34 | ENNReal.ofReal (kappa * r ^ 3) ≤ |
| 35 | calibratedMetricVolume (F.flow.metric t) ((F.flow.metric t).ball p r) := by |
| 36 | obtain ⟨l0, V, hl0, hV, hregion⟩ := partialFlow_fixed_early_reduced_length_volume F P.curvature |
| 37 | obtain ⟨U15⟩ := P.noncollapse_generalized F.lifetime l0 V F.lifetime_pos hl0 hV |
| 38 | obtain ⟨R, hRicci⟩ := partialFlow_ordinary_product F P |
| 39 | let I := partialFlowSpacetimeInterval F |
| 40 | let G := ordinaryProductLGeometry R hRicci |
| 41 | obtain ⟨Cexp⟩ := P.exponential (I.domain × StandardCapSpace) (fun z => z.1.val) I G |
| 42 | refine ⟨U15.kappa, U15.kappa_pos, ?_⟩ |
| 43 | intro t ht p r hr hr0 hcurv |
| 44 | have ht0 : t ∈ Ioo 0 F.lifetime := ⟨by linarith [ht.1, F.lifetime_pos], ht.2⟩ |
| 45 | have hT : t ∈ I.domain := ⟨ht0.1.le, ht.2⟩ |
| 46 | have hsigma : 0 < F.lifetime / 8 := by linarith [F.lifetime_pos] |
| 47 | have htau : 0 < t - F.lifetime / 8 := by linarith [ht.1, F.lifetime_pos] |
| 48 | have hmax : t - F.lifetime / 8 < t := by linarith |
| 49 | have hclock : t - (t - F.lifetime / 8) = F.lifetime / 8 := by ring |
| 50 | have hmem : t - (t - F.lifetime / 8) ∈ I.domain := by |
| 51 | rw [hclock] |
| 52 | exact ⟨hsigma.le, by linarith [F.lifetime_pos]⟩ |
| 53 | have hrsq : r ^ 2 ≤ F.lifetime / 8 := by |
| 54 | calc |
| 55 | r ^ 2 ≤ (Real.sqrt (F.lifetime / 8)) ^ 2 := |
| 56 | (sq_le_sq₀ hr.le (Real.sqrt_nonneg _)).mpr hr0 |
| 57 | _ = _ := Real.sq_sqrt hsigma.le |
| 58 | have hI : Icc (t - r ^ 2) t ⊆ I.domain := by |
| 59 | intro s hs |
| 60 | exact ⟨by linarith [hs.1, ht.1, F.lifetime_pos], hs.2.trans_lt ht.2⟩ |
| 61 | obtain ⟨out⟩ := partialFlow_ordinary_capture F P R hRicci ht0 |
| 62 | obtain ⟨Omega, hOmega, hvolume, hlength⟩ := hregion t ht out.L out.Dlength out.V p |
| 63 | have hex := ordinaryProduct_stableSet (I := I) (F := F.flow) R hRicci Cexp |
| 64 | out.L hT htau hmax.le p |
| 65 | have hbase : R.product.productCylinder.toSpacetime (⟨t, hT⟩, p) = |
| 66 | (R.product.sliceIdentification ⟨t, hT⟩ p).val := by |
| 67 | rw [R.product.productCylinder_eq, R.product.sliceIdentification_eq] |
| 68 | rw [hbase] at hex |
| 69 | obtain ⟨E, ⟨H⟩⟩ := hex |
| 70 | have C := P.metric_homothety StandardCapSpace (R.product.slices t).Point |
| 71 | (F.flow.metric t) (R.product.slices t).metricOnPoints |
| 72 | (R.product.sliceIdentification ⟨t, hT⟩) 1 zero_lt_one |
| 73 | (ordinarySlice_metricHomothety R.product ⟨t, hT⟩) |
| 74 | have hclosed := closed_cylinder_curvature_bound F.flow |
| 75 | (show t - r ^ 2 < t by nlinarith [sq_pos_of_pos hr]) hI |
| 76 | ((F.flow.metric t).ball p r) hcurv |
| 77 | obtain ⟨B⟩ := ordinaryProduct_ballCylinder (I := I) (F := F.flow) |
| 78 | R hRicci hT p hr C hI hclosed |
| 79 | obtain ⟨configuration⟩ := ordinaryProduct_configuration (I := I) (F := F.flow) |
| 80 | R hRicci hT p out E H C (partialFlow_complete F P.curvature hT) |
| 81 | hmax (show t - F.lifetime / 8 ≤ F.lifetime by linarith [ht.2]) |
| 82 | (show r ^ 2 ≤ t - F.lifetime / 8 by linarith [ht.1, F.lifetime_pos]) |
| 83 | hmem hOmega (by simpa only [hclock] using hvolume) hlength B |
| 84 | have hbound := U15.estimate (I.domain × StandardCapSpace) (fun z => z.1.val) I G t |
| 85 | (R.product.sliceIdentification ⟨t, hT⟩ p) E r (ordinaryBallInterval t r hr) |
| 86 | (ordinaryBallSource (F.flow.metric t) p r) B configuration |
| 87 | change ENNReal.ofReal (U15.kappa * r ^ 3) ≤ |
| 88 | calibratedMetricVolume (R.product.slices t).metricOnPoints |
| 89 | ((R.product.slices t).metricOnPoints.ball (R.product.sliceIdentification ⟨t, hT⟩ p) r) |
| 90 | at hbound |
| 91 | rwa [ordinarySlice_ball_volume R.product ⟨t, hT⟩ C] at hbound |
| 92 | |
| 93 | end PoincareMT.M34 |