Download data/lean/OAI/Probability/FreeIsing/Brownian/ContinuousRowCompletion.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 8.69 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/FreeIsing/Brownian/ContinuousRowCompletion.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Probability/FreeIsing/Brownian/ContinuousRowCompletion.lean
-
curl -L -o ContinuousRowCompletion.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/FreeIsing/Brownian/ContinuousRowCompletion.lean
8.69 kB
| import OAI.Probability.FreeIsing.Brownian.ContinuousSpatialIntegral | |
| import OAI.Probability.FreeIsing.Brownian.RowEnergyCompletion | |
| namespace OAI | |
| noncomputable section | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped NNReal Topology BigOperators | |
| namespace Problem367.MartingaleSquareMaximal | |
| theorem exists_global_continuous_meanSquare_limit | |
| {Ξ© : Type*} [mΞ© : MeasurableSpace Ξ©] {P : Measure Ξ©} [IsFiniteMeasure P] | |
| {F : Filtration ββ₯0 mΞ©} {M : β β ββ₯0 β Ξ© β β} | |
| (hM : β n, Martingale (M n) F P) | |
| (h2 : β n t, MemLp (M n t) 2 P) | |
| (hc : β n, βα΅ Ο βP, Continuous (fun t => M n t Ο)) | |
| (hC : β N : β, 0 < N β β Ξ΅ > (0 : β), β k : β, | |
| β n β₯ k, β m β₯ k, (β« Ο, (M n N Ο - M m N Ο) ^ 2 βP) < Ξ΅) : | |
| β (Z : ββ₯0 β Ξ© β β) (_hZ2 : β t, MemLp (Z t) 2 P), | |
| IsStronglyPredictable F Z β§ Martingale Z F P β§ | |
| (βα΅ Ο βP, Continuous (fun t => Z t Ο)) β§ | |
| (β t, Tendsto (fun n => β« Ο, (M n t Ο - Z t Ο) ^ 2 βP) atTop (π 0)) β§ | |
| (β t, Tendsto (fun n => β« Ο, M n t Ο ^ 2 βP) atTop | |
| (π (β« Ο, Z t Ο ^ 2 βP))) β§ | |
| (β T, Tendsto (fun n => β« Ο, | |
| MartingaleStrongMaximal.maximalSquare (M n - Z) T Ο βP) atTop (π 0)) := by | |
| have hCpos (N : β) (hN : 0 < N) : | |
| CauchySeq (fun n => (h2 n (N : ββ₯0)).toLp (M n N)) := by | |
| apply Metric.cauchySeq_iff.mpr | |
| intro Ξ΅ hΞ΅ | |
| obtain β¨k, hkβ© := hC N hN (Ξ΅ ^ 2) (sq_pos_of_pos hΞ΅) | |
| refine β¨k, fun n hn m hm => ?_β© | |
| have hs := hk n hn m hm | |
| rw [β dist_toLp_sq (h2 n N) (h2 m N)] at hs | |
| nlinarith [dist_nonneg (x := (h2 n N).toLp (M n N)) | |
| (y := (h2 m N).toLp (M m N))] | |
| have hCall (N : β) : CauchySeq (fun n => (h2 n (N : ββ₯0)).toLp (M n N)) := | |
| L2_cauchy_of_le hM h2 (by exact_mod_cast Nat.le_succ N) | |
| (hCpos (N + 1) (Nat.succ_pos N)) | |
| obtain β¨Z, hpZ, hcZ, hlZβ© := | |
| exists_global_predictable_continuous_L2_limit hM h2 hc hCall | |
| choose hZ2 hl using hlZ | |
| have hmartZ : Martingale Z F P := | |
| martingale_of_L2_limits hM h2 hpZ.stronglyAdapted hZ2 hl | |
| have hmean (t : ββ₯0) := BrownianIntegralProcess.integral_sq_sub_tendsto_of_L2_tendsto | |
| (fun n => h2 n t) (hZ2 t) (hl t) | |
| refine β¨Z, hZ2, hpZ, hmartZ, hcZ, hmean, ?_, ?_β© | |
| Β· intro t | |
| simpa only [PredictableL2.norm_toLp_sq] using (hl t).norm.pow 2 | |
| Β· intro T | |
| apply squeeze_zero (fun n => integral_nonneg (fun Ο => ENNReal.toReal_nonneg)) | |
| (fun n => ?_) (show Tendsto | |
| (fun n => 4 * β« Ο, (M n T Ο - Z T Ο) ^ 2 βP) atTop (π 0) from by | |
| simpa only [mul_zero] using (hmean T).const_mul 4) | |
| exact MartingaleStrongMaximal.integral_maximalSquare_le | |
| ((hM n).sub hmartZ) (fun t => (h2 n t).sub (hZ2 t)) | |
| (by filter_upwards [hc n, hcZ] with Ο hn hz; exact hn.sub hz) T | |
| end Problem367.MartingaleSquareMaximal | |
| namespace Problem367.BrownianArrayFiltration | |
| theorem exists_global_continuous_integral_limit_of_row_energy_cauchy | |
| {Ξ© ΞΉ : Type*} [mΞ© : MeasurableSpace Ξ©] [Countable ΞΉ] | |
| {P : Measure Ξ©} [IsProbabilityMeasure P] | |
| {B : ΞΉ β ββ₯0 β Ξ© β β} {F : Filtration ββ₯0 mΞ©} | |
| (hB : β a, IsPreBrownianReal (B a) P) | |
| (hAd : β a, StronglyAdapted F (B a)) | |
| (hind : β s t, s β€ t β Indep | |
| (MeasurableSpace.comap (fun Ο a => B a t Ο - B a s Ο) inferInstance) (F s) P) | |
| (hcross : β s t, s β€ t β Pairwise fun a b => | |
| IndepFun (fun Ο => B a t Ο - B a s Ο) (fun Ο => B b t Ο - B b s Ο) P) | |
| (hBc : β a, βα΅ Ο βP, Continuous (fun t => B a t Ο)) | |
| (H : β β ΞΉ β ββ₯0 β Ξ© β β) | |
| (hH : β n a, StronglyAdapted F (H n a)) | |
| (hcH : β n a, βα΅ Ο βP, Continuous (fun t => H n a t Ο)) | |
| (C : β β ΞΉ β β) (hC : β n a, 0 β€ C n a) | |
| (hbH : β n a, βα΅ Ο βP, β t, |H n a t Ο| β€ C n a) | |
| (he : β n (N : β), Summable fun a => β« t in (0 : β)..(N : β), | |
| β« Ο, H n a t.toNNReal Ο ^ 2 βP) | |
| (hCauchy : β N : β, 0 < N β β Ξ΅ > (0 : β), β k : β, | |
| β n β₯ k, β m β₯ k, (β' a, β« t in (0 : β)..(N : β), | |
| β« Ο, (H n a t.toNNReal Ο - H m a t.toNNReal Ο) ^ 2 βP) < Ξ΅) : | |
| β (I : β β ΞΉ β ββ₯0 β Ξ© β β) (Y : β β ββ₯0 β Ξ© β β) | |
| (Z : ββ₯0 β Ξ© β β) | |
| (hI2 : β n a t, MemLp (I n a t) 2 P) | |
| (hY2 : β n t, MemLp (Y n t) 2 P) (_hZ2 : β t, MemLp (Z t) 2 P), | |
| (β n, IsStronglyPredictable F (Y n) β§ Martingale (Y n) F P β§ | |
| (βα΅ Ο βP, Continuous (fun t => Y n t Ο))) β§ | |
| (β n a (N : β), 0 < N β Tendsto (fun k => β« Ο, | |
| (BrownianGrid.uniformSum (B a) (H n a) N k Ο - I n a N Ο) ^ 2 βP) | |
| atTop (π 0)) β§ | |
| (β n t, HasSum (fun a => (hI2 n a t).toLp (I n a t)) | |
| ((hY2 n t).toLp (Y n t))) β§ | |
| (β n t, (β« Ο, Y n t Ο ^ 2 βP) = | |
| β' a, β« s in (0 : β)..(t : β), β« Ο, H n a s.toNNReal Ο ^ 2 βP) β§ | |
| (β n m (N : β), 0 < N β (β« Ο, (Y n N Ο - Y m N Ο) ^ 2 βP) = | |
| β' a, β« s in (0 : β)..(N : β), | |
| β« Ο, (H n a s.toNNReal Ο - H m a s.toNNReal Ο) ^ 2 βP) β§ | |
| IsStronglyPredictable F Z β§ Martingale Z F P β§ | |
| (βα΅ Ο βP, Continuous (fun t => Z t Ο)) β§ Z 0 =α΅[P] 0 β§ | |
| (β t, (β« Ο, Z t Ο βP) = 0) β§ | |
| (β t, Tendsto (fun n => β« Ο, (Y n t Ο - Z t Ο) ^ 2 βP) atTop (π 0)) β§ | |
| (β t : ββ₯0, Tendsto (fun n => β' a, β« s in (0 : β)..(t : β), | |
| β« Ο, H n a s.toNNReal Ο ^ 2 βP) atTop (π (β« Ο, Z t Ο ^ 2 βP))) β§ | |
| (β T, Tendsto (fun n => β« Ο, | |
| MartingaleStrongMaximal.maximalSquare (Y n - Z) T Ο βP) atTop (π 0)) := by | |
| have hex (n : β) := exists_global_continuous_spatial_integral | |
| hB hAd hind hcross hBc (H n) (hH n) (hcH n) (C n) (hC n) (hbH n) (he n) | |
| choose I Y hI2 hY2 hIprop haI hpY hmY hcY hzY hmeanY heY hsY hmaxY using hex | |
| have ha (n : β) (a : ΞΉ) (N : β) (hN : 0 < N) : | |
| Tendsto (fun k => β« Ο, | |
| (BrownianGrid.uniformSum (B a) (H n a) N k Ο - I n a N Ο) ^ 2 βP) | |
| atTop (π 0) := by | |
| simpa only [BrownianIntegralProcess.stoppedUniformSum_terminal] using | |
| haI n a N hN N le_rfl | |
| have hs (n : β) (t : ββ₯0) : Tendsto (fun s : Finset ΞΉ => β« Ο, | |
| ((β a β s, I n a t Ο) - Y n t Ο) ^ 2 βP) atTop (π 0) := | |
| PredictableL2.tendsto_integral_sq_error_of_hasSum | |
| (fun a => I n a t) (fun a => hI2 n a t) (hY2 n t) (hsY n t) | |
| have hpair (n m N : β) (hN : 0 < N) : | |
| (β« Ο, (Y n N Ο - Y m N Ο) ^ 2 βP) = | |
| β' a, β« s in (0 : β)..(N : β), | |
| β« Ο, (H n a s.toNNReal Ο - H m a s.toNNReal Ο) ^ 2 βP := | |
| infinite_row_difference_isometry_of_row_energies hB hAd hind | |
| (H n) (H m) (hH n) (hH m) (hcH n) (hcH m) | |
| (C n) (C m) (hC n) (hC m) (hbH n) (hbH m) N (he n N) (he m N) | |
| hcross (fun a => hI2 n a N) (fun a => hI2 m a N) | |
| (fun a => ha n a N hN) (fun a => ha m a N hN) | |
| (hY2 n N) (hY2 m N) (hs n N) (hs m N) | |
| have hCY (N : β) (hN : 0 < N) : β Ξ΅ > (0 : β), β k : β, | |
| β n β₯ k, β m β₯ k, (β« Ο, (Y n N Ο - Y m N Ο) ^ 2 βP) < Ξ΅ := by | |
| simpa only [hpair _ _ N hN] using hCauchy N hN | |
| obtain β¨Z, hZ2, hpZ, hmZ, hcZ, hlZ, heZ, hmaxZβ© := | |
| MartingaleSquareMaximal.exists_global_continuous_meanSquare_limit hmY hY2 hcY hCY | |
| have hzZ : Z 0 =α΅[P] 0 := by | |
| have hzero (n : β) : (β« Ο, Y n 0 Ο ^ 2 βP) = 0 := by | |
| simp only [heY, NNReal.coe_zero, intervalIntegral.integral_same, tsum_zero] | |
| have henergy0 : (β« Ο, Z 0 Ο ^ 2 βP) = 0 := | |
| tendsto_nhds_unique (heZ 0) (by simpa only [hzero] using | |
| (tendsto_const_nhds : Tendsto (fun _ : β => (0 : β)) atTop (π 0))) | |
| apply ae_eq_of_integral_sq_sub_eq_zero | |
| Β· simpa only [Pi.zero_apply, sub_zero] using (hZ2 0).integrable_sq | |
| Β· simpa only [Pi.zero_apply, sub_zero] using henergy0 | |
| have hcenter (t : ββ₯0) : (β« Ο, Z t Ο βP) = 0 := by | |
| have hlim := BrownianIntegralProcess.L2_tendsto_of_integral_sq_sub_tendsto | |
| (fun n => hY2 n t) (hZ2 t) (hlZ t) | |
| have hi := (tendsto_const_nhds (x := (memLp_const (1 : β)).toLp | |
| (fun _ : Ξ© => (1 : β)))).inner (π := β) hlim | |
| simp only [PredictableL2.inner_toLp, one_mul, hmeanY] at hi | |
| exact tendsto_nhds_unique hi tendsto_const_nhds | |
| refine β¨I, Y, Z, hI2, hY2, hZ2, (fun n => β¨hpY n, hmY n, hcY nβ©), ha, | |
| hsY, heY, hpair, hpZ, hmZ, hcZ, hzZ, hcenter, hlZ, ?_, hmaxZβ© | |
| intro t | |
| simpa only [heY] using heZ t | |
| end Problem367.BrownianArrayFiltration | |
| end | |
| end OAI | |