cfahlgren1/math / lean /OAI /Analysis /HenonEmden /SourceMass.lean
cfahlgren1's picture
download
raw
12.6 kB
import OAI.Analysis.HenonEmden.NewtonPotential
namespace OAI
universe uE
section SourceMass
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
open WeakPDE
lemma IsSolution.rawPotential_lower_u {n : ℕ} (hn : 2 ≤ n) {p q A B : ℝ}
{u v : Space n → ℝ} (h : IsSolution n p q A B u v) (x : Space n) :
rawPotential (source v p A) x ≤ newtonDenom n*u x := by
have hp : ∀ y, 0 ≤ ‖x-y‖^(2-(n:ℝ))*source v p A y := fun y =>
mul_nonneg (Real.rpow_nonneg (norm_nonneg _) _) (source_nonneg (fun z => (h.positive_v z).le) p A y)
have hh := ENNReal.toReal_mono ENNReal.ofReal_ne_top (h.newton_lower_u hn x)
rw [ENNReal.toReal_ofReal (mul_nonneg (newtonDenom_pos (h.dimension_ge_three hn)).le (h.positive_u x).le),
← integral_eq_lintegral_of_nonneg_ae (Eventually.of_forall hp) (h.kernel_g_integrable hn x).aestronglyMeasurable] at hh
simpa only [rawPotential,finrank_euclideanSpace_fin] using hh
lemma IsSolution.potential_constant_u {n : ℕ} (hn : 2 ≤ n) {p q A B : ℝ}
{u v : Space n → ℝ} (h : IsSolution n p q A B u v) :
∃ c : ℝ, 0 ≤ c ∧ ∀ᵐ x, newtonDenom n*u x = rawPotential (source v p A) x+c := by
have : Nontrivial (Space n) := Module.nontrivial_of_finrank_pos (R := ℝ) (by simp; omega)
simpa only [finrank_euclideanSpace_fin,newtonDenom,sphereArea] using
potential_constant (by simpa using h.dimension_ge_three hn) h.continuous_u
(measurable_source h.continuous_v p A) (source_nonneg (fun y => (h.positive_v y).le) p A)
(by simpa only [finrank_euclideanSpace_fin] using h.kernel_g_integrable hn)
(by simpa only [finrank_euclideanSpace_fin,newtonDenom,sphereArea] using h.rawPotential_lower_u hn)
(fun _ hφ hφc => h.weak_u hn hφ hφc)
end HenonLaneEmden
namespace HenonLaneEmden.WeakPDE
open scoped Pointwise
variable {E : Type uE} [NormedAddCommGroup E] [InnerProductSpace ℝ E]
[FiniteDimensional ℝ E] [Nontrivial E] [MeasurableSpace E] [BorelSpace E]
lemma rawPotential_ball_lower (hn : 3 ≤ Module.finrank ℝ E) {g : E → ℝ}
(hg : LocallyIntegrable g) (hp : ∀ x, 0 ≤ g x)
(hki : ∀ x, Integrable (fun y => ‖x-y‖^(2-(Module.finrank ℝ E:ℝ))*g y))
{R : ℝ} (_hR : 0 < R) {x : E} (hx : x ∈ Metric.closedBall (0:E) R) :
(2*R)^(2-(Module.finrank ℝ E:ℝ))*(∫ y in Metric.ball (0:E) R, g y) ≤ rawPotential g x := by
have hgi : IntegrableOn g (Metric.ball (0:E) R) :=
(hg.integrableOn_isCompact (isCompact_closedBall (0:E) R)).mono_set Metric.ball_subset_closedBall
have h1 : (2*R)^(2-(Module.finrank ℝ E:ℝ))*(∫ y in Metric.ball (0:E) R, g y) ≤
∫ y in Metric.ball (0:E) R, ‖x-y‖^(2-(Module.finrank ℝ E:ℝ))*g y := by
rw [← integral_const_mul]
apply integral_mono_ae (hgi.const_mul _) (hki x).integrableOn
filter_upwards [ae_restrict_mem measurableSet_ball,
ae_restrict_of_ae (ae_iff.mpr (show volume {y : E | ¬ y ≠ x} = 0 by simp))] with y hy hyx
apply mul_le_mul_of_nonneg_right _ (hp y)
apply Real.rpow_le_rpow_of_nonpos (norm_pos_iff.mpr (sub_ne_zero.mpr (Ne.symm hyx)))
· have hh := norm_sub_le x y
have hx' : ‖x‖ ≤ R := by simpa using hx
have hy' : ‖y‖ < R := by simpa using hy
linarith
· have hnreal : (3:ℝ) ≤ Module.finrank ℝ E := by exact_mod_cast hn
linarith
exact h1.trans (setIntegral_le_integral (hki x)
(Eventually.of_forall fun y => mul_nonneg (Real.rpow_nonneg (norm_nonneg _) _) (hp y)))
omit [Nontrivial E] in
lemma ball_integral_dilation (f : E → ℝ) {R : ℝ} (hR : 0 < R) :
(∫ x in Metric.ball (0:E) R, f x) = R^(Module.finrank ℝ E)*
(∫ x in Metric.ball (0:E) 1, f (R • x)) := by
have hs : R • Metric.ball (0:E) 1 = Metric.ball (0:E) R := by
ext x
rw [mem_smul_set_iff_inv_smul_mem₀ hR.ne']
simp only [Metric.mem_ball,dist_zero_right,norm_smul,Real.norm_eq_abs,
abs_of_pos (inv_pos.mpr hR)]
rw [inv_mul_lt_iff₀ hR,mul_one]
have hh := Measure.setIntegral_comp_smul_of_pos volume f (Metric.ball (0:E) 1) hR
rw [hs,smul_eq_mul] at hh
rw [hh,mul_inv_cancel_left₀ (pow_ne_zero _ hR.ne')]
omit [Nontrivial E] in
lemma locallyIntegrable_norm_power (hn : 1 ≤ Module.finrank ℝ E) (a : ℝ)
(ha : -(Module.finrank ℝ E:ℝ) < a) : LocallyIntegrable (fun x : E => ‖x‖^a) := by
apply locallyIntegrable_of_norm_le_rpow hn (α := -a) (C := 1) ?_ ?_
(measurable_norm.pow_const a).aestronglyMeasurable
· linarith
· filter_upwards [] with x
simp [Real.norm_eq_abs,abs_of_nonneg (Real.rpow_nonneg (norm_nonneg x) a)]
omit [Nontrivial E] in
lemma integral_weight_ball_scaling (a : ℝ) {R : ℝ} (hR : 0 < R) :
(∫ x in Metric.ball (0:E) R, ‖x‖^a) =
R^((Module.finrank ℝ E:ℝ)+a)*(∫ x in Metric.ball (0:E) 1, ‖x‖^a) := by
rw [ball_integral_dilation _ hR]
simp only [norm_smul,Real.norm_eq_abs,abs_of_pos hR,Real.mul_rpow hR.le (norm_nonneg _),integral_const_mul]
rw [← mul_assoc,← Real.rpow_natCast,← Real.rpow_add hR]
lemma integral_weight_ball_pos (hn : 1 ≤ Module.finrank ℝ E) (a : ℝ)
(ha : -(Module.finrank ℝ E:ℝ) < a) {R : ℝ} (hR : 0 < R) :
0 < ∫ x in Metric.ball (0:E) R, ‖x‖^a := by
have hi : IntegrableOn (fun x : E => ‖x‖^a) (Metric.ball (0:E) R) :=
((locallyIntegrable_norm_power hn a ha).integrableOn_isCompact (isCompact_closedBall (0:E) R)).mono_set Metric.ball_subset_closedBall
apply integral_pos_iff_support_of_nonneg_ae (Eventually.of_forall fun x => Real.rpow_nonneg (norm_nonneg x) a) hi |>.mpr
have hz : ({0}ᶜ : Set E) ⊆ Function.support (fun x : E => ‖x‖^a) := by
intro x hx
exact ne_of_gt (Real.rpow_pos_of_pos (norm_pos_iff.mpr hx) a)
apply lt_of_lt_of_le _ (measure_mono hz)
rw [Measure.restrict_apply (measurableSet_singleton _).compl,
inter_comm]
change 0 < volume (Metric.ball (0:E) R \ {0})
rw [measure_sdiff_null (by simp)]
exact Metric.measure_ball_pos volume (0:E) hR
end HenonLaneEmden.WeakPDE
namespace HenonLaneEmden
open WeakPDE
noncomputable def sourceMass {n : ℕ} (u : Space n → ℝ) (q B R : ℝ) : ℝ :=
∫ x in Metric.ball (0:Space n) R, source u q B x
noncomputable def lowerMass {n : ℕ} (u : Space n → ℝ) (q B R : ℝ) : ℝ :=
(2*R)^(2-(n:ℝ))/newtonDenom n*sourceMass u q B R
noncomputable def weightMass (n : ℕ) (B : ℝ) : ℝ :=
∫ x in Metric.ball (0:Space n) 1, ‖x‖^B
noncomputable def ballConstant (n : ℕ) : ℝ := 2^(2-(n:ℝ))/newtonDenom n
lemma ballConstant_pos {n : ℕ} (hn : 3 ≤ n) : 0 < ballConstant n :=
div_pos (Real.rpow_pos_of_pos (by norm_num) _) (newtonDenom_pos hn)
lemma weightMass_pos {n : ℕ} (hn : 3 ≤ n) {B : ℝ} (hB : -2 < B) : 0 < weightMass n B := by
have : Nontrivial (Space n) := Module.nontrivial_of_finrank_pos (R := ℝ) (by simp; omega)
apply integral_weight_ball_pos (by simpa using (show 1 ≤ n by omega)) B _ zero_lt_one
simp only [finrank_euclideanSpace_fin]
have hnreal : (3:ℝ) ≤ n := by exact_mod_cast hn
linarith
lemma lowerMass_eq {n : ℕ} (u : Space n → ℝ) (q B : ℝ) {R : ℝ} (hR : 0 < R) :
lowerMass u q B R = ballConstant n*R^(2-(n:ℝ))*sourceMass u q B R := by
dsimp [lowerMass,ballConstant]
rw [Real.mul_rpow (by norm_num) hR.le]
ring
lemma IsSolution.sourceMass_g_pos {n : ℕ} (hn : 2 ≤ n) {p q A B : ℝ}
{u v : Space n → ℝ} (h : IsSolution n p q A B u v) {R : ℝ} (hR : 0 < R) :
0 < sourceMass v p A R := by
have : Nontrivial (Space n) := Module.nontrivial_of_finrank_pos (R := ℝ) (by simp; omega)
have hi : IntegrableOn (source v p A) (Metric.ball (0:Space n) R) :=
((h.source_g_locallyIntegrable hn).integrableOn_isCompact (isCompact_closedBall _ R)).mono_set Metric.ball_subset_closedBall
apply (integral_pos_iff_support_of_nonneg_ae (Eventually.of_forall (source_nonneg (fun x => (h.positive_v x).le) p A)) hi).mpr
have hz : ({0}ᶜ : Set (Space n)) ⊆ Function.support (source v p A) := fun x hx =>
ne_of_gt (source_pos h.positive_v p A hx)
apply lt_of_lt_of_le _ (measure_mono hz)
rw [Measure.restrict_apply (measurableSet_singleton _).compl,inter_comm]
change 0 < volume (Metric.ball (0:Space n) R \ {0})
rw [measure_sdiff_null (by simp)]
exact Metric.measure_ball_pos volume _ hR
lemma IsSolution.lowerMass_g_pos {n : ℕ} (hn : 2 ≤ n) {p q A B : ℝ}
{u v : Space n → ℝ} (h : IsSolution n p q A B u v) {R : ℝ} (hR : 0 < R) :
0 < lowerMass v p A R := by
rw [lowerMass_eq _ _ _ hR]
exact mul_pos (mul_pos (ballConstant_pos (h.dimension_ge_three hn)) (Real.rpow_pos_of_pos hR _))
(h.sourceMass_g_pos hn hR)
lemma IsSolution.lowerMass_g_le {n : ℕ} (hn : 2 ≤ n) {p q A B : ℝ}
{u v : Space n → ℝ} (h : IsSolution n p q A B u v) {R : ℝ} (hR : 0 < R)
{x : Space n} (hx : x ∈ Metric.closedBall (0:Space n) R) : lowerMass v p A R ≤ u x := by
have : Nontrivial (Space n) := Module.nontrivial_of_finrank_pos (R := ℝ) (by simp; omega)
have hh := rawPotential_ball_lower (by simpa using h.dimension_ge_three hn)
(h.source_g_locallyIntegrable hn) (source_nonneg (fun y => (h.positive_v y).le) p A)
(by simpa only [finrank_euclideanSpace_fin] using h.kernel_g_integrable hn) hR hx
have hl := hh.trans (h.rawPotential_lower_u hn x)
rw [lowerMass,div_mul_eq_mul_div]
apply (div_le_iff₀ (newtonDenom_pos (h.dimension_ge_three hn))).mpr
simpa only [finrank_euclideanSpace_fin,sourceMass,mul_comm (u x)] using hl
lemma integral_source_ge_lower {n : ℕ} (hn : 3 ≤ n) {u : Space n → ℝ} {q B R M : ℝ}
(hu : Continuous u) (hup : ∀ x, 0 < u x) (hq : 0 ≤ q) (hB : -2 < B)
(hR : 0 < R) (hM : 0 ≤ M) (hbound : ∀ x ∈ Metric.ball (0:Space n) R, M ≤ u x) :
M^q*R^((n:ℝ)+B)*weightMass n B ≤ sourceMass u q B R := by
have : Nontrivial (Space n) := Module.nontrivial_of_finrank_pos (R := ℝ) (by simp; omega)
have hBn : -(n:ℝ) < B := by
have hnreal : (3:ℝ) ≤ n := by exact_mod_cast hn
linarith
have hdim : 1 ≤ Module.finrank ℝ (Space n) := by simp; omega
have hi : IntegrableOn (source u q B) (Metric.ball (0:Space n) R) :=
((locallyIntegrable_source (by omega) hu hup q B hBn).integrableOn_isCompact (isCompact_closedBall _ R)).mono_set Metric.ball_subset_closedBall
have hw : IntegrableOn (fun x : Space n => ‖x‖^B) (Metric.ball (0:Space n) R) :=
((locallyIntegrable_norm_power hdim B (by simpa using hBn)).integrableOn_isCompact (isCompact_closedBall _ R)).mono_set Metric.ball_subset_closedBall
have hscale : R^((n:ℝ)+B)*weightMass n B = ∫ x in Metric.ball (0:Space n) R, ‖x‖^B := by
simpa only [weightMass,finrank_euclideanSpace_fin] using (integral_weight_ball_scaling (E := Space n) B hR).symm
rw [mul_assoc,hscale]
rw [← integral_const_mul]
apply integral_mono_ae (hw.const_mul _) hi
filter_upwards [ae_restrict_mem measurableSet_ball,
ae_restrict_of_ae (ae_iff.mpr (show volume {x : Space n | ¬ x ≠ 0} = 0 by simp))] with x hx hx0
rw [source_off_zero u q B hx0,mul_comm]
exact mul_le_mul_of_nonneg_left (Real.rpow_le_rpow hM (hbound x hx) hq) (Real.rpow_nonneg (norm_nonneg _) _)
lemma IsSolution.lowerMass_g_coupling {n : ℕ} (hn : 2 ≤ n) {p q A B : ℝ}
{u v : Space n → ℝ} (h : IsSolution n p q A B u v) (hp : 0 < p)
{R : ℝ} (hR : 0 < R) :
ballConstant n*weightMass n A*R^(2+A)*(lowerMass u q B R)^p ≤ lowerMass v p A R := by
have hh := integral_source_ge_lower (h.dimension_ge_three hn) h.continuous_v h.positive_v hp.le
(h.first_weight_gt_neg_two hn) hR (h.swap.lowerMass_g_pos hn hR).le
(fun x hx => h.swap.lowerMass_g_le hn hR (Metric.ball_subset_closedBall hx))
have hmul := mul_le_mul_of_nonneg_left hh
(mul_nonneg (ballConstant_pos (h.dimension_ge_three hn)).le (Real.rpow_nonneg hR.le (2-(n:ℝ))))
conv_rhs => rw [lowerMass_eq _ _ _ hR]
have he : R^(2+A) = R^(2-(n:ℝ))*R^((n:ℝ)+A) := by rw [← Real.rpow_add hR]; congr 1; ring
calc
_ = ballConstant n*R^(2-(n:ℝ)) * (lowerMass u q B R ^ p * R ^ ((n:ℝ) + A) * weightMass n A) := by rw [he]; ring
_ ≤ _ := hmul
end HenonLaneEmden
end
end SourceMass
end OAI

Xet Storage Details

Size:
12.6 kB
·
Xet hash:
4db6d511625ed78b2fc0ebd3b4149d7ecbe4fdcc556bd8560caedb01da7396ce

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