import Euler.LpSmoothFieldAlgebra import Euler.ParameterWordHigher import Euler.SmoothL2Gevrey /-! Actual finite coordinate derivatives of ordinary smooth L² fields. The word fields retain all genuine L² derivatives; no Sobolev regularity or distributional derivative is postulated. -/ noncomputable section namespace EulerOrdinarySobolev open MeasureTheory ContinuousLinearMap EulerSmoothLimit EulerLpTranslation EulerLpTranslation.SmoothL2Field EulerParameterWordGevrey Finset open scoped ContDiff ENNReal def axis (i : Fin 3) : Space := EuclideanSpace.single i 1 @[simp] theorem axis_norm (i : Fin 3) : ‖axis i‖ = 1 := by simp [axis] variable {V W : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] [NormedAddCommGroup W] [NormedSpace ℝ W] theorem field_ext {A B : SmoothL2Field V} (h : A.field = B.field) : A = B := by cases A cases B cases h rfl def wordField (A : SmoothL2Field V) : {n : ℕ} → (Fin n → Fin 3) → SmoothL2Field V | 0, _ => A | _+1, w => (wordField A (Fin.tail w)).directionalField (axis (w 0)) @[simp] theorem wordField_zero (A : SmoothL2Field V) (w : Fin 0 → Fin 3) : wordField A w = A := rfl @[simp] theorem wordField_cons (A : SmoothL2Field V) {n : ℕ} (w : Fin n → Fin 3) (i : Fin 3) : wordField A (Fin.cons i w) = (wordField A w).directionalField (axis i) := by simp only [wordField,Fin.tail_cons,Fin.cons_zero] theorem wordField_field (A : SmoothL2Field V) {n : ℕ} (w : Fin n → Fin 3) : (wordField A w).field = wordDerivative axis A.field w := by induction n with | zero => exact (funext (wordDerivative_zero axis A.field w)).symm | succ n ih => funext x change fderiv ℝ (wordField A (Fin.tail w)).field x (axis (w 0)) = _ rw [ih] have h := (A.smooth.differentiable_iteratedFDeriv (show (n : ℕ∞ω) < (∞ : ℕ∞ω) by exact_mod_cast ENat.natCast_lt_top n) x).iteratedFDeriv_succ_apply_left' (m := axis ∘ w) change fderiv ℝ (fun y => iteratedFDeriv ℝ n A.field y (fun j => axis (w j.succ))) x (axis (w 0)) = iteratedFDeriv ℝ (n+1) A.field x (fun j => axis (w j)) exact h.symm theorem wordField_snoc (A : SmoothL2Field V) {n : ℕ} (w : Fin n → Fin 3) (i : Fin 3) : wordField A (Fin.snoc w i) = wordField (A.directionalField (axis i)) w := by apply field_ext rw [wordField_field,wordField_field] exact funext (wordDerivative_snoc axis A.field A.smooth w i) theorem wordField_map (L : V →L[ℝ] W) (A : SmoothL2Field V) {n : ℕ} (w : Fin n → Fin 3) : wordField (mapField L A) w = mapField L (wordField A w) := by apply field_ext funext x rw [wordField_field,mapField_field,wordField_field] exact wordDerivative_comp_clm axis L A.field A.smooth w x theorem wordField_add (A B : SmoothL2Field V) {n : ℕ} (w : Fin n → Fin 3) : wordField (addField A B) w = addField (wordField A w) (wordField B w) := by apply field_ext funext x rw [wordField_field,addField_field,wordField_field,wordField_field] exact wordDerivative_add axis A.field B.field A.smooth B.smooth w x theorem wordField_toLp_norm_le (A : SmoothL2Field V) {n : ℕ} (w : Fin n → Fin 3) : ‖(wordField A w).toLp‖ ≤ ‖A.jetLp n‖ := by rw [Lp.norm_def,eLpNorm_congr_ae (wordField A w).toLp_ae, norm_jetLp] apply ENNReal.toReal_mono (A.integrable n).eLpNorm_ne_top apply eLpNorm_mono intro x rw [wordField_field] have h := (iteratedFDeriv ℝ n A.field x).le_opNorm (fun i => axis (w i)) simpa only [wordDerivative,axis_norm,prod_const_one,mul_one] using h def wordSize (s : ℕ) (A : SmoothL2Field V) : ℝ := ∑ n ∈ range (s+1), ∑ w : Fin n → Fin 3, ‖(wordField A w).toLp‖ def wordEnergy (s : ℕ) (A : SmoothL2Field V) : ℝ := ∑ n ∈ range (s+1), ∑ w : Fin n → Fin 3, ‖(wordField A w).toLp‖^2 def WordBound (s : ℕ) (M : ℝ) (A : SmoothL2Field V) : Prop := ∀ n ≤ s, ∀ w : Fin n → Fin 3, ‖(wordField A w).toLp‖ ≤ M theorem wordEnergy_nonneg (s : ℕ) (A : SmoothL2Field V) : 0 ≤ wordEnergy s A := sum_nonneg (fun _ _ => sum_nonneg (fun _ _ => sq_nonneg _)) theorem word_norm_sq_le_energy (A : SmoothL2Field V) {n s : ℕ} (hn : n ≤ s) (w : Fin n → Fin 3) : ‖(wordField A w).toLp‖^2 ≤ wordEnergy s A := by apply (single_le_sum (fun _ _ => sq_nonneg _) (mem_univ w)).trans exact single_le_sum (f := fun n => ∑ w : Fin n → Fin 3, ‖(wordField A w).toLp‖^2) (fun _ _ => sum_nonneg (fun _ _ => sq_nonneg _)) (mem_range.mpr (by omega)) theorem wordBound_sqrt_energy (s : ℕ) (A : SmoothL2Field V) : WordBound s (Real.sqrt (wordEnergy s A)) A := by intro n hn w exact (Real.le_sqrt (norm_nonneg _) (wordEnergy_nonneg s A)).mpr (word_norm_sq_le_energy A hn w) theorem wordBound_wordField {s k : ℕ} {M : ℝ} {A : SmoothL2Field V} (h : WordBound (k+s) M A) (w : Fin k → Fin 3) : WordBound s M (wordField A w) := by induction k generalizing A with | zero => simpa only [wordField_zero,Nat.zero_add] using h | succ k ih => have hd : WordBound (k+s) M (A.directionalField (axis (w (Fin.last k)))) := by intro n hn v rw [← wordField_snoc] exact h (n+1) (by omega) (Fin.snoc v (w (Fin.last k))) have he : wordField A w = wordField (A.directionalField (axis (w (Fin.last k)))) (Fin.init w) := by simpa only [Fin.snoc_init_self] using wordField_snoc A (Fin.init w) (w (Fin.last k)) rw [he] exact ih hd (Fin.init w) theorem field_norm (A : SmoothL2Field V) : ‖A.toLp‖ = (eLpNorm A.field 2 (volume : Measure Space)).toReal := by rw [Lp.norm_def,eLpNorm_congr_ae A.toLp_ae] theorem mapField_norm_le (L : V →L[ℝ] W) (A : SmoothL2Field V) : ‖(mapField L A).toLp‖ ≤ ‖L‖*‖A.toLp‖ := by rw [toLp_mapField] exact ((L.compLpL 2 volume).le_opNorm A.toLp).trans (mul_le_mul_of_nonneg_right (L.norm_compLpL_le (p := 2) (μ := volume)) (norm_nonneg _)) end EulerOrdinarySobolev