import OAI.MathematicalPhysics.Elasticity.Solvability namespace OAI noncomputable section open MeasureTheory TemperedDistribution open scoped SchwartzMap LineDeriv Laplacian BigOperators open MeasureTheory TemperedDistribution open scoped SchwartzMap ENNReal BigOperators open MeasureTheory TemperedDistribution open scoped SchwartzMap ENNReal namespace ElasticityRegularity section variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] def LocalEqual (Ξ© : Set E) (u v : 𝓒'(E,β„‚)) : Prop := βˆ€ Ο† : 𝓒(E,β„‚), HasCompactSupport (Ο† : E β†’ β„‚) β†’ tsupport (Ο† : E β†’ β„‚) βŠ† Ξ© β†’ u Ο†=v Ο† namespace LocalEqual variable {Ξ© : Set E} {u v w u' v' : 𝓒'(E,β„‚)} lemma refl (u : 𝓒'(E,β„‚)) : LocalEqual Ξ© u u := fun _ _ _ => rfl lemma symm (h : LocalEqual Ξ© u v) : LocalEqual Ξ© v u := fun Ο† hc hs => (h Ο† hc hs).symm lemma trans (h : LocalEqual Ξ© u v) (h' : LocalEqual Ξ© v w) : LocalEqual Ξ© u w := fun Ο† hc hs => (h Ο† hc hs).trans (h' Ο† hc hs) lemma add (h : LocalEqual Ξ© u v) (h' : LocalEqual Ξ© u' v') : LocalEqual Ξ© (u+u') (v+v') := by intro Ο† hc hs simp only [add_apply,h Ο† hc hs,h' Ο† hc hs] lemma sub (h : LocalEqual Ξ© u v) (h' : LocalEqual Ξ© u' v') : LocalEqual Ξ© (u-u') (v-v') := by intro Ο† hc hs simp only [sub_apply,h Ο† hc hs,h' Ο† hc hs] lemma smul (h : LocalEqual Ξ© u v) (c : β„‚) : LocalEqual Ξ© (c β€’ u) (c β€’ v) := by intro Ο† hc hs simp only [smul_apply,h Ο† hc hs] lemma sum {ΞΉ : Type*} (S : Finset ΞΉ) {u v : ΞΉ β†’ 𝓒'(E,β„‚)} (h : βˆ€ i ∈ S, LocalEqual Ξ© (u i) (v i)) : LocalEqual Ξ© (βˆ‘ i ∈ S, u i) (βˆ‘ i ∈ S, v i) := by intro Ο† hc hs simp only [sum_apply] exact Finset.sum_congr rfl (fun i hi => h i hi Ο† hc hs) lemma derivative (h : LocalEqual Ξ© u v) (a : E) : LocalEqual Ξ© (βˆ‚_{a} u) (βˆ‚_{a} v) := by intro Ο† hc hs change u (- βˆ‚_{a} Ο†) = v (- βˆ‚_{a} Ο†) apply h Β· change HasCompactSupport (fun x => -((βˆ‚_{a} Ο† : 𝓒(E,β„‚)) x)) exact (hc.fderiv_apply (π•œ := ℝ) a).neg Β· change tsupport (-((βˆ‚_{a} Ο† : 𝓒(E,β„‚)) : E β†’ β„‚)) βŠ† Ξ© rw [tsupport_neg] exact (derivative_support_subset (Ο† : E β†’ β„‚) a).trans hs lemma cutoff (h : LocalEqual Ξ© u v) {g : E β†’ β„‚} (hg : ContDiff ℝ (⊀ : β„•βˆž) g) (hc : HasCompactSupport g) (hs : tsupport g βŠ† Ξ©) : smulLeftCLM β„‚ g u = smulLeftCLM β„‚ g v := by ext Ο† change u (SchwartzMap.smulLeftCLM β„‚ g Ο†) = v (SchwartzMap.smulLeftCLM β„‚ g Ο†) apply h Β· simpa only [SchwartzMap.smulLeftCLM_apply (hc.hasTemperateGrowth hg),Pi.smul_def,smul_eq_mul,Pi.mul_def] using (hc.mul_right : HasCompactSupport (g * (Ο† : E β†’ β„‚))) Β· simpa only [SchwartzMap.smulLeftCLM_apply (hc.hasTemperateGrowth hg),Pi.smul_def,smul_eq_mul,Pi.mul_def] using (tsupport_mul_subset_left (f := g) (g := (Ο† : E β†’ β„‚))).trans hs variable [FiniteDimensional ℝ E] [MeasurableSpace E] [BorelSpace E] lemma localSobolev {s : ℝ} (h : LocalEqual Ξ© u v) (hv : LocalSobolev Ξ© s v) : LocalSobolev Ξ© s u := by intro g hg hc hs rw [h.cutoff hg hc hs] exact hv g hg hc hs end LocalEqual variable [FiniteDimensional ℝ E] [MeasurableSpace E] [BorelSpace E] namespace LocalSobolev variable {Ξ© : Set E} {s : ℝ} {u v : 𝓒'(E,β„‚)} lemma add (h : LocalSobolev Ξ© s u) (h' : LocalSobolev Ξ© s v) : LocalSobolev Ξ© s (u+v) := by intro g hg hc hs rw [map_add] exact (h g hg hc hs).add (h' g hg hc hs) lemma sub (h : LocalSobolev Ξ© s u) (h' : LocalSobolev Ξ© s v) : LocalSobolev Ξ© s (u-v) := by intro g hg hc hs rw [map_sub] exact (h g hg hc hs).sub (h' g hg hc hs) lemma smul (h : LocalSobolev Ξ© s u) (c : β„‚) : LocalSobolev Ξ© s (c β€’ u) := by intro g hg hc hs rw [map_smul] exact (h g hg hc hs).smul c lemma sum {ΞΉ : Type*} (S : Finset ΞΉ) {u : ΞΉ β†’ 𝓒'(E,β„‚)} (h : βˆ€ i ∈ S, LocalSobolev Ξ© s (u i)) : LocalSobolev Ξ© s (βˆ‘ i ∈ S, u i) := by intro g hg hc hs rw [map_sum] exact sobolev_sum S (fun i hi => h i hi g hg hc hs) lemma coeff (h : LocalSobolev Ξ© s u) {a : E β†’ β„‚} (ha : a.HasTemperateGrowth) : LocalSobolev Ξ© s (smulLeftCLM β„‚ a u) := by intro g hg hc hs rw [smulLeftCLM_smulLeftCLM_apply ha (hc.hasTemperateGrowth hg),mul_comm] exact h (g*a) (hg.mul ha.1) hc.mul_right (tsupport_mul_subset_left.trans hs) lemma derivative (h : LocalSobolev Ξ© s u) (a : E) : LocalSobolev Ξ© (s-1) (βˆ‚_{a} u) := by intro g hg hc hs exact h.product_derivative hg hc hs a end LocalSobolev lemma local_laplacian_gain_basis {ΞΉ : Type*} [Fintype ΞΉ] (b : OrthonormalBasis ΞΉ ℝ E) {Ξ© : Set E} {s : ℝ} {u : 𝓒'(E,β„‚)} (hu : LocalSobolev Ξ© s u) (hΞ” : LocalSobolev Ξ© (s-1) (Ξ” u)) : LocalSobolev Ξ© (s+1) u := by intro g hg hgc hgs have hb : MemSobolev (s-1) 2 (Ξ” (smulLeftCLM β„‚ g u)) := by rw [laplacian_product b hg hgc] apply (hΞ” g hg hgc hgs).add apply sobolev_sum Finset.univ intro d _ have hgd := smooth_derivative hg (b d) have hcd := compact_derivative hgc (b d) have hsd := (derivative_support_subset g (b d)).trans hgs exact ((hu _ (smooth_derivative hgd (b d)) (compact_derivative hcd (b d)) ((derivative_support_subset _ (b d)).trans hsd)).mono (by linarith)).add ((hu.product_derivative hgd hcd hsd (b d)).smul 2) have h := laplacian_gain ((hu g hg hgc hgs).mono (by linarith : s-1 ≀ s)) hb convert h using 1 ring end section variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [FiniteDimensional ℝ E] [MeasurableSpace E] [BorelSpace E] lemma schwartz_dist_injective : Function.Injective (fun u : 𝓒(E,β„‚) => (u : 𝓒'(E,β„‚))) := by intro u v h apply SchwartzMap.injective_toLp 2 volume apply LinearMap.ker_eq_bot.mp (Lp.ker_toTemperedDistributionCLM_eq_bot (F := β„‚)) change ((u.toLp 2 volume : Lp β„‚ 2 (volume : Measure E)) : 𝓒'(E,β„‚)) = ((v.toLp 2 volume : Lp β„‚ 2 (volume : Measure E)) : 𝓒'(E,β„‚)) simpa only [Lp.toTemperedDistribution_toLp_eq] using h lemma distribution_schwartz_product {g : E β†’ β„‚} (hg : g.HasTemperateGrowth) (u : 𝓒(E,β„‚)) : smulLeftCLM β„‚ g (u : 𝓒'(E,β„‚)) = (SchwartzMap.smulLeftCLM β„‚ g u : 𝓒'(E,β„‚)) := by ext Ο† simp only [smulLeftCLM_apply_apply,SchwartzMap.coe_apply,SchwartzMap.smulLeftCLM_apply_apply hg, smul_eq_mul] apply integral_congr_ae filter_upwards [] with x ring omit [FiniteDimensional ℝ E] [MeasurableSpace E] [BorelSpace E] in lemma LocalEqual.cutoff_one {Ξ© : Set E} (u : 𝓒'(E,β„‚)) {g : E β†’ β„‚} (hg : g.HasTemperateGrowth) (h1 : Set.EqOn g 1 Ξ©) : LocalEqual Ξ© (smulLeftCLM β„‚ g u) u := by intro Ο† _ hs rw [smulLeftCLM_apply_apply] congr 1 ext x rw [SchwartzMap.smulLeftCLM_apply_apply hg,smul_eq_mul] by_cases hx : Ο† x=0 Β· simp [hx] Β· rw [h1 (hs (subset_tsupport _ hx))] simp lemma LocalEqual.schwartz_eqOn {Ξ© : Set E} (hΞ© : IsOpen Ξ©) {u v : 𝓒(E,β„‚)} (h : LocalEqual Ξ© (u : 𝓒'(E,β„‚)) (v : 𝓒'(E,β„‚))) : Set.EqOn (u : E β†’ β„‚) (v : E β†’ β„‚) Ξ© := by intro x hx obtain ⟨g,hs,hc,hg,_,h1⟩ := exists_contDiff_tsupport_subset (n := (⊀ : β„•βˆž)) (hΞ©.mem_nhds hx) let f : E β†’ β„‚ := fun y => (g y : β„‚) have hfc : HasCompactSupport f := show HasCompactSupport (Complex.ofReal ∘ g) from hc.comp_left Complex.ofReal_zero have hfg : ContDiff ℝ (⊀ : β„•βˆž) f := (Complex.ofRealCLM.contDiff : ContDiff ℝ (⊀ : β„•βˆž) Complex.ofReal).comp hg have hfs : tsupport f βŠ† Ξ© := by change closure (Function.support f) βŠ† Ξ© apply Set.Subset.trans (closure_mono ?_) hs intro y hy change g y β‰  0 intro hy0 apply hy change (g y : β„‚)=0 rw [hy0,Complex.ofReal_zero] have he := h.cutoff hfg hfc hfs rw [distribution_schwartz_product (hfc.hasTemperateGrowth hfg), distribution_schwartz_product (hfc.hasTemperateGrowth hfg)] at he have he' := congrArg (fun w : 𝓒(E,β„‚) => w x) (schwartz_dist_injective he) simp only [SchwartzMap.smulLeftCLM_apply_apply (hfc.hasTemperateGrowth hfg),smul_eq_mul] at he' have hx1 : f x=1 := by simp only [f,h1,Complex.ofReal_one] simpa only [hx1,one_mul] using he' lemma smooth_Linfty_product {g : E β†’ β„‚} (hg : ContDiff ℝ (⊀ : β„•βˆž) g) (hc : HasCompactSupport g) (v : BoundedContinuousFunction E β„‚) (hv : ContDiff ℝ (⊀ : β„•βˆž) (v : E β†’ β„‚)) : let f : 𝓒(E,β„‚) := (hc.mul_right : HasCompactSupport (g*(v : E β†’ β„‚))).toSchwartzMap (hg.mul hv) smulLeftCLM β„‚ g (((v.memLp_top.toLp _ : Lp β„‚ ∞ (volume : Measure E))) : 𝓒'(E,β„‚)) = (f : 𝓒'(E,β„‚)) := by intro f ext Ο† simp only [smulLeftCLM_apply_apply,Lp.toTemperedDistribution_apply,SchwartzMap.coe_apply] apply integral_congr_ae filter_upwards [v.memLp_top.coeFn_toLp] with x hx simp only [SchwartzMap.smulLeftCLM_apply_apply (hc.hasTemperateGrowth hg),hx,smul_eq_mul] change g x*Ο† x*v x = Ο† x*(g x*v x) ring /-- Interior cutoff regularity yields an actual Schwartz representative on the smaller open set; this is what is needed to construct physical smooth CGO solutions on a ball from an L2 weak solution on a larger ball. -/ theorem local_schwartz_representative {Ξ© Ξ©' : Set E} (u : 𝓒'(E,β„‚)) (hu : βˆ€ N : β„•, LocalSobolev Ξ© N u) {g : E β†’ β„‚} (hg : ContDiff ℝ (⊀ : β„•βˆž) g) (hc : HasCompactSupport g) (hs : tsupport g βŠ† Ξ©) (h1 : Set.EqOn g 1 Ξ©') : βˆƒ v : 𝓒(E,β„‚), LocalEqual Ξ©' u (v : 𝓒'(E,β„‚)) := by obtain ⟨v,hv,he⟩ := all_orders_smooth_representative (fun N => hu N g hg hc hs) let f : 𝓒(E,β„‚) := (hc.mul_right : HasCompactSupport (g*(v : E β†’ β„‚))).toSchwartzMap (hg.mul hv) refine ⟨f,?_⟩ have he' := smooth_Linfty_product hg hc v hv have hlocal := (LocalEqual.cutoff_one u (hc.hasTemperateGrowth hg) h1).symm have hlocal' := (LocalEqual.cutoff_one (smulLeftCLM β„‚ g u) (hc.hasTemperateGrowth hg) h1).symm have h := hlocal.trans hlocal' rw [he,he'] at h exact h end variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [FiniteDimensional ℝ E] [MeasurableSpace E] [BorelSpace E] lemma LocalEqual.lp_ae {Ξ© : Set E} (hΞ© : IsOpen Ξ©) (u v : Lp β„‚ 2 (volume : Measure E)) (h : LocalEqual Ξ© (u : 𝓒'(E,β„‚)) (v : 𝓒'(E,β„‚))) : βˆ€α΅ x βˆ‚(volume : Measure E), x ∈ Ξ© β†’ u x=v x := by have hu : LocallyIntegrable (u : E β†’ β„‚) (volume : Measure E) := (Lp.memLp u).locallyIntegrable (by norm_num) have hv : LocallyIntegrable (v : E β†’ β„‚) (volume : Measure E) := (Lp.memLp v).locallyIntegrable (by norm_num) have he : βˆ€α΅ x βˆ‚(volume : Measure E), x ∈ Ξ© β†’ (u x-v x)=0 := hΞ©.ae_eq_zero_of_integral_contDiff_smul_eq_zero ((hu.sub hv).locallyIntegrableOn Ξ©) ?_ Β· filter_upwards [he] with x hx intro hxΞ© exact sub_eq_zero.mp (hx hxΞ©) intro g hg hc hs let f : E β†’ β„‚ := fun x => (g x : β„‚) have hfc : HasCompactSupport f := show HasCompactSupport (Complex.ofReal ∘ g) from hc.comp_left Complex.ofReal_zero have hfg : ContDiff ℝ (⊀ : β„•βˆž) f := (Complex.ofRealCLM.contDiff : ContDiff ℝ (⊀ : β„•βˆž) Complex.ofReal).comp hg let Ο† : 𝓒(E,β„‚) := hfc.toSchwartzMap hfg have hfs : tsupport (Ο† : E β†’ β„‚) βŠ† Ξ© := by change closure (Function.support f) βŠ† Ξ© apply Set.Subset.trans (closure_mono ?_) hs intro x hx hzero apply hx change (g x : β„‚)=0 rw [hzero,Complex.ofReal_zero] have hh := h Ο† hfc hfs simp only [Lp.toTemperedDistribution_apply] at hh have hiu := hu.integrable_smul_left_of_hasCompactSupport hg.continuous hc have hiv := hv.integrable_smul_left_of_hasCompactSupport hg.continuous hc simp only [smul_sub] rw [integral_sub hiu hiv,sub_eq_zero] simp only [show (Ο† : E β†’ β„‚)=f from rfl,f,Complex.real_smul,smul_eq_mul] at hh ⊒ convert hh using 1 /-- The smooth local representative really is the original L2 function almost everywhere, so the HB solution's L2 estimate is not lost in regularization. -/ theorem local_schwartz_l2_representative {Ξ© Ξ©' : Set E} (hΞ©' : IsOpen Ξ©') (u : Lp β„‚ 2 (volume : Measure E)) (hu : βˆ€ N : β„•, LocalSobolev Ξ© N (u : 𝓒'(E,β„‚))) {g : E β†’ β„‚} (hg : ContDiff ℝ (⊀ : β„•βˆž) g) (hc : HasCompactSupport g) (hs : tsupport g βŠ† Ξ©) (h1 : Set.EqOn g 1 Ξ©') : βˆƒ v : 𝓒(E,β„‚), LocalEqual Ξ©' (u : 𝓒'(E,β„‚)) (v : 𝓒'(E,β„‚)) ∧ βˆ€α΅ x βˆ‚(volume : Measure E), x ∈ Ξ©' β†’ u x=v x := by obtain ⟨v,hv⟩ := local_schwartz_representative (u : 𝓒'(E,β„‚)) hu hg hc hs h1 refine ⟨v,hv,?_⟩ have he : LocalEqual Ξ©' (u : 𝓒'(E,β„‚)) ((v.toLp 2 volume : Lp β„‚ 2 (volume : Measure E)) : 𝓒'(E,β„‚)) := by simpa only [Lp.toTemperedDistribution_toLp_eq] using hv filter_upwards [LocalEqual.lp_ae hΞ©' u (v.toLp 2 volume) he,v.coeFn_toLp 2 volume] with x hx hxv intro hxΞ© exact (hx hxΞ©).trans hxv end ElasticityRegularity open MeasureTheory TemperedDistribution open scoped SchwartzMap LineDeriv BigOperators ENNReal namespace ElasticityDistribution open ElasticityAugmented ElasticityPhysicalAlgebra ElasticityNegativeOrder lemma coe_schwartz_add (u v : S) : ((u+v : S) : Dist)=(u : Dist)+(v : Dist) := map_add _ _ _ lemma coe_schwartz_smul (c : β„‚) (u : S) : ((c β€’ u : S) : Dist)=c β€’ (u : Dist) := map_smul _ _ _ lemma coe_schwartz_sum {ΞΉ : Type*} (s : Finset ΞΉ) (u : ΞΉ β†’ S) : ((βˆ‘ i ∈ s, u i : S) : Dist)=βˆ‘ i ∈ s, (u i : Dist) := map_sum _ _ _ lemma sd_schwartz (z : Fin 3 β†’ β„‚) (i : Fin 3) (u : S) : sd z i (u : Dist)=(shiftD z i u : Dist) := by rw [sd_apply,dd_apply,shiftD_apply,coe_schwartz_add,coe_schwartz_smul] congr 1 exact TemperedDistribution.lineDerivOp_toTemperedDistributionCLM_eq u (e i) lemma coeff_schwartz (a : Coeff) (u : S) : a β€’ (u : Dist)=(mult (eval a) u : Dist) := ElasticityRegularity.distribution_schwartz_product (growth a) u lemma divd_schwartz (z : Fin 3 β†’ β„‚) (u : Fin 3 β†’ S) : divd z (fun i => (u i : Dist))=(βˆ‘ i, shiftD z i (u i) : S) := by rw [divd,coe_schwartz_sum] simp only [sd_schwartz] lemma phys_schwartz (z : Fin 3 β†’ β„‚) (lam m : Coeff) (u : Fin 3 β†’ S) (i : Fin 3) : phys z lam m (fun j => (u j : Dist)) i=(physical z (eval lam) (eval m) u i : Dist) := by simp only [phys,physical,divd_schwartz,sd_schwartz,← coe_schwartz_add, coeff_schwartz,← coe_schwartz_sum] lemma LocalEq.physical {Ξ© : Set X} {u v : Fin 3 β†’ Dist} (h : βˆ€ i, LocalEq Ξ© (u i) (v i)) (z : Fin 3 β†’ β„‚) (lam m : Coeff) (i : Fin 3) : LocalEq Ξ© (phys z lam m u i) (phys z lam m v i) := (((LocalEq.divergence h z).coeff lam).shifted z i).add (LocalEq.sum Finset.univ (fun j _ => (((h i).shifted z j).add ((h j).shifted z i) |>.coeff m).shifted z j)) /-- A genuinely classical physical solution on an interior open set is obtained from the actual weak solution, and represents that same L2 unknown there. -/ theorem classical_representative {Ξ© Ξ©' : Set X} (hΞ©' : IsOpen Ξ©') (hsub : Ξ©' βŠ† Ξ©) (z : Fin 3 β†’ β„‚) (lam m n o : Coeff) (hn : n*m=1) (ho : o*(lam+m+m)=1) (w : ElasticityPhysicalDual.H) (F : Fin 3 β†’ S) (heq : βˆ€ i, LocalEq Ξ© (phys z lam m (fun j => (w j : Dist)) i) (F i : Dist)) {g : X β†’ β„‚} (hg : ContDiff ℝ (⊀ : β„•βˆž) g) (hc : HasCompactSupport g) (hs : tsupport g βŠ† Ξ©) (h1 : Set.EqOn g 1 Ξ©') : βˆƒ v : Fin 3 β†’ S, (βˆ€ i, βˆ€α΅ x βˆ‚(volume : Measure X), x ∈ Ξ©' β†’ w i x=v i x) ∧ βˆ€ i, Set.EqOn (physical z (eval lam) (eval m) v i : X β†’ β„‚) (F i : X β†’ β„‚) Ξ©' := by have hall := physical_local_all_orders z lam m n o hn ho (fun j => (w j : Dist)) (fun j => (F j : Dist)) heq (fun j => lp_local_zero Ξ© (w j)) (fun N j => schwartz_local_nat Ξ© (F j) N) have hv : βˆ€ i : Fin 3, βˆƒ v : S, ElasticityRegularity.LocalEqual Ξ©' (w i : Dist) (v : Dist) ∧ βˆ€α΅ x βˆ‚(volume : Measure X), x ∈ Ξ©' β†’ w i x=v x := by intro i exact ElasticityRegularity.local_schwartz_l2_representative hΞ©' (w i) (fun N => hall N i.succ) hg hc hs h1 choose v hv he using hv refine ⟨v,he,fun i => ?_⟩ apply ElasticityRegularity.LocalEqual.schwartz_eqOn hΞ©' have hl : βˆ€ j, LocalEq Ξ©' (w j : Dist) (v j : Dist) := hv have hphys := LocalEq.physical hl z lam m i rw [phys_schwartz] at hphys exact fun Ο† hΟ† hΟ†s => (hphys Ο† hΟ† hΟ†s).symm.trans (heq i Ο† hΟ† (hΟ†s.trans hsub)) end ElasticityDistribution end end OAI