Download data/lean/OAI/Probability/FreeIsing/Stochastic/StoppedBrownianArraySquare.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 4.53 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/FreeIsing/Stochastic/StoppedBrownianArraySquare.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Probability/FreeIsing/Stochastic/StoppedBrownianArraySquare.lean
-
curl -L -o StoppedBrownianArraySquare.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/FreeIsing/Stochastic/StoppedBrownianArraySquare.lean
4.53 kB
| import OAI.Probability.FreeIsing.Stochastic.StoppedBrownianCross | |
| namespace OAI | |
| noncomputable section | |
| open MeasureTheory ProbabilityTheory | |
| open scoped NNReal | |
| namespace Problem367.StoppedBrownianArraySquare | |
| open StoppedSimpleIntegral BrownianFiltration StoppedBrownianSquare StoppedBrownianCross | |
| variable {Ξ© ΞΉ : Type*} [mΞ© : MeasurableSpace Ξ©] {P : Measure Ξ©} | |
| {F : Filtration ββ₯0 mΞ©} | |
| private theorem finite_sum_martingale [IsFiniteMeasure P] | |
| (S : ΞΉ β ββ₯0 β Ξ© β β) (I : Finset ΞΉ) | |
| (hS : β i β I, Martingale (S i) F P) : | |
| Martingale (fun t Ο => β i β I, S i t Ο) F P := by | |
| classical | |
| induction I using Finset.induction_on with | |
| | empty => | |
| convert martingale_zero β F P using 1 | |
| funext t Ο | |
| simp | |
| | i I hi ih => | |
| have hm := (hS i (Finset.mem_insert_self i I)).add | |
| (ih (fun j hj => hS j (Finset.mem_insert_of_mem hj))) | |
| convert hm using 1 | |
| funext t Ο | |
| simp only [Finset.sum_insert hi, Pi.add_apply] | |
| theorem finite_sum_compensated_square_martingale [IsFiniteMeasure P] | |
| (S A : ΞΉ β ββ₯0 β Ξ© β β) | |
| (hdiag : β i, Martingale (fun t Ο => S i t Ο ^ 2 - A i t Ο) F P) | |
| (hcross : Pairwise fun i j => Martingale (fun t Ο => S i t Ο * S j t Ο) F P) | |
| (I : Finset ΞΉ) : | |
| Martingale (fun t Ο => (β i β I, S i t Ο) ^ 2 - β i β I, A i t Ο) F P := by | |
| classical | |
| induction I using Finset.induction_on with | |
| | empty => | |
| convert martingale_zero β F P using 1 | |
| funext t Ο | |
| simp | |
| | i I hi ih => | |
| have hm := finite_sum_martingale (fun j t Ο => S i t Ο * S j t Ο) I | |
| (fun j hj => hcross (fun heq => hi (heq βΈ hj))) | |
| convert ((hdiag i).add ih).add (Martingale.smul 2 hm) using 1 | |
| funext t Ο | |
| simp only [Finset.sum_insert hi, Pi.add_apply, Pi.smul_apply, smul_eq_mul, | |
| β Finset.mul_sum] | |
| ring | |
| theorem stopped_brownian_array_square_martingale [IsProbabilityMeasure P] | |
| (B : ΞΉ β ββ₯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) | |
| (hind : β s t, s β€ t β Pairwise fun j k => | |
| IndepFun (fun Ο => B j t Ο - B j s Ο) (fun Ο => B k t Ο - B k s Ο) P) | |
| (Ο : β β ββ₯0) (hΟ : Monotone Ο) (H : ΞΉ β β β Ξ© β β) | |
| (hH : β j i, StronglyMeasurable[F (Ο i)] (H j i)) | |
| (K : ΞΉ β β β β) (hbound : β j i, βα΅ Ο βP, βH j i Οβ β€ K j i) | |
| (I : Finset ΞΉ) (n : β) : | |
| Martingale (fun t Ο => | |
| (β j β I, β i β Finset.range n, | |
| intervalSum (B j) (H j i) (Ο i) (Ο (i + 1)) t Ο) ^ 2 - | |
| β j β I, β i β Finset.range n, | |
| H j i Ο ^ 2 * ((min t (Ο (i + 1)) : β) - (min t (Ο i) : β))) F P := by | |
| have hcoord (j : ΞΉ) (s t : ββ₯0) (hst : s β€ t) : Indep (MeasurableSpace.comap | |
| (fun Ο => B j t Ο - B j s Ο) inferInstance) (F s) P := by | |
| apply indep_of_indep_of_le_left (hpast s t hst) | |
| have hm : Measurable[MeasurableSpace.comap | |
| (fun Ο j => B j t Ο - B j s Ο) inferInstance] | |
| (fun Ο j => B j t Ο - B j s Ο) := measurable_iff_comap_le.mpr le_rfl | |
| exact ((measurable_pi_apply j).comp hm).comap_le | |
| have hpair (j k : ΞΉ) (s t : ββ₯0) (hst : s β€ t) : Indep (MeasurableSpace.comap | |
| (fun Ο => (B j t Ο - B j s Ο, B k t Ο - B k s Ο)) inferInstance) (F s) P := by | |
| apply indep_of_indep_of_le_left (hpast s t hst) | |
| have hm : Measurable[MeasurableSpace.comap | |
| (fun Ο j => B j t Ο - B j s Ο) inferInstance] | |
| (fun Ο j => B j t Ο - B j s Ο) := measurable_iff_comap_le.mpr le_rfl | |
| exact (((measurable_pi_apply j).comp hm).prodMk | |
| ((measurable_pi_apply k).comp hm)).comap_le | |
| exact finite_sum_compensated_square_martingale | |
| (fun j t Ο => β i β Finset.range n, | |
| intervalSum (B j) (H j i) (Ο i) (Ο (i + 1)) t Ο) | |
| (fun j t Ο => β i β Finset.range n, | |
| H j i Ο ^ 2 * ((min t (Ο (i + 1)) : β) - (min t (Ο i) : β))) | |
| (fun j => stopped_predictable_sum_square_martingale (hB j) (hAd j) (hcoord j) | |
| Ο hΟ (H j) (hH j) (K j) (hbound j) n) | |
| (fun j k hjk => stopped_brownian_sum_product_martingale (hB j) (hB k) | |
| (hAd j) (hAd k) (hpair j k) (fun s t hst => hind s t hst hjk) | |
| Ο hΟ (H j) (H k) (hH j) (hH k) (K j) (K k) (hbound j) (hbound k) n) I | |
| end Problem367.StoppedBrownianArraySquare | |
| end | |
| end OAI | |