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.EarlyBallVolume |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Noncollapsing.LateBallVolume |
| 3 | |
| 4 | /-! |
| 5 | # The standard-flow noncollapsing certificate |
| 6 | |
| 7 | One fixed early slab and the fixed positive-slice M15 argument cover the |
| 8 | whole half-open lifetime. The radius and positive cubic-volume constant |
| 9 | are selected before every time, center, scale and curvature hypothesis. |
| 10 | Source: Morgan-Tian Proposition 12.13, pp. 304-306. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set |
| 16 | open scoped Manifold ContDiff ENNReal |
| 17 | |
| 18 | namespace PoincareMT.M34 |
| 19 | |
| 20 | /-- Every actual maximal standard-cap flow has the frozen uniform |
| 21 | noncollapsing certificate (Proposition 12.13, pp. 304-306). -/ |
| 22 | theorem standardFlow_noncollapsingCertificate {g0 : StandardInitialMetric} |
| 23 | (F : MaximalStandardCapFlow g0) (P : M34StandardCapPredecessors) : |
| 24 | Nonempty (StandardFlowNoncollapsingCertificate F) := by |
| 25 | have hhalf : F.base.lifetime / 2 ∈ Ico 0 F.base.lifetime := by |
| 26 | constructor <;> linarith [F.base.lifetime_pos] |
| 27 | obtain ⟨rEarly, kEarly, hrEarly, hkEarly, hEarly⟩ := |
| 28 | partialFlow_early_small_ball_volume F.base P.curvature hhalf |
| 29 | obtain ⟨kLate, hkLate, hLate⟩ := partialFlow_late_small_ball_volume F.base P |
| 30 | have hsqrt : 0 < Real.sqrt (F.base.lifetime / 8) := |
| 31 | Real.sqrt_pos.mpr (by linarith [F.base.lifetime_pos]) |
| 32 | refine ⟨{ |
| 33 | radius := min rEarly (Real.sqrt (F.base.lifetime / 8)) |
| 34 | radius_pos := lt_min hrEarly hsqrt |
| 35 | kappa := min kEarly kLate |
| 36 | kappa_pos := lt_min hkEarly hkLate |
| 37 | bound := ?_ |
| 38 | }⟩ |
| 39 | intro t ht p r hr hr0 _ hcurv |
| 40 | by_cases htime : t ≤ F.base.lifetime / 2 |
| 41 | · calc |
| 42 | ENNReal.ofReal (min kEarly kLate * r ^ 3) ≤ ENNReal.ofReal (kEarly * r ^ 3) := |
| 43 | ENNReal.ofReal_le_ofReal |
| 44 | (mul_le_mul_of_nonneg_right (min_le_left _ _) (pow_nonneg hr.le _)) |
| 45 | _ ≤ _ := hEarly t ⟨ht.1, htime⟩ p r hr (hr0.trans (min_le_left _ _)) |
| 46 | · calc |
| 47 | ENNReal.ofReal (min kEarly kLate * r ^ 3) ≤ ENNReal.ofReal (kLate * r ^ 3) := |
| 48 | ENNReal.ofReal_le_ofReal |
| 49 | (mul_le_mul_of_nonneg_right (min_le_right _ _) (pow_nonneg hr.le _)) |
| 50 | _ ≤ _ := hLate t ⟨(lt_of_not_ge htime).le, ht.2⟩ p r hr |
| 51 | (hr0.trans (min_le_right _ _)) hcurv |
| 52 | |
| 53 | end PoincareMT.M34 |