import NavierStokes.ActualCurrentParticularBounds import NavierStokes.SharpCommonGraphJets import NavierStokes.SharpGeometricModeJets noncomputable section namespace NavierStokes.SharpCurrentPhysicalPhase open Set Function Filter ProblemStatement CorrectionInitialization open PhysicalGraphBounds PhysicalWaveSum LocalPhysicalCopyBounds open scoped ContDiff Topology abbrev Native := ActualParticularBackground.Native abbrev h : ℝ := ActualPrimary.h noncomputable def nativeMap (a : ℝ) (c : PolarCharts.Index) (n d : ℕ) : SpaceTime → Native := CurrentPhysicalChartJets.chartMap a c ∘ commonLift h n d noncomputable def fullMap (a : ℝ) (c : PolarCharts.Index) (n d : ℕ) : SpaceTime → ActualPrimary.FullPoint := ActualParticularBackground.nativeToFull ∘ nativeMap a c n d private theorem nat_le_infty (k : ℕ) : (k : WithTop ℕ∞) ≤ ∞ := WithTop.coe_le_coe.mpr le_top theorem smoothNear_comp {E F G : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [NormedAddCommGroup F] [NormedSpace ℝ F] [NormedAddCommGroup G] [NormedSpace ℝ G] {f : F → G} {g : E → F} {x : E} (hf : SmoothNear f (g x)) (hg : SmoothNear g x) : SmoothNear (f ∘ g) x := by obtain ⟨V,hV,hgx,hf⟩ := hf obtain ⟨U,hU,hx,hg⟩ := hg obtain ⟨W,hWV,hW,hxW⟩ := mem_nhds_iff.mp ((hg.contDiffAt (hU.mem_nhds hx)).continuousAt.preimage_mem_nhds (hV.mem_nhds hgx)) refine ⟨U ∩ W,hU.inter hW,⟨hx,hxW⟩,?_⟩ exact hf.comp (hg.mono inter_subset_left) (fun y hy => hWV hy.2) theorem nativeMap_smoothNear {a : ℝ} (ha : 0 < a) (c : PolarCharts.Index) (n d : ℕ) {w : SpaceTime} (hw : radialProjection w ≠ 0) : SmoothNear (nativeMap a c n d) w := by let U : Set SpaceTime := {w | radialProjection w ≠ 0} have hU : IsOpen U := axisFree_open.preimage radialProjection.continuous refine ⟨U,hU,hw,?_⟩ exact (CurrentPhysicalChartJets.chartMap_smooth ha c).comp_contDiffOn ((downLift d).contDiff.comp_contDiffOn (physicalLift_smooth h n)) theorem fullMap_smoothNear {a : ℝ} (ha : 0 < a) (c : PolarCharts.Index) (n d : ℕ) {w : SpaceTime} (hw : radialProjection w ≠ 0) : SmoothNear (fullMap a c n d) w := by obtain ⟨U,hU,hx,hs⟩ := nativeMap_smoothNear ha c n d hw exact ⟨U,hU,hx,ActualParticularBackground.nativeToFull.toContinuousLinearEquiv.contDiff.comp_contDiffOn hs⟩ noncomputable def remainder (n : ℕ) (i : ActualPhaseJetBounds.CopyIndex B N0) (x : ActualPrimary.FullPoint) : ℝ := ActualPhaseJetBounds.nativeRemainder i.1 ((ActualPrimaryBounds.fullCopy i.1 n i.2 x).1,(ActualPrimaryBounds.fullCopy i.1 n i.2 x).2.2) theorem weightedPhase_smoothNear {a : ℝ} (ha : 0 < a) (c : PolarCharts.Index) (n d : ℕ) {i : ActualPhaseJetBounds.CopyIndex B N0} {w : SpaceTime} (hw : radialProjection w ≠ 0) (hi : fullMap a c n d w ∈ ActualPhaseJetBounds.phaseCell n i) : SmoothNear (ActualCurrentCarrierJets.weightedPhase i.1 n ∘ nativeMap a c n d) w := by change SmoothNear (ActualPhaseJetBounds.weightedPhase i.1 n ∘ fullMap a c n d) w exact smoothNear_comp (ActualCurrentCarrierJets.full_weightedPhase_smoothNear hi) (fullMap_smoothNear ha c n d hw) end NavierStokes.SharpCurrentPhysicalPhase