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.Comparison.Extension.Retained |
| 2 | /-! |
| 3 | # The retained root and the separating surgery spheres |
| 4 | |
| 5 | Morgan--Tian Proposition 15.12 and Remark 15.13, p. 365. The finite closed |
| 6 | caps attach along connected boundary spheres, so the inherited closed part |
| 7 | of a selected child is connected. The actual retention inverse carries |
| 8 | that connected root to the selected parent. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | |
| 13 | open Set |
| 14 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | namespace PoincareMT.SurgeryComparison |
| 19 | |
| 20 | section RetainedRoot |
| 21 | |
| 22 | variable {g₀ : StandardInitialMetric} {K : MetricSurgeryConstants} |
| 23 | {P : SurgeryParameters} {slice : ℝ → GeneralizedSliceCarrier.{u}} |
| 24 | {metric : ∀ t, RiemannianMetric 3 (slice t).carrier} {T : ℝ} |
| 25 | (E : SurgeryEventData g₀ K P slice metric T) |
| 26 | |
| 27 | /-- Proposition 15.12 and Remark 15.13, p. 365: a cap that meets a selected |
| 28 | child lies entirely in it, because the entire local output is connected. -/ |
| 29 | theorem cap_subset_child_of_inter_nonempty (i : Fin E.cap_count) |
| 30 | (C : SurgerySelectedComponent (slice T)) |
| 31 | (hi : ((E.caps i).carrier ∩ range C.inclusion).Nonempty) : |
| 32 | (E.caps i).carrier ⊆ range C.inclusion := by |
| 33 | apply cap_subset_child E i C |
| 34 | apply local_embed_range_subset_child E i C |
| 35 | obtain ⟨y, hy, hC⟩ := hi |
| 36 | rw [← E.local_cap_image i] at hy |
| 37 | obtain ⟨z, _, rfl⟩ := hy |
| 38 | exact ⟨z, hC⟩ |
| 39 | |
| 40 | /-- Proposition 15.12 and Remark 15.13, p. 365: in a selected child, every |
| 41 | cap attachment is either empty or the connected actual cap boundary. -/ |
| 42 | theorem retained_cap_attachment_isPreconnected (i : Fin E.cap_count) |
| 43 | (C : SurgerySelectedComponent (slice T)) : |
| 44 | IsPreconnected ((E.retained_post ∩ range C.inclusion) ∩ |
| 45 | ((E.caps i).carrier ∩ range C.inclusion)) := by |
| 46 | by_cases hi : ((E.caps i).carrier ∩ range C.inclusion).Nonempty |
| 47 | · have hsub := cap_subset_child_of_inter_nonempty E i C hi |
| 48 | have heq : (E.retained_post ∩ range C.inclusion) ∩ |
| 49 | ((E.caps i).carrier ∩ range C.inclusion) = frontier (E.caps i).carrier := by |
| 50 | rw [← E.cap_boundary i] |
| 51 | ext x |
| 52 | exact ⟨fun hx => ⟨hx.1.1, hx.2.1⟩, |
| 53 | fun hx => ⟨⟨hx.1, hsub hx.2⟩, ⟨hx.2, hsub hx.2⟩⟩⟩ |
| 54 | rw [heq] |
| 55 | exact (cap_frontier_isConnected E i).isPreconnected |
| 56 | · rw [Set.not_nonempty_iff_eq_empty.mp hi, inter_empty] |
| 57 | exact isPreconnected_empty |
| 58 | |
| 59 | /-- Proposition 15.12 and Remark 15.13, p. 365: attaching finitely many |
| 60 | disjoint caps along connected boundaries cannot join disconnected pieces |
| 61 | of the inherited closed region in a selected child. -/ |
| 62 | theorem retainedPost_in_child_isPreconnected |
| 63 | (C : SurgerySelectedComponent (slice T)) : |
| 64 | IsPreconnected (E.retained_post ∩ range C.inclusion) := by |
| 65 | classical |
| 66 | let S := range C.inclusion |
| 67 | let A := E.retained_post ∩ S |
| 68 | let B : Fin E.cap_count → Set (slice T).carrier := fun i => (E.caps i).carrier ∩ S |
| 69 | have hS : IsClosed S := by |
| 70 | rw [show S = connectedComponent (C.inclusion C.basepoint) from C.range_eq_component] |
| 71 | exact isClosed_connectedComponent |
| 72 | have hSconn : IsPreconnected S := by |
| 73 | rw [show S = connectedComponent (C.inclusion C.basepoint) from C.range_eq_component] |
| 74 | exact isPreconnected_connectedComponent |
| 75 | have hA : IsClosed A := E.retained_post_compact.isClosed.inter hS |
| 76 | have hB (i : Fin E.cap_count) : IsClosed (B i) := |
| 77 | (E.caps i).carrier_compact.isClosed.inter hS |
| 78 | have hattach (i : Fin E.cap_count) : IsPreconnected (A ∩ B i) := |
| 79 | retained_cap_attachment_isPreconnected E i C |
| 80 | have hcover : S ⊆ A ∪ ⋃ i, B i := by |
| 81 | intro x hx |
| 82 | have hpost : x ∈ E.retained_post ∪ ⋃ i, (E.caps i).carrier := by |
| 83 | rw [E.post_cover] |
| 84 | exact mem_univ x |
| 85 | rcases hpost with ha | hb |
| 86 | · exact Or.inl ⟨ha, hx⟩ |
| 87 | · obtain ⟨i, hi⟩ := mem_iUnion.mp hb |
| 88 | exact Or.inr (mem_iUnion.mpr ⟨i, hi, hx⟩) |
| 89 | change IsPreconnected A |
| 90 | apply (isPreconnected_iff_subset_of_fully_disjoint_closed hA).mpr |
| 91 | intro u v hu hv huv hdisj |
| 92 | let J : Set (Fin E.cap_count) := {i | A ∩ B i ⊆ u} |
| 93 | have hright (i : Fin E.cap_count) (hi : i ∉ J) : A ∩ B i ⊆ v := by |
| 94 | exact ((isPreconnected_iff_subset_of_fully_disjoint_closed (hA.inter (hB i))).mp |
| 95 | (hattach i) u v hu hv (inter_subset_left.trans huv) hdisj).resolve_left hi |
| 96 | let L := (A ∩ u) ∪ ⋃ i ∈ J, B i |
| 97 | let R := (A ∩ v) ∪ ⋃ i ∈ Jᶜ, B i |
| 98 | have hL : IsClosed L := |
| 99 | (hA.inter hu).union ((Set.toFinite J).isClosed_biUnion (fun i _ => hB i)) |
| 100 | have hR : IsClosed R := |
| 101 | (hA.inter hv).union ((Set.toFinite Jᶜ).isClosed_biUnion (fun i _ => hB i)) |
| 102 | have hLA : A ∩ L ⊆ u := by |
| 103 | rintro x ⟨hxA, hx⟩ |
| 104 | rcases hx with hx | hx |
| 105 | · exact hx.2 |
| 106 | · obtain ⟨i, hi⟩ := mem_iUnion.mp hx |
| 107 | obtain ⟨hi, hxi⟩ := mem_iUnion.mp hi |
| 108 | exact hi ⟨hxA, hxi⟩ |
| 109 | have hRA : A ∩ R ⊆ v := by |
| 110 | rintro x ⟨hxA, hx⟩ |
| 111 | rcases hx with hx | hx |
| 112 | · exact hx.2 |
| 113 | · obtain ⟨i, hi⟩ := mem_iUnion.mp hx |
| 114 | obtain ⟨hi, hxi⟩ := mem_iUnion.mp hi |
| 115 | exact hright i hi ⟨hxA, hxi⟩ |
| 116 | have hLR : Disjoint L R := by |
| 117 | apply Set.disjoint_left.mpr |
| 118 | intro x hxL hxR |
| 119 | rcases hxL with hxu | hxi |
| 120 | · exact Set.disjoint_left.mp hdisj hxu.2 (hRA ⟨hxu.1, hxR⟩) |
| 121 | rcases hxR with hxv | hxj |
| 122 | · exact Set.disjoint_left.mp hdisj (hLA ⟨hxv.1, Or.inr hxi⟩) hxv.2 |
| 123 | obtain ⟨i, hi⟩ := mem_iUnion.mp hxi |
| 124 | obtain ⟨hi, hxi⟩ := mem_iUnion.mp hi |
| 125 | obtain ⟨j, hj⟩ := mem_iUnion.mp hxj |
| 126 | obtain ⟨hj, hxj⟩ := mem_iUnion.mp hj |
| 127 | by_cases hij : i = j |
| 128 | · subst j |
| 129 | exact hj hi |
| 130 | · exact Set.disjoint_left.mp (E.cap_disjoint i j hij) hxi.1 hxj.1 |
| 131 | have hLRcover : S ⊆ L ∪ R := by |
| 132 | intro x hx |
| 133 | rcases hcover hx with ha | hb |
| 134 | · rcases huv ha with hu | hv |
| 135 | · exact Or.inl (Or.inl ⟨ha, hu⟩) |
| 136 | · exact Or.inr (Or.inl ⟨ha, hv⟩) |
| 137 | · obtain ⟨i, hi⟩ := mem_iUnion.mp hb |
| 138 | by_cases hj : i ∈ J |
| 139 | · exact Or.inl (Or.inr (mem_iUnion.mpr ⟨i, mem_iUnion.mpr ⟨hj, hi⟩⟩)) |
| 140 | · exact Or.inr (Or.inr (mem_iUnion.mpr ⟨i, mem_iUnion.mpr ⟨hj, hi⟩⟩)) |
| 141 | rcases (isPreconnected_iff_subset_of_fully_disjoint_closed hS).mp hSconn |
| 142 | L R hL hR hLRcover hLR with hleft | hright |
| 143 | · exact Or.inl (fun x hx => hLA ⟨hx, hleft hx.2⟩) |
| 144 | · exact Or.inr (fun x hx => hRA ⟨hx, hright hx.2⟩) |
| 145 | |
| 146 | /-- Proposition 15.12, p. 365: every selected child contains a nonempty |
| 147 | connected inherited closed part, including when its basepoint is in a cap. -/ |
| 148 | theorem retainedPost_in_child_isConnected |
| 149 | (C : SurgerySelectedComponent (slice T)) : |
| 150 | IsConnected (E.retained_post ∩ range C.inclusion) := by |
| 151 | refine ⟨?_, retainedPost_in_child_isPreconnected E C⟩ |
| 152 | have hbase : C.inclusion C.basepoint ∈ E.retained_post ∪ ⋃ i, (E.caps i).carrier := by |
| 153 | rw [E.post_cover] |
| 154 | exact mem_univ _ |
| 155 | rcases hbase with hbase | hbase |
| 156 | · exact ⟨C.inclusion C.basepoint, hbase, mem_range_self _⟩ |
| 157 | · obtain ⟨i, hi⟩ := mem_iUnion.mp hbase |
| 158 | have hsub := cap_subset_child_of_inter_nonempty E i C |
| 159 | ⟨C.inclusion C.basepoint, hi, mem_range_self _⟩ |
| 160 | obtain ⟨x, hx⟩ := (cap_frontier_isConnected E i).nonempty |
| 161 | rw [← E.cap_boundary i] at hx |
| 162 | exact ⟨x, hx.1, hsub hx.2⟩ |
| 163 | |
| 164 | /-- Proposition 15.12, p. 365: the actual retained root in the pre-surgery |
| 165 | slice, before restricting it to the chosen parent. -/ |
| 166 | def retainedPreRoot (C : SurgerySelectedComponent (slice T)) : |
| 167 | Set (slice E.tMinus).carrier := |
| 168 | E.retention.inverse '' (E.retained_post ∩ range C.inclusion) |
| 169 | |
| 170 | /-- Proposition 15.12, p. 365: membership in the retained root is exactly |
| 171 | retained membership together with landing in the selected child. -/ |
| 172 | theorem mem_retainedPreRoot_iff (C : SurgerySelectedComponent (slice T)) |
| 173 | (x : (slice E.tMinus).carrier) : |
| 174 | x ∈ retainedPreRoot E C ↔ |
| 175 | x ∈ E.retained_pre ∧ E.retention.map x ∈ range C.inclusion := by |
| 176 | constructor |
| 177 | · rintro ⟨y, hy, rfl⟩ |
| 178 | constructor |
| 179 | · exact retention_inverse_mem_pre E hy.1 |
| 180 | · simpa only [E.retention.right_inverse hy.1] using hy.2 |
| 181 | · rintro ⟨hx, hC⟩ |
| 182 | refine ⟨E.retention.map x, ⟨?_, hC⟩, E.retention.left_inverse hx⟩ |
| 183 | exact retention_map_mem_post E hx |
| 184 | |
| 185 | /-- Proposition 15.12, p. 365: the retained inverse transports the |
| 186 | connected inherited part of the child to a connected root in the pre-slice. -/ |
| 187 | theorem retainedPreRoot_isConnected (C : SurgerySelectedComponent (slice T)) : |
| 188 | IsConnected (retainedPreRoot E C) := by |
| 189 | exact (retainedPost_in_child_isConnected E C).image E.retention.inverse |
| 190 | (E.retention.inverse_smooth.continuousOn.mono inter_subset_left) |
| 191 | |
| 192 | /-- Proposition 15.12, p. 365: the retained root is a compact subset of |
| 193 | the regular pre-surgery region. -/ |
| 194 | theorem retainedPreRoot_isCompact (C : SurgerySelectedComponent (slice T)) : |
| 195 | IsCompact (retainedPreRoot E C) := by |
| 196 | have hclosed : IsClosed (range C.inclusion) := by |
| 197 | rw [C.range_eq_component] |
| 198 | exact isClosed_connectedComponent |
| 199 | exact (E.retained_post_compact.inter_right hclosed).image_of_continuousOn |
| 200 | (E.retention.inverse_smooth.continuousOn.mono inter_subset_left) |
| 201 | |
| 202 | end RetainedRoot |
| 203 | |
| 204 | section ParentRoot |
| 205 | |
| 206 | variable {g₀ : StandardInitialMetric} {D : RepairedSurgeryFlowData.{u} g₀} |
| 207 | {T : ℝ} {hT : T ∈ D.flow.surgery_times} |
| 208 | [Nonempty (D.flow.slice T).carrier] |
| 209 | (I : RepairedComparisonMapInput D T hT) |
| 210 | |
| 211 | /-- Proposition 15.12, p. 365: the connected retained root belongs wholly |
| 212 | to the chosen parent because the actual inherited open set is nonempty. -/ |
| 213 | theorem retainedPreRoot_subset_parent : |
| 214 | retainedPreRoot (D.flow.event T hT) I.child ⊆ range I.parent.inclusion := by |
| 215 | obtain ⟨x, hx⟩ := I.inherited |
| 216 | have hxroot : I.parent.inclusion x ∈ retainedPreRoot (D.flow.event T hT) I.child := |
| 217 | (mem_retainedPreRoot_iff _ _ _).mpr |
| 218 | ⟨interior_subset (I.retained_subset x hx), I.retained_to_child x hx⟩ |
| 219 | have hsub := (retainedPreRoot_isConnected (D.flow.event T hT) I.child).subset_connectedComponent |
| 220 | hxroot |
| 221 | have hparent : I.parent.inclusion x ∈ connectedComponent |
| 222 | (I.parent.inclusion I.parent.basepoint) := by |
| 223 | rw [← I.parent.range_eq_component] |
| 224 | exact mem_range_self x |
| 225 | rw [I.parent.range_eq_component, connectedComponent_eq hparent] |
| 226 | exact hsub |
| 227 | |
| 228 | /-- Proposition 15.12, p. 365: the inherited closed root on the actual |
| 229 | parent carrier. Its interior will be exactly the prescribed retained set. -/ |
| 230 | def retainedRoot : Set I.parent.carrier.carrier := |
| 231 | I.parent.inclusion ⁻¹' retainedPreRoot (D.flow.event T hT) I.child |
| 232 | |
| 233 | /-- Proposition 15.12, p. 365: the selected parent's retained closed root |
| 234 | is connected; no global comparison map is assumed in this construction. -/ |
| 235 | theorem retainedRoot_isConnected : IsConnected (retainedRoot I) := by |
| 236 | exact (retainedPreRoot_isConnected (D.flow.event T hT) I.child).preimage_of_isOpenMap |
| 237 | I.parent.inclusion_openEmbedding.injective |
| 238 | I.parent.inclusion_openEmbedding.isOpenMap (retainedPreRoot_subset_parent I) |
| 239 | |
| 240 | /-- Proposition 15.12, p. 365: the inherited closed root is closed in the |
| 241 | parent, using the actual compact retained region and its inverse map. -/ |
| 242 | theorem retainedRoot_isClosed : IsClosed (retainedRoot I) := |
| 243 | (retainedPreRoot_isCompact (D.flow.event T hT) I.child).isClosed.preimage |
| 244 | I.parent.inclusion_openEmbedding.continuous |
| 245 | |
| 246 | /-- Proposition 15.12, p. 365: the selected parent's retained root is |
| 247 | compact, as a closed subset of the compact actual parent component. -/ |
| 248 | theorem retainedRoot_isCompact : IsCompact (retainedRoot I) := |
| 249 | I.parent.compact.of_isClosed_subset (retainedRoot_isClosed I) (subset_univ _) |
| 250 | |
| 251 | /-- Proposition 15.12, p. 365: the inherited open set is the interior of |
| 252 | the connected closed root, with its full domain fixed by `retained_eq`. -/ |
| 253 | theorem retained_eq_interior_root : I.retained = interior (retainedRoot I) := by |
| 254 | have hsub : I.retained ⊆ retainedRoot I := by |
| 255 | intro x hx |
| 256 | exact (mem_retainedPreRoot_iff _ _ _).mpr |
| 257 | ⟨interior_subset (I.retained_subset x hx), I.retained_to_child x hx⟩ |
| 258 | apply subset_antisymm (interior_maximal hsub I.retained_open) |
| 259 | intro x hx |
| 260 | have hxroot := (mem_retainedPreRoot_iff (D.flow.event T hT) I.child |
| 261 | (I.parent.inclusion x)).mp (show x ∈ retainedRoot I from interior_subset hx) |
| 262 | have himage : I.parent.inclusion '' interior (retainedRoot I) ⊆ |
| 263 | (D.flow.event T hT).retained_pre := by |
| 264 | rintro _ ⟨y, hy, rfl⟩ |
| 265 | exact ((mem_retainedPreRoot_iff (D.flow.event T hT) I.child |
| 266 | (I.parent.inclusion y)).mp (show y ∈ retainedRoot I from interior_subset hy)).1 |
| 267 | have hopen := I.parent.inclusion_openEmbedding.isOpenMap _ |
| 268 | (isOpen_interior (s := retainedRoot I)) |
| 269 | rw [I.retained_eq] |
| 270 | exact ⟨interior_maximal himage hopen ⟨x, hx, rfl⟩, hxroot.2⟩ |
| 271 | |
| 272 | /-- Proposition 15.12 and Remark 15.13, p. 365: the actual central sphere |
| 273 | on the selected parent, exactly as in the input separating hypothesis. -/ |
| 274 | def parentSphere (i : Fin (D.flow.event T hT).cap_count) : |
| 275 | Set I.parent.carrier.carrier := |
| 276 | I.parent.inclusion ⁻¹' ((D.flow.event T hT).limit_identify.inverse '' |
| 277 | ((D.flow.event T hT).necks i).neck.central_sphere) |
| 278 | |
| 279 | /-- Proposition 15.12, p. 365: the boundary indices of the retained root |
| 280 | are the actual caps belonging to its selected child. -/ |
| 281 | def rootCaps : Set (Fin (D.flow.event T hT).cap_count) := |
| 282 | {i | (((D.flow.event T hT).caps i).carrier ∩ range I.child.inclusion).Nonempty} |
| 283 | |
| 284 | /-- Proposition 15.12, p. 365: the entire local surgery output for a root |
| 285 | cap lies in the selected child, supplying every local comparison's target. -/ |
| 286 | theorem rootCap_local_output_in_child (i : Fin (D.flow.event T hT).cap_count) |
| 287 | (hi : i ∈ rootCaps I) : |
| 288 | range ((D.flow.event T hT).local_embed i) ⊆ range I.child.inclusion := by |
| 289 | apply local_embed_range_subset_child (D.flow.event T hT) i I.child |
| 290 | obtain ⟨y, hy, hchild⟩ := hi |
| 291 | rw [← (D.flow.event T hT).local_cap_image i] at hy |
| 292 | obtain ⟨z, _, rfl⟩ := hy |
| 293 | exact ⟨z, hchild⟩ |
| 294 | |
| 295 | /-- Proposition 15.12 and Remark 15.13, p. 365: the entire negative |
| 296 | half-neck of a root cap belongs to the ambient inherited root. -/ |
| 297 | theorem rootCap_negative_subset_root (i : Fin (D.flow.event T hT).cap_count) |
| 298 | (hi : i ∈ rootCaps I) : |
| 299 | (D.flow.event T hT).limit_identify.inverse '' |
| 300 | ((D.flow.event T hT).necks i).neck.region |
| 301 | (-((D.flow.event T hT).necks i).neck.epsilon⁻¹) 0 ⊆ |
| 302 | retainedPreRoot (D.flow.event T hT) I.child := by |
| 303 | rintro x ⟨z, hz, rfl⟩ |
| 304 | apply (mem_retainedPreRoot_iff _ _ _).mpr |
| 305 | constructor |
| 306 | · obtain ⟨y, hy, hyz⟩ := (D.flow.event T hT).neck_negative_retained i hz |
| 307 | rw [← hyz, (D.flow.event T hT).limit_identify.left_inverse |
| 308 | ((D.flow.event T hT).retained_pre_subset hy)] |
| 309 | exact hy |
| 310 | · rw [← (D.flow.event T hT).local_retention i z hz] |
| 311 | exact rootCap_local_output_in_child I i hi (mem_range_self _) |
| 312 | |
| 313 | /-- Proposition 15.12 and Remark 15.13, p. 365: every positive half-neck |
| 314 | is disjoint from the closed retained root, as stipulated by the event's |
| 315 | actual discarded-side condition. -/ |
| 316 | theorem positive_neck_disjoint_root (i : Fin (D.flow.event T hT).cap_count) : |
| 317 | Disjoint ((D.flow.event T hT).limit_identify.inverse '' |
| 318 | ((D.flow.event T hT).necks i).neck.region 0 |
| 319 | ((D.flow.event T hT).necks i).neck.epsilon⁻¹) |
| 320 | (retainedPreRoot (D.flow.event T hT) I.child) := by |
| 321 | apply Set.disjoint_left.mpr |
| 322 | rintro x ⟨z, hz, rfl⟩ hx |
| 323 | have hpre := ((mem_retainedPreRoot_iff _ _ _).mp hx).1 |
| 324 | apply Set.disjoint_left.mp ((D.flow.event T hT).neck_positive_discarded i) hz |
| 325 | exact ⟨_, hpre, (D.flow.event T hT).limit_identify.right_inverse (mem_univ z)⟩ |
| 326 | |
| 327 | /-- Proposition 15.12, p. 365: the entire pre-sphere of every root cap |
| 328 | belongs to the ambient retained root, hence to the selected parent. -/ |
| 329 | theorem rootCap_preSphere_subset (i : Fin (D.flow.event T hT).cap_count) |
| 330 | (hi : i ∈ rootCaps I) : |
| 331 | (D.flow.event T hT).limit_identify.inverse '' |
| 332 | ((D.flow.event T hT).necks i).neck.central_sphere ⊆ |
| 333 | retainedPreRoot (D.flow.event T hT) I.child := by |
| 334 | intro x hx |
| 335 | have hpre := preSphere_subset_retained (D.flow.event T hT) i hx |
| 336 | apply (mem_retainedPreRoot_iff _ _ _).mpr |
| 337 | exact ⟨hpre, cap_subset_child_of_inter_nonempty (D.flow.event T hT) i I.child hi |
| 338 | ((retention_mem_cap_iff (D.flow.event T hT) i hpre).mpr hx)⟩ |
| 339 | |
| 340 | /-- Proposition 15.12, p. 365: every root-cap sphere actually meets the |
| 341 | chosen parent; the separating assumption is therefore available for it. -/ |
| 342 | theorem rootCap_parentSphere_nonempty (i : Fin (D.flow.event T hT).cap_count) |
| 343 | (hi : i ∈ rootCaps I) : (parentSphere I i).Nonempty := by |
| 344 | obtain ⟨x, hx⟩ := (preSphere_isConnected (D.flow.event T hT) i).nonempty |
| 345 | obtain ⟨y, hy⟩ := retainedPreRoot_subset_parent I (rootCap_preSphere_subset I i hi hx) |
| 346 | refine ⟨y, ?_⟩ |
| 347 | change I.parent.inclusion y ∈ (D.flow.event T hT).limit_identify.inverse '' |
| 348 | ((D.flow.event T hT).necks i).neck.central_sphere |
| 349 | exact hy.symm ▸ hx |
| 350 | |
| 351 | /-- Proposition 15.12 and Remark 15.13, p. 365: every root boundary sphere |
| 352 | satisfies the contract's actual separating-sphere premise. -/ |
| 353 | theorem rootCap_parentSphere_separating (i : Fin (D.flow.event T hT).cap_count) |
| 354 | (hi : i ∈ rootCaps I) : SeparatingSphere (parentSphere I i) := |
| 355 | I.separating i (rootCap_parentSphere_nonempty I i hi) |
| 356 | |
| 357 | /-- Proposition 15.12, p. 365: every selected cap's parent sphere lies |
| 358 | on the frontier of the inherited closed root. -/ |
| 359 | theorem rootCap_parentSphere_subset_frontier (i : Fin (D.flow.event T hT).cap_count) |
| 360 | (hi : i ∈ rootCaps I) : parentSphere I i ⊆ frontier (retainedRoot I) := by |
| 361 | intro x hx |
| 362 | have hxroot : x ∈ retainedRoot I := rootCap_preSphere_subset I i hi hx |
| 363 | apply (mem_frontier_iff_notMem_interior hxroot).mpr |
| 364 | rw [← retained_eq_interior_root I] |
| 365 | intro hret |
| 366 | have hboundary : I.parent.inclusion x ∈ frontier (D.flow.event T hT).retained_pre := by |
| 367 | rw [(D.flow.event T hT).pre_boundary] |
| 368 | exact mem_iUnion.mpr ⟨i, hx⟩ |
| 369 | exact (mem_frontier_iff_notMem_interior |
| 370 | (interior_subset (I.retained_subset x hret))).mp hboundary (I.retained_subset x hret) |
| 371 | |
| 372 | /-- Proposition 15.12 and Remark 15.13, p. 365: the actual root boundary |
| 373 | is the finite disjoint family of spheres belonging to the selected child. -/ |
| 374 | theorem frontier_retainedRoot : |
| 375 | frontier (retainedRoot I) = ⋃ i ∈ rootCaps I, parentSphere I i := by |
| 376 | apply subset_antisymm |
| 377 | · intro x hx |
| 378 | have hxroot := (retainedRoot_isClosed I).frontier_subset hx |
| 379 | have hxdata := (mem_retainedPreRoot_iff (D.flow.event T hT) I.child |
| 380 | (I.parent.inclusion x)).mp hxroot |
| 381 | have hnret : x ∉ I.retained := by |
| 382 | rw [retained_eq_interior_root I] |
| 383 | exact (mem_frontier_iff_notMem_interior hxroot).mp hx |
| 384 | have hprefront : I.parent.inclusion x ∈ |
| 385 | frontier (D.flow.event T hT).retained_pre := by |
| 386 | apply (mem_frontier_iff_notMem_interior hxdata.1).mpr |
| 387 | intro hi |
| 388 | apply hnret |
| 389 | rw [I.retained_eq] |
| 390 | exact ⟨hi, hxdata.2⟩ |
| 391 | rw [(D.flow.event T hT).pre_boundary] at hprefront |
| 392 | obtain ⟨i, hi⟩ := mem_iUnion.mp hprefront |
| 393 | have hrootcap : i ∈ rootCaps I := |
| 394 | ⟨(D.flow.event T hT).retention.map (I.parent.inclusion x), |
| 395 | (retention_mem_cap_iff (D.flow.event T hT) i hxdata.1).mpr hi, hxdata.2⟩ |
| 396 | exact mem_iUnion.mpr ⟨i, mem_iUnion.mpr ⟨hrootcap, hi⟩⟩ |
| 397 | · rintro x hx |
| 398 | obtain ⟨i, hi⟩ := mem_iUnion.mp hx |
| 399 | obtain ⟨hi, hx⟩ := mem_iUnion.mp hi |
| 400 | exact rootCap_parentSphere_subset_frontier I i hi hx |
| 401 | |
| 402 | /-- Proposition 15.12 and Remark 15.13, p. 365: distinct actual parent |
| 403 | spheres are disjoint because their terminal neck carriers are disjoint. -/ |
| 404 | theorem parentSphere_disjoint (i j : Fin (D.flow.event T hT).cap_count) |
| 405 | (hij : i ≠ j) : Disjoint (parentSphere I i) (parentSphere I j) := by |
| 406 | apply Set.disjoint_left.mpr |
| 407 | intro x hi hj |
| 408 | obtain ⟨y, hy, hyx⟩ := hi |
| 409 | obtain ⟨z, hz, hzx⟩ := hj |
| 410 | have hyz := congrArg (D.flow.event T hT).limit_identify.map (hyx.trans hzx.symm) |
| 411 | rw [(D.flow.event T hT).limit_identify.right_inverse (mem_univ y), |
| 412 | (D.flow.event T hT).limit_identify.right_inverse (mem_univ z)] at hyz |
| 413 | exact Set.disjoint_left.mp ((D.flow.event T hT).neck_carrier_disjoint i j hij) |
| 414 | (((D.flow.event T hT).necks i).neck.central_sphere_subset hy) |
| 415 | (hyz.symm ▸ ((D.flow.event T hT).necks j).neck.central_sphere_subset hz) |
| 416 | |
| 417 | end ParentRoot |
| 418 | |
| 419 | end PoincareMT.SurgeryComparison |