Download data/lean/OAI/Probability/InvariantIsing/Pressure/PressureMean.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 5.46 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/InvariantIsing/Pressure/PressureMean.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Probability/InvariantIsing/Pressure/PressureMean.lean
-
curl -L -o PressureMean.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/InvariantIsing/Pressure/PressureMean.lean
5.46 kB
| import OAI.Probability.InvariantIsing.Haar.MedianMean | |
| namespace OAI | |
| /-! Almost-sure concentration of the actual pressure about its expectation. -/ | |
| noncomputable section | |
| open MeasureTheory Filter | |
| open scoped Topology | |
| namespace InvariantIsing | |
| /-- Deterministic reference obtained by removing the quadratic interaction. -/ | |
| def noninteractingPressure {N : β} (c : Fin N β β) : β := | |
| (N : β)β»ΒΉ * logPartition (fieldEnergy c) | |
| lemma rotatedPressure_zero {N : β} (U : Rotation N) (c : Fin N β β) : | |
| rotatedPressure (fun _ => 0) U c = noninteractingPressure c := by | |
| simp [rotatedPressure, rotatedEnergy, noninteractingPressure] | |
| lemma abs_pressure_sub_noninteracting_le {N : β} (hN : 0 < N) | |
| (eig c : Fin N β β) (U : Rotation N) (K : β) (heig : β i, |eig i| β€ K) : | |
| |rotatedPressure eig U c - noninteractingPressure c| β€ K / 2 := by | |
| simpa only [sub_zero, rotatedPressure_zero] using | |
| abs_rotatedPressure_sub_le hN eig (fun _ => 0) U c K (fun i => by simpa using heig i) | |
| /-- Uniformly bounded spectra give almost-sure concentration about the mean, | |
| for arbitrary deterministic fields and arbitrary dependence across dimensions. -/ | |
| theorem ae_pressure_sub_mean_tendsto_zero (hpub : HaarConcentrationInput) | |
| {Ξ© : Type*} [MeasurableSpace Ξ©] (P : Measure Ξ©) [IsProbabilityMeasure P] | |
| (U : (n : β) β Ξ© β SpecialOrthogonal (n + 3)) | |
| (hU : β n, Measurable (U n)) | |
| (hHaar : β n, (P.map (U n)).IsMulLeftInvariant) | |
| (eig c : (n : β) β Fin (n + 3) β β) | |
| (K : β) (hK : 0 < K) (heig : β n i, |eig n i| β€ K) : | |
| βα΅ Ο βP, Tendsto (fun n => | |
| rotatedPressure (eig n) (specialRotation (U n Ο)) (c n) - | |
| β« Ξ·, rotatedPressure (eig n) (specialRotation (U n Ξ·)) (c n) βP) | |
| atTop (π 0) := by | |
| let F : (n : β) β SpecialOrthogonal (n + 3) β β := fun n V => | |
| rotatedPressure (eig n) (specialRotation V) (c n) - noninteractingPressure (c n) | |
| let f : β β Ξ© β β := fun n Ο => F n (U n Ο) | |
| have hFm (n : β) : Measurable (F n) := | |
| (measurable_rotatedPressure (eig n) (c n)).sub_const _ | |
| have hfm (n : β) : Measurable (f n) := (hFm n).comp (hU n) | |
| have hfb (n : β) (Ο : Ξ©) : |f n Ο| β€ K / 2 := | |
| abs_pressure_sub_noninteracting_le (by omega) _ _ _ K (heig n) | |
| obtain β¨C, a, hC, ha, hpβ© := hpub | |
| have hm (n : β) : β m : β, | |
| (1 / 2 : β) β€ P.real {Ο | f n Ο β€ m} β§ | |
| (1 / 2 : β) β€ P.real {Ο | m β€ f n Ο} β§ | |
| β r : β, 0 < r β P.real {Ο | r β€ |f n Ο - m|} β€ | |
| C * Real.exp (-a * (n + 3 : β) * r ^ 2 / K ^ 2) := by | |
| have hprob : IsProbabilityMeasure (P.map (U n)) := | |
| (Measure.isProbabilityMeasure_map_iff (hU n).aemeasurable).mpr inferInstance | |
| have hLip : β V W, |F n V - F n W| β€ K * frobeniusDistance V W := by | |
| intro V W | |
| dsimp only [F] | |
| rw [sub_sub_sub_cancel_right] | |
| exact abs_rotatedPressure_sub_rotation_le (by omega) _ _ _ _ K hK.le (heig n) | |
| obtain β¨m, hl, hu, htβ© := hp (n + 3) (by omega) (P.map (U n)) hprob | |
| (hHaar n) (F n) (hFm n) K hK hLip | |
| refine β¨m, ?_, ?_, ?_β© | |
| Β· simpa only [f, Set.preimage_ofPred_eq, measureReal_def, Measure.map_apply (hU n) | |
| (measurableSet_le (hFm n) measurable_const)] using hl | |
| Β· simpa only [f, Set.preimage_ofPred_eq, measureReal_def, Measure.map_apply (hU n) | |
| (measurableSet_le measurable_const (hFm n))] using hu | |
| Β· intro r hr | |
| simpa only [f, Set.preimage_ofPred_eq, measureReal_def, Measure.map_apply (hU n) | |
| (measurableSet_le measurable_const ((hFm n).sub_const m).abs), | |
| Nat.cast_add, Nat.cast_ofNat] using ht r hr | |
| choose m hl hu ht using hm | |
| have htail : β r : β, 0 < r β β C a : β, 0 β€ C β§ 0 < a β§ | |
| β n, P.real {Ο | r β€ |f n Ο - m n|} β€ C * Real.exp (-a * (n : β)) := by | |
| intro r hr | |
| refine β¨C, a * r ^ 2 / K ^ 2, hC.le, by positivity, ?_β© | |
| intro n | |
| refine (ht n r hr).trans (mul_le_mul_of_nonneg_left (Real.exp_le_exp.mpr ?_) hC.le) | |
| have hnonneg : 0 β€ a * r ^ 2 / K ^ 2 := by positivity | |
| calc | |
| -a * ((n : β) + 3) * r ^ 2 / K ^ 2 = | |
| -(a * r ^ 2 / K ^ 2) * ((n : β) + 3) := by ring | |
| _ β€ -(a * r ^ 2 / K ^ 2) * (n : β) := | |
| mul_le_mul_of_nonpos_left (by linarith) (neg_nonpos.mpr hnonneg) | |
| have hmean := tendsto_mean_sub_median_zero P f hfm m (K / 2) (by positivity) | |
| hfb hl hu htail | |
| have hae := ae_tendsto_zero_of_exponential_tail P (fun n Ο => f n Ο - m n) htail | |
| have hfi (n : β) : Integrable (f n) P := | |
| (integrable_const (K / 2)).mono' (hfm n).aestronglyMeasurable | |
| (ae_of_all _ fun Ο => by simpa only [Real.norm_eq_abs] using hfb n Ο) | |
| filter_upwards [hae] with Ο hΟ | |
| have hresult := hΟ.sub hmean | |
| have he (n : β) : | |
| f n Ο - m n - ((β« Ξ·, f n Ξ· βP) - m n) = | |
| rotatedPressure (eig n) (specialRotation (U n Ο)) (c n) - | |
| β« Ξ·, rotatedPressure (eig n) (specialRotation (U n Ξ·)) (c n) βP := by | |
| have hadd := integral_add (hfi n) (integrable_const (noninteractingPressure (c n))) | |
| have heq : (fun Ξ· => f n Ξ· + noninteractingPressure (c n)) = | |
| (fun Ξ· => rotatedPressure (eig n) (specialRotation (U n Ξ·)) (c n)) := by | |
| funext Ξ· | |
| simp [f, F] | |
| rw [heq] at hadd | |
| simp only [integral_const, probReal_univ, one_smul] at hadd | |
| dsimp only [f, F] | |
| linarith | |
| simpa only [he, sub_self] using hresult | |
| end InvariantIsing | |
| end | |
| end OAI | |