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.Uniqueness.Imports |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.SelectedFullStaticNeck |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.NeckTipDistance |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.Blowup.Transport.TransportedNeckPatch |
| 5 | |
| 6 | /-! |
| 7 | # Actual selected neck centers lie beyond the rotational core |
| 8 | |
| 9 | Morgan-Tian Theorem 12.32, pp. 326-327. The original complete limit |
| 10 | neck transfers at its own exact epsilon and central scalar. The checked |
| 11 | tip exclusion therefore applies to its genuine image center, which is |
| 12 | the radial end center used in the bounded-tip cap selection. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open Set Filter |
| 19 | open scoped Manifold ContDiff Bundle Topology |
| 20 | |
| 21 | namespace PoincareMT.M35.OrdinaryRealization |
| 22 | |
| 23 | local notation "V" => StandardCapSpace |
| 24 | |
| 25 | /-- A fine retained limit neck gives the precise lower bound on |
| 26 | its actual image center's scalar-normalized distance from the tip. -/ |
| 27 | theorem blowupSequence_selected_neck_tip_distance : |
| 28 | ∃ delta : ℝ, 0 < delta ∧ ∀ (P : M35StandardCapPredecessors) |
| 29 | {g₀ : StandardInitialMetric} (E : RepairedStandardCapExistenceData g₀) |
| 30 | (t : ℕ → ℝ) (x : ℕ → V) |
| 31 | (ht : ∀ k, t k ∈ Ico 0 E.flow.base.lifetime) |
| 32 | (hR : Tendsto (fun k => (E.flow.connection (t k)).scalarCurvature (x k)) atTop atTop) |
| 33 | (L : GeneralizedBlowupConvergence (blowupSequence P E t x ht hR) |
| 34 | (blowupBackwardInterval ⊤)), |
| 35 | letI : TopologicalSpace L.limit.carrier.carrier := L.limit.carrier.topologicalSpace |
| 36 | letI : ChartedSpace V L.limit.carrier.carrier := L.limit.carrier.chartedSpace |
| 37 | letI : IsManifold (𝓡 3) ∞ L.limit.carrier.carrier := L.limit.carrier.isManifold |
| 38 | ∀ (N : EpsilonNeck (L.limit.flow.metric 0)), N.epsilon ≤ delta → |
| 39 | N.connection = L.limit.flow.connection 0 → IsCompact (closure N.carrier) → |
| 40 | ∀ j : ℕ, closure N.carrier ⊆ L.exhaustion.space j → |
| 41 | ∀ᶠ k in atTop, |
| 42 | let y := ((L.embedding k).forward 0 |
| 43 | ⟨neg_nonpos.mpr (L.exhaustion.time_pos k).le, le_rfl⟩ N.center).val |
| 44 | N.epsilon⁻¹ / 4 ≤ ((E.flow.metric (t (L.subsequence k))).edist 0 y).toReal * |
| 45 | Real.sqrt ((E.flow.connection (t (L.subsequence k))).scalarCurvature y) := by |
| 46 | obtain ⟨delta, hdelta, htip⟩ := exists_static_neck_tip_distance_threshold |
| 47 | refine ⟨min delta (1 / 24), lt_min hdelta (by norm_num), ?_⟩ |
| 48 | intro P g₀ E t x ht hR L |
| 49 | let : TopologicalSpace L.limit.carrier.carrier := L.limit.carrier.topologicalSpace |
| 50 | let : ChartedSpace V L.limit.carrier.carrier := L.limit.carrier.chartedSpace |
| 51 | have : IsManifold (𝓡 3) ∞ L.limit.carrier.carrier := L.limit.carrier.isManifold |
| 52 | intro N he hconnection hcompact j hstage |
| 53 | have hclose := blowupSequence_full_static_neck_close P E t x ht hR L N |
| 54 | (he.trans (min_le_right _ _)) hconnection hcompact j hstage |
| 55 | filter_upwards [hclose, eventually_ge_atTop j] with k hk hjk |
| 56 | have hzero : (0 : ℝ) ∈ Icc (-L.exhaustion.time k) 0 := |
| 57 | ⟨neg_nonpos.mpr (L.exhaustion.time_pos k).le, le_rfl⟩ |
| 58 | have htime := ((L.embedding k).forward 0 hzero L.limit.base).property |
| 59 | let phi := cylinderSpatialCoordinates E.flow.base.flow (L.embedding k) |
| 60 | (L.exhaustion.space_open k) 0 hzero htime |
| 61 | have hsub : N.carrier ⊆ phi.source := |
| 62 | subset_closure.trans (hstage.trans (L.exhaustion.space_increasing hjk)) |
| 63 | let M := N.transportedStandardPatch phi hsub |
| 64 | let S : StandardStaticNeck E.atlas (E.flow.metric (t (L.subsequence k))) |
| 65 | (E.flow.connection (t (L.subsequence k))) N.epsilon := { |
| 66 | epsilon_pos := N.epsilon_pos |
| 67 | epsilon_lt_half := N.epsilon_lt_half |
| 68 | center := phi N.center |
| 69 | scalar_pos := E.scalar_pos (ht _) _ |
| 70 | patch := M |
| 71 | close := hk |
| 72 | } |
| 73 | exact htip N.epsilon N.epsilon_pos (he.trans (min_le_left _ _)) E.atlas |
| 74 | (E.flow.metric (t (L.subsequence k))) (E.flow.connection (t (L.subsequence k))) |
| 75 | (E.rotation_invariant _ (ht _)) S |
| 76 | |
| 77 | end PoincareMT.M35.OrdinaryRealization |