Download data/lean/OAI/Probability/FreeIsing/Stochastic/IntegralAssociativityLimit.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 15.4 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/FreeIsing/Stochastic/IntegralAssociativityLimit.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Probability/FreeIsing/Stochastic/IntegralAssociativityLimit.lean
-
curl -L -o IntegralAssociativityLimit.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/FreeIsing/Stochastic/IntegralAssociativityLimit.lean
15.4 kB
| import OAI.Probability.FreeIsing.Martingales.PredictableL2Completion | |
| import OAI.Probability.FreeIsing.Martingales.TransformL2 | |
| import OAI.Probability.FreeIsing.Stochastic.SimpleIntegralAssociativity | |
| namespace OAI | |
| noncomputable section | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped Topology NNReal | |
| namespace Problem367.SimpleIntegral | |
| section Multiplier | |
| variable {Ξ© : Type*} [MeasurableSpace Ξ©] {ΞΌ : Measure Ξ©} | |
| {K : Ξ© β β} {C : β} | |
| abbrev bounded_mul_memLp (hK : AEStronglyMeasurable K ΞΌ) | |
| (hbound : βα΅ Ο βΞΌ, |K Ο| β€ C) {X : Ξ© β β} (hX : MemLp X 2 ΞΌ) : | |
| MemLp (fun Ο => K Ο * X Ο) 2 ΞΌ := | |
| BrownianGrid.memLp_compose_of_bounded hX hK hbound | |
| def boundedMulLinear (hK : AEStronglyMeasurable K ΞΌ) | |
| (hbound : βα΅ Ο βΞΌ, |K Ο| β€ C) : Lp β 2 ΞΌ ββ[β] Lp β 2 ΞΌ where | |
| toFun X := (bounded_mul_memLp hK hbound (Lp.memLp X)).toLp (fun Ο => K Ο * X Ο) | |
| map_add' X Y := by | |
| apply Lp.ext | |
| filter_upwards | |
| [(bounded_mul_memLp hK hbound (Lp.memLp (X + Y))).coeFn_toLp, | |
| Lp.coeFn_add X Y, | |
| Lp.coeFn_add | |
| ((bounded_mul_memLp hK hbound (Lp.memLp X)).toLp (fun Ο => K Ο * X Ο)) | |
| ((bounded_mul_memLp hK hbound (Lp.memLp Y)).toLp (fun Ο => K Ο * Y Ο)), | |
| (bounded_mul_memLp hK hbound (Lp.memLp X)).coeFn_toLp, | |
| (bounded_mul_memLp hK hbound (Lp.memLp Y)).coeFn_toLp] with Ο hxy hsum hout hx hy | |
| simp only [Pi.add_apply] at * | |
| rw [hxy, hsum, hout, hx, hy, mul_add] | |
| map_smul' r X := by | |
| apply Lp.ext | |
| filter_upwards | |
| [(bounded_mul_memLp hK hbound (Lp.memLp (r β’ X))).coeFn_toLp, | |
| Lp.coeFn_smul r X, | |
| Lp.coeFn_smul r | |
| ((bounded_mul_memLp hK hbound (Lp.memLp X)).toLp (fun Ο => K Ο * X Ο)), | |
| (bounded_mul_memLp hK hbound (Lp.memLp X)).coeFn_toLp] with Ο hrx hsm hout hx | |
| simp only [Pi.smul_apply, smul_eq_mul, RingHom.id_apply] at * | |
| rw [hrx, hsm, hout, hx] | |
| ring | |
| theorem norm_boundedMulLinear_le (hK : AEStronglyMeasurable K ΞΌ) | |
| (hbound : βα΅ Ο βΞΌ, |K Ο| β€ C) (X : Lp β 2 ΞΌ) : | |
| βboundedMulLinear hK hbound Xβ β€ C * βXβ := by | |
| apply Lp.norm_le_mul_norm_of_ae_le_mul | |
| filter_upwards [hbound, | |
| (bounded_mul_memLp hK hbound (Lp.memLp X)).coeFn_toLp] with Ο hb he | |
| change β(bounded_mul_memLp hK hbound (Lp.memLp X)).toLp | |
| (fun Ο => K Ο * X Ο) Οβ β€ C * βX Οβ | |
| rw [he, norm_mul] | |
| exact mul_le_mul_of_nonneg_right hb (norm_nonneg _) | |
| def boundedMulL2 (hK : AEStronglyMeasurable K ΞΌ) | |
| (hbound : βα΅ Ο βΞΌ, |K Ο| β€ C) : Lp β 2 ΞΌ βL[β] Lp β 2 ΞΌ := | |
| (boundedMulLinear hK hbound).mkContinuous C (norm_boundedMulLinear_le hK hbound) | |
| theorem boundedMulL2_toLp (hK : AEStronglyMeasurable K ΞΌ) | |
| (hbound : βα΅ Ο βΞΌ, |K Ο| β€ C) {X : Ξ© β β} (hX : MemLp X 2 ΞΌ) : | |
| boundedMulL2 hK hbound (hX.toLp X) = | |
| (bounded_mul_memLp hK hbound hX).toLp (fun Ο => K Ο * X Ο) := by | |
| apply Lp.ext | |
| filter_upwards | |
| [(bounded_mul_memLp hK hbound (Lp.memLp (hX.toLp X))).coeFn_toLp, | |
| hX.coeFn_toLp, (bounded_mul_memLp hK hbound hX).coeFn_toLp] with Ο hleft hx hright | |
| change (bounded_mul_memLp hK hbound (Lp.memLp (hX.toLp X))).toLp | |
| (fun Ο => K Ο * hX.toLp X Ο) Ο = _ | |
| rw [hleft, hx, hright] | |
| theorem hasSum_bounded_mul {ΞΉ : Type*} | |
| (hK : AEStronglyMeasurable K ΞΌ) (hbound : βα΅ Ο βΞΌ, |K Ο| β€ C) | |
| (X : ΞΉ β Ξ© β β) (hX : β i, MemLp (X i) 2 ΞΌ) | |
| {Y : Ξ© β β} (hY : MemLp Y 2 ΞΌ) | |
| (hsum : HasSum (fun i => (hX i).toLp (X i)) (hY.toLp Y)) : | |
| HasSum (fun i => (bounded_mul_memLp hK hbound (hX i)).toLp | |
| (fun Ο => K Ο * X i Ο)) | |
| ((bounded_mul_memLp hK hbound hY).toLp (fun Ο => K Ο * Y Ο)) := by | |
| simpa only [boundedMulL2_toLp] using hsum.mapL (boundedMulL2 hK hbound) | |
| end Multiplier | |
| section Limits | |
| variable {Ξ© : Type*} [mΞ© : MeasurableSpace Ξ©] {ΞΌ : Measure Ξ©} | |
| theorem tendsto_toLp_iff_meanSquare {Ξ± : Type*} {l : Filter Ξ±} | |
| {X : Ξ± β Ξ© β β} (hX : β a, MemLp (X a) 2 ΞΌ) | |
| {Y : Ξ© β β} (hY : MemLp Y 2 ΞΌ) : | |
| Tendsto (fun a => (hX a).toLp (X a)) l (π (hY.toLp Y)) β | |
| Tendsto (fun a => β« Ο, (X a Ο - Y Ο) ^ 2 βΞΌ) l (π 0) := by | |
| have heq (a : Ξ±) : | |
| β(hX a).toLp (X a) - hY.toLp Yβ ^ 2 = | |
| β« Ο, (X a Ο - Y Ο) ^ 2 βΞΌ := by | |
| rw [β MemLp.toLp_sub (hX a) hY] | |
| exact PredictableL2.norm_toLp_sq ((hX a).sub hY) | |
| rw [tendsto_iff_norm_sub_tendsto_zero] | |
| constructor | |
| Β· intro h | |
| simpa only [heq, zero_pow (by decide : (2 : β) β 0)] using h.pow 2 | |
| Β· intro h | |
| have hs := Real.continuous_sqrt.continuousAt.tendsto.comp h | |
| simpa only [Function.comp_def, β heq, Real.sqrt_sq (norm_nonneg _), | |
| Real.sqrt_zero] using hs | |
| theorem meanSquare_limit_of_close {Ξ± : Type*} {l : Filter Ξ±} | |
| {X Y : Ξ± β Ξ© β β} (hX : β a, MemLp (X a) 2 ΞΌ) | |
| (hY : β a, MemLp (Y a) 2 ΞΌ) {Z : Ξ© β β} (hZ : MemLp Z 2 ΞΌ) | |
| (hclose : Tendsto (fun a => β« Ο, (X a Ο - Y a Ο) ^ 2 βΞΌ) l (π 0)) | |
| (hlim : Tendsto (fun a => β« Ο, (X a Ο - Z Ο) ^ 2 βΞΌ) l (π 0)) : | |
| Tendsto (fun a => β« Ο, (Y a Ο - Z Ο) ^ 2 βΞΌ) l (π 0) := by | |
| apply (tendsto_toLp_iff_meanSquare hY hZ).mp | |
| apply ((tendsto_toLp_iff_meanSquare hX hZ).mpr hlim).congr_dist | |
| have heq (a : Ξ±) : | |
| dist ((hX a).toLp (X a)) ((hY a).toLp (Y a)) ^ 2 = | |
| β« Ο, (X a Ο - Y a Ο) ^ 2 βΞΌ := by | |
| rw [dist_eq_norm, β MemLp.toLp_sub (hX a) (hY a)] | |
| exact PredictableL2.norm_toLp_sq ((hX a).sub (hY a)) | |
| have hs := Real.continuous_sqrt.continuousAt.tendsto.comp hclose | |
| simpa only [Function.comp_def, β heq, Real.sqrt_sq dist_nonneg, | |
| Real.sqrt_zero] using hs | |
| theorem tendsto_bounded_multiplier_energy | |
| {K : β β Ξ© β β} {L X : Ξ© β β} | |
| (hK : β n, AEStronglyMeasurable (K n) ΞΌ) | |
| (hL : AEStronglyMeasurable L ΞΌ) (hX : MemLp X 2 ΞΌ) | |
| {C : β} (hC : 0 β€ C) | |
| (hboundK : β n, βα΅ Ο βΞΌ, |K n Ο| β€ C) | |
| (hboundL : βα΅ Ο βΞΌ, |L Ο| β€ C) | |
| (hlim : βα΅ Ο βΞΌ, Tendsto (fun n => K n Ο) atTop (π (L Ο))) : | |
| Tendsto (fun n => β« Ο, ((K n Ο - L Ο) * X Ο) ^ 2 βΞΌ) atTop (π 0) := by | |
| have hb (n : β) : βα΅ Ο βΞΌ, | |
| β((K n Ο - L Ο) * X Ο) ^ 2β β€ (2 * C) ^ 2 * X Ο ^ 2 := by | |
| filter_upwards [hboundK n, hboundL] with Ο hn hl | |
| have hd : |K n Ο - L Ο| β€ 2 * C := | |
| (abs_sub _ _).trans (by linarith) | |
| have hs : (K n Ο - L Ο) ^ 2 β€ (2 * C) ^ 2 := by | |
| simpa only [sq_abs] using | |
| (sq_le_sqβ (abs_nonneg _) (by positivity : 0 β€ 2 * C)).2 hd | |
| rw [Real.norm_eq_abs, abs_of_nonneg (sq_nonneg _), mul_pow] | |
| exact mul_le_mul_of_nonneg_right hs (sq_nonneg (X Ο)) | |
| have hi := tendsto_integral_of_dominated_convergence (ΞΌ := ΞΌ) | |
| (fun Ο => (2 * C) ^ 2 * X Ο ^ 2) | |
| (fun n => (((hK n).sub hL).mul hX.aestronglyMeasurable).pow 2) | |
| (hX.integrable_sq.const_mul ((2 * C) ^ 2)) hb | |
| (hlim.mono (fun Ο hΟ => by | |
| simpa using ((hΟ.sub tendsto_const_nhds).mul_const (X Ο)).pow 2)) | |
| simpa using hi | |
| def coarseTransform (K M : β β Ξ© β β) (n : β) (Ο : Ξ©) : β := | |
| β j β Finset.range n, K j Ο * (M (j + 1) Ο - M j Ο) | |
| theorem coarseTransform_memLp (K : β β Ξ© β β) | |
| (hK : β j, AEStronglyMeasurable (K j) ΞΌ) (C : β β β) | |
| (hbound : β j, βα΅ Ο βΞΌ, |K j Ο| β€ C j) | |
| {M : β β Ξ© β β} (hM : β j, MemLp (M j) 2 ΞΌ) (n : β) : | |
| MemLp (coarseTransform K M n) 2 ΞΌ := by | |
| exact memLp_finsetSum _ fun j _ => | |
| bounded_mul_memLp (hK j) (hbound j) ((hM (j + 1)).sub (hM j)) | |
| theorem toLp_coarseTransform (K : β β Ξ© β β) | |
| (hK : β j, AEStronglyMeasurable (K j) ΞΌ) (C : β β β) | |
| (hbound : β j, βα΅ Ο βΞΌ, |K j Ο| β€ C j) | |
| {M : β β Ξ© β β} (hM : β j, MemLp (M j) 2 ΞΌ) (n : β) : | |
| (coarseTransform_memLp K hK C hbound hM n).toLp (coarseTransform K M n) = | |
| β j β Finset.range n, boundedMulL2 (hK j) (hbound j) | |
| ((hM (j + 1)).toLp (M (j + 1)) - (hM j).toLp (M j)) := by | |
| have hterm (j : β) : MemLp (fun Ο => K j Ο * (M (j + 1) Ο - M j Ο)) 2 ΞΌ := | |
| bounded_mul_memLp (hK j) (hbound j) ((hM (j + 1)).sub (hM j)) | |
| calc | |
| _ = β j β Finset.range n, (hterm j).toLp | |
| (fun Ο => K j Ο * (M (j + 1) Ο - M j Ο)) := | |
| PredictableL2.toLp_finsetSum _ hterm _ | |
| _ = _ := by | |
| apply Finset.sum_congr rfl | |
| intro j hj | |
| rw [β MemLp.toLp_sub (hM (j + 1)) (hM j), boundedMulL2_toLp] | |
| rfl | |
| theorem tendsto_coarseTransform {Ξ± : Type*} {l : Filter Ξ±} | |
| (K : β β Ξ© β β) (hK : β j, AEStronglyMeasurable (K j) ΞΌ) | |
| (C : β β β) (hbound : β j, βα΅ Ο βΞΌ, |K j Ο| β€ C j) | |
| {X : Ξ± β β β Ξ© β β} (hX : β a j, MemLp (X a j) 2 ΞΌ) | |
| {M : β β Ξ© β β} (hM : β j, MemLp (M j) 2 ΞΌ) (n : β) | |
| (hlim : β j β€ n, Tendsto (fun a => (hX a j).toLp (X a j)) l | |
| (π ((hM j).toLp (M j)))) : | |
| Tendsto (fun a => (coarseTransform_memLp K hK C hbound (hX a) n).toLp | |
| (coarseTransform K (X a) n)) l | |
| (π ((coarseTransform_memLp K hK C hbound hM n).toLp | |
| (coarseTransform K M n))) := by | |
| rw [toLp_coarseTransform K hK C hbound hM n] | |
| have ht : Tendsto (fun a => β j β Finset.range n, | |
| boundedMulL2 (hK j) (hbound j) | |
| ((hX a (j + 1)).toLp (X a (j + 1)) - (hX a j).toLp (X a j))) l | |
| (π (β j β Finset.range n, boundedMulL2 (hK j) (hbound j) | |
| ((hM (j + 1)).toLp (M (j + 1)) - (hM j).toLp (M j)))) := by | |
| apply tendsto_finsetSum | |
| intro j hj | |
| have hjn : j < n := Finset.mem_range.mp hj | |
| exact ((boundedMulL2 (hK j) (hbound j)).continuous.tendsto _).comp | |
| ((hlim (j + 1) hjn).sub (hlim j hjn.le)) | |
| exact ht.congr (fun a => (toLp_coarseTransform K hK C hbound (hX a) n).symm) | |
| theorem integralSum_compose_refined_tendsto {Ξ± : Type*} {l : Filter Ξ±} | |
| (B : ββ₯0 β Ξ© β β) (t : Ξ± β β β ββ₯0) (H : Ξ± β β β Ξ© β β) | |
| (k : Ξ± β β) (hk : β a, 0 < k a) | |
| (K : β β Ξ© β β) (hK : β j, AEStronglyMeasurable (K j) ΞΌ) | |
| (C : β β β) (hbound : β j, βα΅ Ο βΞΌ, |K j Ο| β€ C j) | |
| (hI : β a j, MemLp (BrownianGrid.integralSum B (t a) (H a) (j * k a)) 2 ΞΌ) | |
| {M : β β Ξ© β β} (hM : β j, MemLp (M j) 2 ΞΌ) (n : β) | |
| (hlim : β j β€ n, Tendsto (fun a => (hI a j).toLp | |
| (BrownianGrid.integralSum B (t a) (H a) (j * k a))) l | |
| (π ((hM j).toLp (M j)))) : | |
| Tendsto (fun a => β« Ο, | |
| (BrownianGrid.integralSum B (t a) | |
| (fun i Ο => K (i / k a) Ο * H a i Ο) (n * k a) Ο - | |
| coarseTransform K M n Ο) ^ 2 βΞΌ) l (π 0) := by | |
| have h := (tendsto_toLp_iff_meanSquare | |
| (fun a => coarseTransform_memLp K hK C hbound (hI a) n) | |
| (coarseTransform_memLp K hK C hbound hM n)).mp | |
| (tendsto_coarseTransform K hK C hbound hI hM n hlim) | |
| refine h.congr (fun a => ?_) | |
| congr 1 | |
| funext Ο | |
| rw [coarseTransform, BrownianGrid.integralSum_compose_refined B (t a) (H a) K n (hk a)] | |
| theorem integralSum_ae_coarseTransform | |
| (B : ββ₯0 β Ξ© β β) (t : β β ββ₯0) (H K : β β Ξ© β β) | |
| {k : β} (hk : 0 < k) (I : β β Ξ© β β) | |
| (hrep : β j, I j =α΅[ΞΌ] BrownianGrid.integralSum B t H (j * k)) (n : β) : | |
| BrownianGrid.integralSum B t (fun i Ο => K (i / k) Ο * H i Ο) (n * k) =α΅[ΞΌ] | |
| coarseTransform K I n := by | |
| filter_upwards [ae_all_iff.mpr hrep] with Ο hΟ | |
| rw [β BrownianGrid.integralSum_compose_refined B t H K n hk] | |
| simp only [coarseTransform] | |
| simp_rw [hΟ] | |
| theorem integralSum_compose_varying_grid_tendsto [IsFiniteMeasure ΞΌ] | |
| {F : Filtration ββ₯0 mΞ©} | |
| {M : ββ₯0 β Ξ© β β} {I : β β ββ₯0 β Ξ© β β} | |
| (hM : Martingale M F ΞΌ) (hI : β n, Martingale (I n) F ΞΌ) | |
| (hM2 : β t, MemLp (M t) 2 ΞΌ) (hI2 : β n t, MemLp (I n t) 2 ΞΌ) | |
| (B : ββ₯0 β Ξ© β β) (t : β β β β ββ₯0) (ht : β n, Monotone (t n)) | |
| (H K : β β β β Ξ© β β) (k N : β β β) (hk : β n, 0 < k n) | |
| (hK : β n j, StronglyMeasurable[F (t n (j * k n))] (K n j)) | |
| {C : β} (hC : 0 β€ C) (hbound : β n j, βα΅ Ο βΞΌ, |K n j Ο| β€ C) | |
| {T : ββ₯0} (hterminal : β n, t n (N n * k n) = T) | |
| (hrep : β n j, I n (t n (j * k n)) =α΅[ΞΌ] | |
| BrownianGrid.integralSum B (t n) (H n) (j * k n)) | |
| (hlim : Tendsto (fun n => β« Ο, (I n T Ο - M T Ο) ^ 2 βΞΌ) atTop (π 0)) : | |
| Tendsto (fun n => β« Ο, | |
| (BrownianGrid.integralSum B (t n) | |
| (fun i Ο => K n (i / k n) Ο * H n i Ο) (N n * k n) Ο - | |
| coarseTransform (K n) (fun j => M (t n (j * k n))) (N n) Ο) ^ 2 βΞΌ) | |
| atTop (π 0) := by | |
| have herr := MartingaleTransformL2.tendsto_integral_sq_grid_transform | |
| (fun n => (hI n).sub hM) (fun n s => (hI2 n s).sub (hM2 s)) | |
| (fun n j => t n (j * k n)) | |
| (fun n i j hij => ht n (Nat.mul_le_mul_right (k n) hij)) N hterminal K hK hC hbound hlim | |
| refine herr.congr (fun n => ?_) | |
| apply integral_congr_ae | |
| filter_upwards [ae_all_iff.mpr (hrep n)] with Ο hΟ | |
| rw [β BrownianGrid.integralSum_compose_refined B (t n) (H n) (K n) (N n) (hk n)] | |
| congr 1 | |
| simp only [Pi.sub_apply, coarseTransform] | |
| simp_rw [hΟ] | |
| simp only [mul_sub, Finset.sum_sub_distrib] | |
| ring | |
| theorem integralSum_compose_limit [IsFiniteMeasure ΞΌ] | |
| {F : Filtration ββ₯0 mΞ©} | |
| {M : ββ₯0 β Ξ© β β} {I : β β ββ₯0 β Ξ© β β} | |
| (hM : Martingale M F ΞΌ) (hI : β n, Martingale (I n) F ΞΌ) | |
| (hM2 : β t, MemLp (M t) 2 ΞΌ) (hI2 : β n t, MemLp (I n t) 2 ΞΌ) | |
| (B : ββ₯0 β Ξ© β β) (t : β β β β ββ₯0) (ht : β n, Monotone (t n)) | |
| (H K : β β β β Ξ© β β) (k N : β β β) (hk : β n, 0 < k n) | |
| (hK : β n j, StronglyMeasurable[F (t n (j * k n))] (K n j)) | |
| {C : β} (hC : 0 β€ C) (hbound : β n j, βα΅ Ο βΞΌ, |K n j Ο| β€ C) | |
| {T : ββ₯0} (hterminal : β n, t n (N n * k n) = T) | |
| (hrep : β n j, I n (t n (j * k n)) =α΅[ΞΌ] | |
| BrownianGrid.integralSum B (t n) (H n) (j * k n)) | |
| (hlim : Tendsto (fun n => β« Ο, (I n T Ο - M T Ο) ^ 2 βΞΌ) atTop (π 0)) | |
| {Z : Ξ© β β} (hZ : MemLp Z 2 ΞΌ) | |
| (hproduct : Tendsto (fun n => β« Ο, | |
| (BrownianGrid.integralSum B (t n) | |
| (fun i Ο => K n (i / k n) Ο * H n i Ο) (N n * k n) Ο - Z Ο) ^ 2 βΞΌ) | |
| atTop (π 0)) : | |
| Tendsto (fun n => β« Ο, | |
| (coarseTransform (K n) (fun j => M (t n (j * k n))) (N n) Ο - Z Ο) ^ 2 βΞΌ) | |
| atTop (π 0) := by | |
| have hKm (n j : β) : AEStronglyMeasurable (K n j) ΞΌ := | |
| ((hK n j).mono (F.le _)).aestronglyMeasurable | |
| have houter (n : β) := coarseTransform_memLp (K n) (hKm n) (fun _ => C) | |
| (hbound n) (fun j => hM2 (t n (j * k n))) (N n) | |
| have hfine (n : β) : MemLp (BrownianGrid.integralSum B (t n) | |
| (fun i Ο => K n (i / k n) Ο * H n i Ο) (N n * k n)) 2 ΞΌ := by | |
| apply MemLp.ae_eq | |
| (integralSum_ae_coarseTransform B (t n) (H n) (K n) (hk n) | |
| (fun j => I n (t n (j * k n))) (hrep n) (N n)).symm | |
| exact coarseTransform_memLp (K n) (hKm n) (fun _ => C) (hbound n) | |
| (fun j => hI2 n (t n (j * k n))) (N n) | |
| exact meanSquare_limit_of_close hfine houter hZ | |
| (integralSum_compose_varying_grid_tendsto hM hI hM2 hI2 B t ht H K k N hk | |
| hK hC hbound hterminal hrep hlim) hproduct | |
| end Limits | |
| end Problem367.SimpleIntegral | |
| end | |
| end OAI | |