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