Buckets:
cfahlgren1/math / lean /OAI /Probability /Ballisticity /Estimates /FluctuationScaleUpperMultiple.lean
| import Mathlib | |
| import OAI.Probability.Ballisticity.Estimates.TruncatedVarianceDouble | |
| namespace OAI | |
| section | |
| section | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Pointwise Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Pointwise Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical BoundedContinuousFunction | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical BoundedContinuousFunction | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| namespace DirectionalTransience | |
| lemma fluctuationScale_upper_multiple {Ω : Type*} [MeasurableSpace Ω] | |
| (μ : Measure Ω) [IsProbabilityMeasure μ] (S : Ω → ℝ) (hS : Measurable S) | |
| (hne : 0 < μ {x | S x ≠ 0}) {r u A : ℝ} (hr : 0 < r) (hu : 0 < u) | |
| (hur : u ≤ A*r) : | |
| fluctuationScale μ S u ≤ max 1 (A^2)*fluctuationScale μ S r := by | |
| have hnr : 0 < fluctuationScale μ S r := div_pos (sq_pos_of_pos hr) | |
| (truncatedVariance_pos μ S hS hne hr) | |
| by_cases h : u ≤ r | |
| · exact (fluctuationScale_mono μ S hS hne hu h).trans | |
| (le_mul_of_one_le_left hnr.le (le_max_left _ _)) | |
| · have huA : u/r ≤ A := (div_le_iff₀ hr).mpr hur | |
| have hh := (fluctuationScale_upper_ratio μ S hS hne hr (le_of_not_ge h)).trans | |
| (pow_le_pow_left₀ (div_nonneg hu.le hr.le) huA 2) | |
| exact ((div_le_iff₀ hnr).mp hh).trans | |
| (mul_le_mul_of_nonneg_right (le_max_right _ _) hnr.le) | |
| theorem gaussian_sequence_uniform_good {Ω : Type*} [MeasurableSpace Ω] | |
| (μ : Measure Ω) [IsProbabilityMeasure μ] (S : Ω → ℝ) (hS : Measurable S) | |
| (hne : 0 < μ {x | S x ≠ 0}) (r : ℕ → ℝ) (hr : IsGaussianSequence μ S r) | |
| {ξ A l ε : ℝ} (hξ : 0 < ξ) (hl : 0 < l) (hε : 0 < ε) : | |
| ∀ᶠ i in atTop, ∀ u : ℝ, ξ*r i ≤ u → u ≤ A*r i → | |
| fluctuationScale μ S u*μ.real {x | l*u < |S x|} ≤ ε := by | |
| have ht : Tendsto (fun i => max 1 (A^2)* | |
| (fluctuationScale μ S (r i)*μ.real {x | (l*ξ)*r i < |S x|})) atTop (𝓝 0) := by | |
| simpa using (hr.2 (l*ξ) (mul_pos hl hξ)).const_mul (max 1 (A^2)) | |
| filter_upwards [hr.1.eventually_gt_atTop 0,ht.eventually_lt_const hε] with i hri hi | |
| intro u hu huA | |
| have hup : 0 < u := (mul_pos hξ hri).trans_le hu | |
| have hn := fluctuationScale_upper_multiple μ S hS hne hri hup huA | |
| have htail : μ.real {x | l*u < |S x|} ≤ μ.real {x | (l*ξ)*r i < |S x|} := by | |
| apply measureReal_mono _ (measure_ne_top _ _) | |
| intro x hx | |
| exact lt_of_le_of_lt (by nlinarith : (l*ξ)*r i ≤ l*u) hx | |
| have hh := mul_le_mul hn htail measureReal_nonneg | |
| (mul_nonneg (le_trans zero_le_one (le_max_left _ _)) (fluctuationScale_nonneg μ S _)) | |
| exact hh.trans (by simpa only [mul_assoc] using hi.le) | |
| theorem gaussian_bad_radii_sublinear {Ω : Type*} [MeasurableSpace Ω] | |
| (μ : Measure Ω) [IsProbabilityMeasure μ] (S : Ω → ℝ) (hS : Measurable S) | |
| (hne : 0 < μ {x | S x ≠ 0}) (r : ℕ → ℝ) (hr : IsGaussianSequence μ S r) | |
| (D : ℕ → ℝ) {A l ε : ℝ} (hl : 0 < l) (hε : 0 < ε) | |
| (hD : ∀ᶠ i in atTop, 0 ≤ D i ∧ D i ≤ A*r i ∧ | |
| ε < fluctuationScale μ S (D i)*μ.real {x | l*D i < |S x|}) : | |
| Tendsto (fun i => D i/r i) atTop (𝓝 0) := by | |
| apply Metric.tendsto_nhds.mpr | |
| intro δ hδ | |
| filter_upwards [hr.1.eventually_gt_atTop 0,hD, | |
| gaussian_sequence_uniform_good μ S hS hne r hr hδ hl hε (A := A)] with i hri hi hg | |
| have hlt : D i < δ*r i := by | |
| by_contra hc | |
| exact not_le_of_gt hi.2.2 (hg (D i) (le_of_not_gt hc) hi.2.1) | |
| rw [Real.dist_eq,sub_zero,abs_of_nonneg (div_nonneg hi.1 hri.le)] | |
| exact (div_lt_iff₀ hri).mpr hlt | |
| end DirectionalTransience | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| namespace DirectionalTransience | |
| lemma sqrt_quadratic_minorant {x : ℝ} (hx : |x| ≤ 1/2) : | |
| 1+x/2-x^2/4 ≤ Real.sqrt (1+x) := by | |
| have hxl := (abs_le.mp hx).1 | |
| have hxu := (abs_le.mp hx).2 | |
| have hx2 : x^2 ≤ 1/4 := by nlinarith [sq_abs x,abs_nonneg x] | |
| have hxp : 0 ≤ 1+x := by linarith | |
| have hq : 0 ≤ 1+x/2-x^2/4 := by nlinarith | |
| have hf : 0 ≤ 1/4+x/4-x^2/16 := by nlinarith | |
| have hs : (1+x/2-x^2/4)^2 ≤ 1+x := by | |
| nlinarith [mul_nonneg (sq_nonneg x) hf] | |
| nlinarith [Real.sq_sqrt hxp,Real.sqrt_nonneg (1+x)] | |
| lemma clipped_three_halves_minorant (x : ℝ) : | |
| 1+3*x/2+x^2/8-32*x^4 ≤ min (|1+x|^((3:ℝ)/2)) ((2:ℝ)^((3:ℝ)/2)) := by | |
| have hn : 0 ≤ min (|1+x|^((3:ℝ)/2)) ((2:ℝ)^((3:ℝ)/2)) := | |
| le_min (Real.rpow_nonneg (abs_nonneg _) _) (Real.rpow_nonneg (by norm_num) _) | |
| by_cases hx : |x| ≤ 1/2 | |
| · have hxl := (abs_le.mp hx).1 | |
| have hxu := (abs_le.mp hx).2 | |
| have hx2 : x^2 ≤ 1/4 := by nlinarith [sq_abs x,abs_nonneg x] | |
| have hxp : 0 < 1+x := by linarith | |
| have he : |1+x|^((3:ℝ)/2) = (1+x)*Real.sqrt (1+x) := by | |
| rw [abs_of_pos hxp,show (3:ℝ)/2=1+1/2 by norm_num,Real.rpow_add hxp, | |
| Real.rpow_one,← Real.sqrt_eq_rpow] | |
| have hlocal : 1+3*x/2+x^2/8 ≤ |1+x|^((3:ℝ)/2) := by | |
| rw [he] | |
| have hh := mul_le_mul_of_nonneg_left (sqrt_quadratic_minorant hx) hxp.le | |
| have hh' : 0 ≤ 1/8-x/4 := by linarith | |
| nlinarith [mul_nonneg (sq_nonneg x) hh'] | |
| have hcap : (2:ℝ) ≤ (2:ℝ)^((3:ℝ)/2) := by | |
| simpa only [Real.rpow_one] using Real.rpow_le_rpow_of_exponent_le | |
| (by norm_num : (1:ℝ)≤2) (by norm_num : (1:ℝ)≤3/2) | |
| apply le_min | |
| · nlinarith [(by positivity : 0 ≤ x^4)] | |
| · have hh : 1+3*x/2+x^2/8 ≤ 2 := by nlinarith | |
| nlinarith [(by positivity : 0 ≤ x^4)] | |
| · have hy : 1/2 ≤ |x| := le_of_not_ge hx | |
| have hsq : 1/4 ≤ |x|^2 := by nlinarith [abs_nonneg x] | |
| have hsq' : |x|/2 ≤ |x|^2 := by nlinarith | |
| have hfour : |x|^2/4 ≤ |x|^4 := by nlinarith [mul_nonneg (sq_nonneg |x|) (sub_nonneg.mpr hsq)] | |
| have he2 : |x|^2=x^2 := sq_abs x | |
| have he4 : |x|^4=x^4 := by | |
| calc | |
| _ = (|x|^2)^2 := by ring | |
| _ = (x^2)^2 := by rw [sq_abs] | |
| _ = _ := by ring | |
| rw [he2] at hsq' | |
| rw [he2,he4] at hfour | |
| have hb : 1+3*x/2+x^2/8-32*x^4 ≤ 0 := by nlinarith [le_abs_self x] | |
| exact hb.trans hn | |
| lemma gaussian_fourth_moment (v : ℝ≥0) : ∫ x : ℝ, x^4 ∂gaussianReal 0 v = 3*(v:ℝ)^2 := by | |
| have hm := iteratedDeriv_mgf_zero (X := (id : ℝ → ℝ)) (μ := gaussianReal 0 v) (by simp) 4 | |
| simp only [Pi.pow_apply,id_eq] at hm | |
| rw [← hm,mgf_id_gaussianReal] | |
| simp only [zero_mul,zero_add] | |
| let E := fun t : ℝ => Real.exp ((v:ℝ)*t^2/2) | |
| have hE (t : ℝ) : HasDerivAt E ((v:ℝ)*t*E t) t := by | |
| have h := ((((hasDerivAt_id t).pow 2).const_mul (v:ℝ)).div_const 2).exp | |
| convert h using 1 <;> simp only [E, Pi.pow_apply, id_eq] | |
| ring | |
| have d1 : deriv E = fun t => (v:ℝ)*t*E t := funext fun t => (hE t).deriv | |
| have d2 : deriv (fun t : ℝ => (v:ℝ)*t*E t) = fun t => ((v:ℝ)+(v:ℝ)^2*t^2)*E t := by | |
| funext t | |
| have h : HasDerivAt (fun t : ℝ => (v:ℝ)*t*E t) | |
| (((v:ℝ)+(v:ℝ)^2*t^2)*E t) t := by | |
| convert (((hasDerivAt_id t).const_mul (v:ℝ)).mul (hE t)) using 1 <;> (try rfl) | |
| norm_num | |
| ring | |
| exact h.deriv | |
| have d3 : deriv (fun t : ℝ => ((v:ℝ)+(v:ℝ)^2*t^2)*E t) = | |
| fun t => (3*(v:ℝ)^2*t+(v:ℝ)^3*t^3)*E t := by | |
| funext t | |
| have h : HasDerivAt (fun t : ℝ => ((v:ℝ)+(v:ℝ)^2*t^2)*E t) | |
| ((3*(v:ℝ)^2*t+(v:ℝ)^3*t^3)*E t) t := by | |
| convert (((((hasDerivAt_id t).pow 2).const_mul ((v:ℝ)^2)).const_add | |
| (v:ℝ)).mul (hE t)) using 1 <;> (try rfl) | |
| norm_num | |
| ring | |
| exact h.deriv | |
| change iteratedDeriv 4 E 0 = _ | |
| rw [iteratedDeriv_succ (n := 3),iteratedDeriv_succ (n := 2), | |
| iteratedDeriv_succ (n := 1),iteratedDeriv_one,d1,d2,d3] | |
| have h4 : HasDerivAt (fun t : ℝ => (3*(v:ℝ)^2*t+(v:ℝ)^3*t^3)*E t) | |
| (3*(v:ℝ)^2) 0 := by | |
| convert (((hasDerivAt_id (0:ℝ)).const_mul (3*(v:ℝ)^2)).add | |
| (((hasDerivAt_id (0:ℝ)).pow 3).const_mul ((v:ℝ)^3))).mul (hE 0) using 1 <;> (try rfl) | |
| norm_num [E] | |
| exact h4.deriv | |
| lemma gaussian_second_moment (v : ℝ≥0) : ∫ x : ℝ, x^2 ∂gaussianReal 0 v = v := by | |
| have h := variance_fun_id_gaussianReal (μ := 0) (v := v) | |
| rw [variance_eq_integral (X := fun x : ℝ => x) measurable_id'.aemeasurable] at h | |
| simpa using h | |
| lemma clipped_three_halves_continuous : Continuous | |
| (fun x : ℝ => min (|1+x|^((3:ℝ)/2)) ((2:ℝ)^((3:ℝ)/2))) := by | |
| exact (((continuous_const.add continuous_id).abs).rpow_const | |
| (fun _ => Or.inr (by norm_num))).min continuous_const | |
| lemma clipped_three_halves_integrable (v : ℝ≥0) : Integrable | |
| (fun x : ℝ => min (|1+x|^((3:ℝ)/2)) ((2:ℝ)^((3:ℝ)/2))) (gaussianReal 0 v) := by | |
| apply (integrable_const ((2:ℝ)^((3:ℝ)/2))).mono' | |
| clipped_three_halves_continuous.aestronglyMeasurable | |
| exact ae_of_all _ fun x => by | |
| rw [Real.norm_eq_abs,abs_of_nonneg (le_min (Real.rpow_nonneg (abs_nonneg _) _) | |
| (Real.rpow_nonneg (by norm_num) _))] | |
| exact min_le_right _ _ | |
| theorem gaussian_clipped_drift (v : ℝ≥0) (hv : (v:ℝ) ≤ 1/1536) : | |
| 1+(v:ℝ)/16 ≤ ∫ x : ℝ, min (|1+x|^((3:ℝ)/2)) ((2:ℝ)^((3:ℝ)/2)) | |
| ∂gaussianReal 0 v := by | |
| have hp (n : ℕ) : Integrable (fun x : ℝ => x^n) (gaussianReal 0 v) := | |
| integrable_pow_of_mem_interior_integrableExpSet (by simp) n | |
| have hi : Integrable (fun x : ℝ => x) (gaussianReal 0 v) := by simpa using hp 1 | |
| have h12 : Integrable (fun x : ℝ => 1+3*x/2) (gaussianReal 0 v) := | |
| (integrable_const (1:ℝ)).add ((hi.const_mul 3).div_const 2) | |
| have h123 : Integrable (fun x : ℝ => 1+3*x/2+x^2/8) (gaussianReal 0 v) := | |
| h12.add ((hp 2).div_const 8) | |
| have hp1 : Integrable (fun x : ℝ => 1+3*x/2+x^2/8-32*x^4) (gaussianReal 0 v) := | |
| (((integrable_const (1:ℝ)).add ((hi.const_mul 3).div_const 2)).add | |
| ((hp 2).div_const 8)).sub ((hp 4).const_mul 32) | |
| have hm := integral_mono hp1 (clipped_three_halves_integrable v) clipped_three_halves_minorant | |
| have hlin : (∫ x : ℝ, 3*x/2 ∂gaussianReal 0 v) = 0 := by | |
| rw [integral_div,integral_const_mul,integral_id_gaussianReal] | |
| norm_num | |
| have he : (∫ x : ℝ, 1+3*x/2+x^2/8-32*x^4 ∂gaussianReal 0 v) = | |
| 1+(v:ℝ)/8-96*(v:ℝ)^2 := by | |
| rw [integral_sub h123 ((hp 4).const_mul 32), | |
| integral_add h12 ((hp 2).div_const 8), | |
| integral_add (integrable_const (1:ℝ)) ((hi.const_mul 3).div_const 2),hlin] | |
| norm_num [integral_div,integral_const_mul,integral_mul_const, | |
| gaussian_second_moment,gaussian_fourth_moment] | |
| ring | |
| rw [he] at hm | |
| have hh : 0 ≤ (v:ℝ)*(1/1536-(v:ℝ)) := mul_nonneg v.coe_nonneg (sub_nonneg.mpr hv) | |
| nlinarith | |
| end DirectionalTransience | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical BoundedContinuousFunction | |
| end | |
| end | |
| end OAI | |
Xet Storage Details
- Size:
- 23.3 kB
- Xet hash:
- 2fbb43d56f6cdfae8e4fd92d664623911e8803cfe5c9f70e0240b6107fc6bdbd
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.