import YM.Contacts.Normal.Fans /-! # Shell partition and accounting Use on all cutoff or small-shell-supported tests. Absolute dyadic decomposition together with angular fans here. Coordinates as above; no dyadic partitions appear in the definition. -/ set_option autoImplicit false set_option maxHeartbeats 500000 noncomputable section namespace YM.Contacts.Normal open Function Filter Set Metric MeasureTheory Submodule MultipleContact open scoped Topology ContDiff Classical BigOperators InnerProductSpace variable {E F Z : Type*}[NormedAddCommGroup E][InnerProductSpace ℝ E] [FiniteDimensional ℝ E] section common variable (K : Submodule ℝ E) def eclipse (r : ℝ) := window K r-window K (r/2) omit [FiniteDimensional ℝ E] [InnerProductSpace ℝ E] in lemma support_comp [TopologicalSpace F] [Zero Z] (u : E→F)(hu : Continuous u)(f:F→Z) : tsupport (f ∘ u) ⊆ u ⁻¹' tsupport f:= closure_minimal (fun x h=>subset_closure (show u x ∈ Function.support f from h)) ((isClosed_tsupport _).preimage hu) omit [FiniteDimensional ℝ E] in lemma support_mask (f v : SmoothTests E) : tsupport (mask f v).val ⊆ tsupport f.val ∩ tsupport v.val:= subset_inter tsupport_mul_subset_left tsupport_mul_subset_right lemma support_arc {r : ℝ} (hr:0 simp [dyad_zero] | succ i h => rw [Finset.sum_range_succ,h,eclipse,dyad_next]; abel lemma reunion (f : SmoothTests E) (hf : tsupport f.val ⊆ {x | ‖K.starProjection x‖ ≤ 1}) {x:E}(hx:K.starProjection x≠0): ∀ᶠ i in (atTop:Filter ℕ),( ∑ j∈Finset.range i, mask (eclipse K (dyad j)) f).val =ᶠ[𝓝 x] f.val:= by let r:= ‖K.starProjection x‖; have hr : 0< r:= norm_pos_iff.mpr hx have he:=dyad_shrivels.eventually (p:=fun t=> t normalOn P g local notation "o" => pinch K! /-- Sector mask and its actual patch after rescaling. -/ def ray (q : Splittings g)(r : ℝ) : SmoothTests E := mask (eclipse K! r) ⟨(u.sector q).val ∘ o r, (infSmooth _).comp ((o r).contDiff)⟩ def patch (q : Splittings g) (r : ℝ) := sun K! r ∩ (o r ⁻¹' tsupport (u.sector q).val) lemma ray_value (q : Splittings g) (t : ℝ) (x:E) : (u.ray q t).val x=(eclipse K! t).val x * (u.sector q).val (pinch (normalOn P g) t x):=rfl lemma ray_closes (q : Splittings g)(r : ℝ) : IsClosed (u.patch q r) := (closed_sun _ _).inter ((isClosed_tsupport _).preimage (o r).continuous) lemma ray_in (q : Splittings g){r : ℝ} (hr:0he (support_arc _ hr (subset_closure hm))),zero_mul] lemma ray_tests (f : SmoothTests E) (hf : tsupport f.val ⊆ {x | ‖(normalOn P g).starProjection x‖ ≤ 1}) {x:E} (hx : (normalOn P g).starProjection x≠0) : ∀ᶠ i in (atTop : Filter ℕ), ( ∑ j∈Finset.range i, ∑ q:Splittings g, mask (u.ray q (dyad j)) f).val =ᶠ[𝓝 x] f.val:= by simp_rw [u.ray_sums _ (dyad_pos _)]; exact reunion _ _ hf hx lemma ray_proper {A:E≃L[ℝ] E}(h : Proper A r K!)(hr:0(0:ℝ),∀ {r:ℝ}, 0?_⟩ let y:=pinch (normalOn P g) r x; have hh:= he y.val y.property ((pinch_shell _ hr).2 hx.1) (by rw [orthogonalProjectionOnto_mem_subspace_eq_self]; exact hx.2); rw [show centroid f.val (P y.val)-centroid f'.val (P y.val) = r⁻¹ • (centroid f.val (P x)-centroid f'.val (P x)) from ray_dist (P:=P) hp x ⟨f.val,Finset.Subset.trans f.property.1 (q.val.le i.property), f.property.2⟩ ⟨f'.val, Finset.Subset.trans f'.property.1 (q.val.le j.property), f'.property.2⟩ r,norm_smul,Real.norm_of_nonneg (inv_pos.mpr hr).le, mul_comm,← div_eq_mul_inv] at hh; exact (le_div_iff₀ hr).mp hh lemma lights (q : Splittings g) (hr : 0 by obtain ⟨t,ht,h⟩:= u.through hp q i j he f l; exact sub_ne_zero.mp (norm_pos_iff.mp ((mul_pos ht hr).trans_le (h hr _ hx))) end Fans omit [FiniteDimensional ℝ E] in lemma bright_slots {R : Pieces g} {x:E} (hx : x∈ bright P R) (i : Group k)(hi : i ∈ R.parts) (j : Group k)(hj:j∈R.parts) (h : i≠j) (a : Fin k)(ha:a∈i)(b : Fin k)(hb : b∈ j) : (P x) a≠(P x) b := by have he := hx (⟨i,hi⟩:R.parts) ⟨j,hj⟩ (fun h'=> h (congr_arg Subtype.val h')) ⟨{a},Finset.singleton_subset_iff.mpr ha, Finset.singleton_nonempty _⟩ ⟨{b},Finset.singleton_subset_iff.mpr hb,Finset.singleton_nonempty _⟩; simpa only [centroid_single] using he end YM.Contacts.Normal