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.CanonicalInduction.Limit.Finite.LimitFiniteRetainedInterior |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.CanonicalInduction.Limit.Noncollapse.LimitNoncollapseSource |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.CanonicalInduction.Blowup.Controls.BlowupControlsSequence |
| 4 | |
| 5 | /-! |
| 6 | # Captured strict interiors give the literal controlled base-ball cylinder |
| 7 | |
| 8 | The preserved physical source returns to the selected regular history. |
| 9 | Its actual zero-image inverse supplies the labels of the captured base |
| 10 | ball, retaining both bounds and the exact based identity. |
| 11 | MT Proposition 17.1, pp. 407-408; limit-finite-controlled-interior.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 Topology ENNReal |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT.M47 |
| 23 | |
| 24 | private theorem controlled_zero_image |
| 25 | {F : GeneralizedRicciFlowData.{u}} {C : GeneralizedSliceCarrier.{u}} |
| 26 | {origin scale B eta : ℝ} {I : Set ℝ} {U : Set C.carrier} |
| 27 | (e : GeneralizedFlowCylinder F C origin scale I U) (hU : IsOpen U) |
| 28 | (hzero : (0 : ℝ) ∈ I) |
| 29 | (hbound : ∀ s hs x, x ∈ U → |
| 30 | |F.curvatureNorm (e.pointMap s hs x)| ≤ B * scale) |
| 31 | (hnegative : ∀ s hs x, x ∈ U → |
| 32 | (F.connection (origin + s / scale)).negativeCurvaturePart |
| 33 | (e.forward s hs x) ≤ eta * scale) : |
| 34 | ∀ Y : Set (F.slice (origin + 0 / scale)).carrier, |
| 35 | (∀ y ∈ Y, ∃ x ∈ U, |
| 36 | e.pointMap 0 hzero x = (⟨origin + 0 / scale, y⟩ : F.point)) → |
| 37 | ∃ d : GeneralizedFlowCylinder F (F.slice (origin + 0 / scale)) |
| 38 | origin scale I Y, |
| 39 | (∀ hs y, y ∈ Y → |
| 40 | d.pointMap 0 hs y = (⟨origin + 0 / scale, y⟩ : F.point)) ∧ |
| 41 | (∀ s hs y, y ∈ Y → |F.curvatureNorm (d.pointMap s hs y)| ≤ B * scale) ∧ |
| 42 | (∀ s hs y, y ∈ Y → |
| 43 | (F.connection (origin + s / scale)).negativeCurvaturePart |
| 44 | (d.forward s hs y) ≤ eta * scale) := by |
| 45 | intro Y capture |
| 46 | let chart := limitRP2CylinderSliceChart e hU 0 hzero |
| 47 | have hY : Y ⊆ chart.target := by |
| 48 | intro y hy |
| 49 | obtain ⟨x, hx, hpoint⟩ := capture y hy |
| 50 | exact ⟨x, hx, eq_of_heq (Sigma.mk.inj hpoint).2⟩ |
| 51 | have hmaps : MapsTo chart.symm Y U := fun _ hy => chart.symm.map_source (hY hy) |
| 52 | let d := limitNoncollapseCylinderSource e chart.symm Y hY hmaps |
| 53 | refine ⟨d, ?_, ?_, ?_⟩ |
| 54 | · intro hs y hy |
| 55 | change (⟨origin + 0 / scale, e.forward 0 hs (e.inverse 0 hzero y)⟩ : F.point) = _ |
| 56 | exact congrArg (fun x => (⟨origin + 0 / scale, x⟩ : F.point)) |
| 57 | (e.right_inverse 0 hzero (hY hy)) |
| 58 | · intro s hs y hy |
| 59 | exact hbound s hs (chart.symm y) (hmaps hy) |
| 60 | · intro s hs y hy |
| 61 | exact hnegative s hs (chart.symm y) (hmaps hy) |
| 62 | |
| 63 | variable (F : ℕ → SurgeryFlowData.{u}) (W : ∀ k, M33RegularHistoryWindow (F k)) |
| 64 | (H : ∀ k, M33RegularHistoryData (W k)) (t : ℕ → ℝ) |
| 65 | (ht : ∀ k, t k ∈ (H k).generalized.interval) |
| 66 | (x : ∀ k, ((H k).generalized.slice (t k)).carrier) |
| 67 | (hPositive : ∀ k, 0 < ((F k).connection (t k)).scalarCurvature |
| 68 | ((H k).history.forward (t k) (ht k) (x k))) |
| 69 | (hDiverges : Tendsto (fun k => ((F k).connection (t k)).scalarCurvature |
| 70 | ((H k).history.forward (t k) (ht k) (x k))) atTop atTop) |
| 71 | |
| 72 | local notation "V" => regularHistoryBlowupSequence F W H t ht x hPositive hDiverges |
| 73 | |
| 74 | /-- A strictly longer physical source, its original generalized future, |
| 75 | and actual zero capture give the exact controlled cylinder on the base ball. -/ |
| 76 | theorem limitFinite_controlled_of_preserved_interior |
| 77 | (k : ℕ) {C : GeneralizedSliceCarrier.{u}} {U : Set C.carrier} |
| 78 | {A T b c B eta : ℝ} (hT : 0 < T) (hb : b < -T) (hU : IsOpen U) |
| 79 | (E : SurgeryFlowCylinder (F k) C (t k) ((V).scale k) (Icc b 0) U) |
| 80 | (e0 : GeneralizedFlowCylinder (H k).generalized C (t k) ((V).scale k) (Icc c 0) U) |
| 81 | (hzero : (0 : ℝ) ∈ Icc c 0) |
| 82 | (hfuture : ∀ s (hs : s ∈ Icc c 0) (hs' : s ∈ Icc b 0), ∀ z ∈ U, |
| 83 | E.forward s hs' z = (H k).history.forward (t k + s / (V).scale k) |
| 84 | (((H k).generalized.slice_nonempty_iff _).mp ⟨e0.forward s hs z⟩) |
| 85 | (e0.forward s hs z)) |
| 86 | (hbound : ∀ s hs z, z ∈ U → |
| 87 | |((F k).connection (t k + s / (V).scale k)).curvatureTensorNorm |
| 88 | (E.forward s hs z)| ≤ B * (V).scale k) |
| 89 | (hnegative : ∀ s hs z, z ∈ U → |
| 90 | ((F k).connection (t k + s / (V).scale k)).negativeCurvaturePart |
| 91 | (E.forward s hs z) ≤ eta * (V).scale k) |
| 92 | (capture : ∀ y ∈ (V).baseBall k A, ∃ z ∈ U, |
| 93 | e0.pointMap 0 hzero z = (⟨t k, y⟩ : (H k).generalized.point)) : |
| 94 | Nonempty (ControlledBlowupCylinder V k A T B eta) := by |
| 95 | obtain ⟨htime, d, hmap, _hmetric, hagree, _hmetricAgree⟩ := |
| 96 | limitFinite_preserved_history_interior (H k) (ht k) hT hb hU E e0 hfuture |
| 97 | let zero : (0 : ℝ) ∈ Icc (-T) 0 := ⟨neg_nonpos.mpr hT.le, le_rfl⟩ |
| 98 | have hnormD (s : ℝ) (hs : s ∈ Icc (-T) 0) (z : C.carrier) (hz : z ∈ U) : |
| 99 | |(H k).generalized.curvatureNorm (d.pointMap s hs z)| ≤ B * (V).scale k := by |
| 100 | change |((H k).generalized.connection (t k + s / (V).scale k)).curvatureTensorNorm |
| 101 | (d.forward s hs z)| ≤ _ |
| 102 | rw [← (H k).curvature_norm_pullback _ (htime s hs), hmap s hs z hz] |
| 103 | exact hbound s _ z hz |
| 104 | have hnegD (s : ℝ) (hs : s ∈ Icc (-T) 0) (z : C.carrier) (hz : z ∈ U) : |
| 105 | ((H k).generalized.connection (t k + s / (V).scale k)).negativeCurvaturePart |
| 106 | (d.forward s hs z) ≤ eta * (V).scale k := by |
| 107 | rw [← (H k).negative_part_pullback _ (htime s hs), hmap s hs z hz] |
| 108 | exact hnegative s _ z hz |
| 109 | have hraw := controlled_zero_image d hU zero hnormD hnegD |
| 110 | rw [show t k + 0 / (V).scale k = t k by simp] at hraw |
| 111 | obtain ⟨based, hbased, hnorm, hneg⟩ := hraw ((V).baseBall k A) (by |
| 112 | intro y hy |
| 113 | obtain ⟨z, hz, hpoint⟩ := capture y hy |
| 114 | refine ⟨z, hz, ?_⟩ |
| 115 | exact (congrArg |
| 116 | (fun w => (⟨t k + 0 / (V).scale k, w⟩ : (H k).generalized.point)) |
| 117 | (hagree 0 hzero zero z hz)).trans hpoint) |
| 118 | exact ⟨{ embedding := based |
| 119 | zero_identity := hbased |
| 120 | curvature_bound := hnorm |
| 121 | negative_curvature_bound := hneg }⟩ |
| 122 | |
| 123 | end PoincareMT.M47 |