import YM.Contacts.Normal.Rays /-! # Uniform scale changes during one root pairing Families of tests with controlled relative compacts across the step. Support changing only through the colliding block (to *at most* the strip for the fixed/running-length extension). No estimate uses a smaller fixed collar tied to the parent radius when the smaller relative coordinates can reach the subtraction strip. -/ set_option autoImplicit false set_option maxHeartbeats 600000 noncomputable section namespace YM.Contacts.Normal open Function Filter Set Metric MeasureTheory Submodule open scoped Topology BigOperators Classical ContDiff InnerProductSpace variable {E : Type*}[NormedAddCommGroup E][InnerProductSpace ℝ E][FiniteDimensional ℝ E] variable (K : Submodule ℝ E) {L : Submodule ℝ E} {x y : E} {A : E≃L[ℝ] E} {R r s u B : ℝ} lemma projected_bounded (x:E) : ‖K.starProjection x‖≤‖x‖:=by exact K.norm_starProjection_apply_le x abbrev strip (s:ℝ) := {x:E| ‖K.starProjection x‖ ≤ s} def halo (s : ℝ)(t : Bool)(U : Set E) := if t then U ∪ ((slide K 0 ⁻¹' U) ∩ strip K (2*s)) else U lemma ordinary (t : Bool) (U : Set E) : U ⊆ halo K s t U:=by cases t; rfl; exact Set.subset_union_left lemma strip_closes : IsClosed (strip K s):= isClosed_le K.starProjection.continuous.norm continuous_const lemma halo_closes {X : Set E}(h : IsClosed X)(t : Bool) : IsClosed (halo K s t X):= by cases t; exact h; exact h.union ((h.preimage (slide K 0).continuous) |>.inter (strip_closes K)) lemma tail_hug {t : Bool} {U : Set E}(hx : U ⊆ strip K B)(hb:2*s≤ B) : halo K s t U ⊆ strip K B:=by cases t; exact hx; exact Set.union_subset hx fun x h=> h.2.trans hb -- associated passing points lemma relative_change (x : E) : x-slide K 0 x∈ K:=by rw [slide_zero,sub_sub_cancel]; exact K.starProjection_apply_mem _ lemma follows {U : Set E} {t : Bool} (hx : x ∈ halo K s t U): ∃ z∈U, x-z∈ K ∧ (x=z ∨ t=true):= by cases t; exact ⟨x,hx,by rw [sub_self]; exact K.zero_mem,Or.inl rfl⟩ rcases (show _ ∨ _∧_ from hx) with h|h · exact ⟨x,h,by rw [sub_self]; exact K.zero_mem,Or.inl rfl⟩ exact ⟨_,h.1,relative_change K x,Or.inr rfl⟩ lemma outside_row (h : x-y∈ L) (he : L≤ Kᗮ) : K.starProjection x=K.starProjection y:= by apply sub_eq_zero.mp; rw [← map_sub]; exact K.starProjection_apply_eq_zero_iff.mpr (he h) lemma inherit_halo {U : Set E} (h : L ≤ Kᗮ)(v : Bool) (hx : U ⊆ strip K B): halo L s v U⊆ strip K B:=by intro x hu; obtain ⟨y,hy,hy',hh⟩:= follows _ hu; exact Eq.trans_le (congr_arg norm (outside_row K hy' h)) (hx hy) -- Eq.trans_le name? lemma inherit_strip (he : L ≤ K) : strip K B ⊆ strip L B:= fun x h=> by change ‖L.starProjection x‖≤B; rw [← show L.starProjection (K.starProjection x)=L.starProjection x from absorb_projection he x]; exact (projected_bounded _ _).trans h -- all enlarged sets tested at scale r; live always still only U lemma test_halo (s:ℝ)(hs:0