Download data/lean/OAI/Probability/FreeIsing/Brownian/ContinuousCross.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 10.8 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/FreeIsing/Brownian/ContinuousCross.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Probability/FreeIsing/Brownian/ContinuousCross.lean
-
curl -L -o ContinuousCross.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/FreeIsing/Brownian/ContinuousCross.lean
10.8 kB
| import OAI.Probability.FreeIsing.Brownian.ArrayFiltrationIntegral | |
| import OAI.Probability.FreeIsing.Brownian.IntegralHorizon | |
| import OAI.Probability.FreeIsing.Estimates.CompensatedSquareLimit | |
| import OAI.Probability.FreeIsing.Stochastic.StoppedBrownianCross | |
| namespace OAI | |
| noncomputable section | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped NNReal Topology | |
| namespace Problem367.BrownianContinuousCross | |
| variable {Ξ© : Type*} [mΞ© : MeasurableSpace Ξ©] {P : Measure Ξ©} | |
| theorem tendsto_eLpNorm_mul_sub {N : Type*} {l : Filter N} | |
| {f g : N β Ξ© β β} {u v : Ξ© β β} | |
| (hf : β n, MemLp (f n) 2 P) (hg : β n, MemLp (g n) 2 P) | |
| (hu : MemLp u 2 P) (hv : MemLp v 2 P) | |
| (hfu : Tendsto (fun n => eLpNorm (f n - u) 2 P) l (π 0)) | |
| (hgv : Tendsto (fun n => eLpNorm (g n - v) 2 P) l (π 0)) : | |
| Tendsto (fun n => eLpNorm (f n * g n - u * v) 1 P) l (π 0) := by | |
| let M : Lp β 2 P βL[β] Lp β 2 P βL[β] Lp β 1 P := | |
| ContinuousLinearMap.holderL P 2 2 1 (ContinuousLinearMap.mul β β) | |
| have hmul {a b : Ξ© β β} (ha : MemLp a 2 P) (hb : MemLp b 2 P) : | |
| M (ha.toLp a) (hb.toLp b) = (memLp_one_iff_integrable.mpr (ha.integrable_mul hb)).toLp (a * b) := by | |
| apply Lp.ext | |
| have hm := (ContinuousLinearMap.mul β β).coeFn_holder (r := 1) | |
| (ha.toLp a) (hb.toLp b) | |
| filter_upwards [hm, ha.coeFn_toLp, hb.coeFn_toLp, | |
| (memLp_one_iff_integrable.mpr (ha.integrable_mul hb)).coeFn_toLp] with Ο hm hΟa hΟb hab | |
| change M (ha.toLp a) (hb.toLp b) Ο = (ha.toLp a) Ο * (hb.toLp b) Ο at hm | |
| rw [hΟa, hΟb] at hm | |
| exact hm.trans hab.symm | |
| have hfLp := (Lp.tendsto_Lp_iff_tendsto_eLpNorm'' f hf u hu).mpr hfu | |
| have hgLp := (Lp.tendsto_Lp_iff_tendsto_eLpNorm'' g hg v hv).mpr hgv | |
| have h := (M.continuousβ.tendsto (hu.toLp u, hv.toLp v)).comp | |
| (hfLp.prodMk_nhds hgLp) | |
| change Tendsto (fun n => M ((hf n).toLp (f n)) ((hg n).toLp (g n))) l | |
| (π (M (hu.toLp u) (hv.toLp v))) at h | |
| simp only [hmul] at h | |
| exact (Lp.tendsto_Lp_iff_tendsto_eLpNorm'' (fun n => f n * g n) | |
| (fun n => (memLp_one_iff_integrable.mpr ((hf n).integrable_mul (hg n)))) (u * v) | |
| (memLp_one_iff_integrable.mpr (hu.integrable_mul hv))).mp h | |
| theorem condExp_ae_eq_of_L1_limits | |
| {ΞΉ N : Type*} [LinearOrder ΞΉ] [IsFiniteMeasure P] | |
| {F : Filtration ΞΉ mΞ©} {l : Filter N} [l.NeBot] | |
| {X : N β ΞΉ β Ξ© β β} (hX : β n, Martingale (X n) F P) | |
| {s t : ΞΉ} (hst : s β€ t) {u v : Ξ© β β} | |
| (hu : StronglyMeasurable[F s] u) (hui : Integrable u P) (hvi : Integrable v P) | |
| (hs : Tendsto (fun n => eLpNorm (X n s - u) 1 P) l (π 0)) | |
| (ht : Tendsto (fun n => eLpNorm (X n t - v) 1 P) l (π 0)) : | |
| P[v | F s] =α΅[P] u := by | |
| apply (ae_eq_condExp_of_forall_setIntegral_eq (F.le s) hvi | |
| (fun A hA _ => hui.integrableOn) ?_ hu.aestronglyMeasurable).symm | |
| intro A hA hAfin | |
| have hs' := tendsto_setIntegral_of_L1' u | |
| (Eventually.of_forall (fun n => (hX n).integrable s)) hs A | |
| have ht' := tendsto_setIntegral_of_L1' v | |
| (Eventually.of_forall (fun n => (hX n).integrable t)) ht A | |
| have heq : (fun n => β« Ο in A, X n s Ο βP) = | |
| (fun n => β« Ο in A, X n t Ο βP) := | |
| funext fun n => (hX n).setIntegral_eq hst hA | |
| rw [heq] at hs' | |
| exact tendsto_nhds_unique hs' ht' | |
| theorem global_uniform_limits_product_martingale | |
| {B C H G I J : ββ₯0 β Ξ© β β} {F : Filtration ββ₯0 mΞ©} | |
| (hB : IsPreBrownianReal B P) (hC : IsPreBrownianReal C P) | |
| (hAdB : StronglyAdapted F B) (hAdC : StronglyAdapted F C) | |
| (hpair : β s t, s β€ t β Indep (MeasurableSpace.comap | |
| (fun Ο => (B t Ο - B s Ο, C t Ο - C s Ο)) inferInstance) (F s) P) | |
| (hind : β s t, s β€ t β | |
| IndepFun (fun Ο => B t Ο - B s Ο) (fun Ο => C t Ο - C s Ο) P) | |
| (hH : StronglyAdapted F H) (hG : StronglyAdapted F G) | |
| {K L : β} (hboundH : βα΅ Ο βP, β t, βH t Οβ β€ K) | |
| (hboundG : βα΅ Ο βP, β t, βG t Οβ β€ L) | |
| (hI : StronglyAdapted F I) (hJ : StronglyAdapted F J) | |
| (hI2 : β t, MemLp (I t) 2 P) (hJ2 : β t, MemLp (J t) 2 P) | |
| (hlimI : β (N : β), 0 < N β β t β€ (N : ββ₯0), | |
| Tendsto (fun n => β« Ο, | |
| (BrownianIntegralProcess.stoppedUniformSum B H N n t Ο - I t Ο) ^ 2 βP) | |
| atTop (π 0)) | |
| (hlimJ : β (N : β), 0 < N β β t β€ (N : ββ₯0), | |
| Tendsto (fun n => β« Ο, | |
| (BrownianIntegralProcess.stoppedUniformSum C G N n t Ο - J t Ο) ^ 2 βP) | |
| atTop (π 0)) : | |
| Martingale (fun t Ο => I t Ο * J t Ο) F P := by | |
| let : IsProbabilityMeasure P := hB.isGaussianProcess.isProbabilityMeasure | |
| have hB2 (t : ββ₯0) := (hB.isGaussianProcess.hasGaussianLaw_eval t).memLp_two | |
| have hC2 (t : ββ₯0) := (hC.isGaussianProcess.hasGaussianLaw_eval t).memLp_two | |
| have hBH (t : ββ₯0) : βα΅ Ο βP, βH t Οβ β€ K := hboundH.mono fun Ο hΟ => hΟ t | |
| have hCG (t : ββ₯0) : βα΅ Ο βP, βG t Οβ β€ L := hboundG.mono fun Ο hΟ => hΟ t | |
| refine β¨fun t => (hI t).mul (hJ t), ?_β© | |
| intro s t hst | |
| obtain β¨N, hNβ© := exists_nat_ge t | |
| have htN : t β€ ((N + 1 : β) : ββ₯0) := | |
| hN.trans (by exact_mod_cast Nat.le_succ N) | |
| let X := fun n => BrownianIntegralProcess.stoppedUniformSum B H ((N + 1 : β) : ββ₯0) n | |
| let Y := fun n => BrownianIntegralProcess.stoppedUniformSum C G ((N + 1 : β) : ββ₯0) n | |
| have hX2 (n : β) (r : ββ₯0) : MemLp (X n r) 2 P := by | |
| apply memLp_finsetSum (Finset.range n) | |
| intro i hi | |
| exact StoppedBrownianCross.intervalSum_memLp_two_of_bounded hB2 | |
| (hH _) (hBH _) r | |
| have hY2 (n : β) (r : ββ₯0) : MemLp (Y n r) 2 P := by | |
| apply memLp_finsetSum (Finset.range n) | |
| intro i hi | |
| exact StoppedBrownianCross.intervalSum_memLp_two_of_bounded hC2 | |
| (hG _) (hCG _) r | |
| have hM (n : β) : Martingale (fun r Ο => X n r Ο * Y n r Ο) F P := | |
| StoppedBrownianCross.stopped_brownian_sum_product_martingale hB hC hAdB hAdC | |
| hpair hind (BrownianGrid.uniformGrid ((N + 1 : β) : ββ₯0) n) (BrownianGrid.uniformGrid_mono _ _) | |
| (fun i => H (BrownianGrid.uniformGrid ((N + 1 : β) : ββ₯0) n i)) | |
| (fun i => G (BrownianGrid.uniformGrid ((N + 1 : β) : ββ₯0) n i)) | |
| (fun i => hH _) (fun i => hG _) (fun _ => K) (fun _ => L) | |
| (fun i => hBH _) (fun i => hCG _) n | |
| have hprod (r : ββ₯0) (hr : r β€ ((N + 1 : β) : ββ₯0)) : | |
| Tendsto (fun n => eLpNorm (X n r * Y n r - I r * J r) 1 P) atTop (π 0) := | |
| tendsto_eLpNorm_mul_sub (fun n => hX2 n r) (fun n => hY2 n r) (hI2 r) (hJ2 r) | |
| (CompensatedSquareLimit.tendsto_eLpNorm_two_of_meanSquare | |
| (fun n => hX2 n r) (hI2 r) (hlimI (N + 1) (Nat.succ_pos N) r hr)) | |
| (CompensatedSquareLimit.tendsto_eLpNorm_two_of_meanSquare | |
| (fun n => hY2 n r) (hJ2 r) (hlimJ (N + 1) (Nat.succ_pos N) r hr)) | |
| exact condExp_ae_eq_of_L1_limits hM hst ((hI s).mul (hJ s)) | |
| ((hI2 s).integrable_mul (hJ2 s)) ((hI2 t).integrable_mul (hJ2 t)) | |
| (hprod s (hst.trans htN)) (hprod t htN) | |
| end Problem367.BrownianContinuousCross | |
| namespace Problem367.BrownianArrayFiltration | |
| variable {Ξ© ΞΉ : Type*} [mΞ© : MeasurableSpace Ξ©] {P : Measure Ξ©} | |
| {B H I : ΞΉ β ββ₯0 β Ξ© β β} {F : Filtration ββ₯0 mΞ©} | |
| theorem global_uniform_limits_pairwise_product_martingale | |
| (hB : β a, IsPreBrownianReal (B a) P) | |
| (hAd : β a, StronglyAdapted F (B a)) | |
| (hpast : β s t, s β€ t β Indep (MeasurableSpace.comap | |
| (fun Ο a => B a t Ο - B a s Ο) inferInstance) (F s) P) | |
| (hind : β s t, s β€ t β Pairwise fun a b => | |
| IndepFun (fun Ο => B a t Ο - B a s Ο) (fun Ο => B b t Ο - B b s Ο) P) | |
| (hH : β a, StronglyAdapted F (H a)) | |
| {K : ΞΉ β β} (hbound : β a, βα΅ Ο βP, β t, βH a t Οβ β€ K a) | |
| (hI : β a, StronglyAdapted F (I a)) | |
| (hI2 : β a t, MemLp (I a t) 2 P) | |
| (hlim : β 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)) : | |
| Pairwise fun a b => Martingale (fun t Ο => I a t Ο * I b t Ο) F P := by | |
| intro a b hab | |
| apply BrownianContinuousCross.global_uniform_limits_product_martingale | |
| (hB a) (hB b) (hAd a) (hAd b) ?_ (fun s t hst => hind s t hst hab) | |
| (hH a) (hH b) (hbound a) (hbound b) (hI a) (hI b) (hI2 a) (hI2 b) | |
| (hlim a) (hlim b) | |
| intro s t hst | |
| apply indep_of_indep_of_le_left (hpast s t hst) | |
| have hm : Measurable[MeasurableSpace.comap | |
| (fun Ο c => B c t Ο - B c s Ο) inferInstance] | |
| (fun Ο c => B c t Ο - B c s Ο) := measurable_iff_comap_le.mpr le_rfl | |
| exact (((measurable_pi_apply a).comp hm).prodMk | |
| ((measurable_pi_apply b).comp hm)).comap_le | |
| theorem exists_global_continuous_channel_integrals | |
| (hB : β a, IsPreBrownianReal (B a) P) | |
| (hAd : β a, StronglyAdapted F (B a)) | |
| (hpast : β s t, s β€ t β Indep (MeasurableSpace.comap | |
| (fun Ο a => B a t Ο - B a s Ο) inferInstance) (F s) P) | |
| (hind : β 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 Ο)) | |
| (hH : β a, StronglyAdapted F (H a)) | |
| (hHc : β a, βα΅ Ο βP, Continuous (fun t => H a t Ο)) | |
| {K : ΞΉ β β} (hK : β a, 0 β€ K a) | |
| (hbound : β a, βα΅ Ο βP, β t, |H a t Ο| β€ K a) : | |
| β I : ΞΉ β ββ₯0 β Ξ© β β, | |
| (β a, IsStronglyPredictable F (I a)) β§ | |
| (β a, Martingale (I a) F P) β§ | |
| (β a, βα΅ Ο βP, Continuous (fun t => I a t Ο)) β§ | |
| (β a t, MemLp (I a t) 2 P) β§ | |
| (β a, I a 0 =α΅[P] 0) β§ | |
| (β a t, (β« Ο, I a t Ο βP) = 0) β§ | |
| (β a t, (β« Ο, (I a t Ο) ^ 2 βP) = | |
| β« s in (0 : β)..(t : β), β« Ο, (H a s.toNNReal Ο) ^ 2 βP) β§ | |
| (β 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)) β§ | |
| (Pairwise fun a b => Martingale (fun t Ο => I a t Ο * I b t Ο) F P) := by | |
| have hex (a : ΞΉ) := BrownianIntegralProcess.exists_global_continuous_uniform_integral | |
| (hB a) (hAd a) | |
| (fun s t hst => coordinate_increment_indep_past (hpast s t hst) a) | |
| (hBc a) (hH a) (hHc a) (hK a) (hbound a) | |
| choose I hIp hIM hIc hI2 hIz hImean hIiso hIlim using hex | |
| refine β¨I, hIp, hIM, hIc, hI2, hIz, hImean, hIiso, hIlim, ?_β© | |
| exact global_uniform_limits_pairwise_product_martingale hB hAd hpast hind hH | |
| (by simpa only [Real.norm_eq_abs] using hbound) | |
| (fun a => (hIM a).stronglyAdapted) hI2 hIlim | |
| end Problem367.BrownianArrayFiltration | |
| end | |
| end OAI | |