cfahlgren1's picture
download
raw
22.2 kB
import Mathlib
import OAI.Probability.Ballisticity.Estimates.VisibleFailure
import OAI.Probability.Ballisticity.Estimates.SingleCoverWord
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
namespace DirectionalTransience
def CommonLayer {d : ℕ} (ℓ : Vector d) (height : Lattice d → ℤ) (H : ℤ) :
Set (Path d × Path d) :=
{P | ∃ a b, P.1 ∈ FirstLayerHit height H a ∧ P.2 ∈ FirstLayerHit height H b ∧
P.1 ∈ FutureNoDrop ℓ a ∧ P.2 ∈ FutureNoDrop ℓ b}
lemma measurableSet_commonLayer {d : ℕ} (ℓ : Vector d) (height : Lattice d → ℤ) (H : ℤ) :
MeasurableSet (CommonLayer ℓ height H) := by
simp only [CommonLayer,Set.ofPred_exists,Set.ofPred_and]
exact MeasurableSet.iUnion fun a => MeasurableSet.iUnion fun b =>
((measurableSet_firstLayerHit height H a).preimage measurable_fst).inter
(((measurableSet_firstLayerHit height H b).preimage measurable_snd).inter
(((measurableSet_futureNoDrop ℓ a).preimage measurable_fst).inter
((measurableSet_futureNoDrop ℓ b).preimage measurable_snd)))
lemma failure_visible_or_late {d : ℕ} (ℓ : Vector d) (height : Lattice d → ℤ)
(hproj : ∀ z, dot (realPosition z) ℓ = (height z : ℝ))
(H B : ℤ) (X : Path d) (a c : ℕ) (ha : X ∈ FirstLayerHit height H a)
(hc : X ∈ FirstLayerHit height (H+B) c) (hfalse : X ∉ FutureNoDrop ℓ a) :
X ∈ VisibleFailure height H B ∨ X ∈ LateFailure height H B := by
change ¬ ∀ n, dot (realPosition (X a)) ℓ ≤ dot (realPosition (X (a+n))) ℓ at hfalse
obtain ⟨n,hn⟩ := not_forall.mp hfalse
have hn' : height (X (a+n)) < H := by
rw [hproj,hproj,ha.1] at hn
exact_mod_cast (lt_of_not_ge hn)
by_cases hab : a+n < c
· exact Or.inl ⟨a,a+n,c,ha,hc,Nat.le_add_right _ _,hab,hn'⟩
· exact Or.inr ⟨c,a+n,hc,by omega,hn'⟩
lemma commonLayer_failure_cover {d : ℕ} (ℓ : Vector d) (height : Lattice d → ℤ)
(hproj : ∀ z, dot (realPosition z) ℓ = (height z : ℝ))
(H B : ℤ) (P : Path d × Path d)
(h1 : ∃ a, P.1 ∈ FirstLayerHit height H a) (h2 : ∃ a, P.2 ∈ FirstLayerHit height H a)
(hc1 : ∃ a, P.1 ∈ FirstLayerHit height (H+B) a) (hc2 : ∃ a, P.2 ∈ FirstLayerHit height (H+B) a)
(hfail : P ∉ CommonLayer ℓ height H) :
(P.1 ∈ VisibleFailure height H B ∨ P.2 ∈ VisibleFailure height H B) ∨
(P.1 ∈ LateFailure height H B ∨ P.2 ∈ LateFailure height H B) := by
obtain ⟨a,ha⟩ := h1
obtain ⟨b,hb⟩ := h2
obtain ⟨c,hc⟩ := hc1
obtain ⟨d,hd⟩ := hc2
by_cases hta : P.1 ∈ FutureNoDrop ℓ a
· have htb : P.2 ∉ FutureNoDrop ℓ b := fun hh => hfail ⟨a,b,ha,hb,hta,hh⟩
rcases failure_visible_or_late ℓ height hproj H B P.2 b d hb hd htb with hv | hl
· exact Or.inl (Or.inr hv)
· exact Or.inr (Or.inr hl)
· rcases failure_visible_or_late ℓ height hproj H B P.1 a c ha hc hta with hv | hl
· exact Or.inl (Or.inl hv)
· exact Or.inr (Or.inl hl)
lemma shared_conditioned_raw_bound {d : ℕ} (ν : Measure (Row d)) [IsProbabilityMeasure ν]
(ℓ : Vector d) (x y : Lattice d) (c : ℝ) (hc : 0 < c)
(hlo : ENNReal.ofReal c ≤ sharedNoDropMass ν ℓ x y)
(A : Set (Path d × Path d)) (hA : MeasurableSet A) :
(sharedConditionedPairLaw ν ℓ x y).real A ≤ c⁻¹ * (sharedPairLaw ν x y).real A := by
have hq : sharedNoDropMass ν ℓ x y ≠ 0 := ne_of_gt ((ENNReal.ofReal_pos.mpr hc).trans_le hlo)
rw [measureReal_def,sharedConditionedPairLaw,Measure.smul_apply,Measure.restrict_apply hA,
smul_eq_mul,ENNReal.toReal_mul,ENNReal.toReal_inv]
apply mul_le_mul _ (ENNReal.toReal_mono (measure_ne_top _ _) (measure_mono Set.inter_subset_left))
ENNReal.toReal_nonneg (inv_nonneg.mpr hc.le)
have hqfin := ne_top_of_le_ne_top ENNReal.one_ne_top (sharedNoDropMass_le_one ν ℓ x y)
apply inv_anti₀ hc
have hh := ENNReal.toReal_mono hqfin hlo
rwa [ENNReal.toReal_ofReal hc.le] at hh
noncomputable def singleWidthTail {d : ℕ} (ν : Measure (Row d)) (ℓ : Vector d) (B : ℕ) : ℝ :=
∫ X, if B < wordRecordCount ℓ (firstWord ℓ X) then
(wordRecordCount ℓ (firstWord ℓ X) : ℝ) else 0 ∂conditionedLaw ν ℓ
lemma singleWidthTail_nonneg {d : ℕ} (ν : Measure (Row d)) (ℓ : Vector d) (B : ℕ) :
0 ≤ singleWidthTail ν ℓ B := by
apply integral_nonneg
intro X
change (0:ℝ) ≤ if B < wordRecordCount ℓ (firstWord ℓ X) then
(wordRecordCount ℓ (firstWord ℓ X) : ℝ) else 0
split_ifs <;> positivity
lemma singleWidthTail_tendsto {d : ℕ} (ν : Measure (Row d)) [IsProbabilityMeasure ν]
(ℓ : Vector d) (htrans : DirectionallyTransient ν ℓ) :
Tendsto (singleWidthTail ν ℓ) atTop (𝓝 0) := by
have hm := (measurable_of_countable (wordRecordCount ℓ)).comp (measurable_firstWord ℓ)
have hh := width_mark_tail_tendsto (conditionedLaw ν ℓ)
(fun X => wordRecordCount ℓ (firstWord ℓ X)) hm (conditioned_wordRecordCount_integrable ν ℓ htrans).1
(fun X => (wordRecordCount ℓ (firstWord ℓ X) : ℝ)) (by fun_prop)
(fun B => (B:ℝ)+1) (tendsto_atTop_add_const_right _ 1 tendsto_natCast_atTop_atTop)
convert hh using 1
funext B
apply integral_congr_ae
filter_upwards [] with X
rw [abs_of_nonneg (Nat.cast_nonneg _)]
have he : B < wordRecordCount ℓ (firstWord ℓ X) ↔
(B:ℝ)+1 ≤ (wordRecordCount ℓ (firstWord ℓ X) : ℝ) := by
rw [← Nat.cast_one,← Nat.cast_add,Nat.cast_le]; omega
simp only [he]
end DirectionalTransience
open MeasureTheory ProbabilityTheory Filter
open scoped ENNReal NNReal BigOperators Topology Classical
namespace DirectionalTransience
def NoCommonGrid {d : ℕ} (ℓ : Vector d) (height : Lattice d → ℤ) (H B : ℤ) (m : ℕ) :
Set (Path d × Path d) := {P | ∀ j < m, P ∉ CommonLayer ℓ height (H+j*B)}
lemma measurableSet_noCommonGrid {d : ℕ} (ℓ : Vector d) (height : Lattice d → ℤ)
(H B : ℤ) (m : ℕ) : MeasurableSet (NoCommonGrid ℓ height H B m) := by
simp only [NoCommonGrid,Set.ofPred_forall]
exact MeasurableSet.iInter fun j => MeasurableSet.iInter fun _ =>
(measurableSet_commonLayer ℓ height (H+j*B)).compl
theorem shared_no_common_grid_bound {d : ℕ} (ν : Measure (Row d)) [IsProbabilityMeasure ν]
(ℓ : Vector d) (htrans : DirectionallyTransient ν ℓ)
(height : Lattice d → ℤ) (hproj : ∀ z, dot (realPosition z) ℓ = (height z : ℝ))
(hstep : ∀ z e, height (z+step e) ≤ height z+1)
(x y : Lattice d) (hxy : height x = height y)
(c : ℝ) (hc : 0 < c) (hc1 : c ≤ 1)
(htruth : ∀ u v, ENNReal.ofReal c ≤ sharedNoDropMass ν ℓ u v)
(H B m : ℕ) (hH : 0 < H) :
(sharedConditionedPairLaw ν ℓ x y).real
(NoCommonGrid ℓ height (height x+H) B m) ≤
c⁻¹*(1-c)^m + (m:ℝ)*(2*c⁻¹*singleWidthTail ν ℓ B) := by
let μ := sharedConditionedPairLaw ν ℓ x y
have hq := ne_of_gt ((ENNReal.ofReal_pos.mpr hc).trans_le (htruth x y))
let : IsProbabilityMeasure μ := sharedConditionedPairLaw_probability ν ℓ x y hq
let T := fun j : ℕ => height x+(H:ℤ)+(j:ℤ)*B
let A := NoCommonGrid ℓ height (height x+H) B m
let V := VisibleHistory height (height x+H) B m
let L₁ := fun j => {P : Path d × Path d | P.1 ∈ LateFailure height (T j) B}
let L₂ := fun j => {P : Path d × Path d | P.2 ∈ LateFailure height (T j) B}
have hhits : ∀ᵐ P ∂μ, ∀ j : ℕ,
(∃ a, P.1 ∈ FirstLayerHit height (T j) a) ∧ (∃ b, P.2 ∈ FirstLayerHit height (T j) b) := by
apply (sharedConditionedPairLaw_absolutelyContinuous ν ℓ x y).ae_le
apply ae_all_iff.mpr
intro j
apply shared_pair_layer_hits ν ℓ htrans height hproj hstep x y (T j)
· dsimp [T]
have hH' : (0:ℤ) < H := by exact_mod_cast hH
have hjB : (0:ℤ) ≤ (j:ℤ)*B := mul_nonneg (Int.natCast_nonneg _) (Int.natCast_nonneg _)
omega
· dsimp [T]
rw [← hxy]
have hH' : (0:ℤ) < H := by exact_mod_cast hH
have hjB : (0:ℤ) ≤ (j:ℤ)*B := mul_nonneg (Int.natCast_nonneg _) (Int.natCast_nonneg _)
omega
have hsub : (A : Set (Path d × Path d)) ≤ᵐ[μ] (V ∪ (⋃ j ∈ Finset.range m, L₁ j ∪ L₂ j) : Set (Path d × Path d)) := by
filter_upwards [hhits] with P hP hA
by_cases hv : P ∈ V
· exact Or.inl hv
· have hn : ∃ j < m, ¬ (P.1 ∈ VisibleFailure height (T j) B ∨ P.2 ∈ VisibleFailure height (T j) B) := by
simpa only [V,VisibleHistory,Set.mem_ofPred_eq,not_forall,exists_prop,T] using hv
obtain ⟨j,hjm,hj⟩ := hn
have hj' : T (j+1) = T j+B := by dsimp [T]; ring
have hh := commonLayer_failure_cover ℓ height hproj (T j) B P
(hP j).1 (hP j).2 (by rw [← hj']; exact (hP (j+1)).1)
(by rw [← hj']; exact (hP (j+1)).2) (hA j hjm)
exact Or.inr (Set.mem_iUnion.mpr ⟨j,Set.mem_iUnion.mpr ⟨Finset.mem_range.mpr hjm,hh.resolve_left hj⟩⟩)
have hlate (j : ℕ) : μ.real (L₁ j) + μ.real (L₂ j) ≤ 2*c⁻¹*singleWidthTail ν ℓ B := by
let C := LateFailure height (H+j*B) B
have hC : MeasurableSet C := measurableSet_lateFailure height _ _
have he1 : L₁ j = {P : Path d × Path d | (fun n => P.1 n-x) ∈ C} := by
ext P
change P.1 ∈ LateFailure height (T j) B ↔ _
rw [show T j = height x+(H+j*B:ℕ) by dsimp [T]; ring]
exact lateFailure_recenter ℓ height hproj x (H+j*B) B P.1
have he2 : L₂ j = {P : Path d × Path d | (fun n => P.2 n-y) ∈ C} := by
ext P
change P.2 ∈ LateFailure height (T j) B ↔ _
rw [show T j = height y+(H+j*B:ℕ) by dsimp [T]; rw [hxy]; ring]
exact lateFailure_recenter ℓ height hproj y (H+j*B) B P.2
have hb := conditioned_late_failure_bound ν ℓ htrans height hproj hstep (H+j*B) B
have h1 := (shared_recenter_marginal_bound ν ℓ htrans x y c hc (htruth x y) C hC).trans
(mul_le_mul_of_nonneg_left hb (inv_nonneg.mpr hc.le))
have h2 := (shared_recenter_marginal_bound_snd ν ℓ htrans x y c hc (htruth x y) C hC).trans
(mul_le_mul_of_nonneg_left hb (inv_nonneg.mpr hc.le))
rw [he1,he2]
dsimp only [μ]
change _ ≤ 2*c⁻¹*singleWidthTail ν ℓ B
change _ ≤ c⁻¹*singleWidthTail ν ℓ B at h1 h2
linarith
have hV : μ.real V ≤ c⁻¹*(1-c)^m := by
apply (shared_conditioned_raw_bound ν ℓ x y c hc (htruth x y) V
(measurableSet_visibleHistory height _ _ _)).trans
apply mul_le_mul_of_nonneg_left _ (inv_nonneg.mpr hc.le)
apply shared_visible_history_bound ν ℓ htrans height hproj hstep x y (height x+H) B
(by exact lt_add_of_pos_right _ (by exact_mod_cast hH))
(by rw [← hxy]; exact lt_add_of_pos_right _ (by exact_mod_cast hH))
(by exact_mod_cast Nat.zero_le B) c hc.le hc1 htruth m
calc
μ.real A ≤ μ.real (V ∪ (⋃ j ∈ Finset.range m, L₁ j ∪ L₂ j)) :=
ENNReal.toReal_mono (measure_ne_top _ _) (measure_mono_ae hsub)
_ ≤ μ.real V + μ.real (⋃ j ∈ Finset.range m, L₁ j ∪ L₂ j) := measureReal_union_le _ _
_ ≤ c⁻¹*(1-c)^m + ∑ j ∈ Finset.range m, (μ.real (L₁ j) + μ.real (L₂ j)) :=
add_le_add hV ((measureReal_biUnion_finset_le _ _).trans
(Finset.sum_le_sum (fun j _ => measureReal_union_le _ _)))
_ ≤ c⁻¹*(1-c)^m + ∑ _j ∈ Finset.range m, 2*c⁻¹*singleWidthTail ν ℓ B :=
add_le_add_right (Finset.sum_le_sum (fun j _ => hlate j)) _
_ = _ := by simp
def NoCommonInterval {d : ℕ} (ℓ : Vector d) (height : Lattice d → ℤ) (H : ℤ) (R : ℕ) :
Set (Path d × Path d) := {P | ∀ q : ℤ, H ≤ q → q ≤ H+R → P ∉ CommonLayer ℓ height q}
lemma measurableSet_noCommonInterval {d : ℕ} (ℓ : Vector d) (height : Lattice d → ℤ) (H : ℤ) (R : ℕ) :
MeasurableSet (NoCommonInterval ℓ height H R) := by
simp only [NoCommonInterval,Set.ofPred_forall]
exact MeasurableSet.iInter fun q => MeasurableSet.iInter fun _ => MeasurableSet.iInter fun _ =>
(measurableSet_commonLayer ℓ height q).compl
theorem shared_common_overshoot_tight {d : ℕ} (ν : Measure (Row d)) [IsProbabilityMeasure ν]
(hue : UniformElliptic ν) (ℓ : Vector d) (hℓ : dot ℓ ℓ = 1)
(htrans : DirectionallyTransient ν ℓ)
(height : Lattice d → ℤ) (hproj : ∀ z, dot (realPosition z) ℓ = (height z : ℝ))
(hstep : ∀ z e, height (z+step e) ≤ height z+1) {ε : ℝ} (hε : 0 < ε) :
∃ R : ℕ, ∀ x y : Lattice d, height x = height y → ∀ H : ℕ,
(sharedConditionedPairLaw ν ℓ x y).real
(NoCommonInterval ℓ height (height x+H) R) < ε := by
obtain ⟨c₀,hc₀,htruth₀⟩ := sharedNoDropMass_uniform_positive ν hue ℓ hℓ htrans
have hc₀1 : c₀ ≤ 1 := (htruth₀ 0 0).trans (sharedNoDropMass_le_one ν ℓ 0 0)
have hc₀fin : c₀ ≠ ⊤ := ne_top_of_le_ne_top ENNReal.one_ne_top hc₀1
let c := c₀.toReal
have hc : 0 < c := ENNReal.toReal_pos hc₀.ne' hc₀fin
have hc1 : c ≤ 1 := by simpa only [ENNReal.toReal_one] using ENNReal.toReal_mono ENNReal.one_ne_top hc₀1
have htruth (u v : Lattice d) : ENNReal.ofReal c ≤ sharedNoDropMass ν ℓ u v := by
dsimp [c]; rw [ENNReal.ofReal_toReal hc₀fin]; exact htruth₀ u v
have hgeo := (tendsto_pow_atTop_nhds_zero_of_lt_one (sub_nonneg.mpr hc1)
(show 1-c < 1 by linarith)).const_mul c⁻¹
simp only [mul_zero] at hgeo
obtain ⟨m,hm⟩ := (hgeo.eventually (gt_mem_nhds (show (0:ℝ) < ε/2 by positivity))).exists
have htail := (singleWidthTail_tendsto ν ℓ htrans).const_mul ((m:ℝ)*(2*c⁻¹))
simp only [mul_zero] at htail
obtain ⟨B,hB⟩ := (htail.eventually (gt_mem_nhds (show (0:ℝ) < ε/2 by positivity))).exists
refine ⟨1+m*B,fun x y hxy H => ?_⟩
have hq := ne_of_gt ((ENNReal.ofReal_pos.mpr hc).trans_le (htruth x y))
let : IsProbabilityMeasure (sharedConditionedPairLaw ν ℓ x y) := sharedConditionedPairLaw_probability ν ℓ x y hq
have hsub : NoCommonInterval ℓ height (height x+H) (1+m*B) ⊆
NoCommonGrid ℓ height (height x+(H+1:ℕ)) B m := by
intro P hP j hj
apply hP (height x+(H+1:ℕ)+(j:ℤ)*B)
· have hb : (0:ℤ) ≤ (j:ℤ)*B := mul_nonneg (Int.natCast_nonneg _) (Int.natCast_nonneg _)
push_cast; omega
· have hb : (j:ℤ)*B ≤ (m:ℤ)*B := mul_le_mul_of_nonneg_right (by exact_mod_cast hj.le) (Int.natCast_nonneg _)
push_cast; omega
have hbnd := (ENNReal.toReal_mono (measure_ne_top _ _) (measure_mono hsub)).trans
(shared_no_common_grid_bound ν ℓ htrans height hproj hstep x y hxy c hc hc1 htruth (H+1) B m (by omega))
apply hbnd.trans_lt
have hb : (m:ℝ)*(2*c⁻¹*singleWidthTail ν ℓ B) < ε/2 := by simpa only [mul_assoc] using hB
linarith
end DirectionalTransience
open MeasureTheory ProbabilityTheory Filter
open scoped ENNReal NNReal BigOperators Topology Classical
end
end
end OAI

Xet Storage Details

Size:
22.2 kB
·
Xet hash:
db08f57318fd7bdf41104a2c9fd8d8a892214553815fca092933816cec40d72f

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