cfahlgren1/math / lean /OAI /Probability /FreeIsing /Estimates /ProgressiveVersionPushforward.lean
cfahlgren1's picture
download
raw
5.53 kB
import OAI.Probability.FreeIsing.Estimates.ContinuousModification
namespace OAI
noncomputable section
open MeasureTheory Filter Set
open scoped NNReal Topology
namespace Problem367.ProgressiveVersionPushforward
open ContinuousModification
local instance : MeasurableSpace C(ℝ≥0, ℝ) := borel _
local instance : BorelSpace C(ℝ≥0, ℝ) := ⟨rfl⟩
def gridTime (p : ℤ × ℕ) : ℝ≥0 := ((p.1 : ℝ) / (2 : ℝ) ^ p.2).toNNReal
def leftTime (t : ℝ≥0) (n : ℕ) : ℝ≥0 :=
(dyadicLeft (t : ℝ) n).toNNReal
lemma leftTime_le (t : ℝ≥0) (n : ℕ) : leftTime t n ≤ t := by
simpa only [leftTime, Real.toNNReal_coe] using Real.toNNReal_mono (dyadicLeft_le t n)
lemma tendsto_leftTime (t : ℝ≥0) : Tendsto (leftTime t) atTop (𝓝 t) := by
change Tendsto (fun n => (dyadicLeft (t : ℝ) n).toNNReal) atTop (𝓝 t)
simpa only [ Function.comp_def, Real.toNNReal_coe] using
continuous_real_toNNReal.continuousAt.tendsto.comp (tendsto_dyadicLeft (t : ℝ))
lemma leftTime_mem_range (t : ℝ≥0) (n : ℕ) : leftTime t n ∈ range gridTime :=
⟨(⌊(2 : ℝ)^n * (t : ℝ)⌋, n), rfl⟩
lemma denseRange_gridTime : DenseRange gridTime := by
intro t
exact mem_closure_of_tendsto (tendsto_leftTime t)
(Eventually.of_forall (leftTime_mem_range t))
lemma measurable_leftTime (n : ℕ) : Measurable (fun t => leftTime t n) := by
unfold leftTime dyadicLeft
fun_prop
def version {Ω : Type*} (M : ℝ≥0 → Ω → ℝ) (t : ℝ≥0) (ω : Ω) : ℝ :=
sampledLimit leftTime M t ω
lemma measurable_version {Ω : Type*} [MeasurableSpace Ω]
{M : ℝ≥0 → Ω → ℝ} (hm : ∀ t, Measurable (M t)) (t : ℝ≥0) :
Measurable (version M t) :=
measurable_sampledLimit_at t (fun n => hm (leftTime t n))
lemma progressive_version {Ω : Type*} [mΩ : MeasurableSpace Ω]
{F : Filtration ℝ≥0 mΩ} {M : ℝ≥0 → Ω → ℝ}
(hM : IsStronglyProgressive F M) : IsStronglyProgressive F (version M) := by
apply isStronglyProgressive_sampledLimit F
intro n
apply hM.comp _ (fun t _ => leftTime_le t n)
intro T
exact ((measurable_leftTime n).comp measurable_fst.subtype_val).stronglyMeasurable
lemma version_eq_of_grid {Ω : Type*} {M : ℝ≥0 → Ω → ℝ} {ω : Ω}
(f : C(ℝ≥0, ℝ)) (h : ∀ p, M (gridTime p) ω = f (gridTime p)) :
∀ t, version M t ω = f t := by
intro t
have he : (fun n => M (leftTime t n) ω) = fun n => f (leftTime t n) := by
funext n
exact h (⌊(2 : ℝ)^n * (t : ℝ)⌋, n)
unfold version sampledLimit
rw [he]
exact ((f.continuous.tendsto t).comp (tendsto_leftTime t)).limUnder_eq
lemma ae_all_version_eq {Ω : Type*} [MeasurableSpace Ω] {μ : Measure Ω}
{M G : ℝ≥0 → Ω → ℝ} (he : ∀ t, M t =ᵐ[μ] G t)
(hc : ∀ᵐ ω ∂μ, Continuous (fun t => G t ω)) :
∀ᵐ ω ∂μ, ∀ t, version M t ω = G t ω := by
apply ae_all_eq_of_continuous_modification (Set.countable_range gridTime)
leftTime_mem_range tendsto_leftTime (fun t _ => he t) hc
lemma measurableEmbedding_gridEval : MeasurableEmbedding
(fun f : C(ℝ≥0, ℝ) => fun p : ℤ × ℕ => f (gridTime p)) := by
apply Measurable.measurableEmbedding
· exact Measurable.of_eval (fun _ => (continuous_eval_const _).measurable)
· intro f g h
apply ContinuousMap.coe_injective
exact denseRange_gridTime.equalizer f.continuous g.continuous h
theorem continuous_progressive_version_of_pullback
{Ω Ξ : Type*} [MeasurableSpace Ω] [mΞ : MeasurableSpace Ξ]
{μ : Measure Ω} {φ : Ω → Ξ} (hφ : Measurable φ)
{F : Filtration ℝ≥0 mΞ} {M : ℝ≥0 → Ξ → ℝ}
(hM : IsStronglyProgressive F M)
{G : ℝ≥0 → Ω → ℝ}
(hcG : ∀ᵐ ω ∂μ, Continuous (fun t => G t ω))
(heG : ∀ t, G t =ᵐ[μ] fun ω => M t (φ ω)) :
IsStronglyProgressive F (version M) ∧
(∀ᵐ x ∂μ.map φ, Continuous (fun t => version M t x)) ∧
(∀ t, version M t =ᵐ[μ.map φ] M t) := by
have hm (t : ℝ≥0) : Measurable (M t) :=
((hM.stronglyAdapted t).mono (F.le t)).measurable
let samples : Ξ → (ℤ × ℕ → ℝ) := fun x p => M (gridTime p) x
let encode : C(ℝ≥0, ℝ) → (ℤ × ℕ → ℝ) := fun f p => f (gridTime p)
have hms : Measurable samples := Measurable.of_eval (fun point => hm (gridTime point))
have hgoodSet : MeasurableSet {x : Ξ | samples x ∈ range encode} :=
measurableEmbedding_gridEval.measurableSet_range.preimage hms
have hgoodPullback : ∀ᵐ ω ∂μ, samples (φ ω) ∈ range encode := by
have heGrid : ∀ᵐ ω ∂μ, ∀ p : ℤ × ℕ, G (gridTime p) ω = M (gridTime p) (φ ω) :=
ae_all_iff.mpr (fun p => heG (gridTime p))
filter_upwards [hcG, heGrid] with ω hc he
exact ⟨⟨fun t => G t ω, hc⟩, funext he⟩
have hgood : ∀ᵐ x ∂μ.map φ, samples x ∈ range encode :=
(ae_map_iff hφ.aemeasurable hgoodSet).mpr hgoodPullback
have hid : ∀ᵐ ω ∂μ, ∀ t, version M t (φ ω) = G t ω :=
ae_all_version_eq (fun t => (heG t).symm) hcG
refine ⟨progressive_version hM, ?_, ?_⟩
· filter_upwards [hgood] with x hx
obtain ⟨f, hf⟩ := hx
have he := version_eq_of_grid f (fun p => (congrFun hf p).symm)
simpa only [he] using f.continuous
· intro t
apply (ae_map_iff hφ.aemeasurable
(measurableSet_eq_fun (measurable_version hm t) (hm t))).mpr
filter_upwards [hid, heG t] with ω hi he
exact (hi t).trans he
end Problem367.ProgressiveVersionPushforward
end
end OAI

Xet Storage Details

Size:
5.53 kB
·
Xet hash:
f2a85eed888e16320dd2ead9c2e24de2a74837fd207c246142729f779b80a0f3

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