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.Limits.OrdinaryLimitTopology |
| 2 | import PoincareLib.Geometry.RicciFlow.CanonicalNeighborhood.Ancient.Statement |
| 3 | |
| 4 | /-! |
| 5 | # Uniform actual neck-or-cap alternatives for ordinary ancient limits |
| 6 | |
| 7 | M27 chooses its threshold and constant before the ordinary source, |
| 8 | sequence and ancient limit. The actual projective-plane exclusion permits |
| 9 | Corollary 9.94, and limit noncompactness excludes its compact branches. |
| 10 | Source: Morgan-Tian Corollary 9.94, p. 243, and Theorem 12.28, |
| 11 | pp. 323-324; limit-canonical-alternatives.md. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open Set Filter |
| 18 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 19 | |
| 20 | namespace PoincareMT.M34 |
| 21 | |
| 22 | /-- One classification constant precedes every ordinary Euclidean source |
| 23 | and every choice of its actual ancient blow-up identification. At the |
| 24 | actual normalized limit base the only remaining alternatives are a strong |
| 25 | neck centered there or a quantitative cap whose core contains it. -/ |
| 26 | theorem ordinaryChapter11_limit_neck_or_cap (P : RepairedKappaAlternativeTheory.{0}) : |
| 27 | ∃ epsilonPrime : ℝ, 0 < epsilonPrime ∧ |
| 28 | ∀ epsilon : ℝ, 0 < epsilon → epsilon ≤ epsilonPrime → |
| 29 | ∃ C : ℝ, 0 < C ∧ |
| 30 | ∀ {I : SpacetimeInterval} |
| 31 | (F : RicciFlow 3 (EuclideanSpace ℝ (Fin 3)) I.domain) |
| 32 | (R : OrdinaryProductRicciGeometry F.metric I), |
| 33 | let G := ordinaryChapter11Flow (I := I) (F := F) R |
| 34 | ∀ (p : ℕ → G.point) (hpositive : ∀ k, 0 < G.scalar (p k)) |
| 35 | (hdiverges : Tendsto (fun k => G.scalar (p k)) atTop atTop) |
| 36 | (Conv : GeneralizedBlowupConvergence |
| 37 | (fixedFlowBlowupSequence G p hpositive hdiverges) (blowupBackwardInterval ⊤)) |
| 38 | {kappa : ℝ} (A : BlowupAncientKappaIdentification Conv.limit kappa), |
| 39 | letI := Conv.limit.carrier.topologicalSpace |
| 40 | letI := Conv.limit.carrier.measurableSpace |
| 41 | letI := Conv.limit.carrier.borelSpace |
| 42 | letI := Conv.limit.carrier.chartedSpace |
| 43 | letI := Conv.limit.carrier.isManifold |
| 44 | letI := Conv.limit.carrier.t2Space |
| 45 | letI := Conv.limit.carrier.t3Space |
| 46 | letI := Conv.limit.carrier.secondCountable |
| 47 | letI := Conv.limit.connectedSpace |
| 48 | (∃ N : StrongEvolvingNeck A.solution 0 epsilon, N.center = Conv.limit.base) ∨ |
| 49 | Nonempty (M27CanonicalCap A.solution 0 Conv.limit.base epsilon C) := by |
| 50 | obtain ⟨epsilonPrime, hPrime, hclass⟩ := P.corollary_9_94 |
| 51 | refine ⟨epsilonPrime, hPrime, ?_⟩ |
| 52 | intro epsilon hepsilon hsmall |
| 53 | obtain ⟨C, hC, hcanonical⟩ := hclass epsilon hepsilon hsmall |
| 54 | refine ⟨C, hC, ?_⟩ |
| 55 | intro I F R |
| 56 | dsimp only |
| 57 | intro p hpositive hdiverges Conv kappa A |
| 58 | let : TopologicalSpace Conv.limit.carrier.carrier := Conv.limit.carrier.topologicalSpace |
| 59 | let : MeasurableSpace Conv.limit.carrier.carrier := Conv.limit.carrier.measurableSpace |
| 60 | let : BorelSpace Conv.limit.carrier.carrier := Conv.limit.carrier.borelSpace |
| 61 | let : ChartedSpace (EuclideanSpace ℝ (Fin 3)) Conv.limit.carrier.carrier := |
| 62 | Conv.limit.carrier.chartedSpace |
| 63 | let : IsManifold (𝓡 3) ∞ Conv.limit.carrier.carrier := Conv.limit.carrier.isManifold |
| 64 | let : T2Space Conv.limit.carrier.carrier := Conv.limit.carrier.t2Space |
| 65 | let : T3Space Conv.limit.carrier.carrier := Conv.limit.carrier.t3Space |
| 66 | let : SecondCountableTopology Conv.limit.carrier.carrier := Conv.limit.carrier.secondCountable |
| 67 | let : ConnectedSpace Conv.limit.carrier.carrier := Conv.limit.connectedSpace |
| 68 | have hRP := ordinaryChapter11_limit_not_projectivePlaneLine (I := I) (F := F) R |
| 69 | p hpositive hdiverges Conv A |
| 70 | have hcompact := ordinaryChapter11_limit_not_compact (I := I) (F := F) R |
| 71 | p hpositive hdiverges Conv |
| 72 | have h := hcanonical A.solution hRP 0 le_rfl Conv.limit.base |
| 73 | cases h with |
| 74 | | neck N hcenter => exact Or.inl ⟨N, hcenter⟩ |
| 75 | | cap N => exact Or.inr ⟨N⟩ |
| 76 | | component N => exact False.elim (hcompact N.compact) |
| 77 | | round N => exact False.elim (hcompact N.compact) |
| 78 | |
| 79 | end PoincareMT.M34 |