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.Metric.Local |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Singular.Geometry |
| 3 | import PoincareLib.Geometry.RicciFlow.CanonicalNeighborhood.Projective |
| 4 | import PoincareLib.Geometry.Riemannian.Normalization.Definitions |
| 5 | import Mathlib.Geometry.Manifold.Diffeomorph |
| 6 | |
| 7 | /-! |
| 8 | Adapted from Mapher `PoincareMT/Definitions/Ch15/SurgeryFlow.lean` at |
| 9 | `f927d9e1f0810042766d3b5f64d3f4da02ee93cc`. Declaration bodies are retained; |
| 10 | see `references/ricci-flow/mapher/surgery-adapters-port.json`. |
| 11 | -/ |
| 12 | |
| 13 | /-! |
| 14 | # Changing-carrier Ricci flows with surgery |
| 15 | |
| 16 | Ordinary slabs retain their actual metrics and diffeomorphisms to the time |
| 17 | slices. At a surgery the continuing regions are identified by smooth maps, |
| 18 | the inserted balls carry standard-cap charts, and the disappearing region |
| 19 | has the displayed strong canonical neighborhoods. |
| 20 | Empty slices are allowed, with permanence of extinction kept explicitly. |
| 21 | -/ |
| 22 | |
| 23 | set_option autoImplicit false |
| 24 | |
| 25 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 26 | |
| 27 | universe u |
| 28 | |
| 29 | namespace PoincareMT |
| 30 | |
| 31 | /-- A two-sided projective plane is detected by its embedded product |
| 32 | neighborhood. This avoids choosing a smooth model for the quotient. -/ |
| 33 | def SurgeryNoTwoSidedProjectivePlane (S : GeneralizedSliceCarrier.{u}) : Prop := |
| 34 | ¬ ∃ f : RealProjectiveTwo × Set.Ioo (-1 : ℝ) 1 → S.carrier, |
| 35 | Topology.IsOpenEmbedding f |
| 36 | |
| 37 | structure SurgeryParameters where |
| 38 | epsilon : ℝ |
| 39 | C : ℝ |
| 40 | epsilon_pos : 0 < epsilon |
| 41 | epsilon_le : epsilon ≤ 1 / 200 |
| 42 | C_pos : 0 < C |
| 43 | r : ℝ → ℝ |
| 44 | delta : ℝ → ℝ |
| 45 | h : ℝ → ℝ |
| 46 | kappa : ℝ → ℝ |
| 47 | r_pos : ∀ t, 0 ≤ t → 0 < r t |
| 48 | delta_pos : ∀ t, 0 ≤ t → 0 < delta t |
| 49 | h_pos : ∀ t, 0 ≤ t → 0 < h t |
| 50 | kappa_pos : ∀ t, 0 ≤ t → 0 < kappa t |
| 51 | r_antitone : AntitoneOn r (Set.Ici 0) |
| 52 | delta_antitone : AntitoneOn delta (Set.Ici 0) |
| 53 | h_antitone : AntitoneOn h (Set.Ici 0) |
| 54 | kappa_antitone : AntitoneOn kappa (Set.Ici 0) |
| 55 | r_le_epsilon : ∀ t, 0 ≤ t → r t ≤ epsilon |
| 56 | h_le : ∀ t, 0 ≤ t → h t ≤ delta t ^ 2 * r t |
| 57 | |
| 58 | /-- A smooth equivalence of two displayed regions in full smooth manifolds. -/ |
| 59 | structure SurgeryRegionEquivalence (A B : GeneralizedSliceCarrier.{u}) |
| 60 | (U : Set A.carrier) (V : Set B.carrier) where |
| 61 | map : A.carrier → B.carrier |
| 62 | inverse : B.carrier → A.carrier |
| 63 | map_image : map '' U = V |
| 64 | inverse_image : inverse '' V = U |
| 65 | left_inverse : Set.LeftInvOn inverse map U |
| 66 | right_inverse : Set.LeftInvOn map inverse V |
| 67 | map_smooth : ContMDiffOn (𝓡 3) (𝓡 3) ∞ map U |
| 68 | inverse_smooth : ContMDiffOn (𝓡 3) (𝓡 3) ∞ inverse V |
| 69 | |
| 70 | structure SurgeryCapChart (g₀ : StandardInitialMetric) |
| 71 | (S : GeneralizedSliceCarrier.{u}) (g : RiemannianMetric 3 S.carrier) |
| 72 | (h : ℝ) where |
| 73 | radius : ℝ |
| 74 | radius_eq : radius = g₀.cylindrical_end.radius + 4 |
| 75 | tip : S.carrier |
| 76 | map : StandardCapSpace → S.carrier |
| 77 | inverse : S.carrier → StandardCapSpace |
| 78 | domain : Set StandardCapSpace |
| 79 | domain_eq : domain = {x | g₀.metric.edist 0 x ≤ ENNReal.ofReal radius} |
| 80 | carrier : Set S.carrier |
| 81 | image : map '' domain = carrier |
| 82 | carrier_compact : IsCompact carrier |
| 83 | homeomorph : domain ≃ₜ carrier |
| 84 | homeomorph_eq : ∀ x : domain, (homeomorph x).1 = map x.1 |
| 85 | map_tip : map 0 = tip |
| 86 | left_inverse : Set.LeftInvOn inverse map domain |
| 87 | right_inverse : Set.LeftInvOn map inverse carrier |
| 88 | map_smooth : ContMDiffOn (𝓡 3) (𝓡 3) ∞ map domain |
| 89 | inverse_smooth : ContMDiffOn (𝓡 3) (𝓡 3) ∞ inverse carrier |
| 90 | inner_ball : g.ball tip (h * (g₀.cylindrical_end.radius + 3)) ⊆ carrier |
| 91 | outer_ball : carrier ⊆ {x | g.edist tip x ≤ |
| 92 | ENNReal.ofReal (h * (g₀.cylindrical_end.radius + 5))} |
| 93 | |
| 94 | /-- An ordinary flow slab on its initial carrier, identified with the |
| 95 | changing-carrier slices by actual diffeomorphisms. -/ |
| 96 | structure SurgeryRegularSlab (slice : ℝ → GeneralizedSliceCarrier.{u}) |
| 97 | (metric : ∀ t, RiemannianMetric 3 (slice t).carrier) (a b : ℝ) where |
| 98 | ordered : a < b |
| 99 | flow : RicciFlow 3 (slice a).carrier (Set.Icc a b) |
| 100 | identify : ∀ t : Set.Icc a b, |
| 101 | Diffeomorph (𝓡 3) (𝓡 3) (slice a).carrier (slice t.1).carrier ∞ |
| 102 | initial_identify : ∀ x, identify ⟨a, ⟨le_rfl, ordered.le⟩⟩ x = x |
| 103 | metric_pullback : ∀ t x v w, |
| 104 | (metric t.1).inner (identify t x) |
| 105 | (mfderiv (𝓡 3) (𝓡 3) (identify t) x v) |
| 106 | (mfderiv (𝓡 3) (𝓡 3) (identify t) x w) = (flow.metric t.1).inner x v w |
| 107 | |
| 108 | noncomputable def SurgeryRegularSlab.transport |
| 109 | {slice : ℝ → GeneralizedSliceCarrier.{u}} |
| 110 | {metric : ∀ t, RiemannianMetric 3 (slice t).carrier} {a b : ℝ} |
| 111 | (S : SurgeryRegularSlab slice metric a b) (s t : Set.Icc a b) : |
| 112 | (slice s.1).carrier → (slice t.1).carrier := |
| 113 | fun x => S.identify t ((S.identify s).symm x) |
| 114 | |
| 115 | /-- An ordinary strong neck keeps one coordinate map throughout its full |
| 116 | backward curvature-normalized time interval. -/ |
| 117 | structure SurgeryOrdinaryStrongNeck (S : GeneralizedSliceCarrier.{u}) |
| 118 | {J : Set ℝ} (F : RicciFlow 3 S.carrier J) (t epsilon : ℝ) where |
| 119 | neck : EpsilonNeck (F.metric t) |
| 120 | epsilon_eq : neck.epsilon = epsilon |
| 121 | connection_eq : neck.connection = F.connection t |
| 122 | backward_subset : Set.Ioc (t - neck.scale ^ 2) t ⊆ J |
| 123 | comparison : RoundCylinderFamilyClose epsilon (Set.Ioc (-1 : ℝ) 0) |
| 124 | (fun s z v w => neck.scale⁻¹ ^ 2 * |
| 125 | roundCylinderPullback (F.metric (t + s * neck.scale ^ 2)) |
| 126 | neck.coordinate_map z v w) |
| 127 | |
| 128 | inductive SurgeryOrdinaryCanonicalControl (S : GeneralizedSliceCarrier.{u}) |
| 129 | {J : Set ℝ} (F : RicciFlow 3 S.carrier J) (t : ℝ) (x : S.carrier) |
| 130 | (epsilon C : ℝ) : Prop |
| 131 | | neck (N : SurgeryOrdinaryStrongNeck S F t epsilon) (center_eq : N.neck.center = x) |
| 132 | | cap (N : CapCertificate (F.metric t)) (epsilon_eq : N.epsilon = epsilon) |
| 133 | (constant_le : N.cap_constant ≤ C) (connection_eq : N.connection = F.connection t) |
| 134 | (core_contains : x ∈ N.core) |
| 135 | | component (N : SingularCComponent (F.metric t) (F.connection t) C) |
| 136 | (contains : x ∈ N.carrier) |
| 137 | | round (N : SingularRoundComponent (F.metric t) epsilon) (contains : x ∈ N.carrier) |
| 138 | |
| 139 | /-- Compact-uniform convergence of the actual metric coefficients on the |
| 140 | open regular-limit region. -/ |
| 141 | def SurgeryMetricLimitOn (A B : GeneralizedSliceCarrier.{u}) |
| 142 | (g : ℝ → RiemannianMetric 3 A.carrier) |
| 143 | (gT : RiemannianMetric 3 B.carrier) (f : A.carrier → B.carrier) |
| 144 | (U : Set A.carrier) (T : ℝ) : Prop := |
| 145 | ∀ q : A.carrier, q ∈ U → ∀ K : Set (EuclideanSpace ℝ (Fin 3)), |
| 146 | IsCompact K → K ⊆ (extChartAt (𝓡 3) q).target → |
| 147 | (extChartAt (𝓡 3) q).symm '' K ⊆ U → |
| 148 | ∀ k : ℕ, ∀ a b : Fin 3, ∀ eta : ℝ, 0 < eta → |
| 149 | ∃ d : ℝ, 0 < d ∧ ∀ t : ℝ, T - d < t → t < T → ∀ p ∈ K, |
| 150 | ‖iteratedFDeriv ℝ k (singularMetricCoefficient (g t) q a b) p - |
| 151 | iteratedFDeriv ℝ k (surgeryMetricCoefficient gT |
| 152 | (fun z => f ((extChartAt (𝓡 3) q).symm z)) a b) p‖ < eta |
| 153 | |
| 154 | /-- One surgery event. Boundary spheres and exposed balls are attached to |
| 155 | the actual continuing regions, and each inserted ball retains its metric |
| 156 | surgery result and scale. -/ |
| 157 | structure SurgeryEventData (g₀ : StandardInitialMetric) |
| 158 | (K : MetricSurgeryConstants) (P : SurgeryParameters) |
| 159 | (slice : ℝ → GeneralizedSliceCarrier.{u}) |
| 160 | (metric : ∀ t, RiemannianMetric 3 (slice t).carrier) (T : ℝ) where |
| 161 | tMinus : ℝ |
| 162 | tMinus_nonnegative : 0 ≤ tMinus |
| 163 | tMinus_lt : tMinus < T |
| 164 | preterminal_close : T - (P.h T) ^ 2 < tMinus |
| 165 | pre_flow : RicciFlow 3 (slice tMinus).carrier (Set.Ico tMinus T) |
| 166 | pre_identify : ∀ t : Set.Ico tMinus T, |
| 167 | Diffeomorph (𝓡 3) (𝓡 3) (slice tMinus).carrier (slice t.1).carrier ∞ |
| 168 | pre_initial : ∀ x, pre_identify ⟨tMinus, ⟨le_rfl, tMinus_lt⟩⟩ x = x |
| 169 | pre_metric : ∀ t x v w, |
| 170 | (metric t.1).inner (pre_identify t x) |
| 171 | (mfderiv (𝓡 3) (𝓡 3) (pre_identify t) x v) |
| 172 | (mfderiv (𝓡 3) (𝓡 3) (pre_identify t) x w) = |
| 173 | (pre_flow.metric t.1).inner x v w |
| 174 | regular_limit : Set (slice tMinus).carrier |
| 175 | regular_limit_eq : regular_limit = {x | ∃ B : ℝ, |
| 176 | ∀ t₀ : ℝ, t₀ < T → |
| 177 | ∃ t ∈ Set.Ico tMinus T, t₀ < t ∧ |
| 178 | (pre_flow.connection t).scalarCurvature x ≤ B} |
| 179 | regular_limit_open : IsOpen regular_limit |
| 180 | terminal : GeneralizedSliceCarrier.{u} |
| 181 | limit_identify : SurgeryRegionEquivalence (slice tMinus) terminal |
| 182 | regular_limit Set.univ |
| 183 | limit_metric : RiemannianMetric 3 terminal.carrier |
| 184 | limit_connection : LeviCivitaData limit_metric |
| 185 | metric_converges : SurgeryMetricLimitOn (slice tMinus) terminal pre_flow.metric |
| 186 | limit_metric limit_identify.map regular_limit T |
| 187 | retained_pre : Set (slice tMinus).carrier |
| 188 | retained_pre_compact : IsCompact retained_pre |
| 189 | retained_pre_subset : retained_pre ⊆ regular_limit |
| 190 | low_curvature_retained : |
| 191 | {x | limit_connection.scalarCurvature x ≤ (P.delta T * P.r T)⁻¹ ^ 2} ⊆ |
| 192 | limit_identify.map '' retained_pre |
| 193 | retained_post : Set (slice T).carrier |
| 194 | retained_post_compact : IsCompact retained_post |
| 195 | retention : SurgeryRegionEquivalence (slice tMinus) (slice T) |
| 196 | retained_pre retained_post |
| 197 | retained_metric : ∀ x ∈ retained_pre, ∀ v w : TangentSpace (𝓡 3) x, |
| 198 | (metric T).inner (retention.map x) |
| 199 | (mfderiv (𝓡 3) (𝓡 3) retention.map x v) |
| 200 | (mfderiv (𝓡 3) (𝓡 3) retention.map x w) = |
| 201 | limit_metric.inner (limit_identify.map x) |
| 202 | (mfderiv (𝓡 3) (𝓡 3) limit_identify.map x v) |
| 203 | (mfderiv (𝓡 3) (𝓡 3) limit_identify.map x w) |
| 204 | cap_count : ℕ |
| 205 | caps : Fin cap_count → SurgeryCapChart g₀ (slice T) (metric T) (P.h T) |
| 206 | cap_disjoint : ∀ i j, i ≠ j → Disjoint (caps i).carrier (caps j).carrier |
| 207 | post_cover : retained_post ∪ (⋃ i, (caps i).carrier) = Set.univ |
| 208 | cap_boundary : ∀ i, retained_post ∩ (caps i).carrier = frontier (caps i).carrier |
| 209 | necks : Fin cap_count → MetricSurgeryInput K limit_metric |
| 210 | neck_carrier_disjoint : ∀ i j, i ≠ j → |
| 211 | Disjoint (necks i).neck.carrier (necks j).neck.carrier |
| 212 | neck_time : ∀ i, (necks i).time = T |
| 213 | neck_delta : ∀ i, (necks i).neck.epsilon = P.delta T |
| 214 | neck_scale : ∀ i, (necks i).neck.scale = P.h T |
| 215 | pre_boundary : frontier retained_pre = |
| 216 | ⋃ i, limit_identify.inverse '' (necks i).neck.central_sphere |
| 217 | boundary_correspondence : ∀ i, |
| 218 | retention.map '' (limit_identify.inverse '' (necks i).neck.central_sphere) = |
| 219 | frontier (caps i).carrier |
| 220 | /-- The negative neck half is the retained side of the surgery. -/ |
| 221 | neck_negative_retained : ∀ i, |
| 222 | (necks i).neck.region (-(necks i).neck.epsilon⁻¹) 0 ⊆ |
| 223 | limit_identify.map '' retained_pre |
| 224 | /-- The positive neck half lies on the discarded side. -/ |
| 225 | neck_positive_discarded : ∀ i, |
| 226 | Disjoint ((necks i).neck.region 0 (necks i).neck.epsilon⁻¹) |
| 227 | (limit_identify.map '' retained_pre) |
| 228 | local_result : ∀ i, MetricSurgeryResult g₀ (necks i) |
| 229 | local_embed : ∀ i, (local_result i).output.carrier → (slice T).carrier |
| 230 | local_embed_smooth : ∀ i, ContMDiff (𝓡 3) (𝓡 3) ∞ (local_embed i) |
| 231 | local_embed_injective : ∀ i, Function.Injective (local_embed i) |
| 232 | local_metric : ∀ i x v w, |
| 233 | (metric T).inner (local_embed i x) |
| 234 | (mfderiv (𝓡 3) (𝓡 3) (local_embed i) x v) |
| 235 | (mfderiv (𝓡 3) (𝓡 3) (local_embed i) x w) = |
| 236 | (local_result i).metric.inner x v w |
| 237 | local_tip : ∀ i, local_embed i (local_result i).tip = (caps i).tip |
| 238 | local_cap_image : ∀ i, local_embed i '' |
| 239 | closure ((local_result i).cap_map '' |
| 240 | g₀.metric.ball 0 (g₀.cylindrical_end.radius + 4)) = (caps i).carrier |
| 241 | local_retention : ∀ i x, |
| 242 | x ∈ (necks i).neck.region (-(necks i).neck.epsilon⁻¹) 0 → |
| 243 | local_embed i ((local_result i).collapse x) = |
| 244 | retention.map (limit_identify.inverse x) |
| 245 | disappearing_start : ℝ |
| 246 | disappearing_start_bounds : tMinus < disappearing_start ∧ disappearing_start < T |
| 247 | disappearing_curvature : ∀ L : ℝ, L < (P.delta T * P.r T)⁻¹ ^ 2 → |
| 248 | ∃ s : ℝ, tMinus ≤ s ∧ s < T ∧ ∀ t ∈ Set.Ico s T, |
| 249 | ∀ x : (slice tMinus).carrier, x ∉ interior retained_pre → |
| 250 | L < (pre_flow.connection t).scalarCurvature x |
| 251 | disappearing_cover : ∀ t ∈ Set.Ico disappearing_start T, |
| 252 | ∀ x : (slice tMinus).carrier, x ∉ interior retained_pre → |
| 253 | (∃ N : EpsilonNeck (pre_flow.metric t), |
| 254 | N.center = x ∧ N.epsilon = P.epsilon) ∨ |
| 255 | (∃ N : CapCertificate (pre_flow.metric t), |
| 256 | x ∈ N.core ∧ N.epsilon = P.epsilon ∧ N.cap_constant ≤ P.C) ∨ |
| 257 | (∃ U : Set (slice tMinus).carrier, x ∈ U ∧ U = connectedComponent x ∧ |
| 258 | ∀ y ∈ U, ∀ v w : TangentSpace (𝓡 3) y, |
| 259 | LeviCivitaData.IsOrthonormalPair (pre_flow.metric t) y v w → |
| 260 | 0 < (pre_flow.connection t).sectionalCurvature y v w) |
| 261 | |
| 262 | /-- A singular event may discard the whole slice. No function from its |
| 263 | nonempty predecessor to the empty successor is introduced. -/ |
| 264 | structure SurgeryVanishingEventData (P : SurgeryParameters) |
| 265 | (slice : ℝ → GeneralizedSliceCarrier.{u}) |
| 266 | (metric : ∀ t, RiemannianMetric 3 (slice t).carrier) (T : ℝ) where |
| 267 | tMinus : ℝ |
| 268 | tMinus_nonnegative : 0 ≤ tMinus |
| 269 | tMinus_lt : tMinus < T |
| 270 | pre_nonempty : Nonempty (slice tMinus).carrier |
| 271 | pre_flow : RicciFlow 3 (slice tMinus).carrier (Set.Ico tMinus T) |
| 272 | pre_identify : ∀ t : Set.Ico tMinus T, |
| 273 | Diffeomorph (𝓡 3) (𝓡 3) (slice tMinus).carrier (slice t.1).carrier ∞ |
| 274 | pre_initial : ∀ x, pre_identify ⟨tMinus, ⟨le_rfl, tMinus_lt⟩⟩ x = x |
| 275 | pre_metric : ∀ t x v w, |
| 276 | (metric t.1).inner (pre_identify t x) |
| 277 | (mfderiv (𝓡 3) (𝓡 3) (pre_identify t) x v) |
| 278 | (mfderiv (𝓡 3) (𝓡 3) (pre_identify t) x w) = |
| 279 | (pre_flow.metric t.1).inner x v w |
| 280 | /-- The volume of the left limit at the vanishing surgery time. A |
| 281 | vanishing event has no terminal carrier, so the limit is exported as a |
| 282 | scalar rather than as a terminal metric. -/ |
| 283 | left_limit_volume : ℝ≥0∞ |
| 284 | left_limit_volume_tendsto : |
| 285 | Filter.Tendsto (fun t : ℝ => calibratedMetricVolume (metric t) Set.univ) |
| 286 | (nhdsWithin T (Set.Iio T)) (𝓝 left_limit_volume) |
| 287 | disappearing_start : ℝ |
| 288 | disappearing_start_bounds : tMinus < disappearing_start ∧ disappearing_start < T |
| 289 | disappearing_curvature : ∀ L : ℝ, L < (P.delta T * P.r T)⁻¹ ^ 2 → |
| 290 | ∃ s : ℝ, tMinus ≤ s ∧ s < T ∧ ∀ t ∈ Set.Ico s T, |
| 291 | ∀ x : (slice tMinus).carrier, L < (pre_flow.connection t).scalarCurvature x |
| 292 | disappearing_cover : ∀ t ∈ Set.Ico disappearing_start T, |
| 293 | ∀ x : (slice tMinus).carrier, |
| 294 | (∃ N : EpsilonNeck (pre_flow.metric t), |
| 295 | N.center = x ∧ N.epsilon = P.epsilon) ∨ |
| 296 | (∃ N : CapCertificate (pre_flow.metric t), |
| 297 | x ∈ N.core ∧ N.epsilon = P.epsilon ∧ N.cap_constant ≤ P.C) ∨ |
| 298 | (∃ U : Set (slice tMinus).carrier, x ∈ U ∧ U = connectedComponent x ∧ |
| 299 | ∀ y ∈ U, ∀ v w : TangentSpace (𝓡 3) y, |
| 300 | LeviCivitaData.IsOrthonormalPair (pre_flow.metric t) y v w → |
| 301 | 0 < (pre_flow.connection t).sectionalCurvature y v w) |
| 302 | |
| 303 | structure SurgeryFlowData where |
| 304 | standard_initial : StandardInitialMetric |
| 305 | local_constants : MetricSurgeryConstants |
| 306 | parameters : SurgeryParameters |
| 307 | time_domain : Set ℝ |
| 308 | time_domain_interval : time_domain.OrdConnected |
| 309 | time_domain_nonnegative : time_domain ⊆ Set.Ici 0 |
| 310 | zero_mem : 0 ∈ time_domain |
| 311 | slice : ℝ → GeneralizedSliceCarrier.{u} |
| 312 | metric : ∀ t, RiemannianMetric 3 (slice t).carrier |
| 313 | connection : ∀ t, LeviCivitaData (metric t) |
| 314 | slices_compact : ∀ t ∈ time_domain, IsCompact (Set.univ : Set (slice t).carrier) |
| 315 | no_two_sided_projective_plane : ∀ t ∈ time_domain, |
| 316 | SurgeryNoTwoSidedProjectivePlane (slice t) |
| 317 | initial_nonempty : Nonempty (slice 0).carrier |
| 318 | initial_normalized : ∀ x : (slice 0).carrier, |
| 319 | (connection 0).curvatureTensorNorm x ≤ 1 ∧ |
| 320 | ∀ r : ℝ, 0 < r → r ≤ 1 → |
| 321 | ENNReal.ofReal (euclideanUnitBallLebesgueVolume.toReal * r ^ 3 / 2) ≤ |
| 322 | calibratedMetricVolume (metric 0) ((metric 0).ball x r) |
| 323 | surgery_times : Set ℝ |
| 324 | surgery_times_subset : surgery_times ⊆ time_domain |
| 325 | zero_not_surgery : 0 ∉ surgery_times |
| 326 | surgery_times_locally_finite : ∀ t ∈ time_domain, ∃ d : ℝ, 0 < d ∧ |
| 327 | (surgery_times ∩ Set.Ioo (t - d) (t + d)).Finite |
| 328 | regular_slabs : ∀ a b : ℝ, a < b → Set.Icc a b ⊆ time_domain → |
| 329 | Disjoint surgery_times (Set.Ioc a b) → |
| 330 | SurgeryRegularSlab slice metric a b |
| 331 | slab_transport_coherent : ∀ a b c d hab hJ habs hcd hK hcds, |
| 332 | ∀ s t : ℝ, ∀ hs : s ∈ Set.Icc a b, ∀ ht : t ∈ Set.Icc a b, |
| 333 | ∀ hs' : s ∈ Set.Icc c d, ∀ ht' : t ∈ Set.Icc c d, ∀ x, |
| 334 | (regular_slabs a b hab hJ habs).transport ⟨s, hs⟩ ⟨t, ht⟩ x = |
| 335 | (regular_slabs c d hcd hK hcds).transport ⟨s, hs'⟩ ⟨t, ht'⟩ x |
| 336 | event : ∀ (T : ℝ) (_hT : T ∈ surgery_times) [Nonempty (slice T).carrier], |
| 337 | SurgeryEventData standard_initial local_constants parameters slice metric T |
| 338 | vanishing_event : ∀ (T : ℝ) (_hT : T ∈ surgery_times) [IsEmpty (slice T).carrier], |
| 339 | SurgeryVanishingEventData parameters slice metric T |
| 340 | event_slab_compatibility : ∀ T hT [Nonempty (slice T).carrier] a b hab hJ habs, |
| 341 | ∀ s t : ℝ, ∀ hs : s ∈ Set.Icc a b, ∀ ht : t ∈ Set.Icc a b, |
| 342 | ∀ hs' : s ∈ Set.Ico (event T hT).tMinus T, |
| 343 | ∀ ht' : t ∈ Set.Ico (event T hT).tMinus T, ∀ x, |
| 344 | (regular_slabs a b hab hJ habs).transport ⟨s, hs⟩ ⟨t, ht⟩ |
| 345 | ((event T hT).pre_identify ⟨s, hs'⟩ x) = |
| 346 | (event T hT).pre_identify ⟨t, ht'⟩ x |
| 347 | vanishing_slab_compatibility : ∀ T hT [IsEmpty (slice T).carrier] a b hab hJ habs, |
| 348 | ∀ s t : ℝ, ∀ hs : s ∈ Set.Icc a b, ∀ ht : t ∈ Set.Icc a b, |
| 349 | ∀ hs' : s ∈ Set.Ico (vanishing_event T hT).tMinus T, |
| 350 | ∀ ht' : t ∈ Set.Ico (vanishing_event T hT).tMinus T, ∀ x, |
| 351 | (regular_slabs a b hab hJ habs).transport ⟨s, hs⟩ ⟨t, ht⟩ |
| 352 | ((vanishing_event T hT).pre_identify ⟨s, hs'⟩ x) = |
| 353 | (vanishing_event T hT).pre_identify ⟨t, ht'⟩ x |
| 354 | maximal_intervals : ∀ a b : ℝ, a ∈ time_domain → |
| 355 | (a = 0 ∨ a ∈ surgery_times) → a < b → Set.Ico a b ⊆ time_domain → |
| 356 | Disjoint surgery_times (Set.Ioo a b) → |
| 357 | [Nonempty (slice a).carrier] → |
| 358 | (b ∈ surgery_times ∨ b ∉ time_domain) → |
| 359 | ∀ L : ℝ, ∀ s : ℝ, s < b → ∃ t ∈ Set.Ioo (max a s) b, |
| 360 | ∃ x : (slice t).carrier, L < (connection t).curvatureTensorNorm x |
| 361 | extinction_permanent : ∀ s t : ℝ, s ∈ time_domain → t ∈ time_domain → s ≤ t → |
| 362 | IsEmpty (slice s).carrier → IsEmpty (slice t).carrier |
| 363 | |
| 364 | /-- A cylinder follows the chosen ordinary transports and, at every surgery |
| 365 | it crosses, lies in the actual continuing region and follows its retention |
| 366 | map. The time parameter is `origin + s / scale`. -/ |
| 367 | structure SurgeryFlowCylinder (F : SurgeryFlowData.{u}) |
| 368 | (C : GeneralizedSliceCarrier.{u}) (origin scale : ℝ) |
| 369 | (I : Set ℝ) (U : Set C.carrier) where |
| 370 | scale_pos : 0 < scale |
| 371 | interval_connected : I.OrdConnected |
| 372 | time_subset : (fun s => origin + s / scale) '' I ⊆ F.time_domain |
| 373 | forward : ∀ s : ℝ, s ∈ I → C.carrier → (F.slice (origin + s / scale)).carrier |
| 374 | inverse : ∀ s : ℝ, s ∈ I → (F.slice (origin + s / scale)).carrier → C.carrier |
| 375 | forward_smooth : ∀ s hs, ContMDiffOn (𝓡 3) (𝓡 3) ∞ (forward s hs) U |
| 376 | inverse_smooth : ∀ s hs, |
| 377 | ContMDiffOn (𝓡 3) (𝓡 3) ∞ (inverse s hs) (forward s hs '' U) |
| 378 | left_inverse : ∀ s hs, Set.LeftInvOn (inverse s hs) (forward s hs) U |
| 379 | right_inverse : ∀ s hs, |
| 380 | Set.LeftInvOn (forward s hs) (inverse s hs) (forward s hs '' U) |
| 381 | slab_compatibility : ∀ a b hab hJ habs, |
| 382 | ∀ s hs t ht, ∀ hs' : origin + s / scale ∈ Set.Icc a b, |
| 383 | ∀ ht' : origin + t / scale ∈ Set.Icc a b, ∀ x ∈ U, |
| 384 | (F.regular_slabs a b hab hJ habs).transport |
| 385 | ⟨origin + s / scale, hs'⟩ ⟨origin + t / scale, ht'⟩ (forward s hs x) = |
| 386 | forward t ht x |
| 387 | retained_at_surgery : ∀ s hs, |
| 388 | ∀ (hT : origin + s / scale ∈ F.surgery_times) |
| 389 | [Nonempty (F.slice (origin + s / scale)).carrier], |
| 390 | (∃ s' ∈ I, s' < s) → |
| 391 | forward s hs '' U ⊆ interior (F.event (origin + s / scale) hT).retained_post |
| 392 | pre_retained_at_surgery : ∀ s (_hs : s ∈ I), |
| 393 | ∀ (hT : origin + s / scale ∈ F.surgery_times) |
| 394 | [Nonempty (F.slice (origin + s / scale)).carrier], |
| 395 | ∀ t ht, ∀ ht' : origin + t / scale ∈ |
| 396 | Set.Ico (F.event (origin + s / scale) hT).tMinus (origin + s / scale), |
| 397 | ∀ x ∈ U, |
| 398 | ((F.event (origin + s / scale) hT).pre_identify |
| 399 | ⟨origin + t / scale, ht'⟩).symm (forward t ht x) ∈ |
| 400 | interior (F.event (origin + s / scale) hT).retained_pre |
| 401 | surgery_compatibility : ∀ s hs, |
| 402 | ∀ (hT : origin + s / scale ∈ F.surgery_times) |
| 403 | [Nonempty (F.slice (origin + s / scale)).carrier], |
| 404 | ∀ t ht, ∀ ht' : origin + t / scale ∈ |
| 405 | Set.Ico (F.event (origin + s / scale) hT).tMinus (origin + s / scale), |
| 406 | ∀ x ∈ U, |
| 407 | (F.event (origin + s / scale) hT).retention.map |
| 408 | (((F.event (origin + s / scale) hT).pre_identify |
| 409 | ⟨origin + t / scale, ht'⟩).symm (forward t ht x)) = forward s hs x |
| 410 | |
| 411 | noncomputable def SurgeryFlowCylinder.pullbackInner |
| 412 | {F : SurgeryFlowData.{u}} {C : GeneralizedSliceCarrier.{u}} |
| 413 | {origin scale : ℝ} {I : Set ℝ} {U : Set C.carrier} |
| 414 | (e : SurgeryFlowCylinder F C origin scale I U) |
| 415 | (s : ℝ) (hs : s ∈ I) (x : C.carrier) |
| 416 | (v w : TangentSpace (𝓡 3) x) : ℝ := |
| 417 | scale * (F.metric (origin + s / scale)).inner (e.forward s hs x) |
| 418 | (mfderiv (𝓡 3) (𝓡 3) (e.forward s hs) x v) |
| 419 | (mfderiv (𝓡 3) (𝓡 3) (e.forward s hs) x w) |
| 420 | |
| 421 | noncomputable def surgeryCylinderPullback |
| 422 | {F : SurgeryFlowData.{u}} {C : GeneralizedSliceCarrier.{u}} |
| 423 | {origin scale : ℝ} {I : Set ℝ} {U : Set C.carrier} |
| 424 | (e : SurgeryFlowCylinder F C origin scale I U) |
| 425 | (coordinate : RoundCylinderSpace → C.carrier) : ℝ → RoundCylinderTwoTensor := by |
| 426 | classical |
| 427 | exact fun s => if hs : s ∈ I then fun z v w => |
| 428 | e.pullbackInner s hs (coordinate z) |
| 429 | (mfderiv ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) coordinate z v) |
| 430 | (mfderiv ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) coordinate z w) |
| 431 | else EvolvingRoundCylinderMetric s |
| 432 | |
| 433 | structure SurgeryStrongNeck (F : SurgeryFlowData.{u}) (t epsilon : ℝ) where |
| 434 | neck : EpsilonNeck (F.metric t) |
| 435 | epsilon_eq : neck.epsilon = epsilon |
| 436 | connection_eq : neck.connection = F.connection t |
| 437 | cylinder : SurgeryFlowCylinder F (F.slice t) t (neck.scale⁻¹ ^ 2) |
| 438 | (Set.Ioc (-1 : ℝ) 0) neck.carrier |
| 439 | terminal_identity : ∀ h x, x ∈ neck.carrier → HEq (cylinder.forward 0 h x) x |
| 440 | metric_comparison : RoundCylinderFamilyClose epsilon (Set.Ioc (-1 : ℝ) 0) |
| 441 | (surgeryCylinderPullback cylinder neck.coordinate_map) |
| 442 | |
| 443 | inductive SurgeryCanonicalControl (F : SurgeryFlowData.{u}) |
| 444 | (t : ℝ) (x : (F.slice t).carrier) (epsilon C : ℝ) : Prop |
| 445 | | neck (N : SurgeryStrongNeck F t epsilon) (center_eq : N.neck.center = x) |
| 446 | | cap (N : CapCertificate (F.metric t)) (epsilon_eq : N.epsilon = epsilon) |
| 447 | (constant_le : N.cap_constant ≤ C) (connection_eq : N.connection = F.connection t) |
| 448 | (core_contains : x ∈ N.core) |
| 449 | | component (N : SingularCComponent (F.metric t) (F.connection t) C) |
| 450 | (contains : x ∈ N.carrier) |
| 451 | | round (N : SingularRoundComponent (F.metric t) epsilon) (contains : x ∈ N.carrier) |
| 452 | |
| 453 | def SurgeryCanonicalAssumption (F : SurgeryFlowData.{u}) : Prop := |
| 454 | ∀ t ∈ F.time_domain, ∀ x : (F.slice t).carrier, |
| 455 | (F.parameters.r t)⁻¹ ^ 2 ≤ (F.connection t).scalarCurvature x → |
| 456 | SurgeryCanonicalControl F t x F.parameters.epsilon F.parameters.C |
| 457 | |
| 458 | def SurgeryPositiveComponentAt (F : SurgeryFlowData.{u}) |
| 459 | (t : ℝ) (x : (F.slice t).carrier) : Prop := |
| 460 | ∀ y ∈ connectedComponent x, ∀ v w : TangentSpace (𝓡 3) y, |
| 461 | LeviCivitaData.IsOrthonormalPair (F.metric t) y v w → |
| 462 | 0 < (F.connection t).sectionalCurvature y v w |
| 463 | |
| 464 | /-- Noncollapse is asserted on backward balls which actually survive every |
| 465 | surgery in the displayed cylinder and satisfy the full curvature bound. -/ |
| 466 | def SurgeryNoncollapsed (F : SurgeryFlowData.{u}) : Prop := |
| 467 | ∀ t ∈ F.time_domain, ∀ x : (F.slice t).carrier, |
| 468 | ¬ SurgeryPositiveComponentAt F t x → |
| 469 | ∀ r : ℝ, 0 < r → r ≤ F.parameters.epsilon → |
| 470 | ∀ e : SurgeryFlowCylinder F (F.slice t) t 1 (Set.Icc (-r ^ 2) 0) |
| 471 | ((F.metric t).ball x r), |
| 472 | (∀ h y, y ∈ (F.metric t).ball x r → HEq (e.forward 0 h y) y) → |
| 473 | (∀ s hs y, y ∈ (F.metric t).ball x r → |
| 474 | (F.connection (t + s / 1)).curvatureTensorNorm (e.forward s hs y) ≤ r⁻¹ ^ 2) → |
| 475 | ENNReal.ofReal (F.parameters.kappa t * r ^ 3) ≤ |
| 476 | calibratedMetricVolume (F.metric t) ((F.metric t).ball x r) |
| 477 | |
| 478 | def SurgeryFlowPinched (F : SurgeryFlowData.{u}) : Prop := |
| 479 | ∀ t ∈ F.time_domain, SurgeryPinchedAt (F.connection t) t |
| 480 | |
| 481 | /-- A terminal surgery neck follows the old flow until its limiting time. |
| 482 | Its backward cylinder may cross earlier surgeries in continuing regions. -/ |
| 483 | structure SurgeryTerminalStrongNeck (F : SurgeryFlowData.{u}) |
| 484 | (T : ℝ) (hT : T ∈ F.surgery_times) [Nonempty (F.slice T).carrier] |
| 485 | (i : Fin (F.event T hT).cap_count) where |
| 486 | cylinder : SurgeryFlowCylinder F (F.event T hT).terminal T |
| 487 | (((F.event T hT).necks i).neck.scale⁻¹ ^ 2) |
| 488 | (Set.Ioo (-1 : ℝ) 0) ((F.event T hT).necks i).neck.carrier |
| 489 | reference_compatibility : ∀ s hs, |
| 490 | ∀ ht : T + s / ((F.event T hT).necks i).neck.scale⁻¹ ^ 2 ∈ |
| 491 | Set.Ico (F.event T hT).tMinus T, |
| 492 | ∀ x ∈ ((F.event T hT).necks i).neck.carrier, |
| 493 | cylinder.forward s hs x = |
| 494 | (F.event T hT).pre_identify |
| 495 | ⟨T + s / ((F.event T hT).necks i).neck.scale⁻¹ ^ 2, ht⟩ |
| 496 | ((F.event T hT).limit_identify.inverse x) |
| 497 | comparison : RoundCylinderFamilyClose (F.parameters.delta T) |
| 498 | (Set.Ioc (-1 : ℝ) 0) |
| 499 | (fun s => if s = 0 then |
| 500 | fun z v w => ((F.event T hT).necks i).neck.scale⁻¹ ^ 2 * |
| 501 | roundCylinderPullback (F.event T hT).limit_metric |
| 502 | ((F.event T hT).necks i).neck.coordinate_map z v w |
| 503 | else surgeryCylinderPullback cylinder |
| 504 | ((F.event T hT).necks i).neck.coordinate_map s) |
| 505 | |
| 506 | /-- The strong parts of Assumptions (5) and (6) refer to actual surviving |
| 507 | cylinders. The remaining Assumptions (1)--(7) are fields of `SurgeryFlowData`. -/ |
| 508 | structure SurgeryFlowAdmissible (F : SurgeryFlowData.{u}) : Prop where |
| 509 | strong_boundaries : ∀ T hT [Nonempty (F.slice T).carrier] i, |
| 510 | Nonempty (SurgeryTerminalStrongNeck F T hT i) |
| 511 | strong_disappearing : ∀ T hT [Nonempty (F.slice T).carrier], |
| 512 | ∀ t : Set.Ico (F.event T hT).tMinus T, |
| 513 | (F.event T hT).disappearing_start ≤ t.1 → |
| 514 | ∀ x : (F.slice (F.event T hT).tMinus).carrier, |
| 515 | x ∉ interior (F.event T hT).retained_pre → |
| 516 | SurgeryCanonicalControl F t.1 ((F.event T hT).pre_identify t x) |
| 517 | F.parameters.epsilon F.parameters.C |
| 518 | strong_vanishing : ∀ T hT [IsEmpty (F.slice T).carrier], |
| 519 | ∀ t : Set.Ico (F.vanishing_event T hT).tMinus T, |
| 520 | (F.vanishing_event T hT).disappearing_start ≤ t.1 → |
| 521 | ∀ x : (F.slice (F.vanishing_event T hT).tMinus).carrier, |
| 522 | SurgeryCanonicalControl F t.1 ((F.vanishing_event T hT).pre_identify t x) |
| 523 | F.parameters.epsilon F.parameters.C |
| 524 | |
| 525 | end PoincareMT |