Download data/lean/OAI/Probability/FreeIsing/Estimates/ContinuousModification.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 8.13 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/FreeIsing/Estimates/ContinuousModification.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Probability/FreeIsing/Estimates/ContinuousModification.lean
-
curl -L -o ContinuousModification.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/FreeIsing/Estimates/ContinuousModification.lean
8.13 kB
| import Mathlib | |
| namespace OAI | |
| noncomputable section | |
| open MeasureTheory Filter | |
| open scoped Topology | |
| namespace Problem367 | |
| namespace ContinuousModification | |
| variable {T Ξ© : Type*} | |
| def sampledLimit (q : T β β β T) (F : T β Ξ© β β) (t : T) (Ο : Ξ©) : β := | |
| limUnder atTop (fun n => F (q t n) Ο) | |
| theorem sampledLimit_congr {q : T β β β T} {F G : T β Ξ© β β} | |
| {t : T} {Ο Ο' : Ξ©} (h : β n, F (q t n) Ο = G (q t n) Ο') : | |
| sampledLimit q F t Ο = sampledLimit q G t Ο' := by | |
| unfold sampledLimit | |
| congr 1 | |
| exact funext h | |
| theorem measurable_sampledLimit [MeasurableSpace T] [MeasurableSpace Ξ©] | |
| {q : T β β β T} {F : T β Ξ© β β} | |
| (hF : β n, Measurable (fun z : T Γ Ξ© => F (q z.1 n) z.2)) : | |
| Measurable (fun z : T Γ Ξ© => sampledLimit q F z.1 z.2) := by | |
| exact (StronglyMeasurable.limUnder (fun n => (hF n).stronglyMeasurable)).measurable | |
| theorem measurable_sampledLimit_at [MeasurableSpace Ξ©] | |
| {q : T β β β T} {F : T β Ξ© β β} (t : T) | |
| (hF : β n, Measurable (F (q t n))) : Measurable (sampledLimit q F t) := by | |
| exact (StronglyMeasurable.limUnder (fun n => (hF n).stronglyMeasurable)).measurable | |
| theorem ae_all_eq_of_continuous_modification [TopologicalSpace T] [MeasurableSpace Ξ©] | |
| {ΞΌ : Measure Ξ©} {q : T β β β T} {F G : T β Ξ© β β} | |
| {S : Set T} (hS : S.Countable) | |
| (hqS : β t n, q t n β S) | |
| (hq : β t, Tendsto (q t) atTop (π t)) | |
| (hFG : β s β S, F s =α΅[ΞΌ] G s) | |
| (hG : βα΅ Ο βΞΌ, Continuous (fun t => G t Ο)) : | |
| βα΅ Ο βΞΌ, β t, sampledLimit q F t Ο = G t Ο := by | |
| let : Countable S := hS.to_subtype | |
| have hEq : βα΅ Ο βΞΌ, β s : S, F s Ο = G s Ο := | |
| ae_all_iff.mpr (fun s => hFG s s.property) | |
| filter_upwards [hEq, hG] with Ο hEqΟ hGΟ | |
| intro t | |
| have hseq : (fun n => F (q t n) Ο) = (fun n => G (q t n) Ο) := | |
| funext (fun n => hEqΟ β¨q t n, hqS t nβ©) | |
| unfold sampledLimit | |
| rw [hseq] | |
| exact ((hGΟ.tendsto t).comp (hq t)).limUnder_eq | |
| theorem ae_continuous_sampledLimit [TopologicalSpace T] [MeasurableSpace Ξ©] | |
| {ΞΌ : Measure Ξ©} {q : T β β β T} {F G : T β Ξ© β β} | |
| {S : Set T} (hS : S.Countable) | |
| (hqS : β t n, q t n β S) | |
| (hq : β t, Tendsto (q t) atTop (π t)) | |
| (hFG : β s β S, F s =α΅[ΞΌ] G s) | |
| (hG : βα΅ Ο βΞΌ, Continuous (fun t => G t Ο)) : | |
| βα΅ Ο βΞΌ, Continuous (fun t => sampledLimit q F t Ο) := by | |
| filter_upwards [ae_all_eq_of_continuous_modification hS hqS hq hFG hG, hG] | |
| with Ο hEq hGΟ | |
| simpa only [hEq] using hGΟ | |
| theorem sampledLimit_equivariant {I : Type*} {q : T β β β T} | |
| (F : I β T β Ξ© β β) (a : Ξ© β Ξ©) (e : I β I) | |
| (hF : β i t n Ο, F i (q t n) (a Ο) = F (e i) (q t n) Ο) : | |
| β i t Ο, sampledLimit q (F i) t (a Ο) = sampledLimit q (F (e i)) t Ο := by | |
| intro i t Ο | |
| exact sampledLimit_congr (fun n => hF i t n Ο) | |
| theorem ae_all_eq_family [TopologicalSpace T] [MeasurableSpace Ξ©] | |
| {I : Type*} [Countable I] {ΞΌ : Measure Ξ©} {q : T β β β T} | |
| {F G : I β T β Ξ© β β} {S : Set T} (hS : S.Countable) | |
| (hqS : β t n, q t n β S) | |
| (hq : β t, Tendsto (q t) atTop (π t)) | |
| (hFG : β i s, s β S β F i s =α΅[ΞΌ] G i s) | |
| (hG : β i, βα΅ Ο βΞΌ, Continuous (fun t => G i t Ο)) : | |
| βα΅ Ο βΞΌ, β i t, sampledLimit q (F i) t Ο = G i t Ο := by | |
| apply ae_all_iff.mpr | |
| intro i | |
| exact ae_all_eq_of_continuous_modification hS hqS hq (hFG i) (hG i) | |
| theorem isStronglyProgressive_sampledLimit [Preorder T] [MeasurableSpace T] | |
| [mΞ© : MeasurableSpace Ξ©] (β± : Filtration T mΞ©) | |
| {q : T β β β T} {F : T β Ξ© β β} | |
| (hF : β n, IsStronglyProgressive β± (fun t Ο => F (q t n) Ο)) : | |
| IsStronglyProgressive β± (sampledLimit q F) := by | |
| intro t | |
| let : MeasurableSpace Ξ© := β± t | |
| exact StronglyMeasurable.limUnder (fun n => hF n t) | |
| def dyadicLeft (t : β) (n : β) : β := (β(2 : β)^n * tβ : β€) / (2 : β)^n | |
| theorem dyadicLeft_le (t : β) (n : β) : dyadicLeft t n β€ t := by | |
| unfold dyadicLeft | |
| apply (div_le_iffβ (by positivity : (0 : β) < 2^n)).2 | |
| simpa only [mul_comm] using Int.floor_le ((2 : β)^n * t) | |
| theorem sub_inv_pow_le_dyadicLeft (t : β) (n : β) : | |
| t - ((2 : β)^n)β»ΒΉ β€ dyadicLeft t n := by | |
| have hp : (0 : β) < 2^n := by positivity | |
| unfold dyadicLeft | |
| apply (le_div_iffβ hp).2 | |
| have hfloor := Int.lt_floor_add_one ((2 : β)^n * t) | |
| have hinv : ((2 : β)^n)β»ΒΉ * (2 : β)^n = 1 := inv_mul_cancelβ hp.ne' | |
| nlinarith | |
| theorem dyadicLeft_nonneg {t : β} (ht : 0 β€ t) (n : β) : | |
| 0 β€ dyadicLeft t n := by | |
| unfold dyadicLeft | |
| exact div_nonneg (Int.cast_nonneg (Int.floor_nonneg.mpr (by positivity))) (by positivity) | |
| theorem tendsto_dyadicLeft (t : β) : Tendsto (dyadicLeft t) atTop (π t) := by | |
| have hinv : Tendsto (fun n : β => ((2 : β)^n)β»ΒΉ) atTop (π 0) := | |
| tendsto_inv_atTop_zero.comp (tendsto_pow_atTop_atTop_of_one_lt (by norm_num)) | |
| have hlow : Tendsto (fun n : β => t - ((2 : β)^n)β»ΒΉ) atTop (π t) := by | |
| simpa using tendsto_const_nhds.sub hinv | |
| exact tendsto_of_tendsto_of_tendsto_of_le_of_le hlow tendsto_const_nhds | |
| (sub_inv_pow_le_dyadicLeft t) (dyadicLeft_le t) | |
| theorem dyadicLeft_mem_rationals (t : β) (n : β) : | |
| dyadicLeft t n β Set.range (fun r : β => (r : β)) := by | |
| refine β¨(β(2 : β)^n * tβ : β) / (2 : β)^n, ?_β© | |
| simp only [Rat.cast_div, Rat.cast_intCast, Rat.cast_pow, Rat.cast_ofNat, dyadicLeft] | |
| theorem measurable_dyadic_sample [MeasurableSpace Ξ©] {F : β β Ξ© β β} | |
| (hF : β t, Measurable (F t)) (n : β) : | |
| Measurable (fun z : β Γ Ξ© => F (dyadicLeft z.1 n) z.2) := by | |
| have hstep : Measurable (fun z : β€ Γ Ξ© => F ((z.1 : β) / (2 : β)^n) z.2) := | |
| measurable_from_prod_countable_right (fun k => hF ((k : β) / (2 : β)^n)) | |
| exact hstep.comp (((measurable_const.mul measurable_fst).floor).prodMk measurable_snd) | |
| theorem isProgressive_dyadic_sample [mΞ© : MeasurableSpace Ξ©] | |
| (β± : Filtration β mΞ©) {F : β β Ξ© β β} | |
| (hF : Adapted β± F) (n : β) : | |
| IsProgressive β± (fun t Ο => F (dyadicLeft t n) Ο) := by | |
| intro t | |
| let : MeasurableSpace Ξ© := β± t | |
| have hstep : Measurable | |
| (fun z : β€ Γ Ξ© => F (min ((z.1 : β) / (2 : β)^n) t) z.2) := | |
| measurable_from_prod_countable_right (fun k => by | |
| exact (hF (min ((k : β) / (2 : β)^n) t)).mono | |
| (β±.mono (min_le_right _ _)) le_rfl) | |
| have hfloor : Measurable | |
| (fun z : Set.Iic t Γ Ξ© => (β(2 : β)^n * (z.1 : β)β, z.2)) := | |
| ((measurable_const.mul (measurable_subtype_coe.comp measurable_fst)).floor).prodMk | |
| measurable_snd | |
| have heq : (fun z : Set.Iic t Γ Ξ© => F (dyadicLeft (z.1 : β) n) z.2) = | |
| (fun z : Set.Iic t Γ Ξ© => F (min (dyadicLeft (z.1 : β) n) t) z.2) := by | |
| funext z | |
| rw [min_eq_left ((dyadicLeft_le (z.1 : β) n).trans z.1.property)] | |
| rw [heq] | |
| exact hstep.comp hfloor | |
| theorem isStronglyProgressive_dyadicLimit [mΞ© : MeasurableSpace Ξ©] | |
| (β± : Filtration β mΞ©) {F : β β Ξ© β β} (hF : Adapted β± F) : | |
| IsStronglyProgressive β± (sampledLimit dyadicLeft F) := | |
| isStronglyProgressive_sampledLimit β± | |
| (fun n => (isProgressive_dyadic_sample β± hF n).isStronglyProgressive) | |
| theorem measurable_dyadicLimit [MeasurableSpace Ξ©] {F : β β Ξ© β β} | |
| (hF : β t, Measurable (F t)) : | |
| Measurable (fun z : β Γ Ξ© => sampledLimit dyadicLeft F z.1 z.2) := | |
| measurable_sampledLimit (measurable_dyadic_sample hF) | |
| theorem ae_all_dyadicLimit_eq [MeasurableSpace Ξ©] {ΞΌ : Measure Ξ©} | |
| {F G : β β Ξ© β β} | |
| (hFG : β r : β, F (r : β) =α΅[ΞΌ] G (r : β)) | |
| (hG : βα΅ Ο βΞΌ, Continuous (fun t => G t Ο)) : | |
| βα΅ Ο βΞΌ, β t, sampledLimit dyadicLeft F t Ο = G t Ο := by | |
| apply ae_all_eq_of_continuous_modification | |
| (Set.countable_range (fun r : β => (r : β))) dyadicLeft_mem_rationals tendsto_dyadicLeft | |
| ?_ hG | |
| rintro s β¨r, rflβ© | |
| exact hFG r | |
| end ContinuousModification | |
| end Problem367 | |
| end | |
| end OAI | |