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.Terminal.Source.TerminalSourceRealizationHistory |
| 3 | |
| 4 | /-! |
| 5 | # Actual closed normalized flows in the retained endpoint interior |
| 6 | |
| 7 | The chosen history and original source survive the included conversion. |
| 8 | The normalized ordinary flow retains every old pullback and the full |
| 9 | curvature ceiling. MT Proposition 17.1; retained-interior AA2. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open Set |
| 16 | open scoped Manifold ContDiff Topology |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.M47 |
| 21 | |
| 22 | /-- The long physical search produces a closed ordinary flow on the same |
| 23 | open source, with actual uniform norm and original future metric readouts. -/ |
| 24 | theorem limitFinite_preserved_interior_flow |
| 25 | (P : M47Predecessors.{u}) |
| 26 | {F : SurgeryFlowData.{u}} {W : M33RegularHistoryWindow F} |
| 27 | (H : M33RegularHistoryData W) {C : GeneralizedSliceCarrier.{u}} |
| 28 | {base Q b c tau K : ℝ} (U : TopologicalSpace.Opens C.carrier) |
| 29 | (hne : (U : Set C.carrier).Nonempty) |
| 30 | (hbase : base ∈ H.generalized.interval) (htau : 0 < tau) (hb : b < -tau) |
| 31 | (E : SurgeryFlowCylinder F C base Q (Icc b 0) U) |
| 32 | (e0 : GeneralizedFlowCylinder H.generalized C base Q (Icc c 0) U) |
| 33 | (hfuture : ∀ s (hs : s ∈ Icc c 0) (hs' : s ∈ Icc b 0), ∀ x ∈ U, |
| 34 | E.forward s hs' x = H.history.forward (base + s / Q) |
| 35 | ((H.generalized.slice_nonempty_iff _).mp ⟨e0.forward s hs x⟩) |
| 36 | (e0.forward s hs x)) |
| 37 | (hcurv : ∀ s (hs : s ∈ Icc b 0), ∀ x ∈ U, |
| 38 | |(F.connection (base + s / Q)).curvatureTensorNorm (E.forward s hs x)| ≤ K * Q) : |
| 39 | ∃ G : RicciFlow 3 U (Icc (-tau) 0), |
| 40 | (∀ s (hs : s ∈ Icc (-tau) 0) (x : U), |
| 41 | (∀ v w : TangentSpace (𝓡 3) x, |
| 42 | (G.metric s).inner x v w = E.pullbackInner s ⟨hb.le.trans hs.1, hs.2⟩ x.val |
| 43 | (mfderiv (𝓡 3) (𝓡 3) (Subtype.val : U → C.carrier) x v) |
| 44 | (mfderiv (𝓡 3) (𝓡 3) (Subtype.val : U → C.carrier) x w)) ∧ |
| 45 | (G.connection s).scalarCurvature x = |
| 46 | (F.connection (base + s / Q)).scalarCurvature |
| 47 | (E.forward s ⟨hb.le.trans hs.1, hs.2⟩ x.val) / Q ∧ |
| 48 | (G.connection s).curvatureTensorNorm x = |
| 49 | (F.connection (base + s / Q)).curvatureTensorNorm |
| 50 | (E.forward s ⟨hb.le.trans hs.1, hs.2⟩ x.val) / Q) ∧ |
| 51 | (∀ s ∈ Icc (-tau) 0, ∀ x : U, |(G.connection s).curvatureTensorNorm x| ≤ K) ∧ |
| 52 | (∀ s (hs : s ∈ Icc c 0) (_hs' : s ∈ Icc (-tau) 0) (x : U), |
| 53 | ∀ v w : TangentSpace (𝓡 3) x, |
| 54 | (G.metric s).inner x v w = e0.pullbackInner s hs x.val |
| 55 | (mfderiv (𝓡 3) (𝓡 3) (Subtype.val : U → C.carrier) x v) |
| 56 | (mfderiv (𝓡 3) (𝓡 3) (Subtype.val : U → C.carrier) x w)) := by |
| 57 | obtain ⟨htime, e, hmap, hmetric, _hfuture, hfutureMetric⟩ := |
| 58 | limitFinite_preserved_history_interior H hbase htau hb U.isOpen E e0 hfuture |
| 59 | obtain ⟨G, hG⟩ := terminalSourceRealization_generalized P htau U hne e |
| 60 | have hread (s : ℝ) (hs : s ∈ Icc (-tau) 0) (x : U) : |
| 61 | (∀ v w : TangentSpace (𝓡 3) x, |
| 62 | (G.metric s).inner x v w = E.pullbackInner s ⟨hb.le.trans hs.1, hs.2⟩ x.val |
| 63 | (mfderiv (𝓡 3) (𝓡 3) (Subtype.val : U → C.carrier) x v) |
| 64 | (mfderiv (𝓡 3) (𝓡 3) (Subtype.val : U → C.carrier) x w)) ∧ |
| 65 | (G.connection s).scalarCurvature x = |
| 66 | (F.connection (base + s / Q)).scalarCurvature |
| 67 | (E.forward s ⟨hb.le.trans hs.1, hs.2⟩ x.val) / Q ∧ |
| 68 | (G.connection s).curvatureTensorNorm x = |
| 69 | (F.connection (base + s / Q)).curvatureTensorNorm |
| 70 | (E.forward s ⟨hb.le.trans hs.1, hs.2⟩ x.val) / Q := by |
| 71 | refine ⟨?_, ?_, ?_⟩ |
| 72 | · intro v w |
| 73 | exact ((hG s hs x).1 v w).trans (hmetric s hs x.val x.property _ _) |
| 74 | · rw [(hG s hs x).2.1, ← H.scalar_pullback _ (htime s hs), hmap s hs x.val x.property] |
| 75 | · rw [(hG s hs x).2.2, ← H.curvature_norm_pullback _ (htime s hs), |
| 76 | hmap s hs x.val x.property] |
| 77 | refine ⟨G, hread, ?_, ?_⟩ |
| 78 | · intro s hs x |
| 79 | rw [(hread s hs x).2.2, abs_div, abs_of_pos E.scale_pos] |
| 80 | exact (div_le_iff₀ E.scale_pos).mpr (hcurv s _ x.val x.property) |
| 81 | · intro s hs hs' x v w |
| 82 | exact ((hG s hs' x).1 v w).trans (hfutureMetric s hs hs' x.val x.property _ _) |
| 83 | |
| 84 | end PoincareMT.M47 |