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.GoodPointAnalyticAncient |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Lifetime.Limits.GoodPointAnalyticLimits |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Lifetime.CanonicalGeometry.CapBadLimit |
| 4 | |
| 5 | /-! |
| 6 | # High-curvature goodness from actual canonical persistence |
| 7 | |
| 8 | One analytic constant is chosen before every standard flow and bad sequence. |
| 9 | Actual M30 extraction, the strict ancient readout bounds, and their geometric |
| 10 | limits contradict an all-bad selected sequence once the independent canonical |
| 11 | persistence statement is supplied. That geometric input remains explicit. |
| 12 | Source: Morgan-Tian Theorem 12.28, pp. 323-324; |
| 13 | good-point-analytic-assembly.md, section 6. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | |
| 18 | open Set Filter |
| 19 | open scoped Manifold ContDiff Topology ENNReal |
| 20 | |
| 21 | namespace PoincareMT.M34 |
| 22 | |
| 23 | section Threshold |
| 24 | |
| 25 | variable {g0 : StandardInitialMetric} (F : MaximalStandardCapFlow g0) |
| 26 | (P : M34StandardCapPredecessors) |
| 27 | (R : OrdinaryProductRicciGeometry F.base.flow.metric (partialFlowSpacetimeInterval F.base)) |
| 28 | |
| 29 | local notation "G" => ordinaryChapter11Flow |
| 30 | (I := partialFlowSpacetimeInterval F.base) (F := F.base.flow) R |
| 31 | |
| 32 | include P |
| 33 | |
| 34 | private theorem threshold_of_eventually_good (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 | (hgood : ∀ (p : ℕ → (G).point) (hp : ∀ k, 0 < (G).scalar (p k)) |
| 39 | (hd : Tendsto (fun k => (G).scalar (p k)) atTop atTop) |
| 40 | (C : GeneralizedBlowupConvergence |
| 41 | (fixedFlowBlowupSequence (G) p hp hd) (blowupBackwardInterval ⊤)) |
| 42 | (_K : M30AncientKappaIdentification C.limit H.kappa), |
| 43 | ∀ᶠ k : ℕ in atTop, Chapter11GoodPoint (G) epsilon c A (p (C.subsequence k))) : |
| 44 | ∃ Q : ℝ, 0 < Q ∧ ∀ p : (G).point, |
| 45 | Q ≤ (G).scalar p → Chapter11GoodPoint (G) epsilon c A p := by |
| 46 | by_contra h |
| 47 | push Not at h |
| 48 | obtain ⟨p, hp, hd, r0, _, hbad, ⟨D⟩⟩ := standardFlow_chapter11_bad_limit F P R E0 H |
| 49 | long hepsilon hepsilon0 hc hA h |
| 50 | obtain ⟨K⟩ := D.ancient rfl |
| 51 | obtain ⟨k, hk⟩ := (hgood p hp hd D.convergence K).exists |
| 52 | exact hbad (D.convergence.subsequence k) hk |
| 53 | |
| 54 | end Threshold |
| 55 | |
| 56 | /-- Uniform ancient analytic bounds and actual eventual canonical |
| 57 | persistence give a positive high-curvature good-point threshold. The |
| 58 | persistence premise is fixed before bad extraction (Theorem 12.28). -/ |
| 59 | theorem standardFlow_chapter11_goodPoint_threshold_of_persistence |
| 60 | (P : M34StandardCapPredecessors) : |
| 61 | ∃ A : ℝ, 0 < A ∧ ∀ {g0 : StandardInitialMetric} (F : MaximalStandardCapFlow g0) |
| 62 | (R : OrdinaryProductRicciGeometry F.base.flow.metric (partialFlowSpacetimeInterval F.base)) |
| 63 | (_E0 : StandardCapEstimate g0) (H : StandardFlowNoncollapsingCertificate F) |
| 64 | {epsilon0 epsilon c : ℝ}, |
| 65 | let G := ordinaryChapter11Flow |
| 66 | (I := partialFlowSpacetimeInterval F.base) (F := F.base.flow) R |
| 67 | M30LongLimitStatement.{0} epsilon0 → 0 < epsilon → epsilon ≤ epsilon0 → 0 < c → |
| 68 | (∀ (p : ℕ → G.point) (hp : ∀ k, 0 < G.scalar (p k)) |
| 69 | (hd : Tendsto (fun k => G.scalar (p k)) atTop atTop) |
| 70 | (C : GeneralizedBlowupConvergence |
| 71 | (fixedFlowBlowupSequence G p hp hd) (blowupBackwardInterval ⊤)) |
| 72 | (_K : M30AncientKappaIdentification C.limit H.kappa), |
| 73 | ∀ᶠ k : ℕ in atTop, Nonempty (GeneralizedCanonicalControl (F := G) |
| 74 | (p (C.subsequence k)).1 (p (C.subsequence k)).2 epsilon c)) → |
| 75 | ∃ Q : ℝ, 0 < Q ∧ ∀ p : G.point, Q ≤ G.scalar p → Chapter11GoodPoint G epsilon c A p := by |
| 76 | obtain ⟨A, hA, hbound⟩ := exists_chapter11_analytic_constant P.kappa_alternatives |
| 77 | refine ⟨A, hA, ?_⟩ |
| 78 | intro g0 F R E0 H epsilon0 epsilon c G long hepsilon hepsilon0 hc hcanonical |
| 79 | apply threshold_of_eventually_good F P R E0 H long hepsilon hepsilon0 hc hA |
| 80 | intro p hp hd C K |
| 81 | have hJ : UniqueDiffOn ℝ (blowupBackwardInterval ⊤) := by |
| 82 | rw [K.domain_eq] |
| 83 | exact uniqueDiffOn_Iic 0 |
| 84 | have hlimits := hbound C.limit K |
| 85 | exact ordinaryChapter11_eventually_goodPoint |
| 86 | (I := partialFlowSpacetimeInterval F.base) (F := F.base.flow) R p hp hd C hJ |
| 87 | hlimits.1 hlimits.2 (hcanonical p hp hd C K) |
| 88 | |
| 89 | end PoincareMT.M34 |