Download data/lean/OAI/Probability/CriticalPercolation/ProductMeasure/Associated.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 6.13 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/CriticalPercolation/ProductMeasure/Associated.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Probability/CriticalPercolation/ProductMeasure/Associated.lean
-
curl -L -o Associated.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/CriticalPercolation/ProductMeasure/Associated.lean
6.13 kB
| import Mathlib | |
| import OAI.Probability.CriticalPercolation.ProductMeasure.FiniteMarkovAvg | |
| namespace OAI | |
| section | |
| section | |
| open Set MeasureTheory ProbabilityTheory | |
| open Set | |
| open scoped BigOperators | |
| namespace CriticalPercolation.FiniteMarkov | |
| open Filter | |
| open scoped Topology | |
| variable {X : Type*} [Fintype X] [Preorder X] | |
| def Associated (ΞΌ : X β β) : Prop := | |
| β f g : X β β, Monotone f β Monotone g β | |
| avg ΞΌ f * avg ΞΌ g β€ avg ΞΌ (fun x => f x * g x) | |
| omit [Preorder X] in | |
| lemma avg_neg (ΞΌ : X β β) (f : X β β) : | |
| avg ΞΌ (fun x => -f x) = -avg ΞΌ f := by | |
| simp [avg, Finset.sum_neg_distrib] | |
| lemma Associated.antitone {ΞΌ : X β β} (h : Associated ΞΌ) | |
| (f g : X β β) (hf : Antitone f) (hg : Antitone g) : | |
| avg ΞΌ f * avg ΞΌ g β€ avg ΞΌ (fun x => f x * g x) := by | |
| have hh := h (fun x => -f x) (fun x => -g x) hf.neg hg.neg | |
| simpa only [avg_neg, neg_mul_neg] using hh | |
| lemma Associated.cross {ΞΌ : X β β} (h : Associated ΞΌ) | |
| (f g : X β β) (hf : Monotone f) (hg : Antitone g) : | |
| avg ΞΌ (fun x => f x * g x) β€ avg ΞΌ f * avg ΞΌ g := by | |
| have hh := h f (fun x => -g x) hf hg.neg | |
| simp only [avg_neg, mul_neg] at hh | |
| linarith | |
| omit [Preorder X] in | |
| lemma step_mono {K : X β X β β} (hK : β x y, 0 β€ K x y) | |
| {f g : X β β} (hfg : β x, f x β€ g x) (x : X) : | |
| step K f x β€ step K g x := avg_mono (hK x) hfg | |
| lemma association_halfstep {K L : X β X β β} | |
| (hK : β x y, 0 β€ K x y) | |
| (hKa : β x, Associated (K x)) (hLa : β x, Associated (L x)) | |
| (hLa' : β f : X β β, Monotone f β Antitone (step L f)) | |
| (f g : X β β) (hf : Monotone f) (hg : Monotone g) (x : X) : | |
| step K (step L f) x * step K (step L g) x β€ | |
| step K (step L (fun y => f y * g y)) x := by | |
| calc | |
| _ β€ step K (fun y => step L f y * step L g y) x := | |
| (hKa x).antitone _ _ (hLa' f hf) (hLa' g hg) | |
| _ β€ _ := step_mono hK (fun y => hLa y f g hf hg) x | |
| lemma step_antitone_of_neg {K : X β X β β} | |
| (hK : β f : X β β, Monotone f β Antitone (step K f)) | |
| {f : X β β} (hf : Antitone f) : Monotone (step K f) := by | |
| have hh := (hK (fun x => -f x) hf.neg).neg | |
| change Monotone (fun x => avg (K x) f) | |
| simpa only [step, avg_neg, neg_neg] using hh | |
| lemma iterate_association {K : X β X β β} | |
| (hK : β x y, 0 β€ K x y) | |
| (hKa : β x, Associated (K x)) | |
| (hmono : β f : X β β, Monotone f β Monotone (step K f)) | |
| (f g : X β β) (hf : Monotone f) (hg : Monotone g) (n : β) (x : X) : | |
| (step K)^[n] f x * (step K)^[n] g x β€ | |
| (step K)^[n] (fun y => f y * g y) x := by | |
| have hit (f : X β β) (hf : Monotone f) (n : β) : Monotone ((step K)^[n] f) := by | |
| induction n with | |
| | zero => exact hf | |
| | succ n ih => simpa only [Function.iterate_succ_apply'] using hmono _ ih | |
| induction n generalizing x with | |
| | zero => exact le_rfl | |
| | succ n ih => | |
| rw [Function.iterate_succ_apply', Function.iterate_succ_apply', | |
| Function.iterate_succ_apply'] | |
| calc | |
| _ β€ step K (fun y => (step K)^[n] f y * (step K)^[n] g y) x := | |
| hKa x _ _ (hit f hf n) (hit g hg n) | |
| _ β€ _ := step_mono hK (fun y => ih y) x | |
| noncomputable def compose (K L : X β X β β) (x z : X) : β := | |
| β y, K x y * L y z | |
| omit [Preorder X] in | |
| lemma step_compose (K L : X β X β β) (f : X β β) : | |
| step (compose K L) f = step K (step L f) := by | |
| funext x | |
| simp only [step, avg, compose, Finset.sum_mul, Finset.mul_sum, mul_assoc] | |
| exact Finset.sum_comm | |
| omit [Preorder X] in | |
| lemma compose_nonneg {K L : X β X β β} | |
| (hK : β x y, 0 β€ K x y) (hL : β x y, 0 β€ L x y) (x z : X) : | |
| 0 β€ compose K L x z := Finset.sum_nonneg fun y _ => mul_nonneg (hK x y) (hL y z) | |
| omit [Preorder X] in | |
| lemma compose_mass {K L : X β X β β} | |
| (hK : β x, β y, K x y = 1) (hL : β x, β y, L x y = 1) (x : X) : | |
| β z, compose K L x z = 1 := by | |
| simp only [compose] | |
| rw [Finset.sum_comm] | |
| simp only [β Finset.mul_sum, hL, mul_one, hK] | |
| omit [Preorder X] in | |
| lemma compose_minorization {K L : X β X β β} | |
| (hK : β x y, 0 β€ K x y) (hKm : β x, β y, K x y = 1) | |
| {a : β} {z : X} (haL : β x, a β€ L x z) (x : X) : | |
| a β€ compose K L x z := by | |
| calc | |
| a = β y, K x y * a := by rw [β Finset.sum_mul, hKm, one_mul] | |
| _ β€ _ := Finset.sum_le_sum fun y _ => mul_le_mul_of_nonneg_left (haL y) (hK x y) | |
| lemma compose_associated {K L : X β X β β} | |
| (hK : β x y, 0 β€ K x y) | |
| (hKa : β x, Associated (K x)) (hLa : β x, Associated (L x)) | |
| (hLa' : β f : X β β, Monotone f β Antitone (step L f)) (x : X) : | |
| Associated (compose K L x) := by | |
| intro f g hf hg | |
| change step (compose K L) f x * step (compose K L) g x β€ | |
| step (compose K L) (fun y => f y * g y) x | |
| simp only [step_compose] | |
| exact association_halfstep hK hKa hLa hLa' f g hf hg x | |
| lemma compose_monotone {K L : X β X β β} | |
| (hKa' : β f : X β β, Monotone f β Antitone (step K f)) | |
| (hLa' : β f : X β β, Monotone f β Antitone (step L f)) | |
| {f : X β β} (hf : Monotone f) : Monotone (step (compose K L) f) := by | |
| rw [step_compose] | |
| exact step_antitone_of_neg hKa' (hLa' f hf) | |
| theorem stationary_associated {K : X β X β β} | |
| (hK : β x y, 0 β€ K x y) (hmass : β x, β y, K x y = 1) | |
| (hKa : β x, Associated (K x)) | |
| (hmono : β f : X β β, Monotone f β Monotone (step K f)) | |
| {a : β} {z : X} (ha : 0 < a) (ha_one : a β€ 1) (haK : β x, a β€ K x z) | |
| (ΞΌ : X β β) (hΞΌ : β x, 0 β€ ΞΌ x) (hΞΌmass : β x, ΞΌ x = 1) | |
| (hstat : β y, β x, ΞΌ x * K x y = ΞΌ y) : Associated ΞΌ := by | |
| intro f g hf hg | |
| have hf' := tendsto_iterate hK hmass ha ha_one haK ΞΌ hΞΌ hΞΌmass hstat f z | |
| have hg' := tendsto_iterate hK hmass ha ha_one haK ΞΌ hΞΌ hΞΌmass hstat g z | |
| have hfg' := tendsto_iterate hK hmass ha ha_one haK ΞΌ hΞΌ hΞΌmass hstat | |
| (fun x => f x * g x) z | |
| exact le_of_tendsto_of_tendsto (hf'.mul hg') hfg' | |
| (Filter.Eventually.of_forall fun n => iterate_association hK hKa hmono f g hf hg n z) | |
| end CriticalPercolation.FiniteMarkov | |
| end | |
| end | |
| end OAI | |