Buckets:
| import OAI.Analysis.HenonEmden.MassGrowth | |
| namespace OAI | |
| universe uE | |
| section PotentialContinuity | |
| 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 | |
| open scoped Convolution | |
| open Set Filter Topology | |
| open MeasureTheory Set Filter Topology | |
| open scoped ContDiff | |
| noncomputable section | |
| namespace HenonLaneEmden.WeakPDE | |
| variable {E : Type uE} [NormedAddCommGroup E] [InnerProductSpace ℝ E] | |
| [FiniteDimensional ℝ E] [Nontrivial E] [MeasurableSpace E] [BorelSpace E] | |
| omit [InnerProductSpace ℝ E] [FiniteDimensional ℝ E] [Nontrivial E] [MeasurableSpace E] [BorelSpace E] in | |
| lemma rpow_kernel_shift_bound {a r : ℝ} (ha : a ≤ 0) (hr : 0 < r) {x x₀ y : E} | |
| (hx : ‖x-x₀‖ < r/2) (hy : r ≤ ‖x₀-y‖) : | |
| ‖x-y‖^a ≤ (1/2:ℝ)^a*‖x₀-y‖^a := by | |
| have ht := norm_sub_le (x₀-x) (y-x) | |
| simp only [sub_sub_sub_cancel_right, norm_sub_rev y x] at ht | |
| rw [norm_sub_rev x₀ x] at ht | |
| have hp : 0 < ‖x₀-y‖/2 := by linarith | |
| have hl : ‖x₀-y‖/2 ≤ ‖x-y‖ := by linarith | |
| have hh := Real.rpow_le_rpow_of_nonpos hp hl ha | |
| have he : ‖x₀-y‖/2 = (1/2:ℝ)*‖x₀-y‖ := by ring | |
| rwa [he,Real.mul_rpow (by norm_num) (norm_nonneg _)] at hh | |
| omit [Nontrivial E] in | |
| lemma continuousAt_far_rawPotential (hn : 3 ≤ Module.finrank ℝ E) {g : E → ℝ} | |
| (hg : Measurable g) (hgp : ∀ y, 0 ≤ g y) {x₀ : E} {r : ℝ} (hr : 0 < r) | |
| (hzero : ∀ y ∈ Metric.ball x₀ r, g y = 0) | |
| (hi : Integrable (fun y => ‖x₀-y‖^(2-(Module.finrank ℝ E:ℝ))*g y)) : | |
| ContinuousAt (rawPotential g) x₀ := by | |
| let a := 2-(Module.finrank ℝ E:ℝ) | |
| have ha : a ≤ 0 := by | |
| have hd : (3:ℝ) ≤ Module.finrank ℝ E := by exact_mod_cast hn | |
| dsimp [a]; linarith | |
| apply continuousAt_of_dominated (bound := fun y => (1/2:ℝ)^a*(‖x₀-y‖^a*g y)) | |
| · exact Eventually.of_forall fun x => | |
| (((measurable_const.sub measurable_id).norm.pow_const a).mul hg).aestronglyMeasurable | |
| · filter_upwards [Metric.ball_mem_nhds x₀ (half_pos hr)] with x hx | |
| apply Eventually.of_forall | |
| intro y | |
| by_cases hy : y ∈ Metric.ball x₀ r | |
| · simp [hzero y hy] | |
| · have hyr : r ≤ ‖x₀-y‖ := by | |
| have hy' : ¬ ‖y-x₀‖ < r := by simpa only [Metric.mem_ball,dist_eq_norm] using hy | |
| simpa only [norm_sub_rev] using le_of_not_gt hy' | |
| have hxr : ‖x-x₀‖ < r/2 := by simpa only [Metric.mem_ball,dist_eq_norm] using hx | |
| rw [Real.norm_eq_abs,abs_of_nonneg (mul_nonneg (Real.rpow_nonneg (norm_nonneg _) _) (hgp y))] | |
| exact (mul_le_mul_of_nonneg_right (rpow_kernel_shift_bound ha hr hxr hyr) (hgp y)).trans_eq (mul_assoc _ _ _) | |
| · exact hi.const_mul _ | |
| · apply Eventually.of_forall | |
| intro y | |
| by_cases hy : y = x₀ | |
| · subst y | |
| have hg0 := hzero x₀ (Metric.mem_ball_self hr) | |
| simp only [hg0,mul_zero] | |
| exact continuousAt_const | |
| · exact (((continuousAt_id.sub continuousAt_const).norm).rpow_const | |
| (Or.inl (norm_ne_zero_iff.mpr (sub_ne_zero.mpr (Ne.symm hy))))).mul continuousAt_const | |
| omit [InnerProductSpace ℝ E] [FiniteDimensional ℝ E] [Nontrivial E] [MeasurableSpace E] [BorelSpace E] in | |
| lemma continuous_mul_cutoff {g ξ : E → ℝ} {s : Set E} (hs : IsOpen s) | |
| (hg : ContinuousOn g s) (hξ : Continuous ξ) (hξs : tsupport ξ ⊆ s) : | |
| Continuous (fun y => ξ y*g y) := by | |
| apply continuous_iff_continuousAt.mpr | |
| intro x | |
| by_cases hx : x ∈ tsupport ξ | |
| · exact hξ.continuousAt.mul (hg.continuousAt (hs.mem_nhds (hξs hx))) | |
| · apply (continuousAt_const (y := (0:ℝ))).congr_of_eventuallyEq | |
| filter_upwards [(isClosed_tsupport ξ).isOpen_compl.mem_nhds hx] with y hy | |
| simp only [image_eq_zero_of_notMem_tsupport hy,zero_mul] | |
| omit [Nontrivial E] in | |
| lemma rawPotential_integrable_cutoff {g ξ : E → ℝ} (hg : Measurable g) (hgp : ∀ x, 0 ≤ g x) | |
| (hξ : Measurable ξ) (hξp : ∀ x, 0 ≤ ξ x) (hξ1 : ∀ x, ξ x ≤ 1) {x : E} | |
| (hi : Integrable (fun y => ‖x-y‖^(2-(Module.finrank ℝ E:ℝ))*g y)) : | |
| Integrable (fun y => ‖x-y‖^(2-(Module.finrank ℝ E:ℝ))*(ξ y*g y)) := by | |
| apply hi.mono' ((((measurable_const.sub measurable_id).norm.pow_const _).mul (hξ.mul hg)).aestronglyMeasurable) | |
| apply Eventually.of_forall | |
| intro y | |
| change ‖‖x-y‖^(2-(Module.finrank ℝ E:ℝ))*(ξ y*g y)‖ ≤ _ | |
| rw [Real.norm_eq_abs,abs_of_nonneg (mul_nonneg (Real.rpow_nonneg (norm_nonneg _) _) (mul_nonneg (hξp y) (hgp y)))] | |
| exact mul_le_mul_of_nonneg_left ((mul_le_mul_of_nonneg_right (hξ1 y) (hgp y)).trans_eq (one_mul _)) | |
| (Real.rpow_nonneg (norm_nonneg _) _) | |
| omit [Nontrivial E] in | |
| lemma continuousOn_rawPotential (hn : 3 ≤ Module.finrank ℝ E) {g : E → ℝ} {s : Set E} | |
| (hg : Measurable g) (hgp : ∀ x, 0 ≤ g x) (hs : IsOpen s) (hgc : ContinuousOn g s) | |
| (hi : ∀ x, Integrable (fun y => ‖x-y‖^(2-(Module.finrank ℝ E:ℝ))*g y)) : | |
| ContinuousOn (rawPotential g) s := by | |
| intro x₀ hx₀ | |
| obtain ⟨r,hr,hrs⟩ := Metric.mem_nhds_iff.mp (hs.mem_nhds hx₀) | |
| let ξ : ContDiffBump x₀ := ⟨r/4,r/2,by linarith,by linarith⟩ | |
| have hξs : tsupport ξ ⊆ s := by | |
| apply Subset.trans (by rw [ξ.tsupport_eq] : tsupport ξ ⊆ Metric.closedBall x₀ ξ.rOut) | |
| intro y hy | |
| apply hrs | |
| have hy' : dist y x₀ ≤ r/2 := hy | |
| change dist y x₀ < r | |
| linarith | |
| let g₀ : E → ℝ := fun y => ξ y*g y | |
| let g₁ : E → ℝ := fun y => (1-ξ y)*g y | |
| have hg₀c : Continuous g₀ := continuous_mul_cutoff hs hgc ξ.continuous hξs | |
| have hg₀k : HasCompactSupport g₀ := ξ.hasCompactSupport.mul_right | |
| have hK : LocallyIntegrable (fun y : E => ‖y‖^(2-(Module.finrank ℝ E:ℝ))) := | |
| locallyIntegrable_norm_power (by omega) _ (by linarith) | |
| have hlocal : Continuous (rawPotential g₀) := by | |
| have hh := hg₀k.continuous_convolution_left (ContinuousLinearMap.lsmul ℝ ℝ) hg₀c hK | |
| convert hh using 1 | |
| ext x | |
| simp only [rawPotential,convolution_def,ContinuousLinearMap.lsmul_apply,smul_eq_mul,mul_comm (g₀ _)] | |
| have hg₁m : Measurable g₁ := (measurable_const.sub ξ.continuous.measurable).mul hg | |
| have hg₁p : ∀ y, 0 ≤ g₁ y := fun y => mul_nonneg (sub_nonneg.mpr (ξ.le_one (x := y))) (hgp y) | |
| have hi₀ (x : E) := rawPotential_integrable_cutoff hg hgp ξ.continuous.measurable | |
| (fun _ => ξ.nonneg) (fun _ => ξ.le_one) (hi x) | |
| have hi₁ (x : E) : Integrable (fun y => ‖x-y‖^(2-(Module.finrank ℝ E:ℝ))*((1-ξ y)*g y)) := by | |
| simpa only [Pi.sub_apply] using rawPotential_integrable_cutoff hg hgp | |
| (measurable_const.sub ξ.continuous.measurable) (fun y => sub_nonneg.mpr (ξ.le_one (x := y))) | |
| (fun y => by change 1-ξ y ≤ 1; linarith [ξ.nonneg (x := y)]) (hi x) | |
| have hfar : ContinuousAt (rawPotential g₁) x₀ := by | |
| apply continuousAt_far_rawPotential hn hg₁m hg₁p (r := r/4) (by linarith) ?_ (hi₁ x₀) | |
| intro y hy | |
| have heq : ξ y = 1 := ξ.one_of_mem_closedBall (Metric.ball_subset_closedBall hy) | |
| simp [g₁,heq] | |
| have heq : rawPotential g = fun x => rawPotential g₀ x+rawPotential g₁ x := by | |
| ext x | |
| change (∫ y, ‖x-y‖^(2-(Module.finrank ℝ E:ℝ))*g y) = | |
| (∫ y, ‖x-y‖^(2-(Module.finrank ℝ E:ℝ))*(ξ y*g y)) + | |
| (∫ y, ‖x-y‖^(2-(Module.finrank ℝ E:ℝ))*((1-ξ y)*g y)) | |
| rw [← integral_add (hi₀ x) (hi₁ x)] | |
| apply integral_congr_ae | |
| apply Eventually.of_forall | |
| intro y | |
| dsimp [g₀,g₁] | |
| ring | |
| rw [heq] | |
| exact (hlocal.continuousAt.add hfar).continuousWithinAt | |
| end HenonLaneEmden.WeakPDE | |
| namespace HenonLaneEmden | |
| open WeakPDE | |
| lemma IsSolution.potential_u {n : ℕ} (hn : 2 ≤ n) {p q A B : ℝ} | |
| {u v : Space n → ℝ} (h : IsSolution n p q A B u v) (hq : 0 < q) | |
| {x : Space n} (hx : x ≠ 0) : | |
| newtonDenom n*u x = rawPotential (source v p A) x := by | |
| apply Measure.eqOn_open_of_ae_eq (ae_restrict_of_ae (h.potential_u_ae hn hq)) | |
| isOpen_compl_singleton (continuous_const.mul h.continuous_u).continuousOn ?_ hx | |
| apply continuousOn_rawPotential (by simpa using h.dimension_ge_three hn) | |
| (measurable_source h.continuous_v p A) (source_nonneg (fun y => (h.positive_v y).le) p A) | |
| isOpen_compl_singleton | |
| · exact (regular_source h.regular_v h.positive_v p A).continuousOn | |
| · simpa only [finrank_euclideanSpace_fin] using h.kernel_g_integrable hn | |
| end HenonLaneEmden | |
| end | |
| end PotentialContinuity | |
| end OAI | |
Xet Storage Details
- Size:
- 8.62 kB
- Xet hash:
- 646a2dc35b4c677edbedf7d165167c2e902eed07a294aef7a98f6951284789e9
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.