Download data/lean/OAI/Probability/FreeIsing/Brownian/ContinuousSpatialIntegral.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 9.68 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/FreeIsing/Brownian/ContinuousSpatialIntegral.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Probability/FreeIsing/Brownian/ContinuousSpatialIntegral.lean
-
curl -L -o ContinuousSpatialIntegral.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/FreeIsing/Brownian/ContinuousSpatialIntegral.lean
9.68 kB
| import OAI.Probability.FreeIsing.Brownian.ArrayFiltrationIntegral | |
| import OAI.Probability.FreeIsing.Brownian.IntegralHorizon | |
| import OAI.Probability.FreeIsing.Martingales.SpatialLimit | |
| namespace OAI | |
| noncomputable section | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped NNReal Topology | |
| namespace Problem367.BrownianArrayFiltration | |
| variable {Ξ© ΞΉ : Type*} [mΞ© : MeasurableSpace Ξ©] {P : Measure Ξ©} | |
| {B : ΞΉ β ββ₯0 β Ξ© β β} {F : Filtration ββ₯0 mΞ©} | |
| theorem stopped_grid_sums_orthogonal [IsProbabilityMeasure P] | |
| (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) | |
| (Ο : β β ββ₯0) (hΟ : Monotone Ο) (H : ΞΉ β β β Ξ© β β) | |
| (hH : β a i, StronglyMeasurable[F (Ο i)] (H a i)) | |
| (hH2 : β a i, MemLp (H a i) 2 P) | |
| {a b : ΞΉ} (hab : a β b) (u v : Finset β) (t : ββ₯0) : | |
| (β« Ο, | |
| (β i β u, StoppedSimpleIntegral.intervalSum (B a) (H a i) (Ο i) (Ο (i + 1)) t Ο) * | |
| (β i β v, StoppedSimpleIntegral.intervalSum (B b) (H b i) (Ο i) (Ο (i + 1)) t Ο) | |
| βP) = 0 := by | |
| classical | |
| let Ο : β β ββ₯0 := fun i => min t (Ο i) | |
| let G : ΞΉ β β β Ξ© β β := fun a i => if Ο i β€ t then H a i else 0 | |
| have hΟ : Monotone Ο := fun i j hij => min_le_min_left t (hΟ hij) | |
| have hG (a : ΞΉ) (i : β) : StronglyMeasurable[F (Ο i)] (G a i) := by | |
| change StronglyMeasurable[F (min t (Ο i))] (if Ο i β€ t then H a i else 0) | |
| by_cases hi : Ο i β€ t | |
| Β· rw [ite_eq_left hi, min_eq_right hi] | |
| exact hH a i | |
| Β· rw [ite_eq_right hi] | |
| exact stronglyMeasurable_zero | |
| have hG2 (a : ΞΉ) (i : β) : MemLp (G a i) 2 P := by | |
| by_cases hi : Ο i β€ t | |
| Β· simpa only [G, ite_eq_left hi] using hH2 a i | |
| Β· simp only [G, ite_eq_right hi] | |
| exact MemLp.zero | |
| have hterm (a : ΞΉ) (i : β) (Ο : Ξ©) : | |
| StoppedSimpleIntegral.intervalSum (B a) (H a i) (Ο i) (Ο (i + 1)) t Ο = | |
| G a i Ο * (B a (Ο (i + 1)) Ο - B a (Ο i) Ο) := by | |
| by_cases hi : Ο i β€ t | |
| Β· simp only [G, ite_eq_left hi, Ο, StoppedSimpleIntegral.intervalSum] | |
| Β· have hti : t β€ Ο i := le_of_not_ge hi | |
| have hti' : t β€ Ο (i + 1) := hti.trans (hΟ (Nat.le_succ i)) | |
| simp only [G, ite_eq_right hi, Ο, StoppedSimpleIntegral.intervalSum, | |
| min_eq_left hti, min_eq_left hti', sub_self, mul_zero, Pi.zero_apply] | |
| simp_rw [hterm] | |
| exact grid_sums_orthogonal hB hAd hind hcross Ο hΟ G hG hG2 hab u v | |
| theorem stopped_uniform_limits_orthogonal [IsProbabilityMeasure P] | |
| (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) | |
| {H : ΞΉ β ββ₯0 β Ξ© β β} (hH : β a, StronglyAdapted F (H a)) | |
| (hH2 : β a t, MemLp (H a t) 2 P) (T t : ββ₯0) | |
| {I : ΞΉ β Ξ© β β} (hI2 : β a, MemLp (I a) 2 P) | |
| (hlim : β a, Tendsto (fun n => β« Ο, | |
| (BrownianIntegralProcess.stoppedUniformSum (B a) (H a) T n t Ο - I a Ο) ^ 2 βP) | |
| atTop (π 0)) : | |
| Pairwise (fun a b => β« Ο, I a Ο * I b Ο βP = 0) := by | |
| have hi (a : ΞΉ) (s t : ββ₯0) (hst : s β€ t) : | |
| Indep (MeasurableSpace.comap (fun Ο => B a t Ο - B a s Ο) inferInstance) (F s) P := | |
| coordinate_increment_indep_past (hind s t hst) a | |
| have hS2 (a : ΞΉ) (n : β) : | |
| MemLp (BrownianIntegralProcess.stoppedUniformSum (B a) (H a) T n t) 2 P := | |
| BrownianFiltration.stopped_predictable_sum_memLp_two (hB a) (hi a) | |
| (BrownianGrid.uniformGrid T n) (BrownianGrid.uniformGrid_mono T n) | |
| (fun i => H a (BrownianGrid.uniformGrid T n i)) (fun i => hH a _) (fun i => hH2 a _) | |
| (Finset.range n) t | |
| have hLp (a : ΞΉ) := BrownianIntegralProcess.L2_tendsto_of_integral_sq_sub_tendsto | |
| (hS2 a) (hI2 a) (hlim a) | |
| intro a b hab | |
| have hinner := (hLp a).inner (π := β) (hLp b) | |
| have hz (n : β) : inner β | |
| ((hS2 a n).toLp (BrownianIntegralProcess.stoppedUniformSum (B a) (H a) T n t)) | |
| ((hS2 b n).toLp (BrownianIntegralProcess.stoppedUniformSum (B b) (H b) T n t)) = 0 := by | |
| rw [PredictableL2.inner_toLp] | |
| exact stopped_grid_sums_orthogonal hB hAd hind hcross | |
| (BrownianGrid.uniformGrid T n) (BrownianGrid.uniformGrid_mono T n) | |
| (fun a i => H a (BrownianGrid.uniformGrid T n i)) | |
| (fun a i => hH a _) (fun a i => hH2 a _) hab (Finset.range n) (Finset.range n) t | |
| have heq : inner β ((hI2 a).toLp (I a)) ((hI2 b).toLp (I b)) = 0 := | |
| tendsto_nhds_unique hinner (by simpa only [hz] using | |
| (tendsto_const_nhds : Tendsto (fun _ : β => (0 : β)) atTop (π 0))) | |
| simpa only [PredictableL2.inner_toLp] using heq | |
| theorem exists_global_continuous_spatial_integral [Countable ΞΉ] [IsProbabilityMeasure P] | |
| (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 : β a, StronglyAdapted F (H a)) | |
| (hc : β a, βα΅ Ο βP, Continuous (fun t => H a t Ο)) | |
| (C : ΞΉ β β) (hC : β a, 0 β€ C a) | |
| (hb : β a, βα΅ Ο βP, β t, |H a t Ο| β€ C a) | |
| (henergy : β N : β, Summable (fun a => | |
| β« s in (0 : β)..(N : β), β« Ο, H a s.toNNReal Ο ^ 2 βP)) : | |
| β (I : ΞΉ β ββ₯0 β Ξ© β β) (Y : ββ₯0 β Ξ© β β) | |
| (hI2 : β a t, MemLp (I a t) 2 P) (hY2 : β t, MemLp (Y t) 2 P), | |
| (β a, IsStronglyPredictable F (I a) β§ Martingale (I a) F P β§ | |
| (βα΅ Ο βP, Continuous (fun t => I a t Ο))) β§ | |
| (β a (N : β), 0 < N β β t β€ (N : ββ₯0), | |
| Tendsto (fun n => β« Ο, | |
| (BrownianIntegralProcess.stoppedUniformSum (B a) (H a) N n t Ο - I a t Ο) ^ 2 βP) | |
| atTop (π 0)) β§ | |
| IsStronglyPredictable F Y β§ Martingale Y F P β§ | |
| (βα΅ Ο βP, Continuous (fun t => Y t Ο)) β§ Y 0 =α΅[P] 0 β§ | |
| (β t, (β« Ο, Y t Ο βP) = 0) β§ | |
| (β t, (β« Ο, Y t Ο ^ 2 βP) = | |
| β' a, β« s in (0 : β)..(t : β), β« Ο, H a s.toNNReal Ο ^ 2 βP) β§ | |
| (β t, HasSum (fun a => (hI2 a t).toLp (I a t)) ((hY2 t).toLp (Y t))) β§ | |
| (β T : ββ₯0, Tendsto (fun q : Finset ΞΉ => | |
| β« Ο, MartingaleStrongMaximal.maximalSquare | |
| (MartingaleSpatialLimit.finiteSum I q - Y) T Ο βP) atTop (π 0)) := by | |
| have hi (a : ΞΉ) (s t : ββ₯0) (hst : s β€ t) : | |
| Indep (MeasurableSpace.comap (fun Ο => B a t Ο - B a s Ο) inferInstance) (F s) P := | |
| coordinate_increment_indep_past (hind s t hst) a | |
| have hH2 (a : ΞΉ) (t : ββ₯0) : MemLp (H a t) 2 P := by | |
| apply MemLp.of_bound ((hH a t).mono (F.le t)).aestronglyMeasurable (C a) | |
| filter_upwards [hb a] with Ο hΟ | |
| simpa only [Real.norm_eq_abs] using hΟ t | |
| have hex (a : ΞΉ) := BrownianIntegralProcess.exists_global_continuous_uniform_integral | |
| (hB a) (hAd a) (hi a) (hBc a) (hH a) (hc a) (hC a) (hb a) | |
| choose I hIp hIM hIc hI2 hIz hImean hIiso hIlim using hex | |
| have horth (t : ββ₯0) : Pairwise (fun a b => β« Ο, I a t Ο * I b t Ο βP = 0) := by | |
| obtain β¨N, hNβ© := exists_nat_ge t | |
| have ht : t β€ ((N + 1 : β) : ββ₯0) := | |
| hN.trans (by exact_mod_cast Nat.le_succ N) | |
| exact stopped_uniform_limits_orthogonal hB hAd hind hcross hH hH2 | |
| ((N + 1 : β) : ββ₯0) t (fun a => hI2 a t) | |
| (fun a => hIlim a (N + 1) (Nat.succ_pos N) t ht) | |
| have hIenergy (N : β) : Summable (fun a => β« Ο, I a (N : ββ₯0) Ο ^ 2 βP) := by | |
| simpa only [hIiso, NNReal.coe_natCast] using henergy N | |
| obtain β¨Y, hY2, hYp, hYM, hYc, hYsum, hYmaxβ© := | |
| MartingaleSpatialLimit.exists_continuous_martingale_sum hIM hI2 hIc horth hIenergy | |
| have hYiso (t : ββ₯0) : (β« Ο, Y t Ο ^ 2 βP) = | |
| β' a, β« s in (0 : β)..(t : β), β« Ο, H a s.toNNReal Ο ^ 2 βP := by | |
| have he := MartingaleSpatialLimit.summable_energy_of_integer hIM hI2 hIenergy t | |
| have hinner : Pairwise (fun a b => inner β | |
| ((hI2 a t).toLp (I a t)) ((hI2 b t).toLp (I b t)) = 0) := by | |
| intro a b hab | |
| simpa only [PredictableL2.inner_toLp] using horth t hab | |
| have hn := PredictableL2.norm_tsum_sq_of_orthogonal | |
| (fun a => (hI2 a t).toLp (I a t)) hinner | |
| (by simpa only [PredictableL2.norm_toLp_sq] using he) | |
| rw [(hYsum t).tsum_eq] at hn | |
| simpa only [PredictableL2.norm_toLp_sq, hIiso] using hn | |
| have hYzero : Y 0 =α΅[P] 0 := by | |
| apply ae_eq_of_integral_sq_sub_eq_zero | |
| Β· simpa only [Pi.zero_apply, sub_zero] using (hY2 0).integrable_sq | |
| Β· simpa only [Pi.zero_apply, sub_zero, NNReal.coe_zero, | |
| intervalIntegral.integral_same, tsum_zero] using hYiso 0 | |
| exact β¨I, Y, hI2, hY2, (fun a => β¨hIp a, hIM a, hIc aβ©), hIlim, | |
| hYp, hYM, hYc, hYzero, | |
| (fun t => PredictableL2.integral_eq_zero_of_hasSum | |
| (fun a => I a t) (fun a => hI2 a t) (hY2 t) (hYsum t) (fun a => hImean a t)), | |
| hYiso, hYsum, hYmaxβ© | |
| end Problem367.BrownianArrayFiltration | |
| end | |
| end OAI | |