Download data/lean/OAI/Probability/CriticalPercolation/ProductMeasure/ExpectMulReal.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 1.41 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/CriticalPercolation/ProductMeasure/ExpectMulReal.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Probability/CriticalPercolation/ProductMeasure/ExpectMulReal.lean
-
curl -L -o ExpectMulReal.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/CriticalPercolation/ProductMeasure/ExpectMulReal.lean
1.41 kB
| import Mathlib | |
| import OAI.Probability.CriticalPercolation.ProductMeasure.Distribution | |
| import OAI.Probability.CriticalPercolation.Modular.DensityModular | |
| namespace OAI | |
| section | |
| section | |
| open Set MeasureTheory ProbabilityTheory | |
| open Set | |
| open scoped BigOperators | |
| namespace CriticalPercolation.FiniteProduct | |
| open scoped Classical | |
| variable {E : Type*} [Fintype E] | |
| lemma expect_mul_ge_real (w : E β Prop β β) (hw : β e, β b, w e b = 1) | |
| (hpos : β e b, 0 β€ w e b) (f g : (E β Prop) β β) | |
| (hf : Monotone f) (hg : Monotone g) : | |
| expect w f * expect w g β€ expect w (fun Ο => f Ο * g Ο) := by | |
| classical | |
| let l := Finset.univ.inf' Finset.univ_nonempty f | |
| let k := Finset.univ.inf' Finset.univ_nonempty g | |
| have hb := expect_mul_ge w hw hpos (fun Ο => f Ο-l) (fun Ο => g Ο-k) | |
| (fun Ο => sub_nonneg.mpr (Finset.inf'_le _ (Finset.mem_univ Ο))) | |
| (fun Ο => sub_nonneg.mpr (Finset.inf'_le _ (Finset.mem_univ Ο))) | |
| (fun _ _ h => sub_le_sub_right (hf h) l) (fun _ _ h => sub_le_sub_right (hg h) k) | |
| have he : (fun Ο => (f Ο-l)*(g Ο-k)) = | |
| (fun Ο => f Ο*g Ο - l*g Ο - k*f Ο + l*k) := by funext Ο; ring | |
| rw [he, expect_sub, expect_sub, expect_const w hw l, expect_const w hw k, | |
| expect_add, expect_sub, expect_sub, expect_const_mul, expect_const_mul, | |
| expect_const w hw (l*k)] at hb | |
| nlinarith | |
| end CriticalPercolation.FiniteProduct | |
| end | |
| end | |
| end OAI | |