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.Topology.Manifold.Poincare.Final.Compatibility.SourceNames |
| 2 | import PoincareLib.Topology.Manifold.Poincare.Final.Compatibility.Metric |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.CanonicalInduction.Limit.Finite.LimitFiniteRetainedBall |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.CanonicalInduction.Limit.Finite.LimitFiniteOldSlabBound |
| 5 | import PoincareLib.Geometry.RicciFlow.Surgery.CanonicalInduction.Limit.Finite.LimitFiniteUniformSearch |
| 6 | import PoincareLib.Geometry.RicciFlow.Surgery.CanonicalInduction.Limit.Finite.LimitFiniteUniformCapExclusion |
| 7 | |
| 8 | /-! |
| 9 | # The actual uniform endpoint extension |
| 10 | |
| 11 | The old M30 controls and retained endpoint balls supply one preserved |
| 12 | search with constants before every radius and error. The original finite |
| 13 | cap budget removes its cap alternative without changing its source maps. |
| 14 | MT Proposition 17.1, pp. 407-408; uniform-application, UA1-UA5. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | |
| 20 | open Set Filter |
| 21 | open scoped Manifold ContDiff Topology ENNReal |
| 22 | |
| 23 | universe u |
| 24 | |
| 25 | namespace PoincareMT.M47 |
| 26 | |
| 27 | variable (F : ℕ → SurgeryFlowData.{u}) (W : ∀ k, M33RegularHistoryWindow (F k)) |
| 28 | (history : ∀ k, M33RegularHistoryData (W k)) (baseTime : ℕ → ℝ) |
| 29 | (hbaseTime : ∀ k, baseTime k ∈ (history k).generalized.interval) |
| 30 | (basePoint : ∀ k, ((history k).generalized.slice (baseTime k)).carrier) |
| 31 | (hPositive : ∀ k, 0 < ((F k).connection (baseTime k)).scalarCurvature |
| 32 | ((history k).history.forward (baseTime k) (hbaseTime k) (basePoint k))) |
| 33 | (hDiverges : Tendsto (fun k => ((F k).connection (baseTime k)).scalarCurvature |
| 34 | ((history k).history.forward (baseTime k) (hbaseTime k) (basePoint k))) atTop atTop) |
| 35 | |
| 36 | local notation "V" => regularHistoryBlowupSequence F W history baseTime hbaseTime |
| 37 | basePoint hPositive hDiverges |
| 38 | |
| 39 | variable {H : ℝ≥0∞} (G : GeneralizedBlowupConvergence |
| 40 | (regularHistoryBlowupSequence F W history baseTime hbaseTime basePoint hPositive hDiverges) |
| 41 | (blowupBackwardInterval H)) |
| 42 | |
| 43 | private local instance uniformApplicationTopology : TopologicalSpace G.limit.carrier.carrier := |
| 44 | G.limit.carrier.topologicalSpace |
| 45 | private local instance uniformApplicationCharts : ChartedSpace |
| 46 | (EuclideanSpace ℝ (Fin 3)) G.limit.carrier.carrier := G.limit.carrier.chartedSpace |
| 47 | private local instance uniformApplicationManifold : IsManifold (𝓡 3) ∞ G.limit.carrier.carrier := |
| 48 | G.limit.carrier.isManifold |
| 49 | |
| 50 | variable (sigma etaIndex : ℕ → ℕ) |
| 51 | |
| 52 | local notation "X" => G.limit.sliceCarrier.carrier |
| 53 | local notation "qIndex" => (fun k => sigma (etaIndex k)) |
| 54 | local notation "n" => (fun k => G.subsequence (sigma (etaIndex k))) |
| 55 | local notation "Q" => (fun k => GeneralizedBlowupSequence.scale |
| 56 | (regularHistoryBlowupSequence F W history baseTime hbaseTime basePoint hPositive hDiverges) |
| 57 | (G.subsequence (sigma (etaIndex k)))) |
| 58 | local notation "c" => (-H.toReal) |
| 59 | local notation "g" => (G.limit.flow.metric 0) |
| 60 | |
| 61 | /-- The actual retained balls extend by one positive duration fixed before |
| 62 | radius and error, with uniform curvature and every original old readout. |
| 63 | MT Proposition 17.1, pp. 407-408. -/ |
| 64 | theorem limitFinite_eventually_uniform_endpoint_extension |
| 65 | (P : M47Predecessors.{u}) (S : RepairedControlledSchedulesData.{u}) |
| 66 | (B : M47ComponentAnalyticBounds.{u} S.setup.C) |
| 67 | (controls : M30GeometricLongControls V H) (hfinite : H ≠ ⊤) |
| 68 | (hsigma : StrictMono sigma) (hetaIndex : StrictMono etaIndex) |
| 69 | (p : ℕ → SurgeryParameterPrefix S.constants) (O : ∀ k, SurgeryObservation (F k)) |
| 70 | (hInitial : ∀ k, (F k).standard_initial = S.setup.standard_initial) |
| 71 | (hConstants : ∀ k, (F k).local_constants = S.constants) |
| 72 | (hC : ∀ k, (F k).parameters.C = S.setup.C) |
| 73 | (hBase : ∀ k, baseTime k ∈ Ico (surgeryEpochStart (p k).i) (O k).H) |
| 74 | (hPinched : ∀ k, SurgeryFlowPinched (F k)) |
| 75 | (rNext : ℕ → ℝ) (hThreshold : ∀ k, (rNext k)⁻¹ ^ 2 ≤ (V).scale k) |
| 76 | (hEarlier : ∀ k, SurgeryCanonicalOn (F k) (Ico 0 (baseTime k)) (rNext k)) |
| 77 | (hOverlap : ∀ k, ∀ t ∈ surgeryObservationInterval (O k) ∩ |
| 78 | Ico (surgeryEpochStart ((p k).i - 1)) (O k).H, |
| 79 | (F k).parameters.delta t ≤ B.delta S.setup.standard_initial S.constants) |
| 80 | (hbad : ∀ k, ¬ SurgeryCanonicalControl (F k) (baseTime k) |
| 81 | ((history k).history.forward (baseTime k) (hbaseTime k) (basePoint k)) |
| 82 | (F k).parameters.epsilon (F k).parameters.C) |
| 83 | (psi : ∀ k, PartialDiffeomorph (𝓡 3) (𝓡 3) X |
| 84 | ((F (n k)).slice (baseTime (n k) + c / Q k)).carrier ∞) |
| 85 | (L : ℝ) (hL : 1 ≤ L) |
| 86 | (hballs : ∀ R : ℝ, 0 < R → |
| 87 | let U := (g).ball G.limit.base R |
| 88 | ∀ᶠ k : ℕ in atTop, U ⊆ G.exhaustion.space (qIndex k) ∧ |
| 89 | ∃ e0 : SurgeryFlowCylinder (F (n k)) G.limit.sliceCarrier |
| 90 | (baseTime (n k)) (Q k) (Icc c 0) U, |
| 91 | EqOn (psi k) (e0.forward c ⟨le_rfl, neg_nonpos.mpr ENNReal.toReal_nonneg⟩) U ∧ |
| 92 | (∀ s (hs : s ∈ Icc c 0) (hsG : s ∈ Icc (-G.exhaustion.time (qIndex k)) 0), |
| 93 | ∀ x ∈ U, e0.forward s hs x = (history (n k)).history.forward |
| 94 | (baseTime (n k) + s / Q k) |
| 95 | (limitNoncollapse_physical_time_mem G (qIndex k) s hsG) |
| 96 | ((G.embedding (qIndex k)).forward s hsG x)) ∧ |
| 97 | (∀ s (hs : s ∈ Icc c 0) (hsG : s ∈ Icc (-G.exhaustion.time (qIndex k)) 0), |
| 98 | ∀ x ∈ U, ∀ v w : TangentSpace (𝓡 3) x, |
| 99 | e0.pullbackInner s hs x v w = (G.embedding (qIndex k)).pullbackInner s hsG x v w) ∧ |
| 100 | (∀ x ∈ U, |
| 101 | ((F (n k)).connection (baseTime (n k) + c / Q k)).scalarCurvature |
| 102 | (e0.forward c ⟨le_rfl, neg_nonpos.mpr ENNReal.toReal_nonneg⟩ x) ≤ L * Q k) ∧ |
| 103 | (∀ x ∈ U, ∀ v : TangentSpace (𝓡 3) x, |
| 104 | e0.pullbackInner 0 ⟨neg_nonpos.mpr ENNReal.toReal_nonneg, le_rfl⟩ x v v ≤ |
| 105 | 2 * (g).inner x v v) ∧ |
| 106 | ((⟨baseTime (n k) + 0 / Q k, |
| 107 | e0.forward 0 ⟨neg_nonpos.mpr ENNReal.toReal_nonneg, le_rfl⟩ G.limit.base⟩ : |
| 108 | Σ t, ((F (n k)).slice t).carrier) = |
| 109 | ⟨baseTime (n k), (history (n k)).history.forward |
| 110 | (baseTime (n k)) (hbaseTime (n k)) (basePoint (n k))⟩)) |
| 111 | (capBudget : ∀ j : ℕ, ∀ᶠ k : ℕ in atTop, |
| 112 | ∀ (C0 : GeneralizedSliceCarrier.{u}) {U0 : Set C0.carrier}, IsOpen U0 → |
| 113 | ∀ {a : ℝ} (ha : a ∈ Ico (-((j : ℝ) + 1)) 0), |
| 114 | ∀ e : SurgeryFlowCylinder (F (n k)) C0 (baseTime (n k)) (Q k) (Icc a 0) U0, |
| 115 | (∀ s (hs : s ∈ Icc a 0), ∀ x ∈ U0, |
| 116 | ((F (n k)).connection (baseTime (n k) + s / Q k)).scalarCurvature |
| 117 | (e.forward s hs x) ≤ ((j : ℝ) + 1) * Q k) → |
| 118 | let bottom : a ∈ Icc a 0 := ⟨le_rfl, ha.2.le⟩ |
| 119 | let zero : (0 : ℝ) ∈ Icc a 0 := ⟨ha.2.le, le_rfl⟩ |
| 120 | let tbirth := baseTime (n k) + a / Q k |
| 121 | ∀ (hEvent : tbirth ∈ (F (n k)).surgery_times), |
| 122 | ∀ [Nonempty ((F (n k)).slice tbirth).carrier], |
| 123 | ∀ (i : Fin ((F (n k)).event tbirth hEvent).cap_count) (contact : C0.carrier), |
| 124 | contact ∈ U0 → |
| 125 | e.forward a bottom contact ∈ (((F (n k)).event tbirth hEvent).caps i).carrier → |
| 126 | (∀ x ∈ U0, ((F (n k)).metric tbirth).edist |
| 127 | (e.forward a bottom contact) (e.forward a bottom x) ≤ |
| 128 | ENNReal.ofReal (((j : ℝ) + 1) / Real.sqrt (Q k))) → |
| 129 | ∀ y ∈ U0, |
| 130 | ((F (n k)).connection (baseTime (n k) + 0 / Q k)).scalarCurvature |
| 131 | (e.forward 0 zero y) = Q k → |
| 132 | SurgeryCanonicalControl (F (n k)) (baseTime (n k) + 0 / Q k) |
| 133 | (e.forward 0 zero y) (F (n k)).parameters.epsilon (F (n k)).parameters.C) : |
| 134 | ∃ d Bold : ℝ, 0 < d ∧ d ≤ H.toReal / 4 ∧ |
| 135 | 64 * blowupAnalyticConstant S B * L * (4 * d) ≤ 1 ∧ 0 ≤ Bold ∧ |
| 136 | let Bplus := max (13 * max (4 * L) 1) Bold |
| 137 | ∀ R : ℝ, 0 < R → ∀ err : ℝ, 0 < err → |
| 138 | let U := (g).ball G.limit.base R |
| 139 | ∀ᶠ k : ℕ in atTop, |
| 140 | ∃ b, ∃ hb : b ∈ Icc (-(H.toReal + 4 * d)) c, |
| 141 | ∃ E : SurgeryFlowCylinder (F (n k)) G.limit.sliceCarrier |
| 142 | (baseTime (n k)) (Q k) (Icc b 0) U, |
| 143 | U ⊆ G.exhaustion.space (qIndex k) ∧ |
| 144 | (∀ hzero : (0 : ℝ) ∈ Icc b 0, ∀ x ∈ U, |
| 145 | E.forward 0 hzero x = (history (n k)).history.forward |
| 146 | (baseTime (n k) + 0 / Q k) |
| 147 | (limitNoncollapse_physical_time_mem G (qIndex k) 0 |
| 148 | ⟨neg_nonpos.mpr (G.exhaustion.time_pos (qIndex k)).le, le_rfl⟩) |
| 149 | ((G.embedding (qIndex k)).forward 0 |
| 150 | ⟨neg_nonpos.mpr (G.exhaustion.time_pos (qIndex k)).le, le_rfl⟩ x)) ∧ |
| 151 | (∀ hc : c ∈ Icc b 0, EqOn (psi k) (E.forward c hc) U) ∧ |
| 152 | (∀ s (_hs0 : s ∈ Icc c 0) (hsE : s ∈ Icc b 0) |
| 153 | (hsG : s ∈ Icc (-G.exhaustion.time (qIndex k)) 0), |
| 154 | ∀ x ∈ U, E.forward s hsE x = (history (n k)).history.forward |
| 155 | (baseTime (n k) + s / Q k) |
| 156 | (limitNoncollapse_physical_time_mem G (qIndex k) s hsG) |
| 157 | ((G.embedding (qIndex k)).forward s hsG x)) ∧ |
| 158 | (∀ s (_hs0 : s ∈ Icc c 0) (hsE : s ∈ Icc b 0) |
| 159 | (hsG : s ∈ Icc (-G.exhaustion.time (qIndex k)) 0), |
| 160 | ∀ x ∈ U, ∀ v w : TangentSpace (𝓡 3) x, |
| 161 | E.pullbackInner s hsE x v w = |
| 162 | (G.embedding (qIndex k)).pullbackInner s hsG x v w) ∧ |
| 163 | (∀ hc : c ∈ Icc b 0, ∀ x ∈ U, |
| 164 | ((F (n k)).connection (baseTime (n k) + c / Q k)).scalarCurvature |
| 165 | (E.forward c hc x) ≤ L * Q k) ∧ |
| 166 | (∀ s (hs : s ∈ Icc b 0), ∀ x ∈ U, |
| 167 | |((F (n k)).connection (baseTime (n k) + s / Q k)).curvatureTensorNorm |
| 168 | (E.forward s hs x)| ≤ Bplus * Q k ∧ |
| 169 | ((F (n k)).connection (baseTime (n k) + s / Q k)).negativeCurvaturePart |
| 170 | (E.forward s hs x) ≤ err * Q k) ∧ |
| 171 | (∀ x ∈ U, ∀ v : TangentSpace (𝓡 3) x, |
| 172 | E.pullbackInner 0 ⟨hb.2.trans (neg_nonpos.mpr ENNReal.toReal_nonneg), le_rfl⟩ |
| 173 | x v v ≤ 2 * (g).inner x v v) ∧ |
| 174 | ((⟨baseTime (n k) + 0 / Q k, |
| 175 | E.forward 0 ⟨hb.2.trans (neg_nonpos.mpr ENNReal.toReal_nonneg), le_rfl⟩ |
| 176 | G.limit.base⟩ : Σ t, ((F (n k)).slice t).carrier) = |
| 177 | ⟨baseTime (n k), (history (n k)).history.forward |
| 178 | (baseTime (n k)) (hbaseTime (n k)) (basePoint (n k))⟩) ∧ |
| 179 | b < -(H.toReal + 2 * d) := by |
| 180 | let : T2Space G.limit.carrier.carrier := G.limit.carrier.t2Space |
| 181 | let : T3Space G.limit.carrier.carrier := G.limit.carrier.t3Space |
| 182 | have hT : 0 < H.toReal := ENNReal.toReal_pos controls.horizon_pos.ne' hfinite |
| 183 | let Aanalytic := blowupAnalyticConstant S B |
| 184 | have hAanalytic : 0 < Aanalytic := blowupAnalyticConstant_pos S B |
| 185 | have hLpos : 0 < L := zero_lt_one.trans_le hL |
| 186 | let d := min (H.toReal / 4) (1 / (256 * Aanalytic * L)) |
| 187 | have hd : 0 < d := by dsimp only [d]; positivity |
| 188 | have hdT : d ≤ H.toReal / 4 := min_le_left _ _ |
| 189 | have hdtime : d ≤ 1 / (256 * Aanalytic * L) := min_le_right _ _ |
| 190 | have hshort : 64 * blowupAnalyticConstant S B * L * (4 * d) ≤ 1 := by |
| 191 | have hprod : 0 < 256 * Aanalytic * L := by positivity |
| 192 | have h := (le_div_iff₀ hprod).mp hdtime |
| 193 | change 64 * Aanalytic * L * (4 * d) ≤ 1 |
| 194 | nlinarith only [h] |
| 195 | let Told := H.toReal - d |
| 196 | have hTold : 0 < Told := by dsimp only [Told]; linarith only [hT, hdT] |
| 197 | have hToldH : ENNReal.ofReal Told < H := by |
| 198 | apply (ENNReal.ofReal_lt_iff_lt_toReal hTold.le hfinite).mpr |
| 199 | dsimp only [Told] |
| 200 | linarith only [hd] |
| 201 | obtain ⟨Bold, hBold, oldControls⟩ := controls.cylinders Told hTold hToldH |
| 202 | let Bplus := max (13 * max (4 * L) 1) Bold |
| 203 | have hBplus : 0 ≤ Bplus := hBold.trans (le_max_right _ _) |
| 204 | let window := H.toReal + 4 * d |
| 205 | have hwindow : 0 ≤ window := by dsimp only [window]; positivity |
| 206 | have hcneg : c < 0 := neg_neg_of_pos hT |
| 207 | have hc2 : c + 2 * d ≤ 0 := by linarith only [hT, hdT] |
| 208 | have hcOld : c ≤ -Told := by dsimp only [Told]; linarith only [hd] |
| 209 | have hbuffer : -window ≤ c - 4 * d := by dsimp only [window]; linarith |
| 210 | have hn : StrictMono n := G.subsequence_strictMono.comp (hsigma.comp hetaIndex) |
| 211 | have hQtail := (V).scalar_diverges.comp hn.tendsto_atTop |
| 212 | have hQ (k : ℕ) : 0 < Q k := (V).base_scalar_pos (n k) |
| 213 | let zeroG : ∀ k, (0 : ℝ) ∈ Icc (-G.exhaustion.time (qIndex k)) 0 := |
| 214 | fun k => ⟨neg_nonpos.mpr (G.exhaustion.time_pos (qIndex k)).le, le_rfl⟩ |
| 215 | let zero0 : (0 : ℝ) ∈ Icc c 0 := ⟨hcneg.le, le_rfl⟩ |
| 216 | let bottom0 : c ∈ Icc c 0 := ⟨le_rfl, hcneg.le⟩ |
| 217 | refine ⟨d, Bold, hd, hdT, hshort, hBold, ?_⟩ |
| 218 | change ∀ R : ℝ, 0 < R → ∀ err : ℝ, 0 < err → _ |
| 219 | intro R hR |
| 220 | let U := (g).ball G.limit.base R |
| 221 | have hU : IsOpen U := M04.initial_ball_isOpen g G.limit.base R |
| 222 | have hbaseU : G.limit.base ∈ U := by |
| 223 | change (g).edist G.limit.base G.limit.base < ENNReal.ofReal R |
| 224 | rw [M36.metric_edist_self] |
| 225 | exact ENNReal.ofReal_pos.mpr hR |
| 226 | let Retain : ∀ k b, SurgeryFlowCylinder (F (n k)) G.limit.sliceCarrier |
| 227 | (baseTime (n k)) (Q k) (Icc b 0) U → Prop := fun k b E => |
| 228 | U ⊆ G.exhaustion.space (qIndex k) ∧ |
| 229 | (∀ hzero : (0 : ℝ) ∈ Icc b 0, ∀ x ∈ U, |
| 230 | E.forward 0 hzero x = (history (n k)).history.forward |
| 231 | (baseTime (n k) + 0 / Q k) |
| 232 | (limitNoncollapse_physical_time_mem G (qIndex k) 0 (zeroG k)) |
| 233 | ((G.embedding (qIndex k)).forward 0 (zeroG k) x)) ∧ |
| 234 | (∀ hc : c ∈ Icc b 0, EqOn (psi k) (E.forward c hc) U) ∧ |
| 235 | (∀ s (_hs0 : s ∈ Icc c 0) (hsE : s ∈ Icc b 0) |
| 236 | (hsG : s ∈ Icc (-G.exhaustion.time (qIndex k)) 0), |
| 237 | ∀ x ∈ U, E.forward s hsE x = (history (n k)).history.forward |
| 238 | (baseTime (n k) + s / Q k) (limitNoncollapse_physical_time_mem G (qIndex k) s hsG) |
| 239 | ((G.embedding (qIndex k)).forward s hsG x)) ∧ |
| 240 | (∀ s (_hs0 : s ∈ Icc c 0) (hsE : s ∈ Icc b 0) |
| 241 | (hsG : s ∈ Icc (-G.exhaustion.time (qIndex k)) 0), |
| 242 | ∀ x ∈ U, ∀ v w : TangentSpace (𝓡 3) x, |
| 243 | E.pullbackInner s hsE x v w = (G.embedding (qIndex k)).pullbackInner s hsG x v w) ∧ |
| 244 | ∀ hc : c ∈ Icc b 0, ∀ x ∈ U, |
| 245 | ((F (n k)).connection (baseTime (n k) + c / Q k)).scalarCurvature |
| 246 | (E.forward c hc x) ≤ L * Q k |
| 247 | have hsearch : ∀ err : ℝ, 0 < err → ∀ᶠ k : ℕ in atTop, |
| 248 | ∃ b, ∃ hb : b ∈ Icc (c - 4 * d) c, |
| 249 | ∃ E : SurgeryFlowCylinder (F (n k)) G.limit.sliceCarrier |
| 250 | (baseTime (n k)) (Q k) (Icc b 0) U, |
| 251 | Retain k b E ∧ |
| 252 | (∀ s (hs : s ∈ Icc b 0), ∀ x ∈ U, |
| 253 | |((F (n k)).connection (baseTime (n k) + s / Q k)).curvatureTensorNorm |
| 254 | (E.forward s hs x)| ≤ Bplus * Q k ∧ |
| 255 | ((F (n k)).connection (baseTime (n k) + s / Q k)).negativeCurvaturePart |
| 256 | (E.forward s hs x) ≤ err * Q k) ∧ |
| 257 | (∀ x ∈ U, ∀ v : TangentSpace (𝓡 3) x, |
| 258 | E.pullbackInner 0 ⟨hb.2.trans hcneg.le, le_rfl⟩ x v v ≤ 2 * (g).inner x v v) ∧ |
| 259 | ((⟨baseTime (n k) + 0 / Q k, |
| 260 | E.forward 0 ⟨hb.2.trans hcneg.le, le_rfl⟩ G.limit.base⟩ : |
| 261 | Σ t, ((F (n k)).slice t).carrier) = |
| 262 | ⟨baseTime (n k), (history (n k)).history.forward |
| 263 | (baseTime (n k)) (hbaseTime (n k)) (basePoint (n k))⟩) ∧ |
| 264 | (b < c - 2 * d ∨ |
| 265 | ∃ hEvent : baseTime (n k) + b / Q k ∈ (F (n k)).surgery_times, |
| 266 | ∀ [Nonempty ((F (n k)).slice (baseTime (n k) + b / Q k)).carrier], |
| 267 | ∃ i : Fin ((F (n k)).event (baseTime (n k) + b / Q k) hEvent).cap_count, |
| 268 | Set.Nonempty (E.forward b ⟨le_rfl, hb.2.trans hcneg.le⟩ '' U ∩ |
| 269 | (((F (n k)).event (baseTime (n k) + b / Q k) hEvent).caps i).carrier)) := by |
| 270 | intro err herr |
| 271 | have hcontrolled := hn.tendsto_atTop.eventually |
| 272 | (oldControls (2 * R) (mul_pos two_pos hR) err herr) |
| 273 | filter_upwards [hballs R hR, hcontrolled, |
| 274 | hQtail.eventually (eventually_ge_atTop (64 * (window + 1))), |
| 275 | hQtail.eventually (eventually_ge_atTop B.curvature_threshold), |
| 276 | hQtail.eventually (eventually_ge_atTop (blowupPinchingThreshold (4 * L) err))] |
| 277 | with k hk hcontrolled hscale hlarge hpinching |
| 278 | obtain ⟨hsource, e0, hpsi, hmap, hinner, hscalar, hzeroInner, hpoint⟩ := hk |
| 279 | obtain ⟨Ck⟩ := hcontrolled |
| 280 | have hquadratic : ∀ x ∈ U, ∀ v : TangentSpace (𝓡 3) x, |
| 281 | (G.embedding (qIndex k)).pullbackInner 0 (zeroG k) x v v ≤ |
| 282 | 2 * (g).inner x v v := by |
| 283 | intro x hx v |
| 284 | rw [← hinner 0 zero0 (zeroG k) x hx v v] |
| 285 | exact hzeroInner x hx v |
| 286 | have hOld0 := limitFinite_preserved_future_bound_of_controlled F W history baseTime |
| 287 | hbaseTime basePoint hPositive hDiverges G (qIndex k) hTold hR hcOld hsource e0 |
| 288 | (hmap 0 zero0 (zeroG k)) hquadratic Ck |
| 289 | have hOld : ∀ s (hs : s ∈ Icc (c + d) 0), ∀ x ∈ U, |
| 290 | |((F (n k)).connection (baseTime (n k) + s / Q k)).curvatureTensorNorm |
| 291 | (e0.forward s ⟨by linarith only [hs.1, hd], hs.2⟩ x)| ≤ Bold * Q k ∧ |
| 292 | ((F (n k)).connection (baseTime (n k) + s / Q k)).negativeCurvaturePart |
| 293 | (e0.forward s ⟨by linarith only [hs.1, hd], hs.2⟩ x) ≤ err * Q k := by |
| 294 | intro s hs x hx |
| 295 | have hsOld : s ∈ Icc (-Told) 0 := by |
| 296 | dsimp only [Told] |
| 297 | exact ⟨by linarith only [hs.1], hs.2⟩ |
| 298 | exact hOld0 s hsOld x hx |
| 299 | have hpast : SurgeryCanonicalOn (F (n k)) |
| 300 | (surgeryObservationInterval (O (n k)) ∩ Iio (baseTime (n k))) (rNext (n k)) := |
| 301 | fun t ht => hEarlier (n k) t ⟨ht.1.1, ht.2⟩ |
| 302 | have search := limitFinite_exists_uniform_preserved_search S B (p (n k)) (O (n k)) |
| 303 | (hInitial (n k)) (hConstants (n k)) (hC (n k)) (hBase (n k)) hwindow hscale hlarge |
| 304 | (hThreshold (n k)) (hPinched (n k)) hpast (hOverlap (n k)) P.toM46 |
| 305 | («Q» := Q k) (shift := 0) («c» := c) (d := d) (L := L) (Bold := Bold) (eta := err) |
| 306 | (C := G.limit.sliceCarrier) (U := U) |
| 307 | rw [zero_div, add_zero, zero_add] at search |
| 308 | obtain ⟨b, hb, E, hfuture, hbound, hstop⟩ := search e0 le_rfl hd hc2 hbuffer hL hshort |
| 309 | hU ⟨G.limit.base, hbaseU⟩ hscalar herr hpinching hOld |
| 310 | have hfutureMetric (s : ℝ) (hs : s ∈ Icc c 0) (hsE : s ∈ Icc b 0) |
| 311 | (x : X) (v w : TangentSpace (𝓡 3) x) : |
| 312 | E.pullbackInner s hsE x v w = e0.pullbackInner s hs x v w := by |
| 313 | have hfun : E.forward s hsE = e0.forward s hs := funext (hfuture s hs hsE) |
| 314 | unfold SurgeryFlowCylinder.pullbackInner |
| 315 | rw [hfun] |
| 316 | have hretain : Retain k b E := by |
| 317 | refine ⟨hsource, ?_, ?_, ?_, ?_, ?_⟩ |
| 318 | · intro hz x hx |
| 319 | exact (hfuture 0 zero0 hz x).trans (hmap 0 zero0 (zeroG k) x hx) |
| 320 | · intro hc x hx |
| 321 | exact (hpsi hx).trans (hfuture c bottom0 hc x).symm |
| 322 | · intro s hs0 hsE hsG x hx |
| 323 | exact (hfuture s hs0 hsE x).trans (hmap s hs0 hsG x hx) |
| 324 | · intro s hs0 hsE hsG x hx v w |
| 325 | exact (hfutureMetric s hs0 hsE x v w).trans (hinner s hs0 hsG x hx v w) |
| 326 | · intro hc x hx |
| 327 | rw [hfuture c bottom0 hc x] |
| 328 | exact hscalar x hx |
| 329 | refine ⟨b, hb, E, hretain, hbound, ?_, ?_, ?_⟩ |
| 330 | · intro x hx v |
| 331 | rw [hfutureMetric 0 zero0 _ x v v] |
| 332 | exact hzeroInner x hx v |
| 333 | · rw [hfuture 0 zero0 _ G.limit.base] |
| 334 | exact hpoint |
| 335 | · exact hstop.elim Or.inl (fun hcap => Or.inr hcap.2) |
| 336 | let D := 2 * Real.sqrt (2 * Real.exp (6 * Bplus * window)) * R |
| 337 | have hD : 0 < D := by dsimp only [D]; positivity |
| 338 | have hscalarBad (k : ℕ) : ((F (n k)).connection (baseTime (n k))).scalarCurvature |
| 339 | ((history (n k)).history.forward (baseTime (n k)) (hbaseTime (n k)) (basePoint (n k))) = |
| 340 | (V).scale (n k) := (history (n k)).scalar_pullback _ _ _ |
| 341 | have hlong := limitFinite_uniform_cap_exclusion (C := G.limit.sliceCarrier) |
| 342 | n baseTime (V).scale g G.limit.base R P |
| 343 | hQ hR hcneg hd hwindow hbuffer hBplus (D := D) rfl hD (fun k => hPinched (n k)) |
| 344 | (fun k => (history (n k)).history.forward |
| 345 | (baseTime (n k)) (hbaseTime (n k)) (basePoint (n k))) |
| 346 | (fun k => hbad (n k)) hscalarBad Retain hsearch (by |
| 347 | intro j |
| 348 | filter_upwards [capBudget j] with k hk |
| 349 | intro a ha E hscalar hEvent inst i contact hcontact hcap hdist y hy hnorm |
| 350 | exact hk G.limit.sliceCarrier hU ha E hscalar hEvent i contact hcontact hcap |
| 351 | hdist y hy hnorm) |
| 352 | intro err herr |
| 353 | filter_upwards [hlong err herr] with k hk |
| 354 | obtain ⟨b, hb, E, hretain, hbound, hzeroInner, hpoint, hlong⟩ := hk |
| 355 | obtain ⟨hsource, hzero, hpsi, hmap, hinner, hscalar⟩ := hretain |
| 356 | have hb' : b ∈ Icc (-(H.toReal + 4 * d)) c := |
| 357 | ⟨by linarith only [hb.1], hb.2⟩ |
| 358 | exact ⟨b, hb', E, hsource, hzero, hpsi, hmap, hinner, hscalar, |
| 359 | hbound, hzeroInner, hpoint, by linarith only [hlong]⟩ |
| 360 | |
| 361 | end PoincareMT.M47 |