Download data/lean/OAI/Probability/SKGap/Localization/ConditionalWeight.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 2.97 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/SKGap/Localization/ConditionalWeight.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Probability/SKGap/Localization/ConditionalWeight.lean
-
curl -L -o ConditionalWeight.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/SKGap/Localization/ConditionalWeight.lean
2.97 kB
| import Mathlib | |
| import OAI.Probability.SKGap.Stability.FieldIntegralReduction | |
| namespace OAI | |
| section | |
| noncomputable section | |
| namespace SKGap | |
| open Matrix Real Set MeasureTheory ProbabilityTheory GaussianDensity | |
| open scoped BigOperators Matrix.Norms.Frobenius ENNReal | |
| instance conditionalGoeLaw_probability {ΞΉ : Type*} [Fintype ΞΉ] [DecidableEq ΞΉ] [Nonempty ΞΉ] | |
| (r v : β) (m z : ΞΉ β β) : IsProbabilityMeasure (conditionalGoeLaw r v m z) := by | |
| unfold conditionalGoeLaw | |
| infer_instance | |
| lemma conditionalFieldWeight_le_one {n : β} [NeZero n] (j t Ο : β) | |
| (E : Set (((Fin nΓFin n) β β) Γ (Fin n β β))) (y : Fin n β β) : | |
| conditionalFieldWeight j t Ο E y β€ 1 := prob_le_one | |
| lemma conditionalFieldWeight_of_real_bound {n : β} [NeZero n] {j t Ο c : β} | |
| (E : Set (((Fin nΓFin n) β β) Γ (Fin n β β))) (y : Fin n β β) | |
| (hb : (conditionalGoeLaw (j/(n:β)) (t+Ο^2) (magnetization y) (empiricalObservation j t Ο y)).real | |
| {W | (W,y)βE} β€ c) : conditionalFieldWeight j t Ο E y β€ ENNReal.ofReal c := by | |
| rw [β ENNReal.ofReal_toReal (show conditionalFieldWeight j t Ο E y β β€ from measure_ne_top _ _)] | |
| exact ENNReal.ofReal_le_ofReal hb | |
| lemma measurable_scalarIntegrand {n : β} [NeZero n] (j t Ο : β) : | |
| Measurable (scalarIntegrand (ΞΉ := Fin n) j t Ο) := by | |
| unfold scalarIntegrand productNormal scalarEmpirical scalarPsi scalarA scalarD scalarS scalarM scalarQMoment | |
| simp only [integral_empiricalLaw] | |
| unfold gaussianPDFReal | |
| fun_prop | |
| lemma scalar_density_prefactor_le_one {n : β} [NeZero n] {j t Ο : β} | |
| (hj : 0 β€ j) (ht : 0 β€ t) (hΟ : 0 < Ο) (y : Fin n β β) : | |
| sqrt (scalarS j (scalarEmpirical y t Ο)/ | |
| (scalarS j (scalarEmpirical y t Ο)+j*scalarQMoment (empiricalLaw y))) β€ 1 := by | |
| have hq : 0 β€ j*scalarQMoment (empiricalLaw y) := mul_nonneg hj (scalarQMoment_bounds _).1 | |
| have hs : 0 < scalarS j (scalarEmpirical y t Ο) := add_pos_of_pos_of_nonneg | |
| (add_pos_of_nonneg_of_pos ht (sq_pos_of_pos hΟ)) hq | |
| exact sqrt_le_one.mpr ((div_le_one (add_pos_of_pos_of_nonneg hs hq)).mpr (le_add_of_nonneg_right hq)) | |
| lemma scalarIntegrand_nonneg {n : β} [NeZero n] (j t Ο : β) (y : Fin n β β) : | |
| 0 β€ scalarIntegrand j t Ο y := mul_nonneg (exp_pos _).le | |
| (Finset.prod_nonneg (fun i _=>gaussianPDFReal_nonneg _ _ (y i))) | |
| lemma scalar_weighted_density_bound {n : β} [NeZero n] {j t Ο : β} | |
| (hj : 0 β€ j) (ht : 0 β€ t) (hΟ : 0 < Ο) (y : Fin n β β) {w b : ββ₯0β} | |
| (hw : w β€ b) : | |
| ENNReal.ofReal (sqrt (scalarS j (scalarEmpirical y t Ο)/ | |
| (scalarS j (scalarEmpirical y t Ο)+j*scalarQMoment (empiricalLaw y)))*scalarIntegrand j t Ο y)*w β€ | |
| ENNReal.ofReal (scalarIntegrand j t Ο y)*b := by | |
| apply mul_le_mul' _ hw | |
| apply ENNReal.ofReal_le_ofReal | |
| exact mul_le_of_le_one_left (scalarIntegrand_nonneg j t Ο y) (scalar_density_prefactor_le_one hj ht hΟ y) | |
| end SKGap | |
| end | |
| end | |
| end OAI | |