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.LimitFinitePreservedEndpoint |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.CanonicalInduction.Limit.Finite.LimitFiniteInteriorFlow |
| 3 | |
| 4 | /-! |
| 5 | # Closed source extension or the retained cap stop |
| 6 | |
| 7 | The actual endpoint search and its interior realization keep the same |
| 8 | original exhaustion source and future metric. MT Proposition 17.1; |
| 9 | limit-finite-source-alternative.md, AB1. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open Set Filter |
| 16 | open scoped Manifold ContDiff Topology ENNReal |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.M47 |
| 21 | |
| 22 | variable (F : ℕ → SurgeryFlowData.{u}) (W : ∀ k, M33RegularHistoryWindow (F k)) |
| 23 | (history : ∀ k, M33RegularHistoryData (W k)) (baseTime : ℕ → ℝ) |
| 24 | (hbaseTime : ∀ k, baseTime k ∈ (history k).generalized.interval) |
| 25 | (basePoint : ∀ k, ((history k).generalized.slice (baseTime k)).carrier) |
| 26 | (hPositive : ∀ k, 0 < ((F k).connection (baseTime k)).scalarCurvature |
| 27 | ((history k).history.forward (baseTime k) (hbaseTime k) (basePoint k))) |
| 28 | (hDiverges : Tendsto (fun k => ((F k).connection (baseTime k)).scalarCurvature |
| 29 | ((history k).history.forward (baseTime k) (hbaseTime k) (basePoint k))) atTop atTop) |
| 30 | |
| 31 | local notation "V" => regularHistoryBlowupSequence F W history baseTime hbaseTime |
| 32 | basePoint hPositive hDiverges |
| 33 | |
| 34 | variable {H : ℝ≥0∞} (G : GeneralizedBlowupConvergence |
| 35 | (regularHistoryBlowupSequence F W history baseTime hbaseTime basePoint hPositive hDiverges) |
| 36 | (blowupBackwardInterval H)) |
| 37 | |
| 38 | private local instance sourceAlternativeTopology : TopologicalSpace G.limit.carrier.carrier := |
| 39 | G.limit.carrier.topologicalSpace |
| 40 | private local instance sourceAlternativeCharts : ChartedSpace |
| 41 | (EuclideanSpace ℝ (Fin 3)) G.limit.carrier.carrier := G.limit.carrier.chartedSpace |
| 42 | private local instance sourceAlternativeManifold : IsManifold (𝓡 3) ∞ G.limit.carrier.carrier := |
| 43 | G.limit.carrier.isManifold |
| 44 | |
| 45 | /-- The original finite-horizon family has a longer bounded closed source |
| 46 | flow, or retains the actual cap obstruction and every original later map. -/ |
| 47 | theorem limitFinite_eventually_source_alternative |
| 48 | (P : M47Predecessors.{u}) (S : RepairedControlledSchedulesData.{u}) |
| 49 | (B : M47ComponentAnalyticBounds.{u} S.setup.C) |
| 50 | (p : ℕ → SurgeryParameterPrefix S.constants) (O : ∀ k, SurgeryObservation (F k)) |
| 51 | (hH : 0 < H) (hfinite : H ≠ ⊤) |
| 52 | (hInitial : ∀ k, (F k).standard_initial = S.setup.standard_initial) |
| 53 | (hConstants : ∀ k, (F k).local_constants = S.constants) |
| 54 | (hParameters : ∀ k, (F k).parameters.epsilon = S.setup.epsilon ∧ |
| 55 | (F k).parameters.C = S.setup.C) |
| 56 | (hBase : ∀ k, baseTime k ∈ Ico (surgeryEpochStart (p k).i) (O k).H) |
| 57 | (hPinched : ∀ k, SurgeryFlowPinched (F k)) |
| 58 | (rNext : ℕ → ℝ) (hThreshold : ∀ k, (rNext k)⁻¹ ^ 2 ≤ (V).scale k) |
| 59 | (hEarlier : ∀ k, SurgeryCanonicalOn (F k) (Ico 0 (baseTime k)) (rNext k)) |
| 60 | (hOverlap : ∀ k, ∀ t ∈ surgeryObservationInterval (O k) ∩ |
| 61 | Ico (surgeryEpochStart ((p k).i - 1)) (O k).H, |
| 62 | (F k).parameters.delta t ≤ B.delta S.setup.standard_initial S.constants) |
| 63 | {B0 : ℝ} (hterminal : ∀ x : G.limit.carrier.carrier, |
| 64 | (G.limit.flow.connection 0).curvatureTensorNorm x ≤ B0) |
| 65 | (j : ℕ) : |
| 66 | ∃ d L : ℝ, 0 < d ∧ 1 ≤ L ∧ |
| 67 | let c := -H.toReal + d / 4 |
| 68 | let tau := H.toReal + d / 2 |
| 69 | let U : TopologicalSpace.Opens G.limit.sliceCarrier.carrier := |
| 70 | ⟨G.exhaustion.space j, G.exhaustion.space_open j⟩ |
| 71 | ∃ hc : c ∈ blowupBackwardInterval H, |
| 72 | ∀ eta : ℝ, 0 < eta → ∀ᶠ k : ℕ in atTop, |
| 73 | ∃ hI : Icc c 0 ⊆ Icc (-G.exhaustion.time k) 0, |
| 74 | G.exhaustion.space j ⊆ G.exhaustion.space k ∧ |
| 75 | ((∃ A : RicciFlow 3 U (Icc (-tau) 0), |
| 76 | (∀ s ∈ Icc (-tau) 0, ∀ x : U, |
| 77 | |(A.connection s).curvatureTensorNorm x| ≤ 13 * max (4 * L) 1) ∧ |
| 78 | (∀ s (hs : s ∈ Icc c 0) (x : U), ∀ v w : TangentSpace (𝓡 3) x, |
| 79 | (A.metric s).inner x v w = (G.embedding k).pullbackInner s (hI hs) x.val |
| 80 | (mfderiv (𝓡 3) (𝓡 3) |
| 81 | (Subtype.val : U → G.limit.carrier.carrier) x v) |
| 82 | (mfderiv (𝓡 3) (𝓡 3) |
| 83 | (Subtype.val : U → G.limit.carrier.carrier) x w))) ∨ |
| 84 | ∃ (b : ℝ) (hb : b ∈ Icc (c - d) c), |
| 85 | ∃ E : SurgeryFlowCylinder (F (G.subsequence k)) G.limit.sliceCarrier |
| 86 | (baseTime (G.subsequence k)) ((V).scale (G.subsequence k)) |
| 87 | (Icc b 0) (G.exhaustion.space j), |
| 88 | (∀ s (hs : s ∈ Icc c 0) (hs' : s ∈ Icc b 0), |
| 89 | ∀ x ∈ G.exhaustion.space j, |
| 90 | E.forward s hs' x = (history (G.subsequence k)).history.forward |
| 91 | (baseTime (G.subsequence k) + s / (V).scale (G.subsequence k)) |
| 92 | (limitNoncollapse_physical_time_mem G k s (hI hs)) |
| 93 | ((G.embedding k).forward s (hI hs) x)) ∧ |
| 94 | (∀ s (hs : s ∈ Icc c 0) (hs' : s ∈ Icc b 0), |
| 95 | ∀ x ∈ G.exhaustion.space j, ∀ v w : TangentSpace (𝓡 3) x, |
| 96 | E.pullbackInner s hs' x v w = |
| 97 | (G.embedding k).pullbackInner s (hI hs) x v w) ∧ |
| 98 | (∀ s (hs : s ∈ Icc b 0), ∀ x ∈ G.exhaustion.space j, |
| 99 | ((F (G.subsequence k)).connection |
| 100 | (baseTime (G.subsequence k) + s / (V).scale (G.subsequence k))).scalarCurvature |
| 101 | (E.forward s hs x) ≤ 4 * L * (V).scale (G.subsequence k) ∧ |
| 102 | |((F (G.subsequence k)).connection |
| 103 | (baseTime (G.subsequence k) + |
| 104 | s / (V).scale (G.subsequence k))).curvatureTensorNorm |
| 105 | (E.forward s hs x)| ≤ (13 * max (4 * L) 1) * (V).scale (G.subsequence k) ∧ |
| 106 | ((F (G.subsequence k)).connection |
| 107 | (baseTime (G.subsequence k) + |
| 108 | s / (V).scale (G.subsequence k))).negativeCurvaturePart |
| 109 | (E.forward s hs x) ≤ eta * (V).scale (G.subsequence k)) ∧ |
| 110 | ∃ hEvent : baseTime (G.subsequence k) + b / (V).scale (G.subsequence k) ∈ |
| 111 | (F (G.subsequence k)).surgery_times, |
| 112 | ∀ [Nonempty ((F (G.subsequence k)).slice |
| 113 | (baseTime (G.subsequence k) + b / (V).scale (G.subsequence k))).carrier], |
| 114 | ∃ i : Fin ((F (G.subsequence k)).event |
| 115 | (baseTime (G.subsequence k) + |
| 116 | b / (V).scale (G.subsequence k)) hEvent).cap_count, |
| 117 | Set.Nonempty (E.forward b ⟨le_rfl, hb.2.trans hc.1⟩ '' |
| 118 | G.exhaustion.space j ∩ |
| 119 | (((F (G.subsequence k)).event |
| 120 | (baseTime (G.subsequence k) + b / (V).scale (G.subsequence k)) |
| 121 | hEvent).caps i).carrier)) := by |
| 122 | obtain ⟨d, L, hd, hL, hc, hsearch⟩ := |
| 123 | limitFinite_eventually_preserved_endpoint_search F W history baseTime hbaseTime |
| 124 | basePoint hPositive hDiverges G P S B p O hH hfinite hInitial hConstants |
| 125 | hParameters hBase hPinched rNext hThreshold hEarlier hOverlap hterminal j |
| 126 | let c := -H.toReal + d / 4 |
| 127 | let tau := H.toReal + d / 2 |
| 128 | let U : TopologicalSpace.Opens G.limit.sliceCarrier.carrier := |
| 129 | ⟨G.exhaustion.space j, G.exhaustion.space_open j⟩ |
| 130 | have htau : 0 < tau := by |
| 131 | dsimp only [tau] |
| 132 | linarith [ENNReal.toReal_nonneg (a := H)] |
| 133 | have hctau : -tau ≤ c := by dsimp only [tau, c]; linarith |
| 134 | refine ⟨d, L, hd, hL, hc, ?_⟩ |
| 135 | intro eta heta |
| 136 | filter_upwards [hsearch eta heta] with k hk |
| 137 | obtain ⟨hI, hspace, b, hb, E, hmap, hmetric, hbounds, hstop⟩ := hk |
| 138 | refine ⟨hI, hspace, ?_⟩ |
| 139 | rcases hstop with hlong | hcap |
| 140 | · have hb' : b < -tau := by dsimp only [tau]; linarith only [hlong] |
| 141 | let e0 : GeneralizedFlowCylinder (history (G.subsequence k)).generalized |
| 142 | G.limit.sliceCarrier (baseTime (G.subsequence k)) ((V).scale (G.subsequence k)) |
| 143 | (Icc c 0) (U : Set G.limit.sliceCarrier.carrier) := (G.embedding k).restrict hI hspace |
| 144 | obtain ⟨A, _hread, hcurv, hfuture⟩ := limitFinite_preserved_interior_flow |
| 145 | P (history (G.subsequence k)) (C := G.limit.sliceCarrier) |
| 146 | (Q := (V).scale (G.subsequence k)) (c := c) |
| 147 | U ⟨G.limit.base, G.exhaustion.base_mem j⟩ |
| 148 | (hbaseTime (G.subsequence k)) htau hb' E e0 |
| 149 | (fun s hs hs' x hx => hmap s hs hs' x hx) |
| 150 | (fun s hs x hx => (hbounds s hs x hx).2.1) |
| 151 | refine Or.inl ⟨A, hcurv, ?_⟩ |
| 152 | intro s hs x v w |
| 153 | exact hfuture s hs ⟨hctau.trans hs.1, hs.2⟩ x v w |
| 154 | · exact Or.inr ⟨b, hcap.1, E, hmap, hmetric, hbounds, hcap.2⟩ |
| 155 | |
| 156 | end PoincareMT.M47 |