cfahlgren1/math / lean /OAI /Probability /Ballisticity /Estimates /ConvolutionCentersClose.lean
cfahlgren1's picture
download
raw
19.1 kB
import Mathlib
import OAI.Probability.Ballisticity.Estimates.MedianAeConst
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
namespace DirectionalTransience
lemma convolution_centers_close {Ω : Type*} [MeasurableSpace Ω]
(μ : Measure Ω) [IsProbabilityMeasure μ] (F G J : Ω → ℝ)
(hF : Measurable F) (hG : Measurable G) (hJ : Measurable J)
(a b c : ℝ) {p z : ℝ} (hp : 0 < p) (hp1 : p ≤ 1) (_hz : 0 ≤ z)
(hdom : ENNReal.ofReal p • (μ.prod μ).map (fun P => F P.1+G P.2) ≤ μ.map J)
(hf : μ.real {x | z < |F x-a|} ≤ p/4)
(hg : μ.real {x | z < |G x-b|} ≤ p/4)
(hj : μ.real {x | z < |J x-c|} ≤ p/4) : |c-a-b| ≤ 3*z := by
by_contra! hfar
let A := {x | z < |F x-a|}
let B := {x | z < |G x-b|}
let E := {P : Ω × Ω | z < |F P.1+G P.2-c|}
have hAm : MeasurableSet A := measurableSet_lt measurable_const (hF.sub_const a).abs
have hBm : MeasurableSet B := measurableSet_lt measurable_const (hG.sub_const b).abs
have hEm : MeasurableSet E := measurableSet_lt measurable_const (by fun_prop)
have hsub : Eᶜ ⊆ (A ×ˢ Set.univ) ∪ (Set.univ ×ˢ B) := by
intro P hP
by_contra hh
have ha : |F P.1-a| ≤ z := by
by_contra! ha
exact hh (Or.inl ⟨ha,Set.mem_univ _⟩)
have hb : |G P.2-b| ≤ z := by
by_contra! hb
exact hh (Or.inr ⟨Set.mem_univ _,hb⟩)
have he : |F P.1+G P.2-c| ≤ z := le_of_not_gt hP
have ht := abs_add_le (F P.1-a) (G P.2-b)
have ht' := abs_sub_le (F P.1-a+(G P.2-b)) 0 (F P.1+G P.2-c)
have heq : F P.1-a+(G P.2-b)-(F P.1+G P.2-c) = c-a-b := by ring
rw [heq,sub_zero,zero_sub,abs_neg] at ht'
linarith
have hEc : (μ.prod μ).real Eᶜ ≤ p/2 := by
have hh := (measureReal_mono (μ := μ.prod μ) hsub).trans (measureReal_union_le _ _)
simp only [measureReal_prod_prod,probReal_univ,mul_one,one_mul] at hh
linarith
have hEl : 1-p/2 ≤ (μ.prod μ).real E := by
rw [measureReal_compl hEm,probReal_univ] at hEc
linarith
have hD := hdom ({x : ℝ | z < |x-c|})
have hset : MeasurableSet {x : ℝ | z < |x-c|} := measurableSet_lt measurable_const (by fun_prop)
rw [Measure.smul_apply,Measure.map_apply (by fun_prop) hset,Measure.map_apply hJ hset] at hD
have hDr := ENNReal.toReal_mono (measure_ne_top _ _) hD
simp only [smul_eq_mul,ENNReal.toReal_mul,ENNReal.toReal_ofReal hp.le] at hDr
change p*(μ.prod μ).real E ≤ μ.real {x | z < |J x-c|} at hDr
have hh := mul_le_mul_of_nonneg_left hEl hp.le
nlinarith [mul_nonneg hp.le (sub_nonneg.mpr hp1)]
lemma conditioned_median_max_bound {d : ℕ} (ν : Measure (Row d)) [IsProbabilityMeasure ν]
(ℓ : Vector d) (htrans : DirectionallyTransient ν ℓ)
(height : Lattice d → ℤ) (hproj : ∀ x, dot (realPosition x) ℓ = (height x : ℝ))
(hstep : ∀ x e, height (x+step e) ≤ height x+1) (f : Direction d)
(H : ℕ) {z : ℝ} (hz : 0 < z) :
let hp := ne_of_gt (noDrop_positive_of_directionallyTransient ν ℓ htrans)
let p := (annealedLaw ν (NoDrop ℓ 0)).toReal
p^2/2 * (conditionedLaw ν ℓ).real {X | ∃ j, 0 < j ∧ j ≤ H ∧
z < |signedCoordinate f (recordIndexPosition ℓ j X)-(recordMedian ν ℓ hp f j:ℝ)|} ≤
5*(H:ℝ)/fluctuationScale (independentConditionedPairLaw ν ℓ) (commonIncrementProcess ℓ f 0) z := by
dsimp only
have hp := ne_of_gt (noDrop_positive_of_directionallyTransient ν ℓ htrans)
let : IsProbabilityMeasure (conditionedLaw ν ℓ) := conditionedLaw_probability ν ℓ hp
let : IsProbabilityMeasure (independentConditionedPairLaw ν ℓ) := independentConditionedPairLaw_probability ν ℓ hp
have hh := conditioned_firstHit_median_maximum ν ℓ htrans height hproj hstep f H z
have hh' := ENNReal.toReal_mono (measure_ne_top _ _) hh
simp only [ENNReal.toReal_mul,ENNReal.toReal_pow,ENNReal.toReal_div,ENNReal.toReal_ofNat,ENNReal.toReal_one] at hh'
have heq : (annealedLaw ν (NoDrop ℓ 0)).toReal^2*(1/2:ℝ) =
(annealedLaw ν (NoDrop ℓ 0)).toReal^2/2 := by ring
rw [heq] at hh'
exact hh'.trans (independent_common_maximal_probability ν ℓ htrans height hproj hstep f hz H)
theorem recordMedian_shortBlock_quantitative {d : ℕ} (ν : Measure (Row d))
[IsProbabilityMeasure ν] (ℓ : Vector d) (htrans : DirectionallyTransient ν ℓ)
(height : Lattice d → ℤ) (hproj : ∀ x, dot (realPosition x) ℓ = (height x : ℝ))
(hstep : ∀ x e, height (x+step e) ≤ height x+1) (f : Direction d)
{H : ℕ} (hH : 0 < H) {z : ℝ} (hz : 0 < z)
(hscale : 5*((2*H:ℕ):ℝ)/fluctuationScale (independentConditionedPairLaw ν ℓ)
(commonIncrementProcess ℓ f 0) z ≤ (annealedLaw ν (NoDrop ℓ 0)).toReal^3/8) :
let hp := ne_of_gt (noDrop_positive_of_directionallyTransient ν ℓ htrans)
∀ j ≤ H, |(recordMedian ν ℓ hp f j:ℝ)-(j:ℝ)*(recordMedian ν ℓ hp f H:ℝ)/H| ≤ 6*z := by
let p := (annealedLaw ν (NoDrop ℓ 0)).toReal
have hp := ne_of_gt (noDrop_positive_of_directionallyTransient ν ℓ htrans)
have hp0 : 0 < p := ENNReal.toReal_pos hp (measure_ne_top _ _)
have hp1 : p ≤ 1 := measureReal_le_one
let μ := conditionedLaw ν ℓ
let : IsProbabilityMeasure μ := conditionedLaw_probability ν ℓ hp
let F := fun j X => signedCoordinate f (recordIndexPosition ℓ j X)
let b := fun j => (recordMedian ν ℓ hp f j:ℝ)
have hF j : Measurable (F j) := (measurable_of_countable (signedCoordinate f)).comp (measurable_recordIndexPosition ℓ j)
have hmax := (conditioned_median_max_bound ν ℓ htrans height hproj hstep f (2*H) hz).trans hscale
have htail : ∀ j, 0 < j → j ≤ 2*H → μ.real {X | z < |F j X-b j|} ≤ p/4 := by
intro j hj hjH
have hsub : {X | z < |F j X-b j|} ⊆ {X | ∃ k, 0 < k ∧ k ≤ 2*H ∧ z < |F k X-b k|} :=
fun X hX => ⟨j,hj,hjH,hX⟩
have hh := mul_le_mul_of_nonneg_left (measureReal_mono (μ := μ) hsub) (by positivity : 0 ≤ p^2/2)
have heq : p^3/8 = p^2/2*(p/4) := by ring
change p^2/2 * μ.real {X | ∃ j, 0 < j ∧ j ≤ 2*H ∧ z < |F j X-b j|} ≤ p^3/8 at hmax
rw [heq] at hmax
exact (mul_le_mul_iff_right₀ (by positivity : 0 < p^2/2)).mp (hh.trans hmax)
have hadd : ∀ i j, i+j ≤ 2*H → |b (i+j)-b i-b j| ≤ 3*z := by
intro i j hij
by_cases hi : i = 0
· simp [hi,b,recordMedian_zero,hz.le]
by_cases hj : j = 0
· simp [hj,b,recordMedian_zero,hz.le]
have hd := Measure.map_mono (conditioned_record_convolution_domination ν ℓ htrans
(Nat.pos_of_ne_zero hi) (Nat.pos_of_ne_zero hj)) (measurable_of_countable (signedCoordinate f))
have hsum : Measurable (fun P : Path d × Path d => recordIndexPosition ℓ i P.1+recordIndexPosition ℓ j P.2) :=
((measurable_recordIndexPosition ℓ i).comp measurable_fst).add ((measurable_recordIndexPosition ℓ j).comp measurable_snd)
rw [Measure.map_smul _ (measurable_of_countable (signedCoordinate f)).aemeasurable,
Measure.map_map (measurable_of_countable _) hsum,
Measure.map_map (measurable_of_countable _) (measurable_recordIndexPosition ℓ (i+j))] at hd
apply convolution_centers_close μ (F i) (F j) (F (i+j)) (hF i) (hF j) (hF (i+j))
(b i) (b j) (b (i+j)) hp0 hp1 hz.le
· simpa only [p,ENNReal.ofReal_toReal (measure_ne_top _ _),Function.comp_def,signedCoordinate_add,independentConditionedPairLaw,μ,F] using hd
· exact htail i (Nat.pos_of_ne_zero hi) (by omega)
· exact htail j (Nat.pos_of_ne_zero hj) (by omega)
· exact htail (i+j) (by omega) hij
have hh := approximate_additive_linear_on_interval b (by simp [b,recordMedian_zero]) hH
(show 0 ≤ 3*z by positivity) hadd
simpa only [show 2*(3*z) = 6*z by ring] using hh
end DirectionalTransience
open MeasureTheory ProbabilityTheory Filter
open scoped ENNReal NNReal BigOperators Topology
namespace DirectionalTransience
theorem recordMedian_shortBlock {d : ℕ} (ν : Measure (Row d)) [IsProbabilityMeasure ν]
(hue : UniformElliptic ν) (e f : Direction d) (hef : e.1 ≠ f.1)
(htrans : DirectionallyTransient ν (realPosition (step e))) :
∃ C : ℝ, 0 < C ∧ ∃ t₀ : ℝ, 0 < t₀ ∧ ∀ t : ℝ, 0 < t → t ≤ t₀ →
∀ r : ℝ, 0 < r → ∀ H : ℕ, 0 < H →
(H:ℝ) ≤ t*fluctuationScale (independentConditionedPairLaw ν (realPosition (step e)))
(commonIncrementProcess (realPosition (step e)) f 0) r →
let hp := ne_of_gt (noDrop_positive_of_directionallyTransient ν (realPosition (step e)) htrans)
∀ j ≤ H, |(recordMedian ν (realPosition (step e)) hp f j:ℝ)-
(j:ℝ)*(recordMedian ν (realPosition (step e)) hp f H:ℝ)/H| ≤ C*Real.sqrt t*r := by
let ℓ := realPosition (step e)
let μ := independentConditionedPairLaw ν ℓ
let S := commonIncrementProcess ℓ f 0
let p := (annealedLaw ν (NoDrop ℓ 0)).toReal
have hp := ne_of_gt (noDrop_positive_of_directionallyTransient ν ℓ htrans)
have hp0 : 0 < p := ENNReal.toReal_pos hp (measure_ne_top _ _)
have hp1 : p ≤ 1 := measureReal_le_one
let : IsProbabilityMeasure μ := independentConditionedPairLaw_probability ν ℓ hp
have hS : Measurable S := measurable_commonIncrementProcess ℓ f 0
have hne := independent_commonWordIncrement_nonzero ν hue e f hef htrans
let D := Real.sqrt (80/p^3)
have hD : 0 < D := Real.sqrt_pos.mpr (by positivity)
have hDsq : D^2 = 80/p^3 := Real.sq_sqrt (by positivity)
refine ⟨6*D,by positivity,1/D^2,by positivity,?_⟩
intro t ht htt r hr H hH hHt
let a := D*Real.sqrt t
have ha : 0 < a := mul_pos hD (Real.sqrt_pos.mpr ht)
have hasq : a^2 = D^2*t := by simp only [a,mul_pow,Real.sq_sqrt ht.le]
have ha1 : a ≤ 1 := by
have hh : t*D^2 ≤ 1 := (le_div_iff₀ (sq_pos_of_pos hD)).mp htt
nlinarith [sq_nonneg (a-1)]
have hn : 0 < fluctuationScale μ S r := div_pos (sq_pos_of_pos hr)
(truncatedVariance_pos μ S hS hne hr)
have hna : 0 < fluctuationScale μ S (a*r) := div_pos (sq_pos_of_pos (mul_pos ha hr))
(truncatedVariance_pos μ S hS hne (mul_pos ha hr))
have hsc := fluctuationScale_scaling μ S hS hne hr ha ha1
have hlow : 5*((2*H:ℕ):ℝ)/fluctuationScale μ S (a*r) ≤ p^3/8 := by
have hh : 5*((2*H:ℕ):ℝ) ≤ (p^3/8)*fluctuationScale μ S (a*r) := by
have hh1 := mul_le_mul_of_nonneg_left hsc (by positivity : 0 ≤ p^3/8)
have heq : (p^3/8)*(a^2*fluctuationScale μ S r) = 10*t*fluctuationScale μ S r := by
rw [hasq,hDsq]
field_simp; ring
rw [heq] at hh1
push_cast
nlinarith
exact (div_le_iff₀ hna).mpr hh
have hh := recordMedian_shortBlock_quantitative ν ℓ htrans (signedHeight e)
(signedHeight_projection e) (signedHeight_step_le e) f hH (mul_pos ha hr) hlow
dsimp only
intro j hj
simpa only [show 6*(a*r) = (6*D)*Real.sqrt t*r by dsimp [a]; ring] using hh j hj
end DirectionalTransience
open MeasureTheory ProbabilityTheory Filter
open scoped ENNReal NNReal BigOperators Topology Classical
end
end
end OAI

Xet Storage Details

Size:
19.1 kB
·
Xet hash:
99ec461f296570c812a0c0e17bf96e03d12bcb1b5e50e1436ea417d1355434bd

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