import Euler.CylinderBoundedCover import Euler.CylinderCoverTensor import Euler.BoundedTensorCoordinates import Euler.FieldTowerPointwiseGevrey import Euler.SmoothTimeFieldJoint import Euler.InjectivePathDerivativeWithin /-! An actual coherent Sobolev tower gives a smooth bounded coefficient on the real cylinder cover, including all spatial jets in the continuous uniform time norm. The construction uses its genuine derivative words; no translation-orbit hypothesis is added. -/ noncomputable section namespace EulerAllOrderCorrectionData.FieldTower open Set MeasureTheory ContinuousLinearMap EulerLiftedGradientSpace EulerSmoothLimit EulerMetricTransport EulerCylinderCoordinates EulerCylinderSobolev EulerCylinderSobolevSpace EulerCylinderBoundedCover EulerCylinderSmoothOrbit EulerSobolevWordLevel EulerSobolevGevreyOperators EulerVolterraConvolution open scoped ContDiff BoundedContinuousFunction def coverBasis : Module.Basis (Fin 4) ℝ LiftTangent := (EuclideanSpace.basisFun (Fin 4) ℝ).toBasis.map coordinateLinearEquiv @[simp] theorem coverBasis_apply (i : Fin 4) : coverBasis i = standardDirection i := by simp only [coverBasis, Module.Basis.map_apply, OrthonormalBasis.coe_toBasis, EuclideanSpace.basisFun_apply, standardDirection] rfl variable {P T : ℝ} [Fact (0 < P)] (A : EulerAllOrderCorrectionData.FieldTower P T) private local instance (q : ℕ) : NormedAddCommGroup (SobolevSpace P q) := inferInstance private local instance (q : ℕ) : NormedSpace ℝ (SobolevSpace P q) := inferInstance private local instance (n : ℕ) : NormedAddCommGroup (LiftTangent [×n]→L[ℝ] Space) := inferInstance private local instance (n : ℕ) : NormedSpace ℝ (LiftTangent [×n]→L[ℝ] Space) := inferInstance private local instance (n : ℕ) : NormedAddCommGroup (LiftTangent →ᵇ (LiftTangent [×n]→L[ℝ] Space)) := inferInstance private local instance (n : ℕ) : NormedSpace ℝ (LiftTangent →ᵇ (LiftTangent [×n]→L[ℝ] Space)) := inferInstance def boundedCover : C(Icc (0 : ℝ) T, LiftTangent →ᵇ Space) := coverPathMap P (A.realization 3) @[simp] theorem boundedCover_apply (t : Icc (0 : ℝ) T) (x : LiftTangent) : A.boundedCover t x = A.pointField t (coveringMap P x) := rfl def boundedWord (n : ℕ) (w : Fin n → Fin 4) : C(Icc (0 : ℝ) T, LiftTangent →ᵇ Space) := coverPathMap P ((wordAtLevel P 3 n w (le_refl (n+3))).compLeftContinuous ℝ (Icc (0 : ℝ) T) (A.realization (n+3))) theorem boundedWord_apply (n : ℕ) (w : Fin n → Fin 4) (t : Icc (0 : ℝ) T) (x : LiftTangent) : A.boundedWord n w t x = iteratedFieldDerivative P w (A.pointField t) (coveringMap P x) := by change EulerSobolevPointEvaluation.pointEvaluation P (coveringMap P x) (wordAtLevel P 3 n w (le_refl (n+3)) (A.realization (n+3) t)) = _ simpa only [restrictOperator_self] using (A.pointField_wordAtLevel (n+3) 3 n (le_refl 3) (le_refl (n+3)) w t (coveringMap P x)).symm theorem boundedWord_tensor (n : ℕ) (w : Fin n → Fin 4) (t : Icc (0 : ℝ) T) (x : LiftTangent) : A.boundedWord n w t x = iteratedFDeriv ℝ n (A.boundedCover t : LiftTangent → Space) x (fun i => coverBasis (w i)) := by rw [A.boundedWord_apply, coverField_word P w (A.pointField t) (A.pointField_smooth t)] simp only [coverBasis_apply] rfl def toSmoothTimeField : SmoothTimeField (Icc (0 : ℝ) T) LiftTangent Space := SmoothTimeField.ofCoordinateJets coverBasis A.boundedCover (fun t => coverField_contDiff P (A.pointField t) (A.pointField_smooth t)) A.boundedWord A.boundedWord_tensor @[simp] theorem toSmoothTimeField_apply (t : Icc (0 : ℝ) T) (x : LiftTangent) : A.toSmoothTimeField.field t x = A.pointField t (coveringMap P x) := rfl theorem toSmoothTimeField_timeDerivative (B : EulerAllOrderCorrectionData.FieldTower P T) (hT : 0 ≤ T) (hd : ∀ t : Icc (0 : ℝ) T, HasDerivWithinAt (extendPath T hT (A.realization 3)) (B.realization 3 t) (Icc (0 : ℝ) T) t) : SmoothTimeField.TimeDerivative T hT A.toSmoothTimeField B.toSmoothTimeField := by intro t x exact A.pointField_hasDerivWithinAt B hT t (hd t) (coveringMap P x) theorem toSmoothTimeField_timeDerivative_of_interior (B : EulerAllOrderCorrectionData.FieldTower P T) (hT : 0 ≤ T) (q : ℕ) (hq : 3 ≤ q) (hd : ∀ (t : ℝ) (ht : t ∈ Ioo 0 T), HasDerivAt (extendPath T hT (A.realization q)) (B.realization q ⟨t, ht.1.le, ht.2.le⟩) t) : SmoothTimeField.TimeDerivative T hT A.toSmoothTimeField B.toSmoothTimeField := by intro t x let L : SobolevSpace P q →L[ℝ] Space := (EulerSobolevPointEvaluation.pointEvaluation P (coveringMap P x)).comp (restrictOperator P hq) let u : C(Icc (0 : ℝ) T, Space) := L.compLeftContinuous ℝ (Icc (0 : ℝ) T) (A.realization q) let v : C(Icc (0 : ℝ) T, Space) := L.compLeftContinuous ℝ (Icc (0 : ℝ) T) (B.realization q) have hu (s : Icc (0 : ℝ) T) : u s = A.pointField s (coveringMap P x) := congrArg (EulerSobolevPointEvaluation.pointEvaluation P (coveringMap P x)) (A.restrict_realization hq s) have hv (s : Icc (0 : ℝ) T) : v s = B.pointField s (coveringMap P x) := congrArg (EulerSobolevPointEvaluation.pointEvaluation P (coveringMap P x)) (B.restrict_realization hq s) have hi : ∀ r ∈ Ioo 0 T, HasDerivAt (fun s => (ContinuousLinearMap.id ℝ Space) (extendPath T hT u s)) ((ContinuousLinearMap.id ℝ Space) (extendPath T hT v r)) r := by intro r hr have h := L.hasFDerivAt.comp_hasDerivAt r (hd r hr) change HasDerivAt (fun s => L (A.realization q (projIcc 0 T hT s))) (L (B.realization q ⟨r,hr.1.le,hr.2.le⟩)) r at h change HasDerivAt (fun s => L (A.realization q (projIcc 0 T hT s))) (L (B.realization q (projIcc 0 T hT r))) r simpa only [projIcc_of_mem hT ⟨hr.1.le,hr.2.le⟩] using h have ht := EulerInjectivePathDerivative.hasDerivWithinAt_of_injective_map (ContinuousLinearMap.id ℝ Space) (fun _ _ h => h) T hT u v hi t have he : extendPath T hT u = fun r => A.pointField (projIcc 0 T hT r) (coveringMap P x) := by funext r exact hu (projIcc 0 T hT r) rw [he, hv] at ht change HasDerivWithinAt (fun r => A.pointField (projIcc 0 T hT r) (coveringMap P x)) (B.pointField t (coveringMap P x)) (Icc (0 : ℝ) T) t exact ht theorem toSmoothTimeField_jet_norm_le (n : ℕ) (C : ℝ) (hC : 0 ≤ C) (hb : ∀ (t : Icc (0 : ℝ) T) (x : LiftTangent), ‖iteratedFDeriv ℝ n (fun y => A.pointField t (coveringMap P y)) x‖ ≤ C) : ‖A.toSmoothTimeField.jet n‖ ≤ C := by apply (ContinuousMap.norm_le _ hC).2 intro t apply (BoundedContinuousFunction.norm_le hC).2 intro x rw [A.toSmoothTimeField.jet_eq] exact hb t x theorem toSmoothTimeField_jet_weighted (n : ℕ) (ρ C : ℝ) (hρ : 0 < ρ) (hC : 0 ≤ C) (hb : ∀ t : Icc (0 : ℝ) T, weightedNorm P 6 n ρ (A.realization (n+6) t) ≤ C) : ‖A.toSmoothTimeField.jet n‖ ≤ (sobolevEmbeddingConstant P 3*C) * (‖coordinateEquiv.symm.toContinuousLinearMap‖*ρ⁻¹)^n * (n.factorial : ℝ)^2 := by have hS := sobolevEmbeddingConstant_nonneg P 3 apply A.toSmoothTimeField_jet_norm_le n _ (by positivity) intro t x have hs := A.pointField_wordSum_gevrey (n+6) 6 n n (by norm_num) (le_refl (n+6)) (le_refl n) ρ C hρ t (hb t) (coveringMap P x) have hc := coverField_tensor_norm_le P n (A.pointField t) (A.pointField_smooth t) x apply hc.trans calc _ ≤ ‖coordinateEquiv.symm.toContinuousLinearMap‖^n * ((sobolevEmbeddingConstant P 3*C)*(ρ⁻¹)^n*(n.factorial : ℝ)^2) := mul_le_mul_of_nonneg_left hs (pow_nonneg (norm_nonneg _) n) _ = _ := by rw [mul_pow]; ring end EulerAllOrderCorrectionData.FieldTower