Download data/lean/OAI/Probability/FreeIsing/Brownian/ArrayCompensator.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 7.86 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/FreeIsing/Brownian/ArrayCompensator.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Probability/FreeIsing/Brownian/ArrayCompensator.lean
-
curl -L -o ArrayCompensator.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/FreeIsing/Brownian/ArrayCompensator.lean
7.86 kB
| import OAI.Probability.FreeIsing.Brownian.ArrayFiltrationIntegral | |
| import OAI.Probability.FreeIsing.Brownian.IntegralProcess | |
| import OAI.Probability.FreeIsing.Estimates.CompensatedSquareLimit | |
| import OAI.Probability.FreeIsing.Stochastic.SelectedCompensator | |
| import OAI.Probability.FreeIsing.Stochastic.StoppedBrownianArraySquare | |
| namespace OAI | |
| noncomputable section | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped NNReal ENNReal Topology BigOperators | |
| namespace Problem367.BrownianArrayCompensator | |
| variable {Ξ© ΞΉ : Type*} [mΞ© : MeasurableSpace Ξ©] [Fintype ΞΉ] | |
| {P : Measure Ξ©} [IsProbabilityMeasure P] {F : Filtration ββ₯0 mΞ©} | |
| theorem compensatedSquare_of_terminal_meanSquare | |
| {B H : ΞΉ β ββ₯0 β Ξ© β β} {M : ββ₯0 β Ξ© β β} | |
| (hB : β j, IsPreBrownianReal (B j) P) | |
| (hAd : β j, StronglyAdapted F (B j)) | |
| (hpast : β s t, s β€ t β Indep | |
| (MeasurableSpace.comap (fun Ο j => B j t Ο - B j s Ο) inferInstance) (F s) P) | |
| (hcross : β s t, s β€ t β Pairwise fun j k => | |
| IndepFun (fun Ο => B j t Ο - B j s Ο) (fun Ο => B k t Ο - B k s Ο) P) | |
| (hH : β j, StronglyAdapted F (H j)) | |
| (hc : β j, βα΅ Ο βP, Continuous (fun t => H j t Ο)) | |
| (C : ΞΉ β β) (hC : β j, 0 β€ C j) | |
| (hb : β j, βα΅ Ο βP, β t, |H j t Ο| β€ C j) | |
| (hM : Martingale M F P) (hM2 : β t, MemLp (M t) 2 P) | |
| (hlim : β T, Tendsto (fun n : β => β« Ο, | |
| ((β j, BrownianGrid.uniformSum (B j) (H j) T n Ο) - M T Ο) ^ 2 βP) | |
| atTop (π 0)) : | |
| Martingale (fun t Ο => M t Ο ^ 2 - | |
| β j, SelectedCompensator.selected (H j) t t Ο) F P := by | |
| classical | |
| have hi (j : ΞΉ) (s t : ββ₯0) (hst : s β€ t) := | |
| BrownianArrayFiltration.coordinate_increment_indep_past (hpast s t hst) j | |
| have hH2 (j : ΞΉ) (t : ββ₯0) : MemLp (H j t) 2 P := by | |
| apply MemLp.of_bound (hH j).stronglyMeasurable.aestronglyMeasurable (C j) | |
| filter_upwards [hb j] with Ο hΟ | |
| simpa only [Real.norm_eq_abs] using hΟ t | |
| have hU2 (T : ββ₯0) (n : β) (j : ΞΉ) : | |
| MemLp (BrownianGrid.uniformSum (B j) (H j) T n) 2 P := | |
| BrownianFiltrationGrid.uniformSum_memLp (hB j) (hAd j) (hi j) | |
| (H j) (hH j) (hH2 j) T n | |
| have hQ : StronglyAdapted F (fun t Ο => | |
| β j, SelectedCompensator.selected (H j) t t Ο) := by | |
| intro t | |
| exact Finset.stronglyMeasurable_fun_sum _ fun j _ => | |
| SelectedCompensator.selected_stronglyAdapted (hH j) t t | |
| refine β¨fun t => ((hM.stronglyAdapted t).pow 2).sub (hQ t), ?_β© | |
| intro s T hsT | |
| let U (n : β) : Ξ© β β := fun Ο => | |
| β j, BrownianGrid.uniformSum (B j) (H j) T n Ο | |
| let X (n : β) (t : ββ₯0) (Ο : Ξ©) : β := | |
| β j, BrownianIntegralProcess.stoppedUniformSum (B j) (H j) T n t Ο | |
| let A (n : β) (t : ββ₯0) (Ο : Ξ©) : β := | |
| β j, SelectedCompensator.squareSum (H j) T n t Ο | |
| let Y (t : ββ₯0) : Ξ© β β := P[M T | F t] | |
| let Q (t : ββ₯0) (Ο : Ξ©) : β := | |
| β j, SelectedCompensator.selected (H j) T t Ο | |
| have hu2 (n : β) : MemLp (U n) 2 P := | |
| memLp_finsetSum _ fun j _ => hU2 T n j | |
| have hx2 (n : β) (t : ββ₯0) : MemLp (X n t) 2 P := by | |
| apply memLp_finsetSum | |
| intro j hj | |
| exact BrownianFiltration.stopped_predictable_sum_memLp_two (hB j) (hi j) | |
| (BrownianGrid.uniformGrid T n) (BrownianGrid.uniformGrid_mono T n) | |
| (fun i => H j (BrownianGrid.uniformGrid T n i)) (fun i => hH j _) | |
| (fun i => hH2 j _) (Finset.range n) t | |
| have ha (n : β) (t : ββ₯0) : Integrable (A n t) P := | |
| integrable_finsetSum _ fun j _ => | |
| (SelectedCompensator.squareSum_memLp (hH j) (hC j) (hb j) T t n 1).integrable le_rfl | |
| have hq (t : ββ₯0) : Integrable (Q t) P := | |
| integrable_finsetSum _ fun j _ => | |
| (SelectedCompensator.selected_memLp (hH j) (hc j) (hC j) (hb j) T t 1).integrable le_rfl | |
| have hy2 (t : ββ₯0) : MemLp (Y t) 2 P := (hM2 T).condExp (by norm_num) | |
| have hce (n : β) (t : ββ₯0) : P[U n | F t] =α΅[P] X n t := by | |
| have hsum := condExp_finsetSum (s := Finset.univ) | |
| (fun j _ => (hU2 T n j).integrable (by norm_num)) (F t) | |
| have heach : βα΅ Ο βP, β j, | |
| P[BrownianGrid.uniformSum (B j) (H j) T n | F t] Ο = | |
| BrownianIntegralProcess.stoppedUniformSum (B j) (H j) T n t Ο := | |
| ae_all_iff.mpr fun j => BrownianIntegralProcess.stoppedUniformSum_eq_condExp | |
| (hB j) (hAd j) (hi j) (hH j) (hb j) T n t | |
| have hsumFun : (β j, BrownianGrid.uniformSum (B j) (H j) T n) = U n := by | |
| funext Ο | |
| simp only [U, Finset.sum_apply] | |
| rw [hsumFun] at hsum | |
| filter_upwards [hsum, heach] with Ο hΟ he | |
| simp only [Finset.sum_apply] at hΟ | |
| exact hΟ.trans (Finset.sum_congr rfl (fun j _ => he j)) | |
| have hxlim (t : ββ₯0) : Tendsto (fun n => β« Ο, | |
| (X n t Ο - Y t Ο) ^ 2 βP) atTop (π 0) := by | |
| apply squeeze_zero (fun n => integral_nonneg (fun Ο => sq_nonneg _)) ?_ (hlim T) | |
| intro n | |
| calc | |
| _ = β« Ο, (P[U n | F t] Ο - P[M T | F t] Ο) ^ 2 βP := by | |
| apply integral_congr_ae | |
| filter_upwards [hce n t] with Ο hΟ | |
| exact congrArg (fun z => (z - Y t Ο) ^ 2) hΟ.symm | |
| _ β€ _ := BrownianIntegralProcess.meanSquare_condExp_sub_le (F t) (hu2 n) (hM2 T) | |
| have hfinite (n : β) : Martingale (fun t Ο => (X n t Ο) ^ 2 - A n t Ο) F P := by | |
| have hh := StoppedBrownianArraySquare.stopped_brownian_array_square_martingale | |
| B hB hAd hpast hcross (BrownianGrid.uniformGrid T n) (BrownianGrid.uniformGrid_mono T n) | |
| (fun j i => H j (BrownianGrid.uniformGrid T n i)) (fun j i => hH j _) | |
| (fun j _ => C j) | |
| (fun j i => (hb j).mono (fun Ο hΟ => by simpa only [Real.norm_eq_abs] using hΟ _)) | |
| Finset.univ n | |
| simpa only [X, A, BrownianIntegralProcess.stoppedUniformSum, | |
| SelectedCompensator.squareSum, mul_comm] using hh | |
| have halim (t : ββ₯0) : Tendsto (fun n => eLpNorm (A n t - Q t) 1 P) atTop (π 0) := by | |
| have hl := tendsto_finsetSum Finset.univ (fun j _ => | |
| SelectedCompensator.tendsto_squareSum_L1_selected | |
| (fun r => (hH j).stronglyMeasurable.aestronglyMeasurable) | |
| (hc j) (hC j) (hb j) T t) | |
| simp only [Finset.sum_const_zero] at hl | |
| apply tendsto_of_tendsto_of_tendsto_of_le_of_le tendsto_const_nhds hl (fun _ => bot_le) | |
| intro n | |
| change eLpNorm (A n t - Q t) 1 P β€ β j, | |
| eLpNorm (SelectedCompensator.squareSum (H j) T n t - SelectedCompensator.selected (H j) T t) 1 P | |
| have heq : A n t - Q t = β j, | |
| (SelectedCompensator.squareSum (H j) T n t - SelectedCompensator.selected (H j) T t) := by | |
| funext Ο | |
| simp only [A, Q, Pi.sub_apply, Finset.sum_apply, Finset.sum_sub_distrib] | |
| rw [heq] | |
| exact eLpNorm_sum_le le_rfl | |
| have hcomp := CompensatedSquareLimit.martingale_compensatedSquare_of_limits | |
| hx2 ha hfinite (martingale_condExp (M T) F P).stronglyAdapted hy2 | |
| (fun t => Finset.stronglyMeasurable_fun_sum _ fun j _ => | |
| SelectedCompensator.selected_stronglyAdapted (hH j) T t) hq | |
| (fun t => CompensatedSquareLimit.tendsto_eLpNorm_two_of_meanSquare | |
| (fun n => hx2 n t) (hy2 t) (hxlim t)) halim | |
| have heq (r : ββ₯0) (hr : r β€ T) : | |
| (fun Ο => (Y r Ο) ^ 2 - Q r Ο) =α΅[P] | |
| (fun Ο => M r Ο ^ 2 - β j, SelectedCompensator.selected (H j) r r Ο) := by | |
| have hcAll : βα΅ Ο βP, β j, Continuous (fun t => H j t Ο) := ae_all_iff.mpr hc | |
| filter_upwards [hM.condExp_ae_eq hr, hcAll] with Ο hΟ hcΟ | |
| change (P[M T | F r] Ο) ^ 2 - _ = _ | |
| rw [hΟ] | |
| congr 1 | |
| apply Finset.sum_congr rfl | |
| intro j hj | |
| simp only [SelectedCompensator.selected_eq_integral_of_continuous (hcΟ j), | |
| min_self, min_eq_left (show (r : β) β€ T from hr)] | |
| exact (condExp_congr_ae (heq T le_rfl).symm).trans | |
| ((hcomp.condExp_ae_eq hsT).trans (heq s hsT)) | |
| end Problem367.BrownianArrayCompensator | |
| end | |
| end OAI | |