math / data /lean /OAI /Probability /FreeIsing /Stochastic /StoppedBrownianArraySquare.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
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
| @insert 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
| @insert 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