import OAI.Analysis.AncientFlat.Profile.ProfileFamilies namespace OAI noncomputable section open Set Filter Metric open scoped ContDiff Topology namespace ProfileDecay open FlatSimilarity ParabolicAnnular variable {V : Type*} [NormedAddCommGroup V] [InnerProductSpace ℝ V] [FiniteDimensional ℝ V] lemma arg_scale (r : ℝ) (hr : 0 first | rfl | ring lemma family_jet_scale (G H : ℝ → ℝ) (c : ℝ) (κ : ℝ) (hκ : 0<κ) (hG : ContDiffOn ℝ ∞ G (Ici 0)) (hpos : ∀ y : ℝ, 0≤y → κ≤G y) (hmatch : ∀ u : ℝ, 0 profileAf G y-c^2) (r • z) ∧ spaceJet (familyB H) n (r⁻¹^2,z)=r^n • iteratedFDeriv ℝ n (profileBf G) (r • z) := by have hae : (fun w : V => familyA H c (r⁻¹^2,w)) =ᶠ[𝓝 z] (fun w => profileAf G (r • w)-c^2) := by filter_upwards [isOpen_lt continuous_const continuous_norm |>.mem_nhds hz] with w hw exact (families_scale G H c hG hmatch r hr hw.le).1 have hbe : (fun w : V => familyB H (r⁻¹^2,w)) =ᶠ[𝓝 z] (fun w => profileBf G (r • w)) := by filter_upwards [isOpen_lt continuous_const continuous_norm |>.mem_nhds hz] with w hw exact (families_scale G H c hG hmatch r hr hw.le).2 obtain ⟨hA,hB⟩ := profile_smooth (V := V) G κ hκ hG hpos have hn : (n:ℕ∞ω)≤(∞:ℕ∞ω) := ENat.natCast_le_of_coe_top_le_withTop le_rfl n constructor · rw [spaceJet,(hae.iteratedFDeriv (𝕜 := ℝ) n).eq_of_nhds] exact congrFun (iteratedFDeriv_comp_const_smul r ((hA.sub contDiff_const).of_le hn)) z · rw [spaceJet,(hbe.iteratedFDeriv (𝕜 := ℝ) n).eq_of_nhds] exact congrFun (iteratedFDeriv_comp_const_smul r (hB.of_le hn)) z end ProfileDecay end end OAI