Download data/lean/OAI/Analysis/HenonEmden/Angular.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 7.61 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/HenonEmden/Angular.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Analysis/HenonEmden/Angular.lean
-
curl -L -o Angular.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/HenonEmden/Angular.lean
7.61 kB
Lean 4 Β· 5
declarations fullstatements
| import OAI.Analysis.HenonEmden.ShortComponents | |
| namespace OAI | |
| universe uE | |
| section Angular | |
| open MeasureTheory MeasureTheory.Measure Set Metric | |
| open scoped ENNReal Pointwise | |
| noncomputable section | |
| namespace HenonLaneEmden.Angular | |
| variable {E : Type uE} [NormedAddCommGroup E] [NormedSpace β E] | |
| [MeasurableSpace E] [BorelSpace E] [FiniteDimensional β E] [Nontrivial E] | |
| (ΞΌ : Measure E) [ΞΌ.IsAddHaarMeasure] | |
| /-- Polar lower bound contributed by a set of directions whose full radial | |
| segment has source at least `t`. Surface measure here is not normalized. -/ | |
| lemma ray_mass_le {f : E β ββ₯0β} {S : Set (sphere (0:E) 1)} | |
| (hS : MeasurableSet S) {l : β} (hl : 0 < l) (t : ββ₯0β) | |
| (h : β e β S, β r β Ioo 0 l, t β€ f (r β’ e.1)) : | |
| t * ΞΌ.toSphere S * ENNReal.ofReal (l ^ Module.finrank β E / Module.finrank β E) | |
| β€ β«β» z, f z βΞΌ := by | |
| let L : Ioi (0:β) := β¨l,hlβ© | |
| let T := S ΓΛ’ Iio L | |
| have hm : MeasurableSet T := hS.prod measurableSet_Iio | |
| rw [Polar.lintegral_polar_prod ΞΌ] | |
| have hb : β z : sphere (0:E) 1 Γ Ioi (0:β), T.indicator (fun _ => t) z β€ f (z.2.1 β’ z.1.1) := by | |
| intro z | |
| by_cases hz : z β T | |
| Β· rw [indicator_of_mem hz] | |
| exact h z.1 hz.1 z.2.1 β¨z.2.2,hz.2β© | |
| Β· simp only [indicator_of_notMem hz,zero_le] | |
| have he : β«β» z, T.indicator (fun _ => t) z | |
| βΞΌ.toSphere.prod (volumeIoiPow (Module.finrank β E-1)) = | |
| t * ΞΌ.toSphere S * ENNReal.ofReal (l ^ Module.finrank β E / Module.finrank β E) := by | |
| rw [lintegral_indicator hm,lintegral_const,Measure.restrict_apply_univ, | |
| Measure.prod_prod,volumeIoiPow_apply_Iio] | |
| have hn : Module.finrank β E-1+1 = Module.finrank β E := | |
| Nat.sub_add_cancel (Module.finrank_pos : 0 < Module.finrank β E) | |
| have hnr : ((Module.finrank β E-1 : β) : β)+1 = Module.finrank β E := by | |
| exact_mod_cast hn | |
| simp only [hn,hnr,L,mul_assoc] | |
| exact he βΈ lintegral_mono hb | |
| open LineComponents | |
| /-- The long-component alternative on a line uses either forward or backward | |
| rays. In particular it requires no independence of any cap weight and layer. -/ | |
| lemma long_component_mass_le {f : E β ββ₯0β} | |
| {U : Set (sphere (0:E) 1 Γ β)} (hU : IsOpen U) | |
| {l : β} (hl : 0 < l) (t : ββ₯0β) | |
| (h : β e r, |r| β€ l/2 β (e,r) β U β t β€ f (r β’ e.1)) : | |
| t * ENNReal.ofReal ((l/2)^Module.finrank β E / Module.finrank β E) * | |
| ΞΌ.toSphere {e | ENNReal.ofReal l < componentLength U e} β€ | |
| 2 * β«β» z, f z βΞΌ := by | |
| let F := {e | ENNReal.ofReal (l/2) < forwardExit U e} | |
| let G := {e | ENNReal.ofReal (l/2) < backwardExit U e} | |
| have hF : MeasurableSet F := measurableSet_lt measurable_const (measurable_forwardExit hU) | |
| have hG : MeasurableSet G := measurableSet_lt measurable_const (measurable_backwardExit hU) | |
| have hs : {e | ENNReal.ofReal l < componentLength U e} β F βͺ G := by | |
| intro e he | |
| by_contra hn | |
| have hne : Β¬ e β F β§ Β¬ e β G := not_or.mp hn | |
| have hh : componentLength U e β€ ENNReal.ofReal l := by | |
| calc | |
| componentLength U e β€ ENNReal.ofReal (l/2) + ENNReal.ofReal (l/2) := | |
| add_le_add (le_of_not_gt hne.1) (le_of_not_gt hne.2) | |
| _ = ENNReal.ofReal l := by rw [β ENNReal.ofReal_add (by positivity) (by positivity)]; congr 1; ring | |
| exact (not_lt_of_ge hh) he | |
| have hforward := ray_mass_le ΞΌ hF (half_pos hl) t (f := f) (by | |
| intro e he r hr | |
| have hin : SegmentInside U e (l/2) := (lt_forwardExit_iff hU (by positivity)).mp he | |
| exact h e r (by rw [abs_of_pos hr.1]; exact hr.2.le) (hin r (by rw [uIcc_of_le (by positivity)]; exact β¨hr.1.le,hr.2.leβ©))) | |
| have hbackward := ray_mass_le ΞΌ hG (half_pos hl) t (f := fun z => f (-z)) (by | |
| intro e he r hr | |
| have hin : SegmentInside U e (-(l/2)) := (lt_backwardExit_iff hU (by positivity)).mp he | |
| have hm := hin (-r) (by rw [uIcc_of_ge (by linarith)]; constructor <;> linarith [hr.1,hr.2]) | |
| simpa only [neg_smul] using h e (-r) (by rw [abs_neg,abs_of_pos hr.1]; exact hr.2.le) hm) | |
| rw [lintegral_neg_eq_self] at hbackward | |
| have hmeasure : ΞΌ.toSphere {e | ENNReal.ofReal l < componentLength U e} β€ | |
| ΞΌ.toSphere F + ΞΌ.toSphere G := (measure_mono hs).trans (measure_union_le F G) | |
| calc | |
| _ β€ t * ENNReal.ofReal ((l/2)^Module.finrank β E / Module.finrank β E) * | |
| (ΞΌ.toSphere F + ΞΌ.toSphere G) := by gcongr | |
| _ = t * ΞΌ.toSphere F * ENNReal.ofReal ((l/2)^Module.finrank β E / Module.finrank β E) + | |
| t * ΞΌ.toSphere G * ENNReal.ofReal ((l/2)^Module.finrank β E / Module.finrank β E) := by ring | |
| _ β€ (β«β» z, f z βΞΌ) + β«β» z, f z βΞΌ := add_le_add hforward hbackward | |
| _ = _ := (two_mul _).symm | |
| /-- Translation of the ray estimate to a local source; the only quantitative | |
| input is its mass on the fixed ball `Bβ`. -/ | |
| lemma long_component_local_mass_le {f : E β β} {x : E} (hx : βxβ β€ 2) | |
| {t l : β} (hl : 0 < l) (hl1 : l β€ 1) | |
| (hU : IsOpen {z : sphere (0:E) 1 Γ β | t < f (x + z.2 β’ z.1.1)}) : | |
| ENNReal.ofReal t * ENNReal.ofReal ((l/2)^Module.finrank β E / Module.finrank β E) * | |
| ΞΌ.toSphere {e | ENNReal.ofReal l < componentLength | |
| {z : sphere (0:E) 1 Γ β | t < f (x + z.2 β’ z.1.1)} e} β€ | |
| 2 * β«β» z in ball (0:E) 4, ENNReal.ofReal (f z) βΞΌ := by | |
| let F : E β ββ₯0β := (ball (0:E) 4).indicator (fun z => ENNReal.ofReal (f z)) | |
| have hh := long_component_mass_le ΞΌ hU hl (ENNReal.ofReal t) | |
| (f := fun z => F (x+z)) (by | |
| intro e r hr ht | |
| have hn : β(e:E)β = 1 := by simpa only [mem_sphere,dist_zero_right] using e.2 | |
| have hb : x+r β’ (e:E) β ball (0:E) 4 := by | |
| rw [mem_ball,dist_zero_right] | |
| have hs := norm_add_le x (r β’ (e:E)) | |
| rw [norm_smul,Real.norm_eq_abs,hn,mul_one] at hs | |
| linarith | |
| change ENNReal.ofReal t β€ (ball (0:E) 4).indicator (fun z => ENNReal.ofReal (f z)) (x+r β’ (e:E)) | |
| rw [indicator_of_mem hb] | |
| exact ENNReal.ofReal_le_ofReal ht.le) | |
| rwa [lintegral_add_left_eq_self,lintegral_indicator measurableSet_ball] at hh | |
| end HenonLaneEmden.Angular | |
| namespace HenonLaneEmden | |
| /-- With value zero assigned at the origin, the positive source subgraph is | |
| open jointly in spatial location and positive level. -/ | |
| lemma isOpen_source_subgraph {n : β} {u : Space n β β} | |
| (hu : ContDiffOn β 2 u ({0}αΆ : Set (Space n))) (hup : β x, 0 < u x) (q B : β) : | |
| IsOpen {z : Space n Γ β | 0 < z.2 β§ z.2 < source u q B z.1} := by | |
| rw [isOpen_iff_mem_nhds] | |
| intro z hz | |
| have hx : z.1 β 0 := by | |
| intro he | |
| simpa [he,source_zero] using hz.1.trans hz.2 | |
| have hc : ContinuousAt (source u q B) z.1 := | |
| (regular_source hu hup q B).continuousOn.continuousAt (isClosed_singleton.isOpen_compl.mem_nhds hx) | |
| exact (continuousAt_const.eventually_lt continuousAt_snd hz.1).and | |
| (continuousAt_snd.eventually_lt (hc.comp continuousAt_fst) hz.2) | |
| lemma isOpen_source_lineLayer {n : β} {u : Space n β β} | |
| (hu : ContDiffOn β 2 u ({0}αΆ : Set (Space n))) (hup : β x, 0 < u x) (q B : β) | |
| (x : Space n) {t : β} (ht : 0 < t) : | |
| IsOpen {z : sphere (0:Space n) 1 Γ β | t < source u q B (x + z.2 β’ z.1.1)} := by | |
| have hh := (isOpen_source_subgraph hu hup q B).preimage | |
| (show Continuous (fun z : sphere (0:Space n) 1 Γ β => (x+z.2 β’ z.1.1,t)) from | |
| (continuous_const.add (continuous_snd.smul continuous_fst.subtype_val)).prodMk continuous_const) | |
| simpa only [Set.mem_ofPred_eq,true_and,ht,Set.preimage_ofPred_eq] using hh | |
| end HenonLaneEmden | |
| end | |
| end Angular | |
| end OAI | |
Outline