import Euler.PacketCylinderFieldProducts import Euler.CylinderScalarPrimitive import Euler.SmoothCoefficientPath /-! Actual raw slow and normal-weighted angular advection on cylinder-path witnesses. -/ noncomputable section namespace EulerPacketCylinderField open Set MeasureTheory ContinuousLinearMap InnerProductSpace EulerSmoothLimit EulerLiftedGradientSpace EulerCylinderSmoothOrbit EulerLpCylinderTranslation EulerCylinderPathProduct EulerCylinderScalarPrimitive EulerMeanCoefficients EulerMetricTransport EulerLiftedWeakDerivative EulerCylinderSobolev EulerPacketProfileRecursion open scoped ContDiff BoundedContinuousFunction private local instance : NormedAddCommGroup (Space →L[ℝ] Space) := inferInstance private local instance : NormedSpace ℝ (Space →L[ℝ] Space) := inferInstance private local instance : NormedAddCommGroup (Space →ᵇ Space) := inferInstance private local instance : NormedSpace ℝ (Space →ᵇ Space) := inferInstance private local instance : NormedAddCommGroup (Space →ᵇ Space →L[ℝ] Space) := inferInstance private local instance : NormedSpace ℝ (Space →ᵇ Space →L[ℝ] Space) := inferInstance /-- Embed the actual normal component into a fixed unit vector. -/ def normalComponentMap : Space →L[ℝ] Space →L[ℝ] Space := ((ContinuousLinearMap.compL ℝ Space ℝ Space) scalarEmbed).comp (toDual ℝ Space).toContinuousLinearMap @[simp] theorem normalComponentMap_apply (m v : Space) : normalComponentMap m v = scalarEmbed (inner ℝ m v) := rfl @[simp] theorem normalComponentMap_project (m v : Space) : scalarProject (normalComponentMap m v) = inner ℝ m v := by rw [normalComponentMap_apply,project_embed] variable {K : Type*} [TopologicalSpace K] [CompactSpace K] def normalComponentPath (N : C(K,Space →ᵇ Space)) : C(K,Space →ᵇ Space →L[ℝ] Space) := mapCoefficientPath normalComponentMap N theorem normalComponentPath_orbit (N : C(K,Space →ᵇ Space)) (hN : ContDiff ℝ ∞ (translateCoefficientPath N)) : ContDiff ℝ ∞ (translateCoefficientPath (normalComponentPath N)) := by have he : translateCoefficientPath (normalComponentPath N) = (mapCoefficientPath normalComponentMap) ∘ translateCoefficientPath N := by funext a apply ContinuousMap.ext intro t apply BoundedContinuousFunction.ext intro x rfl rw [he] exact (mapCoefficientPath (K := K) normalComponentMap).contDiff.comp hN namespace Field variable {P T : ℝ} [Fact (0 < P)] {raw raw' : VectorField} /-- Spatial transport expressed directly in the full raw covering derivative. -/ def spatialTransport (G : Field P T raw) (H : Field P T raw') : Field P T (fun z => fderiv ℝ (fun y => raw' (z.1,y)) z.2 (raw z,0)) where path := advectionPath P G.path H.path G.orbit H.orbit orbit := advectionPath_orbit P G.path H.path G.orbit H.orbit raw_eq t x θ := by rw [H.raw_fderiv,G.raw_eq] exact (pointField_advectionPath P G.path H.path G.orbit H.orbit t (x,(θ : AddCircle P))).symm /-- The normal factor is a real coefficient operation; no L² integrability of the normal itself is needed. -/ def angularTransport (G : Field P T raw) (H : Field P T raw') (N : C(Icc (0 : ℝ) T,Space →ᵇ Space)) (hN : ContDiff ℝ ∞ (translateCoefficientPath N)) (m : VectorField) (hm : ∀ (t : Icc (0 : ℝ) T) x θ, m (t,(x,θ)) = N t x) : Field P T (fun z => inner ℝ (m z) (raw z) • fderiv ℝ (fun y => raw' (z.1,y)) z.2 (0,1)) := by let NG := G.multiply (normalComponentPath N) (normalComponentPath_orbit N hN) (fun z => normalComponentMap (m z)) (fun t x θ => by rw [hm]; rfl) let Q := NG.scalarProduct (H.derivative 0) scalarProject (le_of_eq scalarProject_norm) exact Q.congr (fun t x θ => by simp only [normalComponentMap_project, standardDirection_zero]) end Field end EulerPacketCylinderField