Buckets:
| import OAI.Analysis.HenonEmden.Polar | |
| namespace OAI | |
| universe uS uE uE2 | |
| section SphereMean | |
| 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 | |
| noncomputable section | |
| open Set Filter Topology MeasureTheory | |
| namespace HenonLaneEmden.SphereCalculus | |
| variable {S : Type uS} [TopologicalSpace S] [CompactSpace S] [MeasurableSpace S] | |
| [BorelSpace S] (μ : Measure S) [IsFiniteMeasure μ] | |
| omit [CompactSpace S] [MeasurableSpace S] [BorelSpace S] in | |
| lemma slice_continuous {F : ℝ × S → ℝ} {s : Set ℝ} | |
| (hF : ContinuousOn F (s ×ˢ univ)) {x : ℝ} (hx : x ∈ s) : | |
| Continuous (fun θ => F (x,θ)) := by | |
| rw [← continuousOn_univ] | |
| exact hF.comp (continuous_const.prodMk continuous_id).continuousOn (fun _ _ => ⟨hx,mem_univ _⟩) | |
| lemma hasDerivAt_integral_compact {F F' : ℝ × S → ℝ} {s : Set ℝ} | |
| (hs : IsOpen s) (hF : ContinuousOn F (s ×ˢ univ)) | |
| (hF' : ContinuousOn F' (s ×ˢ univ)) | |
| (hderiv : ∀ x ∈ s, ∀ θ, HasDerivAt (fun y => F (y,θ)) (F' (x,θ)) x) | |
| {x : ℝ} (hx : x ∈ s) : | |
| HasDerivAt (fun y => ∫ θ, F (y,θ) ∂μ) (∫ θ, F' (x,θ) ∂μ) x := by | |
| obtain ⟨ε,hε,hεs⟩ := Metric.mem_nhds_iff.mp (hs.mem_nhds hx) | |
| let K : Set (ℝ × S) := Metric.closedBall x (ε/2) ×ˢ univ | |
| have hK : IsCompact K := (isCompact_closedBall x (ε/2)).prod isCompact_univ | |
| have hKs : K ⊆ s ×ˢ univ := by | |
| intro z hz | |
| refine ⟨hεs ?_,mem_univ _⟩ | |
| exact lt_of_le_of_lt (Metric.mem_closedBall.mp hz.1) (by linarith) | |
| obtain ⟨C,hC⟩ := hK.exists_bound_of_continuousOn (hF'.mono hKs) | |
| have hmeas : ∀ᶠ y in 𝓝 x, AEStronglyMeasurable (fun θ => F (y,θ)) μ := by | |
| filter_upwards [hs.mem_nhds hx] with y hy | |
| exact (slice_continuous hF hy).aestronglyMeasurable | |
| have hint : Integrable (fun θ => F (x,θ)) μ := | |
| (slice_continuous hF hx).integrable_of_hasCompactSupport (.of_compactSpace _) | |
| have hmeas' : AEStronglyMeasurable (fun θ => F' (x,θ)) μ := | |
| (slice_continuous hF' hx).aestronglyMeasurable | |
| apply (hasDerivAt_integral_of_dominated_loc_of_deriv_le | |
| (μ := μ) (F := fun r θ => F (r,θ)) (F' := fun r θ => F' (r,θ)) | |
| (s := Metric.closedBall x (ε/2)) (bound := fun _ => C) | |
| (Metric.closedBall_mem_nhds x (by linarith)) | |
| hmeas hint hmeas' _ (integrable_const C) _).2 | |
| · exact Filter.Eventually.of_forall fun θ y hy => hC (y,θ) ⟨hy,mem_univ _⟩ | |
| · exact Filter.Eventually.of_forall fun θ y hy => hderiv y (hKs (show (y,θ) ∈ K from ⟨hy,mem_univ _⟩)).1 θ | |
| end HenonLaneEmden.SphereCalculus | |
| namespace HenonLaneEmden.SphereCalculus | |
| variable {E : Type uE} [NormedAddCommGroup E] [InnerProductSpace ℝ E] | |
| [FiniteDimensional ℝ E] [Nontrivial E] [MeasurableSpace E] [BorelSpace E] | |
| abbrev UnitSphere (E : Type uE2) [NormedAddCommGroup E] := Metric.sphere (0:E) 1 | |
| noncomputable def mean (u : E → ℝ) (r : ℝ) : ℝ := | |
| ∫ θ : UnitSphere E, u (r • θ.1) ∂(volume : Measure E).toSphere | |
| noncomputable def meanD (u : E → ℝ) (r : ℝ) : ℝ := | |
| ∫ θ : UnitSphere E, fderiv ℝ u (r • θ.1) θ.1 ∂(volume : Measure E).toSphere | |
| noncomputable def meanDD (u : E → ℝ) (r : ℝ) : ℝ := | |
| ∫ θ : UnitSphere E, fderiv ℝ (fderiv ℝ u) (r • θ.1) θ.1 θ.1 | |
| ∂(volume : Measure E).toSphere | |
| omit [InnerProductSpace ℝ E] [FiniteDimensional ℝ E] [Nontrivial E] | |
| [MeasurableSpace E] [BorelSpace E] in | |
| lemma sphere_ne_zero (θ : UnitSphere E) : (θ : E) ≠ 0 := by | |
| have hn : ‖(θ:E)‖ = 1 := by simpa only [Metric.mem_sphere, dist_zero_right] using θ.property | |
| intro h; simp [h] at hn | |
| omit [FiniteDimensional ℝ E] [Nontrivial E] [MeasurableSpace E] [BorelSpace E] in | |
| lemma smul_sphere_ne_zero {r : ℝ} (hr : 0 < r) (θ : UnitSphere E) : r • (θ:E) ≠ 0 := | |
| smul_ne_zero hr.ne' (sphere_ne_zero θ) | |
| omit [FiniteDimensional ℝ E] [Nontrivial E] [MeasurableSpace E] [BorelSpace E] in | |
| lemma continuous_mean_integrand {u : E → ℝ} | |
| (hu : ContDiffOn ℝ 2 u ({0}ᶜ : Set E)) : | |
| ContinuousOn (fun z : ℝ × UnitSphere E => u (z.1 • z.2.1)) (Ioi 0 ×ˢ univ) := by | |
| exact hu.continuousOn.comp | |
| (continuous_fst.smul continuous_snd.subtype_val).continuousOn | |
| (fun z hz => smul_sphere_ne_zero hz.1 z.2) | |
| omit [FiniteDimensional ℝ E] [Nontrivial E] [MeasurableSpace E] [BorelSpace E] in | |
| lemma continuous_meanD_integrand {u : E → ℝ} | |
| (hu : ContDiffOn ℝ 2 u ({0}ᶜ : Set E)) : | |
| ContinuousOn (fun z : ℝ × UnitSphere E => fderiv ℝ u (z.1 • z.2.1) z.2.1) | |
| (Ioi 0 ×ˢ univ) := by | |
| have hc := (hu.fderiv_of_isOpen isOpen_compl_singleton (m := 1) (by norm_num)).continuousOn | |
| exact (hc.comp (continuous_fst.smul continuous_snd.subtype_val).continuousOn | |
| (fun z hz => smul_sphere_ne_zero hz.1 z.2)).clm_apply | |
| continuous_snd.subtype_val.continuousOn | |
| omit [FiniteDimensional ℝ E] [Nontrivial E] [MeasurableSpace E] [BorelSpace E] in | |
| lemma continuous_meanDD_integrand {u : E → ℝ} | |
| (hu : ContDiffOn ℝ 2 u ({0}ᶜ : Set E)) : | |
| ContinuousOn (fun z : ℝ × UnitSphere E => fderiv ℝ (fderiv ℝ u) | |
| (z.1 • z.2.1) z.2.1 z.2.1) (Ioi 0 ×ˢ univ) := by | |
| have hc := ((hu.fderiv_of_isOpen isOpen_compl_singleton (m := 1) (by norm_num)).fderiv_of_isOpen | |
| isOpen_compl_singleton (m := 0) (by norm_num)).continuousOn | |
| exact ((hc.comp (continuous_fst.smul continuous_snd.subtype_val).continuousOn | |
| (fun z hz => smul_sphere_ne_zero hz.1 z.2)).clm_apply | |
| continuous_snd.subtype_val.continuousOn).clm_apply continuous_snd.subtype_val.continuousOn | |
| omit [Nontrivial E] in | |
| lemma continuousOn_mean {u : E → ℝ} (hu : ContDiffOn ℝ 2 u ({0}ᶜ : Set E)) : | |
| ContinuousOn (mean u) (Ioi 0) := by | |
| exact continuousOn_integral_of_compact_support isCompact_univ | |
| (continuous_mean_integrand hu) (fun _ _ _ h => (h (mem_univ _)).elim) | |
| omit [Nontrivial E] in | |
| lemma continuousOn_meanD {u : E → ℝ} (hu : ContDiffOn ℝ 2 u ({0}ᶜ : Set E)) : | |
| ContinuousOn (meanD u) (Ioi 0) := by | |
| exact continuousOn_integral_of_compact_support isCompact_univ | |
| (continuous_meanD_integrand hu) (fun _ _ _ h => (h (mem_univ _)).elim) | |
| omit [Nontrivial E] in | |
| lemma continuousOn_meanDD {u : E → ℝ} (hu : ContDiffOn ℝ 2 u ({0}ᶜ : Set E)) : | |
| ContinuousOn (meanDD u) (Ioi 0) := by | |
| exact continuousOn_integral_of_compact_support isCompact_univ | |
| (continuous_meanDD_integrand hu) (fun _ _ _ h => (h (mem_univ _)).elim) | |
| omit [Nontrivial E] in | |
| lemma continuous_mean {u : E → ℝ} (hu : Continuous u) : Continuous (mean u) := by | |
| rw [← continuousOn_univ] | |
| exact continuousOn_integral_of_compact_support isCompact_univ | |
| (hu.comp (continuous_fst.smul continuous_snd.subtype_val)).continuousOn | |
| (fun _ _ _ h => (h (mem_univ _)).elim) | |
| omit [Nontrivial E] in | |
| lemma mean_zero (u : E → ℝ) : mean u 0 = ((volume : Measure E).toSphere univ).toReal * u 0 := by | |
| simp only [mean, zero_smul, integral_const, smul_eq_mul, Measure.real] | |
| omit [Nontrivial E] in | |
| lemma hasDerivAt_mean {u : E → ℝ} (hu : ContDiffOn ℝ 2 u ({0}ᶜ : Set E)) | |
| {r : ℝ} (hr : 0 < r) : HasDerivAt (mean u) (meanD u r) r := by | |
| apply hasDerivAt_integral_compact (volume : Measure E).toSphere isOpen_Ioi | |
| (continuous_mean_integrand hu) (continuous_meanD_integrand hu) _ hr | |
| intro s hs θ | |
| have hd := (hu.contDiffAt (isOpen_compl_singleton.mem_nhds | |
| (smul_sphere_ne_zero hs θ))).differentiableAt (by norm_num) | |
| convert! hd.hasFDerivAt.comp_hasDerivAt s ((hasDerivAt_id s).smul_const (θ:E)) using 1 | |
| simp only [one_smul] | |
| omit [Nontrivial E] in | |
| lemma hasDerivAt_meanD {u : E → ℝ} (hu : ContDiffOn ℝ 2 u ({0}ᶜ : Set E)) | |
| {r : ℝ} (hr : 0 < r) : HasDerivAt (meanD u) (meanDD u r) r := by | |
| apply hasDerivAt_integral_compact (volume : Measure E).toSphere isOpen_Ioi | |
| (continuous_meanD_integrand hu) (continuous_meanDD_integrand hu) _ hr | |
| intro s hs θ | |
| have hd := ((hu.fderiv_of_isOpen isOpen_compl_singleton (m := 1) (by norm_num)).contDiffAt | |
| (isOpen_compl_singleton.mem_nhds (smul_sphere_ne_zero hs θ))).differentiableAt (by norm_num) | |
| have h1 : HasDerivAt (fun y : ℝ => fderiv ℝ u (y • (θ:E))) | |
| (fderiv ℝ (fderiv ℝ u) (s • (θ:E)) (θ:E)) s := by | |
| convert! hd.hasFDerivAt.comp_hasDerivAt s | |
| ((hasDerivAt_id s).smul_const (θ:E)) using 1 | |
| simp only [one_smul] | |
| convert! h1.clm_apply (hasDerivAt_const s (θ:E)) using 1 | |
| simp only [map_zero, add_zero] | |
| lemma mean_pos {u : E → ℝ} (hu : Continuous u) (hp : ∀ x, 0 < u x) (r : ℝ) : | |
| 0 < mean u r := by | |
| unfold mean | |
| apply (integral_pos_iff_support_of_nonneg (fun θ : UnitSphere E => (hp (r • θ.1)).le) ?_).mpr | |
| · have heq : Function.support (fun θ : UnitSphere E => u (r • θ.1)) = univ := by | |
| ext θ; simp [Function.mem_support, (hp _).ne'] | |
| rw [heq] | |
| exact (Measure.measure_univ_pos.mpr (Measure.toSphere_ne_zero (volume : Measure E))) | |
| · exact (hu.comp (continuous_const.smul continuous_subtype_val)).integrable_of_hasCompactSupport | |
| (.of_compactSpace _) | |
| end HenonLaneEmden.SphereCalculus | |
| end | |
| end SphereMean | |
| end OAI | |
Xet Storage Details
- Size:
- 9.17 kB
- Xet hash:
- 839542a7e9a5767ae683c7d0eb42a79d093f6a2b8ad8ad7397c80e2363fe82df
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.