Download data/lean/OAI/Probability/InvariantIsing/Spectral/MeasureSpectralContinuity.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 4.53 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/InvariantIsing/Spectral/MeasureSpectralContinuity.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Probability/InvariantIsing/Spectral/MeasureSpectralContinuity.lean
-
curl -L -o MeasureSpectralContinuity.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/InvariantIsing/Spectral/MeasureSpectralContinuity.lean
4.53 kB
| import OAI.Probability.InvariantIsing.Spectral.MeasureWeakResolvent | |
| namespace OAI | |
| /-! Spectral-transform continuity for compactly supported laws, including | |
| the zero argument and the upper-edge branch. -/ | |
| noncomputable section | |
| open MeasureTheory Filter Set | |
| open scoped Topology Classical BoundedContinuousFunction | |
| namespace InvariantIsing | |
| theorem spectralMean_tendsto_weak | |
| (μs : ā ā ProbabilityMeasure ā) (μ : ProbabilityMeasure ā) | |
| (hweak : Tendsto μs atTop (š μ)) {K : ā} (hK : 0 ⤠K) | |
| (hs : ā k, āįµ y ā(μs k : Measure ā), y ā Icc (-K) K) | |
| (hμ : āįµ y ā(μ : Measure ā), y ā Icc (-K) K) : | |
| Tendsto (fun k => ā« y, y ā(μs k : Measure ā)) atTop | |
| (š (ā« y, y ā(μ : Measure ā))) := by | |
| let f : ā ā ā := fun y => max (-K) (min K y) | |
| have hf : Continuous f := continuous_const.max (continuous_const.min continuous_id) | |
| have hb y : |f y| ⤠K := by | |
| rw [abs_le] | |
| exact āØle_max_left _ _, max_le (by linarith) (min_le_left _ _)ā© | |
| let F : ā āįµ ā := BoundedContinuousFunction.mkOfBound āØf, hfā© (2 * K) (by | |
| intro y z | |
| rw [Real.dist_eq] | |
| exact (abs_sub _ _).trans ((add_le_add (hb y) (hb z)).trans_eq (by ring))) | |
| have heq (ν : Measure ā) (hν : āįµ y āν, y ā Icc (-K) K) : | |
| (ā« y, F y āν) = ā« y, y āν := by | |
| apply integral_congr_ae | |
| filter_upwards [hν] with y hy | |
| change max (-K) (min K y) = y | |
| rw [min_eq_right hy.2, max_eq_right hy.1] | |
| have ht := (ProbabilityMeasure.tendsto_iff_forall_integral_tendsto.mp hweak) F | |
| rw [heq (μ : Measure ā) hμ] at ht | |
| exact ht.congr' (Eventually.of_forall fun k => heq (μs k : Measure ā) (hs k)) | |
| theorem measureR_tendsto_weak_pos | |
| (μs : ā ā ProbabilityMeasure ā) (μ : ProbabilityMeasure ā) | |
| (es : ā ā ā) (e : ā) (hweak : Tendsto μs atTop (š μ)) | |
| (hedge : Tendsto es atTop (š e)) | |
| (hs : ā k, āįµ y ā(μs k : Measure ā), y ⤠es k) | |
| (hμ : āįµ y ā(μ : Measure ā), y ⤠e) | |
| (xs : ā ā ā) {x : ā} (hxs : Tendsto xs atTop (š x)) (hx : 0 < x) : | |
| Tendsto (fun k => measureR (μs k : Measure ā) (es k) (xs k)) atTop | |
| (š (measureR (μ : Measure ā) e x)) := by | |
| have hi := measureInverse_tendsto_weak μs μ es e hweak hedge hs hμ xs hxs hx | |
| have hrecip : Tendsto (fun k => 1 / xs k) atTop (š (1 / x)) := | |
| tendsto_const_nhds.div hxs hx.ne' | |
| have ht : Tendsto | |
| (fun k => measureInverse (μs k : Measure ā) (es k) (xs k) - 1 / xs k) | |
| atTop (š (measureR (μ : Measure ā) e x)) := by | |
| simpa only [measureR, ite_eq_left hx] using hi.sub hrecip | |
| apply ht.congr' | |
| filter_upwards [hxs.eventually (Ioi_mem_nhds hx)] with k hk | |
| simp only [measureR, ite_eq_left (show 0 < xs k from hk)] | |
| theorem measureR_tendsto_weak_zero | |
| (μs : ā ā ProbabilityMeasure ā) (μ : ProbabilityMeasure ā) | |
| (es : ā ā ā) (e : ā) (hweak : Tendsto μs atTop (š μ)) | |
| {K : ā} (hK : 0 < K) (he : e ⤠K) (hes : ā k, es k ⤠K) | |
| (hs : ā k, āįµ y ā(μs k : Measure ā), y ā Icc (-K) (es k)) | |
| (hμ : āįµ y ā(μ : Measure ā), y ā Icc (-K) e) | |
| (xs : ā ā ā) (hxs : Tendsto xs atTop (š 0)) : | |
| Tendsto (fun k => measureR (μs k : Measure ā) (es k) (xs k)) atTop | |
| (š (measureR (μ : Measure ā) e 0)) := by | |
| have hm := spectralMean_tendsto_weak μs μ hweak hK.le | |
| (fun k => (hs k).mono fun y hy => āØhy.1, hy.2.trans (hes k)ā©) | |
| (hμ.mono fun y hy => āØhy.1, hy.2.trans heā©) | |
| have herr : āį¶ k in atTop, | |
| āmeasureR (μs k : Measure ā) (es k) (xs k) - ā« y, y ā(μs k : Measure ā)ā ⤠| |
| 8 * K ^ 2 * |xs k| := by | |
| filter_upwards [hxs.eventually (Iio_mem_nhds | |
| (show (0 : ā) < 1 / (4 * K) by positivity))] with k hk | |
| by_cases hxk : 0 < xs k | |
| · have hsmall : 4 * K * xs k ⤠1 := by | |
| have := (lt_div_iffā (show (0 : ā) < 4 * K by positivity)).mp hk | |
| nlinarith | |
| have hb := measureR_sub_mean_bound (μs k : Measure ā) hK (hes k) (hs k) hxk hsmall | |
| simpa only [Real.norm_eq_abs, abs_of_nonneg hb.1, abs_of_pos hxk] using hb.2 | |
| Ā· simp only [measureR, ite_eq_right hxk, sub_self, norm_zero] | |
| positivity | |
| have hb : Tendsto (fun k => 8 * K ^ 2 * |xs k|) atTop (š 0) := by | |
| simpa using hxs.abs.const_mul (8 * K ^ 2) | |
| have ht := (squeeze_zero_norm' herr hb).add hm | |
| simpa only [sub_add_cancel, zero_add, measureR, lt_self_iff_false, ite_false] using ht | |
| end InvariantIsing | |
| end | |
| end OAI | |