math / data /lean /OAI /MeasureTheory /DyadicAvoidance /GridWindowStability.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
1.44 kB
import OAI.MeasureTheory.DyadicAvoidance.GridStabilityFin
import OAI.MeasureTheory.DyadicAvoidance.WindowPlacement
namespace OAI
noncomputable section
namespace Problem310
/-- Uniform stability for a finite sequence of windows. The gap is selected
before any window lengths are fixed. -/
theorem exists_window_stability (K : β„•) (p : ℝ) (hp : 0 < p) :
βˆƒ g : β„•, 2 ≀ g ∧ βˆ€ len : β„• β†’ β„•, βˆƒ G : Set ℝ,
MeasurableSet G ∧ (βˆ€ x : ℝ, x + 1 ∈ G ↔ x ∈ G) ∧
MeasureTheory.volume (Gᢜ ∩ Set.Icc (0 : ℝ) 1) ≀ ENNReal.ofReal p ∧
βˆ€ x ∈ G, βˆ€ f e : β„•, f < e β†’ e < K β†’
βˆ€ n ∈ WindowPlacement.window len g e, βˆ€ t ∈ Set.Icc (1 : ℝ) 2,
GridSeparation.dyadicKey (WindowPlacement.finish len g f)
(x + t * ((2 : ℝ)⁻¹) ^ n) =
GridSeparation.dyadicKey (WindowPlacement.finish len g f) x := by
obtain ⟨g, hg, hstable⟩ := exists_uniform_grid_stability (ι := Fin K) p hp
refine ⟨g, hg, fun len ↦ ?_⟩
obtain ⟨G, hGm, hGp, hGbudget, hGkey⟩ :=
hstable (fun i : Fin K ↦ WindowPlacement.finish len g i.val)
refine ⟨G, hGm, hGp, hGbudget, ?_⟩
intro x hx f e hfe heK n hn t ht
have hfK : f < K := hfe.trans heK
apply hGkey x hx ⟨f, hfK⟩ n ?_ t ht
have hgap := WindowPlacement.gap_of_lt len g hfe
have hstart := (WindowPlacement.mem_window.mp hn).1
dsimp
omega
end Problem310
end
end OAI