cfahlgren1/math / lean /OAI /Analysis /HenonEmden /WeakOrigin.lean
cfahlgren1's picture
download
raw
5.06 kB
import OAI.Analysis.HenonEmden.RadialODE
namespace OAI
universe uE uE2
section WeakOrigin
open Set Filter Topology MeasureTheory
open scoped ContDiff
open Set Filter Topology
open scoped RealInnerProductSpace ContDiff
open Set Filter Topology
open scoped ContDiff
open Set MeasureTheory MeasureTheory.Measure
open scoped ENNReal
open Set Filter Topology MeasureTheory
open Set Filter Topology
open MeasureTheory
noncomputable section
namespace HenonLaneEmden.WeakPDE
variable {E : Type uE} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [FiniteDimensional ℝ E]
omit [FiniteDimensional ℝ E] in
lemma dir_mul {f g : E → ℝ} {x : E}
(hf : DifferentiableAt ℝ f x) (hg : DifferentiableAt ℝ g x) (e : E) :
dir (fun y => f y*g y) e x = dir f e x*g x+f x*dir g e x := by
unfold dir
change (fderiv ℝ (f*g) x) e = _
rw [fderiv_mul hf hg]
simp [smul_eq_mul]
ring
omit [FiniteDimensional ℝ E] in
lemma dir_dir_mul {f g : E → ℝ} (hf : ContDiff ℝ 2 f) (hg : ContDiff ℝ 2 g) (e x : E) :
dir (dir (fun y => f y*g y) e) e x =
dir (dir f e) e x*g x+2*(dir f e x*dir g e x)+f x*dir (dir g e) e x := by
have heq : dir (fun y => f y*g y) e = fun y => dir f e y*g y+f y*dir g e y := by
ext y; exact dir_mul (hf.differentiable (by norm_num) y) (hg.differentiable (by norm_num) y) e
rw [heq]
have hdf := differentiableAt_dir hf.contDiffOn isOpen_univ (mem_univ x) e
have hdg := differentiableAt_dir hg.contDiffOn isOpen_univ (mem_univ x) e
have hfx := hf.differentiable (by norm_num) x
have hgx := hg.differentiable (by norm_num) x
change (fderiv ℝ (dir f e*g+f*dir g e) x) e = _
rw [fderiv_add (hdf.mul hgx) (hfx.mul hdg),_root_.add_apply]
change dir (fun y => dir f e y*g y) e x+dir (fun y => f y*dir g e y) e x = _
rw [dir_mul hdf hgx,dir_mul hfx hdg]
ring
lemma laplacian_mul {f g : E → ℝ} (hf : ContDiff ℝ 2 f) (hg : ContDiff ℝ 2 g) (x : E) :
Laplacian.laplacian (fun y => f y*g y) x =
Laplacian.laplacian f x*g x+f x*Laplacian.laplacian g x+
2*∑ i, dir f (stdOrthonormalBasis ℝ E i) x*dir g (stdOrthonormalBasis ℝ E i) x := by
simp only [InnerProductSpace.laplacian_eq_iteratedFDeriv_stdOrthonormalBasis]
simp_rw [← dir_dir (hf.mul hg).contDiffOn isOpen_univ (mem_univ x),
dir_dir_mul hf hg,← dir_dir hf.contDiffOn isOpen_univ (mem_univ x),
← dir_dir hg.contDiffOn isOpen_univ (mem_univ x)]
simp only [Finset.sum_add_distrib,Finset.sum_mul,Finset.mul_sum]
ring
end HenonLaneEmden.WeakPDE
namespace HenonLaneEmden.WeakPDE
variable {E : Type uE2} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [FiniteDimensional ℝ E]
lemma laplacian_dilation {f : E → ℝ} (hf : ContDiff ℝ 2 f) (R : ℝ) (x : E) :
Laplacian.laplacian (fun y => f (R • y)) x = R^2*Laplacian.laplacian f (R • x) := by
simp only [InnerProductSpace.laplacian_eq_iteratedFDeriv_stdOrthonormalBasis]
rw [Finset.mul_sum]
apply Finset.sum_congr rfl
intro i _
rw [iteratedFDeriv_comp_const_smul R hf]
simp [smul_eq_mul]
omit [FiniteDimensional ℝ E] in
lemma dir_dilation (f : E → ℝ) (R : ℝ) (x e : E) :
dir (fun y => f (R • y)) e x = R*dir f e (R • x) := by
unfold dir
rw [fderiv_comp_smul]
simp
lemma continuous_laplacian_dilation_mul {φ ξ : E → ℝ} (hφ : ContDiff ℝ 2 φ) (hξ : ContDiff ℝ 2 ξ) :
Continuous (fun z : ℝ × E => Laplacian.laplacian (fun y => φ (z.1 • y)*ξ y) z.2) := by
have hid (R : ℝ) (x : E) : Laplacian.laplacian (fun y => φ (R • y)*ξ y) x =
R^2*Laplacian.laplacian φ (R • x)*ξ x+φ (R • x)*Laplacian.laplacian ξ x+
2*∑ i, (R*dir φ (stdOrthonormalBasis ℝ E i) (R • x))*dir ξ (stdOrthonormalBasis ℝ E i) x := by
have hh : ContDiff ℝ 2 (fun y => φ (R • y)) := hφ.comp (contDiff_const.smul contDiff_id)
rw [laplacian_mul hh hξ,
laplacian_dilation hφ]
simp_rw [dir_dilation]
simp_rw [hid]
have hφlap := continuous_laplacian hφ
have hξlap := continuous_laplacian hξ
have hφd (e : E) : Continuous (dir φ e) :=
(contDiffOn_univ.mp (contDiffOn_dir (k := 1) hφ.contDiffOn isOpen_univ e)).continuous
have hξd (e : E) : Continuous (dir ξ e) :=
(contDiffOn_univ.mp (contDiffOn_dir (k := 1) hξ.contDiffOn isOpen_univ e)).continuous
fun_prop
variable [MeasurableSpace E] [BorelSpace E]
lemma continuous_cutoff_error {u φ ξ : E → ℝ} (hu : Continuous u)
(hφ : ContDiff ℝ 2 φ) (hξ : ContDiff ℝ 2 ξ) (hξc : HasCompactSupport ξ) :
Continuous (fun R : ℝ => ∫ y : E, u (R • y)*Laplacian.laplacian (fun z => φ (R • z)*ξ z) y) := by
rw [← continuousOn_univ]
apply continuousOn_integral_of_compact_support hξc
· exact ((hu.comp (continuous_fst.smul continuous_snd)).mul
(continuous_laplacian_dilation_mul hφ hξ)).continuousOn
· intro R y _ hy
have hh : y ∉ tsupport (fun z => φ (R • z)*ξ z) := fun h => hy (tsupport_mul_subset_right h)
rw [laplacian_zero_of_notMem_tsupport hh,mul_zero]
end HenonLaneEmden.WeakPDE
end
end WeakOrigin
end OAI

Xet Storage Details

Size:
5.06 kB
·
Xet hash:
8a869f002a2f022f4798fbde53a573313801a40527ac8212996912f2214954e5

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.