cfahlgren1/math / lean /OAI /Analysis /HenonEmden /OriginBounds.lean
cfahlgren1's picture
download
raw
10.8 kB
import OAI.Analysis.HenonEmden.Sources
namespace OAI
section OriginBounds
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.RadialODE
lemma impossible_two_dimensional {U V W : ℝ → ℝ}
(hU : ContinuousOn U (Ici 0)) (hV : ∀ r > 0, HasDerivAt U (V r) r)
(hF : ∀ r > 0, HasDerivAt (fun s => s*V s) (-r*W r) r)
(hp : ∀ r > 0, 0 < U r) (hW : ∀ r > 0, 0 < W r) : False := by
have ha : StrictAntiOn (fun s => s*V s) (Ioi 0) := by
apply strictAntiOn_of_hasDerivWithinAt_neg (convex_Ioi 0)
(fun r hr => (hF r hr).continuousAt.continuousWithinAt)
(fun r hr => (hF r (by simpa using hr)).hasDerivWithinAt)
intro r hr
have hr0 : 0 < r := by simpa using hr
exact mul_neg_of_neg_of_pos (neg_neg_of_pos hr0) (hW r hr0)
have hf1 : 1*V 1 ≤ 0 := by
simpa using flux_nonpos (k := 1) (by rfl) hU hV (by simpa using ha.antitoneOn)
(r := 1) zero_lt_one
have hf2 : 2*V 2 < 0 := lt_of_lt_of_le (ha (by norm_num) (by norm_num) (by norm_num)) hf1
let c : ℝ := -(2*V 2)
have hc : 0 < c := neg_pos.mpr hf2
have hcomp : AntitoneOn (fun r => U r+c*Real.log r) (Ici 2) := by
apply antitoneOn_of_hasDerivWithinAt_nonpos (convex_Ici 2)
· intro r hr
change 2 ≤ r at hr
exact ((hV r (by linarith [hr])).continuousAt.add
((Real.continuousAt_log (by linarith [hr])).const_mul c)).continuousWithinAt
· intro r hr
have hr0 : 0 < r := by simp only [interior_Ici,mem_Ioi] at hr; linarith
exact ((hV r hr0).add ((Real.hasDerivAt_log hr0.ne').const_mul c)).hasDerivWithinAt
· intro r hr
have hr2 : 2 < r := by simpa using hr
have hr0 : 0 < r := by linarith
have hle : r*V r ≤ 2*V 2 := ha.antitoneOn (by norm_num) hr0 hr2.le
change V r+c*r⁻¹ ≤ 0
have hdiv : V r ≤ (2*V 2)/r := (le_div_iff₀ hr0).mpr (by nlinarith [hle])
rw [div_eq_mul_inv] at hdiv
dsimp [c]
nlinarith
have hbound : ∀ᶠ r : ℝ in atTop, c*Real.log r ≤ U 2+c*Real.log 2 := by
filter_upwards [eventually_ge_atTop (2:ℝ)] with r hr
have hh := hcomp (by simp) hr hr
have hp' := hp r (by linarith)
linarith
have hlim := Real.tendsto_log_atTop.const_mul_atTop hc
have hconst := tendsto_atTop_mono' atTop hbound hlim
exact not_tendsto_atTop_of_tendsto_nhds tendsto_const_nhds hconst
end HenonLaneEmden.RadialODE
namespace HenonLaneEmden
open SphereCalculus
lemma IsSolution.not_two_dimensional {p q A B : ℝ} {u v : Space 2 → ℝ}
(h : IsSolution 2 p q A B u v) : False := by
have hw : ContinuousOn (source v p A) ({0}ᶜ : Set (Space 2)) :=
(regular_source h.regular_v h.positive_v p A).continuousOn
have heq : ∀ x ≠ 0, -Laplacian.laplacian u x = source v p A x := by
intro x hx; rw [source_off_zero v p A hx]; exact h.equation_u x hx
exact RadialODE.impossible_two_dimensional (continuous_mean h.continuous_u).continuousOn
(fun r hr => hasDerivAt_mean h.regular_u hr)
(fun r hr => by simpa using hasDerivAt_mean_flux h.regular_u hw heq hr)
(fun r _ => mean_pos h.continuous_u h.positive_u r)
(fun r hr => mean_pos_off_origin hw (fun x hx => source_pos h.positive_v p A hx) hr)
end HenonLaneEmden
namespace HenonLaneEmden.RadialODE
lemma impossible_log_derivative_near_zero {U V : ℝ → ℝ} {c R : ℝ}
(hc : 0 < c) (hR : 0 < R) (hU : ContinuousOn U (Ici 0))
(hV : ∀ r > 0, HasDerivAt U (V r) r)
(hbound : ∀ r ∈ Ioo 0 R, V r ≤ -c/r) : False := by
let H : ℝ → ℝ := fun r => U r+c*Real.log r
have hanti : AntitoneOn H (Ioo 0 R) := by
apply antitoneOn_of_hasDerivWithinAt_nonpos (convex_Ioo 0 R)
· intro r hr
exact ((hV r hr.1).continuousAt.add
((Real.continuousAt_log hr.1.ne').const_mul c)).continuousWithinAt
· intro r hr
have hr' : r ∈ Ioo 0 R := interior_subset hr
exact ((hV r hr'.1).add ((Real.hasDerivAt_log hr'.1.ne').const_mul c)).hasDerivWithinAt
· intro r hr
have hh := hbound r (interior_subset hr)
change V r+c*r⁻¹ ≤ 0
rw [div_eq_mul_inv,neg_mul] at hh
linarith
have hlimU : Tendsto U (𝓝[>] 0) (𝓝 (U 0)) := (hU 0 (by simp)).mono Ioi_subset_Ici_self
have hlim : Tendsto H (𝓝[>] 0) atBot := hlimU.add_atBot
(Real.tendsto_log_nhdsGT_zero.const_mul_atBot hc)
have hconst : Tendsto (fun _ : ℝ => H (R/2)) (𝓝[>] 0) atBot := by
apply tendsto_atBot_mono' _ _ hlim
filter_upwards [self_mem_nhdsWithin,mem_nhdsWithin_of_mem_nhds
(Iio_mem_nhds (half_pos hR))] with r hr hrR
exact hanti ⟨hr,hrR.trans (half_lt_self hR)⟩ ⟨half_pos hR,half_lt_self hR⟩ hrR.le
exact not_tendsto_nhds_of_tendsto_atBot hconst _ tendsto_const_nhds
lemma impossible_source_inverse_square {U V W : ℝ → ℝ} {k : ℕ} (hk : 1 ≤ k)
(hU : ContinuousOn U (Ici 0)) (hV : ∀ r > 0, HasDerivAt U (V r) r)
(hF : ∀ r > 0, HasDerivAt (fun s => s^k*V s) (-(r^k*W r)) r)
(hW : ∀ r > 0, 0 ≤ W r) {c R : ℝ} (hc : 0 < c) (hR : 0 < R)
(hbound : ∀ r ∈ Ioo 0 R, c/r^2 ≤ W r) : False := by
have ha : AntitoneOn (fun s => s^k*V s) (Ioi 0) := by
apply antitoneOn_of_hasDerivWithinAt_nonpos (convex_Ioi 0)
(fun r hr => (hF r hr).continuousAt.continuousWithinAt)
(fun r hr => (hF r (by simpa using hr)).hasDerivWithinAt)
intro r hr
have hr0 : 0 < r := by simpa using hr
exact neg_nonpos.mpr (mul_nonneg (pow_nonneg hr0.le k) (hW r hr0))
have hneg : ∀ r > 0, r^k*V r ≤ 0 := fun r hr => flux_nonpos hk hU hV ha hr
apply impossible_log_derivative_near_zero (c := c/2^(k+1)) (div_pos hc (by positivity)) hR hU hV
intro r hr
have hhalf : 0 < r/2 := half_pos hr.1
obtain ⟨s,hs,he⟩ := exists_hasDerivAt_eq_slope (fun t => t^k*V t)
(fun t => -(t^k*W t)) (half_lt_self hr.1)
(fun t ht => (hF t (hhalf.trans_le ht.1)).continuousAt.continuousWithinAt)
(fun t ht => hF t (hhalf.trans ht.1))
have hs0 : 0 < s := hhalf.trans hs.1
have hwr : c/r^2 ≤ W s := by
have hsr2 : s^2 ≤ r^2 := pow_le_pow_left₀ hs0.le hs.2.le 2
exact (div_le_div_of_nonneg_left hc.le (sq_pos_of_pos hs0) hsr2).trans
(hbound s ⟨hs0,hs.2.trans hr.2⟩)
have hpow : (r/2)^k ≤ s^k := pow_le_pow_left₀ hhalf.le hs.1.le k
have hprod : (r/2)^k*(c/r^2) ≤ s^k*W s := mul_le_mul hpow hwr
(div_nonneg hc.le (sq_nonneg r)) (pow_nonneg hs0.le k)
have hfeq : -(s^k*W s)*(r-r/2) = r^k*V r-(r/2)^k*V (r/2) :=
(eq_div_iff (sub_pos.mpr (half_lt_self hr.1)).ne').mp he
have hid : (r/2)^k*(c/r^2)*(r-r/2) = r^k*((c/2^(k+1))/r) := by
rw [div_pow,pow_succ]
field_simp
ring
have hest : r^k*V r ≤ -(r^k*((c/2^(k+1))/r)) := by
have hmul := mul_le_mul_of_nonneg_right hprod (sub_pos.mpr (half_lt_self hr.1)).le
rw [hid] at hmul
have hn := hneg (r/2) hhalf
nlinarith
have hdiv : V r ≤ -((c/2^(k+1))/r) :=
(mul_le_mul_iff_right₀ (pow_pos hr.1 k)).mp (by nlinarith [hest])
simpa only [neg_div] using hdiv
end HenonLaneEmden.RadialODE
namespace HenonLaneEmden
open SphereCalculus
lemma source_mean_factor {n : ℕ} {u : Space n → ℝ} (q B : ℝ) {r : ℝ} (hr : 0 < r) :
mean (source u q B) r = r^B * mean (fun x => (u x)^q) r := by
unfold mean
simp_rw [source_off_zero u q B (smul_sphere_ne_zero hr _),norm_smul_sphere hr.le]
exact integral_const_mul (r^B) _
lemma source_mean_lower_near_zero {n : ℕ} (hn : 1 ≤ n) {u : Space n → ℝ}
(hu : Continuous u) (hp : ∀ x, 0 < u x) (q B : ℝ) :
∃ c > 0, ∃ R > 0, R ≤ 1 ∧ ∀ r ∈ Ioo 0 R, c*r^B ≤ mean (source u q B) r := by
have : Nontrivial (Space n) := Module.nontrivial_of_finrank_pos (R := ℝ) (by simp only [finrank_euclideanSpace_fin]; omega)
let a : Space n → ℝ := fun x => (u x)^q
have ha : Continuous a := hu.rpow_const (fun x => Or.inl (hp x).ne')
have ha0 : 0 < mean a 0 := mean_pos ha (fun x => Real.rpow_pos_of_pos (hp x) q) 0
have he : ∀ᶠ r in 𝓝 (0:ℝ), mean a 0/2 < mean a r :=
(continuous_mean ha).continuousAt (Ioi_mem_nhds (half_lt_self ha0))
obtain ⟨δ,hδ,hnear⟩ := Metric.eventually_nhds_iff.mp he
refine ⟨mean a 0/2,half_pos ha0,min δ 1,lt_min hδ zero_lt_one,min_le_right _ _,?_⟩
intro r hr
rw [source_mean_factor q B hr.1]
have hh : mean a 0/2 ≤ mean a r := (hnear (by
simpa [Real.dist_eq,abs_of_pos hr.1] using hr.2.trans_le (min_le_left δ 1))).le
simpa only [mul_comm] using mul_le_mul_of_nonneg_left hh (Real.rpow_nonneg hr.1.le B)
lemma IsSolution.swap {n : ℕ} {p q A B : ℝ} {u v : Space n → ℝ}
(h : IsSolution n p q A B u v) : IsSolution n q p B A v u :=
⟨h.continuous_v,h.continuous_u,h.regular_v,h.regular_u,
h.positive_v,h.positive_u,h.equation_v,h.equation_u⟩
lemma IsSolution.first_weight_gt_neg_two {n : ℕ} (hn : 2 ≤ n) {p q A B : ℝ}
{u v : Space n → ℝ} (h : IsSolution n p q A B u v) : -2 < A := by
have : Nontrivial (Space n) := Module.nontrivial_of_finrank_pos (R := ℝ) (by
simp only [finrank_euclideanSpace_fin]; omega)
by_contra hA
have hA' : A ≤ -2 := le_of_not_gt hA
obtain ⟨c,hc,R,hR,hR1,hbound⟩ := source_mean_lower_near_zero (by omega) h.continuous_v h.positive_v p A
have hw : ContinuousOn (source v p A) ({0}ᶜ : Set (Space n)) :=
(regular_source h.regular_v h.positive_v p A).continuousOn
have heq : ∀ x ≠ 0, -Laplacian.laplacian u x = source v p A x := by
intro x hx; rw [source_off_zero v p A hx]; exact h.equation_u x hx
apply RadialODE.impossible_source_inverse_square (k := n-1) (by omega)
(continuous_mean h.continuous_u).continuousOn (fun r hr => hasDerivAt_mean h.regular_u hr)
(fun r hr => by simpa using hasDerivAt_mean_flux h.regular_u hw heq hr)
(fun r hr => (mean_pos_off_origin hw (fun x hx => source_pos h.positive_v p A hx) hr).le)
hc hR
intro r hr
have hpow := Real.rpow_le_rpow_of_exponent_ge hr.1 (hr.2.le.trans hR1) hA'
have hpow' : (r^2)⁻¹ ≤ r^A := by
simpa only [Real.rpow_neg hr.1.le,Real.rpow_two] using hpow
have hh : c/r^2 ≤ c*r^A := by
simpa only [div_eq_mul_inv] using mul_le_mul_of_nonneg_left hpow' hc.le
exact hh.trans (hbound r hr)
lemma IsSolution.weights_gt_neg_two {n : ℕ} (hn : 2 ≤ n) {p q A B : ℝ}
{u v : Space n → ℝ} (h : IsSolution n p q A B u v) : -2 < A ∧ -2 < B :=
⟨h.first_weight_gt_neg_two hn,h.swap.first_weight_gt_neg_two hn⟩
end HenonLaneEmden
end
end OriginBounds
end OAI

Xet Storage Details

Size:
10.8 kB
·
Xet hash:
d5d898497791285d94adf8b4e3c330f05fb8656e8e6a620b91c5898960bd76f8

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