Download data/lean/OAI/Probability/Ballisticity/Walk/PathPointMean.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 6.47 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/Ballisticity/Walk/PathPointMean.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Probability/Ballisticity/Walk/PathPointMean.lean
-
curl -L -o PathPointMean.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/Ballisticity/Walk/PathPointMean.lean
6.47 kB
| import Mathlib | |
| import OAI.Probability.Ballisticity.Walk.WeakPathEvalTendsto | |
| import OAI.Probability.Ballisticity.Estimates.GaussianPiReal | |
| namespace OAI | |
| section | |
| section | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Pointwise Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Pointwise Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| namespace DirectionalTransience | |
| noncomputable def pathPointMean (G : Measure C(unitInterval,β)) (t : unitInterval) : β := | |
| β« g, g t βG | |
| lemma path_finite_gaussian_marginal (G : ProbabilityMeasure C(unitInterval,β)) | |
| (hG : β I : Finset unitInterval, | |
| IsGaussian ((G : Measure C(unitInterval,β)).map (fun g : C(unitInterval,β) => I.restrict g))) | |
| (t : unitInterval) : IsGaussian ((G : Measure C(unitInterval,β)).map (fun g => g t)) := by | |
| let I : Finset unitInterval := {t} | |
| let ΞΌ := (G : Measure C(unitInterval,β)).map (fun g : C(unitInterval,β) => I.restrict g) | |
| have : IsGaussian ΞΌ := hG I | |
| let L : (I β β) βL[β] β := .proj β¨t,by simp [I]β© | |
| have he : ΞΌ.map L = (G : Measure C(unitInterval,β)).map (fun g => g t) := by | |
| rw [Measure.map_map L.measurable (continuous_path_restrict I).measurable] | |
| rfl | |
| rw [β he] | |
| infer_instance | |
| lemma path_marginal_eq_gaussian (G : ProbabilityMeasure C(unitInterval,β)) | |
| (hG : β I : Finset unitInterval, | |
| IsGaussian ((G : Measure C(unitInterval,β)).map (fun g : C(unitInterval,β) => I.restrict g))) | |
| (t : unitInterval) : | |
| (G : Measure C(unitInterval,β)).map (fun g => g t) = | |
| gaussianReal (pathPointMean G t) (Var[fun g : C(unitInterval,β) => g t; G]).toNNReal := by | |
| have : IsGaussian ((G : Measure C(unitInterval,β)).map (fun g => g t)) := path_finite_gaussian_marginal G hG t | |
| rw [IsGaussian.eq_gaussianReal ((G : Measure C(unitInterval,β)).map (fun g => g t)) inferInstance] | |
| congr 1 | |
| Β· exact integral_map (continuous_eval_const t).measurable.aemeasurable measurable_id.aestronglyMeasurable | |
| Β· rw [variance_map measurable_id.aemeasurable (continuous_eval_const t).measurable.aemeasurable]; rfl | |
| lemma continuous_pathPointMean (G : ProbabilityMeasure C(unitInterval,β)) | |
| (hG : β I : Finset unitInterval, | |
| IsGaussian ((G : Measure C(unitInterval,β)).map (fun g : C(unitInterval,β) => I.restrict g))) : | |
| Continuous (pathPointMean G) := | |
| continuous_gaussian_path_mean G (pathPointMean G) _ (path_marginal_eq_gaussian G hG) | |
| lemma path_finite_mean (G : ProbabilityMeasure C(unitInterval,β)) (I : Finset unitInterval) | |
| (hG : IsGaussian ((G : Measure C(unitInterval,β)).map (fun g : C(unitInterval,β) => I.restrict g))) : | |
| (β« x, x β(G : Measure C(unitInterval,β)).map (fun g : C(unitInterval,β) => I.restrict g)) = | |
| I.restrict (pathPointMean G) := by | |
| have := hG | |
| ext t | |
| change (ContinuousLinearMap.proj t : (I β β) βL[β] β) (β« x, x β(G : Measure C(unitInterval,β)).map | |
| (fun g : C(unitInterval,β) => I.restrict g)) = pathPointMean G t | |
| rw [β IsGaussian.integral_dual (ΞΌ := (G : Measure C(unitInterval,β)).map (fun g : C(unitInterval,β) => I.restrict g)) (.proj t),integral_map | |
| (continuous_path_restrict I).measurable.aemeasurable (by fun_prop)] | |
| rfl | |
| theorem path_iid_difference_centered (G W : ProbabilityMeasure C(unitInterval,β)) (T : β) | |
| (hW : β I : Finset unitInterval, | |
| (W : Measure C(unitInterval,β)).map (fun g : C(unitInterval,β) => I.restrict g) = gaussianPathFiniteLaw T I) | |
| (hG : ((G : Measure C(unitInterval,β)).prod G).map | |
| (fun p : C(unitInterval,β) Γ C(unitInterval,β) => p.1-p.2) = W) | |
| (a : β) (ha : a^2 = 1/2) : | |
| β m : C(unitInterval,β), (β t, m t = pathPointMean G t) β§ | |
| (G : Measure C(unitInterval,β)).map (fun g => g-m) = | |
| (W : Measure C(unitInterval,β)).map (fun g => a β’ g) := by | |
| have hg := path_of_iid_difference_gaussian G W T hW hG | |
| let m : C(unitInterval,β) := β¨pathPointMean G,continuous_pathPointMean G hgβ© | |
| refine β¨m,fun _ => rfl,?_β© | |
| apply continuous_path_measure_ext | |
| intro I | |
| let V := (G : Measure C(unitInterval,β)).map (fun g : C(unitInterval,β) => I.restrict g) | |
| have hd : (V.prod V).map (fun p : (I β β) Γ (I β β) => p.1-p.2) = gaussianPathFiniteLaw T I := by | |
| rw [path_restrict_iid_diff,hG,hW] | |
| have hh := iid_difference_centered_eq_half V (gaussianPathFiniteLaw T I) | |
| (gaussianPathFiniteLaw_mean T I) hd a ha | |
| rw [path_finite_mean G I (hg I)] at hh | |
| rw [β hW I] at hh | |
| rw [Measure.map_map (show Measurable (fun x : I β β => x-I.restrict (pathPointMean G)) by fun_prop) | |
| (continuous_path_restrict I).measurable, | |
| Measure.map_map (show Measurable (fun x : I β β => a β’ x) by fun_prop) | |
| (continuous_path_restrict I).measurable] at hh | |
| rw [Measure.map_map (continuous_path_restrict I).measurable (show Measurable (fun g : C(unitInterval,β) => g-m) by fun_prop), | |
| Measure.map_map (continuous_path_restrict I).measurable (show Measurable (fun g : C(unitInterval,β) => a β’ g) by fun_prop)] | |
| exact hh | |
| end DirectionalTransience | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped ENNReal NNReal BigOperators Topology Classical | |
| end | |
| end | |
| end OAI | |