Download data/lean/OAI/Probability/FreeIsing/Conditioning/CopyCompensatedSquare.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 8.41 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/FreeIsing/Conditioning/CopyCompensatedSquare.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Probability/FreeIsing/Conditioning/CopyCompensatedSquare.lean
-
curl -L -o CopyCompensatedSquare.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/FreeIsing/Conditioning/CopyCompensatedSquare.lean
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 | |