Download data/lean/OAI/Probability/FreeIsing/Brownian/IntegralProcess.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 6.62 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/FreeIsing/Brownian/IntegralProcess.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Probability/FreeIsing/Brownian/IntegralProcess.lean
-
curl -L -o IntegralProcess.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/FreeIsing/Brownian/IntegralProcess.lean
6.62 kB
| import OAI.Probability.FreeIsing.Brownian.FiltrationIntegralProperties | |
| import OAI.Probability.FreeIsing.Stochastic.StoppedBrownianIntegral | |
| namespace OAI | |
| noncomputable section | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped NNReal Topology | |
| namespace Problem367.BrownianIntegralProcess | |
| variable {Ξ© : Type*} [mΞ© : MeasurableSpace Ξ©] {P : Measure Ξ©} | |
| theorem meanSquare_condExp_sub_le [IsFiniteMeasure P] | |
| (m : MeasurableSpace Ξ©) {X Y : Ξ© β β} | |
| (hX : MemLp X 2 P) (hY : MemLp Y 2 P) : | |
| (β« Ο, (P[X | m] Ο - P[Y | m] Ο) ^ 2 βP) β€ | |
| β« Ο, (X Ο - Y Ο) ^ 2 βP := by | |
| have hsub := condExp_sub (hX.integrable (by norm_num)) | |
| (hY.integrable (by norm_num)) m | |
| calc | |
| _ = β« Ο, (P[X - Y | m] Ο) ^ 2 βP := by | |
| apply integral_congr_ae | |
| filter_upwards [hsub] with Ο hΟ | |
| change P[X - Y | m] Ο = P[X | m] Ο - P[Y | m] Ο at hΟ | |
| rw [hΟ] | |
| _ β€ _ := by | |
| have hbound := integral_norm_condExp_rpow_le (m := m) | |
| (by norm_num : (1 : β) β€ 2) | |
| (f := X - Y) (by | |
| simpa only [Real.rpow_two, Real.norm_eq_abs, sq_abs, Pi.sub_apply] using | |
| (hX.sub hY).integrable_sq) | |
| simpa only [Real.rpow_two, Real.norm_eq_abs, sq_abs, Pi.sub_apply] using hbound | |
| theorem finite_stoppedSum_eq_condExp [IsFiniteMeasure P] | |
| {F : Filtration ββ₯0 mΞ©} {B : ββ₯0 β Ξ© β β} | |
| (hB : Martingale B F P) (s : Finset β) (a b : β β ββ₯0) | |
| (H : β β Ξ© β β) (hab : β i β s, a i β€ b i) | |
| (hH : β i β s, StronglyMeasurable[F (a i)] (H i)) | |
| (C : β β β) (hb : β i β s, βα΅ Ο βP, βH i Οβ β€ C i) (t : ββ₯0) : | |
| P[(fun Ο => β i β s, H i Ο * (B (b i) Ο - B (a i) Ο)) | F t] =α΅[P] | |
| fun Ο => β i β s, StoppedSimpleIntegral.intervalSum B (H i) (a i) (b i) t Ο := by | |
| have hint (i : β) (hi : i β s) : | |
| Integrable (fun Ο => H i Ο * (B (b i) Ο - B (a i) Ο)) P := | |
| ((hB.integrable (b i)).sub (hB.integrable (a i))).bdd_mul | |
| ((hH i hi).mono (F.le (a i))).aestronglyMeasurable (hb i hi) | |
| have hsum := condExp_finsetSum hint (F t) | |
| have hsumFun : (β i β s, fun Ο => H i Ο * (B (b i) Ο - B (a i) Ο)) = | |
| (fun Ο => β i β s, H i Ο * (B (b i) Ο - B (a i) Ο)) := by | |
| funext Ο | |
| simp only [Finset.sum_apply] | |
| rw [hsumFun] at hsum | |
| have heach : βα΅ Ο βP, β i β s, | |
| P[(fun Ο => H i Ο * (B (b i) Ο - B (a i) Ο)) | F t] Ο = | |
| StoppedSimpleIntegral.intervalSum B (H i) (a i) (b i) t Ο := | |
| s.eventually_all.mpr (fun i hi => | |
| StoppedSimpleIntegral.intervalSum_eq_condExp_terminal hB (hab i hi) (hH i hi) (hb i hi) t) | |
| filter_upwards [hsum, heach] with Ο hsum heach | |
| simp only [Finset.sum_apply] at hsum | |
| rw [hsum] | |
| exact Finset.sum_congr rfl (fun i hi => heach i hi) | |
| def stoppedUniformSum (B H : ββ₯0 β Ξ© β β) (T : ββ₯0) (n : β) | |
| (t : ββ₯0) (Ο : Ξ©) : β := | |
| β i β Finset.range n, StoppedSimpleIntegral.intervalSum B | |
| (H (BrownianGrid.uniformGrid T n i)) (BrownianGrid.uniformGrid T n i) | |
| (BrownianGrid.uniformGrid T n (i + 1)) t Ο | |
| theorem stoppedUniformSum_eq_condExp | |
| {B H : ββ₯0 β Ξ© β β} {F : Filtration ββ₯0 mΞ©} | |
| (hB : IsPreBrownianReal B P) (hAd : StronglyAdapted F B) | |
| (hind : β s t, s β€ t β Indep | |
| (MeasurableSpace.comap (fun Ο => B t Ο - B s Ο) inferInstance) (F s) P) | |
| (hH : StronglyAdapted F H) {C : β} | |
| (hb : βα΅ Ο βP, β t, |H t Ο| β€ C) (T : ββ₯0) (n : β) (t : ββ₯0) : | |
| P[BrownianGrid.uniformSum B H T n | F t] =α΅[P] stoppedUniformSum B H T n t := by | |
| let : IsProbabilityMeasure P := hB.isGaussianProcess.isProbabilityMeasure | |
| apply finite_stoppedSum_eq_condExp (BrownianFiltration.martingale_of_independent_past hB hAd hind) | |
| (Finset.range n) (BrownianGrid.uniformGrid T n) | |
| (fun i => BrownianGrid.uniformGrid T n (i + 1)) | |
| (fun i => H (BrownianGrid.uniformGrid T n i)) | |
| (fun i _ => BrownianGrid.uniformGrid_mono T n (Nat.le_succ i)) | |
| (fun i _ => hH _) (fun _ => C) | |
| intro i hi | |
| filter_upwards [hb] with Ο hΟ | |
| simpa only [Real.norm_eq_abs] using hΟ (BrownianGrid.uniformGrid T n i) | |
| theorem exists_stopped_uniform_integral_process | |
| {B H : ββ₯0 β Ξ© β β} {F : Filtration ββ₯0 mΞ©} | |
| (hB : IsPreBrownianReal B P) (hAd : StronglyAdapted F B) | |
| (hind : β s t, s β€ t β Indep | |
| (MeasurableSpace.comap (fun Ο => B t Ο - B s Ο) inferInstance) (F s) P) | |
| (hH : StronglyAdapted F H) | |
| (hc : βα΅ Ο βP, Continuous (fun t => H t Ο)) | |
| {C : β} (hC : 0 β€ C) (hb : βα΅ Ο βP, β t, |H t Ο| β€ C) (T : ββ₯0) : | |
| β M : ββ₯0 β Ξ© β β, Martingale M F P β§ | |
| (β t, MemLp (M t) 2 P) β§ | |
| (β t, (β« Ο, M t Ο βP) = 0) β§ | |
| (β t, T β€ t β M t = M T) β§ | |
| (β« Ο, (M T Ο) ^ 2 βP) = | |
| (β« t in (0 : β)..(T : β), β« Ο, (H t.toNNReal Ο) ^ 2 βP) β§ | |
| (β t, Tendsto (fun n => β« Ο, | |
| (stoppedUniformSum B H T n t Ο - M t Ο) ^ 2 βP) atTop (π 0)) := by | |
| let : IsProbabilityMeasure P := hB.isGaussianProcess.isProbabilityMeasure | |
| obtain β¨I, hIm, hI2, hIzero, hIiso, hIlimβ© := | |
| BrownianFiltrationGrid.exists_terminal_uniform_integral_isometry | |
| hB hAd hind H hH hc hC hb T | |
| let M : ββ₯0 β Ξ© β β := fun t => P[I | F t] | |
| have hIint : Integrable I P := hI2.integrable (by norm_num) | |
| have hafter (t : ββ₯0) (ht : T β€ t) : M t = I := | |
| condExp_of_stronglyMeasurable (F.le t) (hIm.mono (F.mono ht)) hIint | |
| have hH2 (t : ββ₯0) : MemLp (H t) 2 P := by | |
| apply MemLp.of_bound ((hH t).mono (F.le t)).aestronglyMeasurable C | |
| filter_upwards [hb] with Ο hΟ | |
| simpa only [Real.norm_eq_abs] using hΟ t | |
| refine β¨M, martingale_condExp I F P, ?_, ?_, ?_, ?_, ?_β© | |
| Β· intro t | |
| exact hI2.condExp (by norm_num) | |
| Β· intro t | |
| exact (integral_condExp (F.le t)).trans hIzero | |
| Β· intro t ht | |
| exact (hafter t ht).trans (hafter T le_rfl).symm | |
| Β· rw [hafter T le_rfl] | |
| exact hIiso | |
| Β· intro t | |
| apply squeeze_zero (fun n => integral_nonneg (fun Ο => sq_nonneg _)) ?_ hIlim | |
| intro n | |
| calc | |
| _ = β« Ο, (P[BrownianGrid.uniformSum B H T n | F t] Ο - P[I | F t] Ο) ^ 2 βP := by | |
| apply integral_congr_ae | |
| filter_upwards [stoppedUniformSum_eq_condExp hB hAd hind hH hb T n t] with Ο hΟ | |
| change (stoppedUniformSum B H T n t Ο - P[I | F t] Ο) ^ 2 = _ | |
| rw [hΟ] | |
| _ β€ _ := meanSquare_condExp_sub_le (F t) | |
| (BrownianFiltrationGrid.uniformSum_memLp hB hAd hind H hH hH2 T n) hI2 | |
| end Problem367.BrownianIntegralProcess | |
| end | |
| end OAI | |