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.UniformFullNeckJets |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.FullNeckJetDifference |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.Blowup.Neck.Geometry.NeckStrictMargin |
| 5 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.Blowup.Neck.Jets.NeckPullbackSmoothness |
| 6 | |
| 7 | /-! |
| 8 | # Exact-epsilon selected neck families on the full original domain |
| 9 | |
| 10 | Morgan-Tian Theorem 12.28, pp. 323-324. The compact ambient image |
| 11 | controls the full open end uniformly on a prescribed compact time |
| 12 | slab. The limit's existing strict margin retains the same epsilon. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | open Set Filter |
| 18 | open scoped Manifold ContDiff Bundle Topology |
| 19 | |
| 20 | namespace PoincareMT.M35.OrdinaryRealization |
| 21 | |
| 22 | local notation "E2" => EuclideanSpace ℝ (Fin 2) |
| 23 | local notation "E3" => EuclideanSpace ℝ (Fin 3) |
| 24 | |
| 25 | /-- Theorem 12.28: the original full-domain family comparison |
| 26 | transfers at exactly the original epsilon on its specified time set. -/ |
| 27 | theorem blowupSequence_full_neck_family_close |
| 28 | (P : M35StandardCapPredecessors) |
| 29 | {g₀ : StandardInitialMetric} (E : RepairedStandardCapExistenceData g₀) |
| 30 | (t : ℕ → ℝ) (x : ℕ → StandardCapSpace) |
| 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 E3 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)) (_he : N.epsilon ≤ 1 / 24) |
| 39 | (_hcompact : IsCompact (closure N.carrier)) |
| 40 | (j : ℕ) (_hstage : closure N.carrier ⊆ L.exhaustion.space j) |
| 41 | (I J : Set ℝ) (_hJ : IsCompact J) (_hJt : J ⊆ Iic 0) (_hIJ : I ⊆ J) |
| 42 | (_hclose : RoundCylinderFamilyClose N.epsilon I |
| 43 | (fun u => roundCylinderPullback (L.limit.flow.metric u) N.coordinate_map)), |
| 44 | let F (k : ℕ) (z : L.limit.sliceCarrier.carrier) := |
| 45 | ((L.embedding k).forward 0 |
| 46 | ⟨neg_nonpos.mpr (L.exhaustion.time_pos k).le, le_rfl⟩ z).val |
| 47 | let Q (k : ℕ) := (blowupSequence P E t x ht hR).scale (L.subsequence k) |
| 48 | ∀ᶠ k in atTop, RoundCylinderFamilyClose N.epsilon I |
| 49 | (fun u z v w => Q k * |
| 50 | roundCylinderPullback (E.flow.metric (t (L.subsequence k) + u / Q k)) |
| 51 | (F k ∘ N.coordinate_map) z v w) := by |
| 52 | let : TopologicalSpace L.limit.carrier.carrier := L.limit.carrier.topologicalSpace |
| 53 | let : ChartedSpace E3 L.limit.carrier.carrier := L.limit.carrier.chartedSpace |
| 54 | have : IsManifold (𝓡 3) ∞ L.limit.carrier.carrier := L.limit.carrier.isManifold |
| 55 | intro N he hcompact j hstage I J hJ hJt hIJ hclose |
| 56 | let F (k : ℕ) (z : L.limit.sliceCarrier.carrier) := |
| 57 | ((L.embedding k).forward 0 |
| 58 | ⟨neg_nonpos.mpr (L.exhaustion.time_pos k).le, le_rfl⟩ z).val |
| 59 | let Q (k : ℕ) := (blowupSequence P E t x ht hR).scale (L.subsequence k) |
| 60 | let B (k : ℕ) (u : ℝ) : RoundCylinderTwoTensor := fun z v w => Q k * |
| 61 | roundCylinderPullback (E.flow.metric (t (L.subsequence k) + u / Q k)) |
| 62 | (F k ∘ N.coordinate_map) z v w |
| 63 | let C (u : ℝ) := roundCylinderPullback (L.limit.flow.metric u) N.coordinate_map |
| 64 | have hsmooth (k : ℕ) (hk : j ≤ k) (u : ℝ) : |
| 65 | RoundCylinderTensorSmoothOn N.epsilon (B k u) := by |
| 66 | have htime : t (L.subsequence k) + 0 / Q k ∈ Ico 0 E.flow.base.lifetime := |
| 67 | ((L.embedding k).forward 0 |
| 68 | ⟨neg_nonpos.mpr (L.exhaustion.time_pos k).le, le_rfl⟩ L.limit.base).property |
| 69 | have hF : ContMDiffOn (𝓡 3) (𝓡 3) ∞ (F k) (L.exhaustion.space k) := |
| 70 | (sliceDiffeomorph htime).contMDiff.comp_contMDiffOn |
| 71 | ((L.embedding k).forward_smooth 0 |
| 72 | ⟨neg_nonpos.mpr (L.exhaustion.time_pos k).le, le_rfl⟩) |
| 73 | exact roundCylinderPullback_scaled_smoothOn _ _ N.epsilon (Q k) |
| 74 | (hF.comp N.coordinate_map_smooth (fun z hz => L.exhaustion.space_increasing hk |
| 75 | (hstage (subset_closure (N.coordinatePartialDiffeomorph.map_source hz))))) |
| 76 | have hCsmooth (u : ℝ) : RoundCylinderTensorSmoothOn N.epsilon (C u) := by |
| 77 | simpa only [one_mul] using roundCylinderPullback_scaled_smoothOn |
| 78 | (L.limit.flow.metric u) N.coordinate_map N.epsilon 1 N.coordinate_map_smooth |
| 79 | have hAt (D : RoundCylinderTwoTensor) (hD : RoundCylinderTensorSmoothOn N.epsilon D) |
| 80 | (q : UnitTwoSphere) (s : ℝ) (hs : s ∈ Ioo (-N.epsilon⁻¹) N.epsilon⁻¹) (a b : Fin 3) : |
| 81 | ContDiffAt ℝ ∞ (fun y => roundCylinderTensorCoefficient D (chartAt E2 q) y a b) |
| 82 | (0, s) := by |
| 83 | apply (hD q a b).contDiffAt |
| 84 | apply ((chartAt E2 q).open_target.prod isOpen_Ioo).mem_nhds |
| 85 | exact ⟨by rw [sphere_chart_target]; trivial, hs⟩ |
| 86 | obtain ⟨eta, heta, hmargin⟩ := hclose.exists_same_epsilon_perturbation_margin |
| 87 | (fun u hu => (hJt (hIJ hu)).trans_lt zero_lt_one) |
| 88 | obtain ⟨K, hK⟩ := full_cylinder_jet_difference_uniform ⌊N.epsilon⁻¹⌋₊ J hJ |
| 89 | (fun u hu => (hJt hu).trans_lt zero_lt_one) N.epsilon⁻¹ |
| 90 | (fun k => B (k + j)) (fun _ => C) |
| 91 | (fun k u _ => hAt _ (hsmooth (k + j) (Nat.le_add_left _ _) u)) |
| 92 | (fun _ u _ => hAt _ (hCsmooth u)) (by |
| 93 | intro r hr a b d hd |
| 94 | obtain ⟨K, hK⟩ := blowupSequence_full_neck_coefficient_jets_uniform P E t x ht hR L |
| 95 | N he hcompact j hstage J hJ hJt r hr a b d hd |
| 96 | exact ⟨K, fun k hk => hK (k + j) (hk.trans (Nat.le_add_right _ _))⟩) eta heta |
| 97 | filter_upwards [eventually_ge_atTop (K + j)] with k hk |
| 98 | have hjk : j ≤ k := by omega |
| 99 | have hkj : K ≤ k - j := by omega |
| 100 | apply hmargin (B k) (fun u _ => hsmooth k hjk u) |
| 101 | intro u hu z hz |
| 102 | have h := (hK (k - j) hkj u (hIJ hu) z hz).le |
| 103 | simpa only [Nat.sub_add_cancel hjk] using h |
| 104 | |
| 105 | end PoincareMT.M35.OrdinaryRealization |