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.CanonicalGeometry.CapLongControls |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Lifetime.CanonicalGeometry.CapBadPoints |
| 3 | |
| 4 | /-! |
| 5 | # The actual ancient extraction from unbounded bad cap points |
| 6 | |
| 7 | Select earlier-good bad points, fix a physical noncollapse radius on a |
| 8 | positive-time tail, construct every frozen M30 control, and apply the |
| 9 | supplied long-limit theorem at infinite horizon. The result retains |
| 10 | the selected bad points and the very same ordinary Chapter 11 flow. |
| 11 | Source: Morgan-Tian Theorems 11.8 and 12.28, pp. 276-277, 323-324; |
| 12 | M34 bad-point selection derivation, sections 4-7. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | open Set Filter |
| 18 | open scoped Manifold ContDiff Topology ENNReal |
| 19 | |
| 20 | namespace PoincareMT.M34 |
| 21 | |
| 22 | variable {g0 : StandardInitialMetric} (F : MaximalStandardCapFlow g0) |
| 23 | (P : M34StandardCapPredecessors) |
| 24 | (R : OrdinaryProductRicciGeometry F.base.flow.metric (partialFlowSpacetimeInterval F.base)) |
| 25 | |
| 26 | local notation "G" => ordinaryChapter11Flow |
| 27 | (I := partialFlowSpacetimeInterval F.base) (F := F.base.flow) R |
| 28 | |
| 29 | include P |
| 30 | |
| 31 | /-- Unbounded failure of the joint canonical and analytic property gives |
| 32 | one actual infinite-horizon M30 limit whose selected source basepoints |
| 33 | are all bad (Theorem 12.28). -/ |
| 34 | theorem standardFlow_chapter11_bad_limit (E0 : StandardCapEstimate g0) |
| 35 | (H : StandardFlowNoncollapsingCertificate F) {epsilon0 epsilon C A : ℝ} |
| 36 | (long : M30LongLimitStatement.{0} epsilon0) (hepsilon : 0 < epsilon) |
| 37 | (hepsilon0 : epsilon ≤ epsilon0) (hC : 0 < C) (hA : 0 < A) |
| 38 | (hbad : ∀ Q : ℝ, 0 < Q → ∃ p : (G).point, Q ≤ (G).scalar p ∧ |
| 39 | ¬ Chapter11GoodPoint (G) epsilon C A p) : |
| 40 | ∃ (p : ℕ → (G).point) (hpositive : ∀ k, 0 < (G).scalar (p k)) |
| 41 | (hdiverges : Tendsto (fun k => (G).scalar (p k)) atTop atTop) (r0 : ℝ), |
| 42 | 0 < r0 ∧ (∀ k, ¬ Chapter11GoodPoint (G) epsilon C A (p k)) ∧ |
| 43 | Nonempty (RepairedLongControlledBlowupConclusion |
| 44 | (fixedFlowBlowupSequence (G) p hpositive hdiverges) H.kappa r0 ⊤) := by |
| 45 | obtain ⟨p, hp, hdiverges⟩ := partialFlow_chapter11_bad_points F.base P R |
| 46 | (Chapter11GoodPoint (G) epsilon C A) hbad |
| 47 | have hpositive (k : ℕ) : 0 < (G).scalar (p k) := |
| 48 | lt_trans (by positivity) (hp k).1 |
| 49 | let r0 := min H.radius (Real.sqrt (F.base.lifetime / 4)) |
| 50 | have htail : 0 < F.base.lifetime / 4 := div_pos F.base.lifetime_pos (by norm_num) |
| 51 | have hr0 : 0 < r0 := lt_min H.radius_pos (Real.sqrt_pos.mpr htail) |
| 52 | have hradius : r0 ≤ H.radius := min_le_left _ _ |
| 53 | have hrtime : r0 ^ 2 ≤ F.base.lifetime / 4 := calc |
| 54 | r0 ^ 2 ≤ (Real.sqrt (F.base.lifetime / 4)) ^ 2 := |
| 55 | pow_le_pow_left₀ hr0.le (min_le_right _ _) _ |
| 56 | _ = F.base.lifetime / 4 := Real.sq_sqrt htail.le |
| 57 | obtain ⟨controls⟩ := standardFlow_chapter11_long_controls F P R E0 |
| 58 | p hpositive hdiverges H hr0 hradius hrtime hepsilon hC hA (fun k => (hp k).2.2) |
| 59 | exact ⟨p, hpositive, hdiverges, r0, hr0, fun k => (hp k).2.1, |
| 60 | long _ epsilon C H.kappa r0 1 ⊤ hepsilon0 controls⟩ |
| 61 | |
| 62 | end PoincareMT.M34 |