math / data /lean /OAI /Probability /Ballisticity /Geometry /HeightTubeWindow.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
2.6 kB
import Mathlib
import OAI.Probability.Ballisticity.Estimates.GridOccupation
namespace OAI
section
section
open MeasureTheory ProbabilityTheory Filter
open scoped ENNReal NNReal Topology BoundedContinuousFunction
namespace DirectionalTransience
def heightTubeEndpointEvent (Y : β„• β†’ ℝ) (H : β„•) (L R : ℝ) : Prop :=
(βˆ€ j ≀ H, |Y j| ≀ L) ∧ |Y H| ≀ R
lemma measurableSet_heightTubeEndpointEvent {Ξ© : Type*} [MeasurableSpace Ξ©]
(Y : β„• β†’ Ξ© β†’ ℝ) (hY : βˆ€ j, Measurable (Y j)) (H : β„•) (L R : ℝ) :
MeasurableSet {x | heightTubeEndpointEvent (fun j => Y j x) H L R} := by
change MeasurableSet ({x | βˆ€ j ≀ H, |Y j x| ≀ L} ∩ {x | |Y H x| ≀ R})
apply MeasurableSet.inter
Β· simp only [Set.ofPred_forall]
exact MeasurableSet.iInter fun j => MeasurableSet.iInter fun _ =>
measurableSet_le (hY j).abs measurable_const
Β· exact measurableSet_le (hY H).abs measurable_const
lemma heightPolygon_window_implies_tube (Y : β„• β†’ ℝ) (r n : ℝ) (hr : 0 < r) (hn : 0 < n)
(B L ρ Ξ΄ : ℝ) (hBL : B ≀ L) (Ο„ : unitInterval)
(hg : β€–heightPolygon Y r n 2β€– < B)
(he : βˆ€ t : unitInterval, dist t Ο„ ≀ Ξ΄ β†’ |heightPolygon Y r n 2 t| < ρ)
(ht : dist (layerGridPoint (2*n) ⌊nβŒ‹β‚Š) Ο„ ≀ Ξ΄) :
heightTubeEndpointEvent Y ⌊nβŒ‹β‚Š (L*r) (ρ*r) := by
have h2n : 0 < 2*n := by positivity
have hj (j : β„•) (h : j ≀ ⌊nβŒ‹β‚Š) : (j:ℝ) ≀ 2*n := by
have h' := (Nat.cast_le (Ξ± := ℝ)).mpr h
have hfloor := Nat.floor_le hn.le
linarith
have heval (j : β„•) (h : j ≀ ⌊nβŒ‹β‚Š) : heightPolygon Y r n 2 (layerGridPoint (2*n) j)=Y j/r := by
apply heightPolygon_grid _ _ _ _ h2n.le
rw [layerGridPoint_coe h2n (hj j h),mul_div_cancelβ‚€ _ h2n.ne']
constructor
Β· intro j h
have hh := (heightPolygon Y r n 2).norm_coe_le_norm (layerGridPoint (2*n) j)
rw [heval j h,Real.norm_eq_abs,abs_div,abs_of_pos hr] at hh
exact ((div_le_iffβ‚€ hr).mp (hh.trans (hg.le.trans hBL)))
Β· have hh := he _ ht
rw [heval ⌊nβŒ‹β‚Š le_rfl,abs_div,abs_of_pos hr] at hh
exact ((div_lt_iffβ‚€ hr).mp hh).le
lemma half_layer_grid_tendsto (n : β„• β†’ ℝ) (hn : Tendsto n atTop atTop) :
Tendsto (fun i => layerGridPoint (2*n i) ⌊n iβŒ‹β‚Š) atTop
(𝓝 (⟨(1:ℝ)/2,by norm_num,by norm_num⟩ : unitInterval)) := by
apply layerGridPoint_tendsto
have hh := ((tendsto_nat_floor_mul_div_atTop (by norm_num : (0:ℝ)≀1)).comp hn).div_const 2
convert hh using 1
simp only [one_mul,Function.comp_def]
funext i
ring
end DirectionalTransience
end
end
end OAI