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.InitialNormalizedPatch |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.InitialNeckMargin |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.ScalarLowerBound.ScalarPositivity |
| 5 | |
| 6 | /-! |
| 7 | # The actual initial evolving-neck alternative outside one compact set |
| 8 | |
| 9 | Morgan-Tian Theorem 12.32, pp. 326-327, with the repaired initial |
| 10 | cap boundary. M34 supplies a single fixed original patch over the whole |
| 11 | closed initial slab. Its genuine scalar normalization gives the frozen |
| 12 | time interval, and its axial margin gives disjointness from the literal |
| 13 | closed radius-(A0+4) initial ball. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | open Set |
| 20 | open scoped Manifold ContDiff Bundle Topology |
| 21 | |
| 22 | namespace PoincareMT.M35 |
| 23 | |
| 24 | /-- The exact initial evolving-neck witness exists uniformly |
| 25 | outside one original compact set, including at time zero. -/ |
| 26 | theorem exists_initial_evolving_necks {g₀ : StandardInitialMetric} |
| 27 | (E : RepairedStandardCapExistenceData g₀) {theta epsilon : ℝ} |
| 28 | (htheta : theta ∈ Ico 0 E.flow.base.lifetime) |
| 29 | (he : 0 < epsilon) (hehalf : epsilon < 1 / 2) : |
| 30 | ∃ K : Set StandardCapSpace, IsCompact K ∧ ∀ x ∉ K, ∀ t ∈ Icc 0 theta, |
| 31 | ∃ N : StandardEvolvingNeck E.atlas E.flow t epsilon x |
| 32 | (Icc (-t * (E.flow.connection t).scalarCurvature x) 0), |
| 33 | Disjoint N.patch.carrier |
| 34 | {y | g₀.metric.edist 0 y ≤ ENNReal.ofReal (g₀.cylindrical_end.radius + 4)} := by |
| 35 | obtain ⟨dn, hdn, hnormalize⟩ := exists_initial_normalized_patch_comparison E htheta he |
| 36 | obtain ⟨dm, hdm, hmargin⟩ := exists_initial_neck_margin g₀.cylindrical_end.radius |
| 37 | epsilon g₀.cylindrical_end.radius_pos.le he |
| 38 | let d := min dn dm |
| 39 | have hd : 0 < d := lt_min hdn hdm |
| 40 | obtain ⟨A⟩ := E.asymptotic theta htheta d hd |
| 41 | refine ⟨A.compact_set, A.compact, ?_⟩ |
| 42 | intro x hx t ht |
| 43 | obtain ⟨N, hN⟩ := A.patches x hx |
| 44 | obtain ⟨hc, hcsmall, hcl, hclose⟩ := |
| 45 | hnormalize d hd (min_le_left _ _) x N hN t ht |
| 46 | let Q := (E.flow.connection t).scalarCurvature x |
| 47 | let c := (Real.sqrt Q)⁻¹ |
| 48 | have htime : t ∈ Ico 0 E.flow.base.lifetime := ⟨ht.1, ht.2.trans_lt htheta.2⟩ |
| 49 | have hQ : 0 < Q := E.scalar_pos htime x |
| 50 | let M := N.axialRescale c epsilon⁻¹ hc (inv_pos.mpr he) hcl |
| 51 | have hfamily : RoundCylinderFamilyClose d (Icc 0 theta) |
| 52 | (fun u => roundCylinderPullback (E.flow.metric u) N.coordinate) := by |
| 53 | simpa only [StandardSpacetimeCylinderClose, div_one, zero_add, one_mul] using hN |
| 54 | have hzero : (0 : ℝ) ∈ Icc 0 theta := ⟨le_rfl, htheta.1⟩ |
| 55 | have hclosezero : RoundCylinderClose d 0 (roundCylinderPullback g₀.metric N.coordinate) := by |
| 56 | have hm : E.flow.metric 0 = g₀.metric := E.flow.base.initial_metric |
| 57 | rw [← hm] |
| 58 | exact ⟨hfamily.1 0 hzero, hfamily.2.choose, hfamily.2.choose_spec.1, |
| 59 | hfamily.2.choose_spec.2 0 hzero⟩ |
| 60 | obtain ⟨hcl', _hunitmargin, hdisjoint⟩ := hmargin d hd (min_le_right _ _) g₀.metric |
| 61 | g₀.connection g₀.rotation_invariant x N hclosezero c hc hcsmall |
| 62 | let N' : StandardEvolvingNeck E.atlas E.flow t epsilon x (Icc (-t * Q) 0) := { |
| 63 | time_mem := htime |
| 64 | epsilon_pos := he |
| 65 | epsilon_lt_half := hehalf |
| 66 | scalar_pos := hQ |
| 67 | patch := M |
| 68 | interval_survival := fun u hu => |
| 69 | ⟨(initial_affine_clock ht hQ hu).1.1, |
| 70 | (initial_affine_clock ht hQ hu).1.2.trans_lt htheta.2⟩ |
| 71 | close := hclose |
| 72 | } |
| 73 | exact ⟨N', hdisjoint⟩ |
| 74 | |
| 75 | /-- The frozen initial alternative follows directly from the |
| 76 | actual neck witness and its repaired closed-ball disjointness. -/ |
| 77 | theorem initial_neck_alternative_outside_compact {g₀ : StandardInitialMetric} |
| 78 | (E : RepairedStandardCapExistenceData g₀) {theta epsilon : ℝ} |
| 79 | (htheta : theta ∈ Ico 0 E.flow.base.lifetime) |
| 80 | (he : 0 < epsilon) (hehalf : epsilon < 1 / 2) : |
| 81 | ∃ K : Set StandardCapSpace, IsCompact K ∧ ∀ x ∉ K, ∀ t ∈ Icc 0 theta, |
| 82 | ∀ C : ℝ, StandardCanonicalAlternative E.atlas E.flow t x epsilon C := by |
| 83 | obtain ⟨K, hK, hnecks⟩ := exists_initial_evolving_necks E htheta he hehalf |
| 84 | refine ⟨K, hK, ?_⟩ |
| 85 | intro x hx t ht C |
| 86 | obtain ⟨N, hdisjoint⟩ := hnecks x hx t ht |
| 87 | exact StandardCanonicalAlternative.initial_neck N hdisjoint |
| 88 | |
| 89 | end PoincareMT.M35 |