math / data /lean /OAI /Probability /FreeIsing /Conditioning /CopyCompensatedSquare.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
8.41 kB
import OAI.Probability.FreeIsing.Brownian.RowComparisonConstruction
import OAI.Probability.FreeIsing.Brownian.SpatialPrimitive
import OAI.Probability.FreeIsing.Stochastic.StoppedIntegralAssociativity
namespace OAI
noncomputable section
open MeasureTheory ProbabilityTheory Filter
open scoped NNReal Topology
namespace Problem367.BrownianArrayFiltration
variable {Ξ© ΞΉ : Type*} [mΞ© : MeasurableSpace Ξ©] {P : Measure Ξ©}
theorem compensatedSquare_of_spatial_integral_limits
[Countable ΞΉ] [IsProbabilityMeasure P]
{F : Filtration ℝβ‰₯0 mΞ©} {B H I : ΞΉ β†’ ℝβ‰₯0 β†’ Ξ© β†’ ℝ}
{Y : ℝβ‰₯0 β†’ Ξ© β†’ ℝ}
(hB : βˆ€ a, IsPreBrownianReal (B a) P)
(hAd : βˆ€ a, StronglyAdapted F (B a))
(hpast : βˆ€ s t, s ≀ t β†’ Indep (MeasurableSpace.comap
(fun Ο‰ a => B a t Ο‰ - B a s Ο‰) inferInstance) (F s) P)
(hind : βˆ€ s t, s ≀ t β†’ Pairwise fun a b =>
IndepFun (fun Ο‰ => B a t Ο‰ - B a s Ο‰)
(fun Ο‰ => B b t Ο‰ - B b s Ο‰) P)
(hBc : βˆ€ a, βˆ€α΅ Ο‰ βˆ‚P, Continuous (fun t => B a t Ο‰))
(hH : βˆ€ a, IsStronglyProgressive F (H a))
(hc : βˆ€ a, βˆ€α΅ Ο‰ βˆ‚P, Continuous (fun t => H a t Ο‰))
{C : ΞΉ β†’ ℝ} (hC : βˆ€ a, 0 ≀ C a)
(hb : βˆ€ a, βˆ€α΅ Ο‰ βˆ‚P, βˆ€ t, |H a t Ο‰| ≀ C a)
(henergy : βˆ€ N : β„•, Summable (fun a =>
∫ s in (0 : ℝ)..(N : ℝ), ∫ Ο‰, H a s.toNNReal Ο‰ ^ 2 βˆ‚P))
(hI2 : βˆ€ a t, MemLp (I a t) 2 P)
(hYad : StronglyAdapted F Y) (hY2 : βˆ€ t, MemLp (Y t) 2 P)
(hlim : βˆ€ a (N : β„•), 0 < N β†’ βˆ€ t ≀ (N : ℝβ‰₯0),
Tendsto (fun n => ∫ Ο‰,
(BrownianIntegralProcess.stoppedUniformSum (B a) (H a) N n t Ο‰ -
I a t Ο‰) ^ 2 βˆ‚P) atTop (𝓝 0))
(hsum : βˆ€ t, HasSum (fun a => (hI2 a t).toLp (I a t))
((hY2 t).toLp (Y t))) :
Martingale Y F P ∧
Martingale (fun t Ο‰ => Y t Ο‰ ^ 2 -
nnrealTimePrimitive (spatialSquareDensity H) t Ο‰) F P := by
obtain ⟨J, Z, hJ2, hZ2, hJ, hJlim, hZp, hZM, hZc, hZ0,
hZiso, hZsum, hZmax, hZQ, hZA, hZseries⟩ :=
exists_global_continuous_spatial_integral_compensatedSquare
hB hAd hpast hind hBc (fun a => (hH a).stronglyAdapted)
hc hC hb henergy
have hIJ (a : ΞΉ) (t : ℝβ‰₯0) : I a t =ᡐ[P] J a t := by
obtain ⟨N, htN⟩ := exists_nat_gt (t : ℝ)
have hN : 0 < N := by exact_mod_cast (t.coe_nonneg.trans_lt htN)
have htN' : t ≀ (N : ℝβ‰₯0) := by exact_mod_cast htN.le
apply BrownianGrid.ae_eq_of_mean_square_limits
(fun n => StoppedIntegralAssociativity.stoppedUniformSum_memLp
(fun s => (hB a).isGaussianProcess.hasGaussianLaw_eval s |>.memLp_two)
(hH a).stronglyAdapted (hb a) (N : ℝβ‰₯0) n t)
(hI2 a t) (hJ2 a t)
Β· exact hlim a N hN t htN'
Β· exact hJlim a N hN t htN'
have hYZ (t : ℝβ‰₯0) : Y t =ᡐ[P] Z t := by
have heq : (fun a => (hI2 a t).toLp (I a t)) =
(fun a => (hJ2 a t).toLp (J a t)) :=
funext (fun a => MemLp.toLp_congr (hI2 a t) (hJ2 a t) (hIJ a t))
have hs := hsum t
rw [heq] at hs
exact (MemLp.toLp_eq_toLp_iff (hY2 t) (hZ2 t)).mp (hs.unique (hZsum t))
have hQ := compensatedSquare_spatial_primitive hH hc
(fun N => hZseries (N : ℝβ‰₯0)) hZM.stronglyAdapted hZQ
refine ⟨hZM.congr hYad (fun t => (hYZ t).symm), ?_⟩
apply hQ.congr (fun t => ((hYad t).pow 2).sub
(stronglyAdapted_nnrealTimePrimitive (spatialSquareDensity_isStronglyProgressive hH) t))
intro t
filter_upwards [hYZ t] with ω hω
exact congrArg (fun z => z ^ 2 - nnrealTimePrimitive (spatialSquareDensity H) t ω) hω.symm
theorem difference_compensatedSquare_of_spatial_integral_limits
[Countable ΞΉ] [IsProbabilityMeasure P]
{F : Filtration ℝβ‰₯0 mΞ©} {B H K I J : ΞΉ β†’ ℝβ‰₯0 β†’ Ξ© β†’ ℝ}
{Y Z : ℝβ‰₯0 β†’ Ξ© β†’ ℝ}
(hB : βˆ€ a, IsPreBrownianReal (B a) P)
(hAd : βˆ€ a, StronglyAdapted F (B a))
(hpast : βˆ€ s t, s ≀ t β†’ Indep (MeasurableSpace.comap
(fun Ο‰ a => B a t Ο‰ - B a s Ο‰) inferInstance) (F s) P)
(hind : βˆ€ s t, s ≀ t β†’ Pairwise fun a b =>
IndepFun (fun Ο‰ => B a t Ο‰ - B a s Ο‰)
(fun Ο‰ => B b t Ο‰ - B b s Ο‰) P)
(hBc : βˆ€ a, βˆ€α΅ Ο‰ βˆ‚P, Continuous (fun t => B a t Ο‰))
(hH : βˆ€ a, IsStronglyProgressive F (H a))
(hK : βˆ€ a, IsStronglyProgressive F (K a))
(hcH : βˆ€ a, βˆ€α΅ Ο‰ βˆ‚P, Continuous (fun t => H a t Ο‰))
(hcK : βˆ€ a, βˆ€α΅ Ο‰ βˆ‚P, Continuous (fun t => K a t Ο‰))
{C D : ΞΉ β†’ ℝ} (hC : βˆ€ a, 0 ≀ C a) (hD : βˆ€ a, 0 ≀ D a)
(hbH : βˆ€ a, βˆ€α΅ Ο‰ βˆ‚P, βˆ€ t, |H a t Ο‰| ≀ C a)
(hbK : βˆ€ a, βˆ€α΅ Ο‰ βˆ‚P, βˆ€ t, |K a t Ο‰| ≀ D a)
(heH : βˆ€ N : β„•, Summable (fun a =>
∫ s in (0 : ℝ)..(N : ℝ), ∫ Ο‰, H a s.toNNReal Ο‰ ^ 2 βˆ‚P))
(heK : βˆ€ N : β„•, Summable (fun a =>
∫ s in (0 : ℝ)..(N : ℝ), ∫ Ο‰, K a s.toNNReal Ο‰ ^ 2 βˆ‚P))
(hI2 : βˆ€ a t, MemLp (I a t) 2 P) (hJ2 : βˆ€ a t, MemLp (J a t) 2 P)
(hYad : StronglyAdapted F Y) (hZad : StronglyAdapted F Z)
(hY2 : βˆ€ t, MemLp (Y t) 2 P) (hZ2 : βˆ€ t, MemLp (Z t) 2 P)
(hlimI : βˆ€ a (N : β„•), 0 < N β†’ βˆ€ t ≀ (N : ℝβ‰₯0),
Tendsto (fun n => ∫ Ο‰,
(BrownianIntegralProcess.stoppedUniformSum (B a) (H a) N n t Ο‰ -
I a t Ο‰) ^ 2 βˆ‚P) atTop (𝓝 0))
(hlimJ : βˆ€ a (N : β„•), 0 < N β†’ βˆ€ t ≀ (N : ℝβ‰₯0),
Tendsto (fun n => ∫ Ο‰,
(BrownianIntegralProcess.stoppedUniformSum (B a) (K a) N n t Ο‰ -
J a t Ο‰) ^ 2 βˆ‚P) atTop (𝓝 0))
(hsY : βˆ€ t, HasSum (fun a => (hI2 a t).toLp (I a t))
((hY2 t).toLp (Y t)))
(hsZ : βˆ€ t, HasSum (fun a => (hJ2 a t).toLp (J a t))
((hZ2 t).toLp (Z t))) :
Martingale (fun t Ο‰ => Y t Ο‰ - Z t Ο‰) F P ∧
Martingale (fun t Ο‰ => (Y t Ο‰ - Z t Ο‰) ^ 2 -
nnrealTimePrimitive
(spatialSquareDensity (fun a t Ο‰ => H a t Ο‰ - K a t Ο‰)) t Ο‰) F P := by
have hc (a : ΞΉ) : βˆ€α΅ Ο‰ βˆ‚P, Continuous (fun t => H a t Ο‰ - K a t Ο‰) := by
filter_upwards [hcH a, hcK a] with ω hω kω
exact hω.sub kω
have hb (a : ΞΉ) : βˆ€α΅ Ο‰ βˆ‚P, βˆ€ t, |H a t Ο‰ - K a t Ο‰| ≀ C a + D a := by
filter_upwards [hbH a, hbK a] with ω hω kω
exact fun t => (abs_sub _ _).trans (add_le_add (hω t) (kω t))
have he (N : β„•) : Summable (fun a => ∫ s in (0 : ℝ)..(N : ℝ),
∫ Ο‰, (H a s.toNNReal Ο‰ - K a s.toNNReal Ο‰) ^ 2 βˆ‚P) := by
by_cases hN : 0 < N
Β· apply summable_difference_energy_of_row_energies hB hAd hpast H K
(fun a => (hH a).stronglyAdapted) (fun a => (hK a).stronglyAdapted)
hcH hcK C D hC hD hbH hbK (N : ℝβ‰₯0) (heH N) (heK N)
(fun a => hI2 a N) (fun a => hJ2 a N)
Β· intro a
simpa only [BrownianIntegralProcess.stoppedUniformSum_terminal] using
hlimI a N hN N le_rfl
Β· intro a
simpa only [BrownianIntegralProcess.stoppedUniformSum_terminal] using
hlimJ a N hN N le_rfl
Β· have hn : N = 0 := Nat.eq_zero_of_not_pos hN
simp only [hn, Nat.cast_zero, intervalIntegral.integral_same]
exact summable_zero
apply compensatedSquare_of_spatial_integral_limits hB hAd hpast hind hBc
(fun a t => (hH a t).sub (hK a t)) hc (fun a => add_nonneg (hC a) (hD a)) hb he
(fun a t => (hI2 a t).sub (hJ2 a t))
(fun t => (hYad t).sub (hZad t)) (fun t => (hY2 t).sub (hZ2 t))
Β· intro a N hN t htN
have hM2 (s : ℝβ‰₯0) := (hB a).isGaussianProcess.hasGaussianLaw_eval s |>.memLp_two
have h := SimpleIntegral.meanSquare_limit_sub
(fun n => StoppedIntegralAssociativity.stoppedUniformSum_memLp
hM2 (hH a).stronglyAdapted (hbH a) N n t)
(fun n => StoppedIntegralAssociativity.stoppedUniformSum_memLp
hM2 (hK a).stronglyAdapted (hbK a) N n t)
(hI2 a t) (hJ2 a t) (hlimI a N hN t htN) (hlimJ a N hN t htN)
have heq (n : β„•) (Ο‰ : Ξ©) :
BrownianIntegralProcess.stoppedUniformSum (B a)
(fun s Ο‰ => H a s Ο‰ - K a s Ο‰) N n t Ο‰ =
BrownianIntegralProcess.stoppedUniformSum (B a) (H a) N n t Ο‰ -
BrownianIntegralProcess.stoppedUniformSum (B a) (K a) N n t Ο‰ := by
simp only [BrownianIntegralProcess.stoppedUniformSum,
StoppedSimpleIntegral.intervalSum, sub_mul, Finset.sum_sub_distrib]
simpa only [heq, Pi.sub_apply] using h
Β· intro t
exact (hsY t).sub (hsZ t)
end Problem367.BrownianArrayFiltration
end
end OAI